[FFmpeg-user] ffmpeg destroying the video stream when copying from m2ts to m2ts
Binarus
lists at binarus.de
Tue Jan 23 21:50:31 EET 2024
Dear all,
I have a m2ts file that contains one video track and 14 other audio and
subtitle tracks. I'd like to copy the video track into a new m2ts file.
This basically works, but ffmpeg is doing something bad to the video
track while copying.
The new file plays in VLC and MPC-HC, but the video track is massively
disturbed. For some seconds, it plays normally, for the next seconds, it
shows just random color mess, then it plays normally again, and so on.
When converting to mkv instead, the new file plays correctly.
This is the ffmpeg version:
ffmpeg version 2024-01-14-git-34a47b97de-full_build-www.gyan.dev
Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
This is the command line to extract the video stream from the m2ts file
into a new m2ts file:
ffmpeg -i in.m2ts -map 0:0 -codec copy out.m2ts
I also have successively added -copyts, -muxpreload 0, -muxdelay 0,
-probesize 100G and -analyzeduration 100G to that command line at the
correct places, and also have tried combinations thereof, but it didn't
change anything.
These are the streams in the input file:
Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448),
yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98
tbr, 90k tbn
Stream #0:1[0x1100]: Audio: dts (DTS-HD MA) ([134][0][0][0] /
0x0086), 48000 Hz, 5.1(side), s16p
Stream #0:2[0x1101]: Audio: dts (DTS-HD MA) ([134][0][0][0] /
0x0086), 48000 Hz, 5.1(side), s16p
Stream #0:3[0x1102]: Audio: dts (DTS-HD MA) ([134][0][0][0] /
0x0086), 48000 Hz, 5.1(side), s16p
Stream #0:4[0x1103]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 192 kb/s
Stream #0:5[0x1104]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), fltp, 640 kb/s
Stream #0:6[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090)
Stream #0:7[0x1201]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090)
Stream #0:8[0x1202]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090)
Stream #0:9[0x1203]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090)
Stream #0:10[0x1204]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090)
Stream #0:11[0x1205]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090)
Stream #0:12[0x1206]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090)
Stream #0:13[0x1207]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090)
Stream #0:14[0x1208]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090), 1920x1080
I'd be happy to provide the file for further analysis. However, I can't
make the file public. The file is about 300 MB; I can upload it
somewhere and provide the link. If somebody is interested, I'd like to
discuss the further procedure via personal email; please feel free to
drop me a note.
Best regards, and thank you very much,
Binarus
P.S. I don't know yet whether the problem is specific only to the input
file in question.
More information about the ffmpeg-user
mailing list