Opened 5 years ago

Last modified 4 years ago

#7647 new defect

Cannot Copy TrueHD/Atmos Audio

Reported by: eyecon Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mpegts
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: Splitting a large .m2ts results in an unknown format error. The large file plays perfectly as Atmos from an external HD to my BluRay player. I need to cut it in half to burn it to 2 discs. I copied the extract to the same USB drive.

Fedora 29

Not certain how verbose this should be (and I want to eliminate a build issue). My apologies if I paste too much content:

[dch@reptile ~]$ ffmpeg -ss 00:00:00 -t 01:30:00 -i Passport1/movie.m2ts -vcodec copy -acodec copy part1.m2ts
ffmpeg version 4.0.3 Copyright (c) 2000-2018 the FFmpeg developers

built with gcc 8 (GCC)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100

Input #0, mpegts, from 'Passport1/movie.m2ts':

Duration: 03:15:07.74, start: 11.650000, bitrate: 66603 kb/s
Program 1

Stream #0:0[0x1011]: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
Stream #0:1[0x1015]: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
Stream #0:2[0x1100]: Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 7.1, s32 (24 bit)
Stream #0:3[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:4[0x1101]: Audio: dts (DTS) ([130][0][0][0] / 0x0082), 48000 Hz, 5.1(side), fltp, 768 kb/s
Stream #0:5[0x1102]: Audio: dts (DTS) ([130][0][0][0] / 0x0082), 48000 Hz, 5.1(side), fltp, 768 kb/s
Stream #0:6[0x12a0]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:7[0x12a1]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:8[0x12a2]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:9[0x12a3]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:10[0x12a4]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)

Output #0, mpegts, to 'part1.m2ts':

Metadata:

encoder : Lavf58.12.100
Stream #0:0: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 7.1, s32 (24 bit)

Stream mapping:

Stream #0:0 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)

Press [q] to stop, ? for help
frame=129751 fps=276 q=-1.0 Lsize=40188712kB time=01:30:11.64 bitrate=60836.5kbits/s speed=11.5x
video:34357061kB audio:2061336kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 10.352777%

Attachments (1)

sample.m2ts (2.5 MB ) - added by eyecon 5 years ago.

Change History (7)

comment:1 by Elon Musk, 5 years ago

Sample is needed.

comment:2 by eyecon, 5 years ago

Happy to do so but "be careful what you wish for." The original is a 90gb blu ray media file.

comment:3 by James, 5 years ago

See https://ffmpeg.org/bugreports.html#SubmittingSampleMedia

Try cutting a small portion of the sample, enough to include a bunch of video and audio frames, then upload it somewhere.

comment:4 by eyecon, 5 years ago

"Error: Upload failed
Maximum attachment size: 2621440 bytes"

Attachment reduced accordingly.

by eyecon, 5 years ago

Attachment: sample.m2ts added

comment:5 by Carl Eugen Hoyos, 5 years ago

Component: undeterminedavformat
Keywords: mpegts added
Version: unspecifiedgit-master

Mostly a duplicate of #2622 / I am not convinced this ticket will still be reproducible once #2622 is fixed.

(Not just an enhancement request as FFmpeg writes an invalid output file without warning.)

comment:6 by Carl Eugen Hoyos, 4 years ago

Behaviour has indeed changed in 7f2649bb46e3dde691edfb03aeb42ba4ef183ab8 but TrueHD muxing in m2ts does not work correctly because the ac-3 stream is missing.

Note: See TracTickets for help on using tickets.