HaveAGitGat / Tdarr_Plugins

Tdarr Plugins
GNU General Public License v3.0
140 stars 158 forks source link

[Error] Tdarr_Plugin_00td_action_add_audio_stream_codec #335

Open justaplane opened 2 years ago

justaplane commented 2 years ago

When adding audio stream, results in the following error message:

The encoder 'dca' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

Results of log located here:

2022-09-28T01:42:23.465Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:[Step W05] [C1] Launching subworker

2

2022-09-28T01:42:23.466Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:Preparing to launch subworker

3

2022-09-28T01:42:23.466Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:Subworker launched

4

2022-09-28T01:42:23.467Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:[1/3] Sending command to subworker

5

2022-09-28T01:42:23.467Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:[2/3] C:/TDARR/Tdarr_Node/node_modules/@ffmpeg-installer/win32-x64/ffmpeg.exe -i Z:/Media/Movies/10.cloverfield.lane.2016.4k.ultrahd.bluray.2160p.x264.dts-hd.ma.truehd.7.1.atmos.acc-7.1-poop-1.m4v -map 0:v -map 0:1 -map 0:a -map 0:s? -map 0:d? -c copy -c:a:0 dca -ac 6 Z:/Media/temp/10.cloverfield.lane.2016.4k.ultrahd.bluray.2160p.x264.dts-hd.ma.truehd.7.1.atmos.acc-7.1-poop-1-TdarrCacheFile-ox3FUKET8V.m4v

6

2022-09-28T01:42:23.468Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:[3/3] Command sent

7

2022-09-28T01:42:23.469Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:To see live CLI output, enable 'Log full FFmpeg/HandBrake output' in the staging section on the Tdarr tab before the job starts.

8

2022-09-28T01:42:23.469Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:Subworker:Online

9

2022-09-28T01:42:23.470Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:Subworker:Receiving transcode settings

10

2022-09-28T01:42:23.470Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:Subworker:Running CLI

11

2022-09-28T01:42:24.471Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:Subworker exit approved, killing subworker

12

2022-09-28T01:42:24.472Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:Subworker killed

13

2022-09-28T01:42:24.473Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:CLI code: 1

14

2022-09-28T01:42:24.473Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:Last 200 lines of CLI log:

15

2022-09-28T01:42:24.474Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:ffmpeg version N-92722-gf22fcd4483 Copyright (c) 2000-2018 the FFmpeg developers

16

2022-09-28T01:42:24.474Z built with gcc 8.2.1 (GCC) 20181201

17

2022-09-28T01:42:24.474Z configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt

18

2022-09-28T01:42:24.474Z libavutil 56. 24.101 / 56. 24.101

19

2022-09-28T01:42:24.474Z libavcodec 58. 42.102 / 58. 42.102

20

2022-09-28T01:42:24.474Z

21

2022-09-28T01:42:24.474Z libavformat 58. 24.101 / 58. 24.101

22

2022-09-28T01:42:24.474Z libavdevice 58. 6.101 / 58. 6.101

23

2022-09-28T01:42:24.474Z libavfilter 7. 46.101 / 7. 46.101

24

2022-09-28T01:42:24.474Z libswscale 5. 4.100 / 5. 4.100

25

2022-09-28T01:42:24.474Z libswresample 3. 4.100 / 3. 4.100

26

2022-09-28T01:42:24.474Z libpostproc 55. 4.100 / 55. 4.100

27

2022-09-28T01:42:24.474Z

28

2022-09-28T01:42:24.474Z Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Z:/Media/Movies/10.cloverfield.lane.2016.4k.ultrahd.bluray.2160p.x264.dts-hd.ma.truehd.7.1.atmos.acc-7.1-poop-1.m4v':

29

2022-09-28T01:42:24.474Z Metadata:

30

2022-09-28T01:42:24.474Z major_brand : mp42

31

2022-09-28T01:42:24.474Z minor_version : 512

32

2022-09-28T01:42:24.474Z compatible_brands: isomiso2mp41

33

2022-09-28T01:42:24.474Z

34

2022-09-28T01:42:24.474Z creation_time : 2018-02-27T17:20:35.000000Z

35

2022-09-28T01:42:24.474Z encoder : HandBrake 1.0.7 2017040900

36

2022-09-28T01:42:24.474Z Duration: 01:43:34.79, start: 0.000000, bitrate: 3414 kb/s

37

2022-09-28T01:42:24.474Z Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, bt709), 3840x1600 [SAR 1:1 DAR 12:5], 2770 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc (default)

38

2022-09-28T01:42:24.474Z Metadata:

39

2022-09-28T01:42:24.474Z creation_time : 2018-02-27T17:20:35.000000Z

40

2022-09-28T01:42:24.474Z handler_name : VideoHandler

41

2022-09-28T01:42:24.474Z Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 640 kb/s

42

2022-09-28T01:42:24.474Z (default)

43

2022-09-28T01:42:24.474Z Metadata:

44

2022-09-28T01:42:24.474Z creation_time :

45

2022-09-28T01:42:24.474Z 2018-02-27T17:20:35.000000Z

46

2022-09-28T01:42:24.474Z

47

2022-09-28T01:42:24.474Z handler_name : Surround

48

2022-09-28T01:42:24.474Z Side data:

49

2022-09-28T01:42:24.474Z audio service type: main

50

2022-09-28T01:42:24.474Z

51

2022-09-28T01:42:24.474Z Stream mapping:

52

2022-09-28T01:42:24.474Z Stream #0:0 -> #0:0 (copy)

53

2022-09-28T01:42:24.474Z Stream #0:1 -> #0:1 (ac3 (native) -> dts (dca))

54

2022-09-28T01:42:24.474Z

55

2022-09-28T01:42:24.474Z Stream #0:1 -> #0:2 (copy)

56

2022-09-28T01:42:24.474Z Press [q] to stop, [?] for help

57

2022-09-28T01:42:24.474Z

58

2022-09-28T01:42:24.474Z [dca @ 000002076ac7ed40] The encoder 'dca' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

59

2022-09-28T01:42:24.474Z

60

2022-09-28T01:42:24.474Z Conversion failed!

61

2022-09-28T01:42:24.474Z

62

2022-09-28T01:42:24.474Z

63

2022-09-28T01:42:24.475Z CGP-27s0i:Node[Work-Laptop]:Worker[5seSNzFXD]:[-error-]
justaplane commented 2 years ago

Add this below the response.preset =

if (['dca', 'truehd'].includes(audioCodec)) { response.preset += ' -strict -2'; }

However - This still results in a new error: [dca @ 000002abd564ed00] Specified channel layout '5.1' is not supported

HaveAGitGat commented 1 year ago

Related error here: https://forum.videohelp.com/threads/386092-Encoding-audio-in-DTS-in-multi-channels-with-ffmpeg

Also here https://trac.ffmpeg.org/ticket/4835: with 6 as number of channels, ffmpeg picks 5.1 channel layout. which is not supported by dcaenc. But 5.1(side) channel layout is suppported.