[FFmpeg-trac] #7885(undetermined:new): Can't copy Blu-ray subtitles from .m2ts to .m2ts
FFmpeg
trac at avcodec.org
Mon May 6 15:51:01 EEST 2019
#7885: Can't copy Blu-ray subtitles from .m2ts to .m2ts
-------------------------------------+-------------------------------------
Reporter: rhazor | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: Can't copy PGS/SUP subtitle files from Blu-ray .m2ts
file to new .m2ts file. No encoding, just remuxing.
How to reproduce:
{{{
ffmpeg -analyzeduration 200M -probesize 200M -i "test.m2ts" -map 0:v -map
0:a -map 0:s -c copy new.m2ts
ffmpeg version N-93774-gfec4212d8e Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 8.3.1 (GCC) 20190414
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
libdav1d --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
libavutil 56. 26.101 / 56. 26.101
libavcodec 58. 52.101 / 58. 52.101
libavformat 58. 27.103 / 58. 27.103
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 50.100 / 7. 50.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
[mpegts @ 000001e6d4b9adc0] DTS discontinuity in stream 2: packet 4 with
DTS 402220885, packet 5 with DTS 402403095
[mpegts @ 000001e6d4b9adc0] DTS discontinuity in stream 2: packet 12 with
DTS 402406850, packet 13 with DTS 402635828
Input #0, mpegts, from 'test.m2ts':
Duration: 00:01:00.60, start: 4441.120000, bitrate: 31343 kb/s
Program 1
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, 47.95 tbc
Stream #0:1[0x1100](eng): Audio: dts (DTS-HD MA) ([134][0][0][0] /
0x0086), 48000 Hz, 5.1(side), s32p (24 bit)
Stream #0:2[0x1200](eng): Subtitle: hdmv_pgs_subtitle ([144][0][0][0]
/ 0x0090), 1920x1080
File 'new.m2ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'new.m2ts':
Metadata:
encoder : Lavf58.27.103
Stream #0:0: Video: h264 (High) (HDMV / 0x564D4448),
yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps,
23.98 tbr, 90k tbn, 90k tbc
Stream #0:1(eng): Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086),
48000 Hz, 5.1(side), s32p (24 bit)
Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
0x0090), 1920x1080
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Press [q] to stop, [?] for help
[mpegts @ 000001e6e0cc19c0] Non-monotonous DTS in output stream 0:2;
previous: 2520040, current: 2520038; changing to 2520041. This may result
in incorrect timestamps in the output file.
[mpegts @ 000001e6e0cc19c0] Non-monotonous DTS in output stream 0:2;
previous: 2705988, current: 2705986; changing to 2705989. This may result
in incorrect timestamps in the output file.
frame= 1453 fps=0.0 q=-1.0 Lsize= 242946kB time=00:01:00.59
bitrate=32843.3kbits/s speed= 112x
video:191759kB audio:28143kB subtitle:13kB other streams:0kB global
headers:0kB muxing overhead: 10.472713%
}}}
If you run MediaInfo on the new file it shows that subtitle track became a
'menu':
{{{
Menu
ID : 4096 (0x1000)
Menu ID : 1 (0x1)
Duration : 59 s 601 ms
List : 256 (0x100) (AVC) / 257 (0x101)
(DTS, English)
Language : / English
Service name : Service01
Service provider : FFmpeg
Service type : digital television
}}}
When playing new file, there is no subtitles.
Tested on multiple different discs.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7885>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list