Opened 9 years ago
Closed 9 years ago
#5196 closed defect (duplicate)
Copy of Bluray m2ts file gets broken
Reported by: | tzimmo | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | mpegts pgssub |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
I try to copy one video, one audio and one subtitle track "as is" from one file to another (to strip unwanted audio and subtitles). Unfortunately the subtitle in the output file is no longer detected as a subtitle and does not work.
command: ~/git/ffmpeg/ffmpeg/ffmpeg -y -i input.m2ts -vcodec copy -acodec copy -scodec copy output.m2ts
ffmpeg version: git commit-id 22ee0a576faff87a24e30b2a27a3607dee4ca6c7
I can attach a test sample of 1 MB that is enough to reproduce the issue, but unfortunately such a short sample does not contain any visible subtitles. I can upload a longer sample to ftp server if this sample is not enough to address the issue.
--8<--8<--
$ ~/git/ffmpeg/ffmpeg/ffmpeg -y -i input.m2ts -vcodec copy -acodec copy -scodec copy output.m2ts
ffmpeg version N-73646-g22ee0a5 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/tmp/ffmpeg --enable-static --disable-shared --enable-pic --disable-yasm
libavutil 55. 14.100 / 55. 14.100
libavcodec 57. 22.100 / 57. 22.100
libavformat 57. 22.100 / 57. 22.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 27.100 / 6. 27.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
[mpegts @ 0x337a3e0] Failed to open codec in av_find_stream_info
[mpegts @ 0x337a3e0] PES packet size mismatch
Last message repeated 10 times
[NULL @ 0x33a2000] start time for stream 13 is not set in estimate_timings_from_pts
[NULL @ 0x33a2ba0] start time for stream 14 is not set in estimate_timings_from_pts
[NULL @ 0x33a3740] start time for stream 15 is not set in estimate_timings_from_pts
[NULL @ 0x33a42e0] start time for stream 16 is not set in estimate_timings_from_pts
[NULL @ 0x33a4e80] start time for stream 17 is not set in estimate_timings_from_pts
[NULL @ 0x33a5a20] start time for stream 18 is not set in estimate_timings_from_pts
[NULL @ 0x33a6620] start time for stream 19 is not set in estimate_timings_from_pts
[NULL @ 0x33a71c0] start time for stream 20 is not set in estimate_timings_from_pts
[NULL @ 0x33a7d60] start time for stream 21 is not set in estimate_timings_from_pts
[NULL @ 0x33a8900] start time for stream 22 is not set in estimate_timings_from_pts
[NULL @ 0x33a94a0] start time for stream 23 is not set in estimate_timings_from_pts
[NULL @ 0x33aa040] start time for stream 24 is not set in estimate_timings_from_pts
[NULL @ 0x33aabe0] start time for stream 25 is not set in estimate_timings_from_pts
[NULL @ 0x33ab780] start time for stream 26 is not set in estimate_timings_from_pts
[NULL @ 0x33ac320] start time for stream 27 is not set in estimate_timings_from_pts
[NULL @ 0x33acea0] start time for stream 28 is not set in estimate_timings_from_pts
[NULL @ 0x33ada40] start time for stream 29 is not set in estimate_timings_from_pts
[NULL @ 0x33ae5e0] start time for stream 30 is not set in estimate_timings_from_pts
[NULL @ 0x33af180] start time for stream 31 is not set in estimate_timings_from_pts
[NULL @ 0x33afd20] start time for stream 32 is not set in estimate_timings_from_pts
[NULL @ 0x33b08c0] start time for stream 33 is not set in estimate_timings_from_pts
[NULL @ 0x33b1460] start time for stream 34 is not set in estimate_timings_from_pts
[NULL @ 0x33b2040] start time for stream 35 is not set in estimate_timings_from_pts
[NULL @ 0x33b2bc0] start time for stream 36 is not set in estimate_timings_from_pts
[NULL @ 0x33b3760] start time for stream 37 is not set in estimate_timings_from_pts
[NULL @ 0x33b4300] start time for stream 38 is not set in estimate_timings_from_pts
[mpegts @ 0x337a3e0] PES packet size mismatch
Last message repeated 10 times
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 13 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 14 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 15 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 16 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 17 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 18 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 19 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 20 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 21 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 22 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 23 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 24 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 25 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 26 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 27 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 28 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 29 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 30 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 31 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 32 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 33 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 34 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 35 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 36 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 37 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x337a3e0] Could not find codec parameters for stream 38 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'input.m2ts':
Duration: 00:00:01.21, start: 11.650667, bitrate: 6934 kb/s
Program 1
Stream #0:0[0x1011]: Video: vc1 (Advanced) (VC-1 / 0x312D4356), yuv420p(bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:2[0x1101]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), s16, 4608 kb/s
Stream #0:3[0x1102]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:4[0x1103]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:5[0x1104]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:6[0x1105]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:7[0x1106]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:8[0x1107]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:9[0x1108]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:10[0x1109]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:11[0x110a]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:12[0x110b]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:13[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:14[0x1201]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:15[0x1202]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:16[0x1203]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:17[0x1204]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:18[0x1205]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:19[0x1206]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:20[0x1207]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:21[0x1208]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:22[0x1209]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:23[0x120a]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:24[0x120b]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:25[0x120c]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:26[0x120d]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:27[0x120e]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:28[0x120f]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:29[0x1210]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:30[0x1211]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:31[0x1212]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:32[0x1213]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:33[0x1214]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:34[0x1215]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:35[0x1216]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:36[0x1217]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:37[0x1218]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:38[0x1219]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Output #0, mpegts, to 'output.m2ts':
Metadata:
encoder : Lavf57.22.100
Stream #0:0: Video: vc1 (VC-1 / 0x312D4356), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), 448 kb/s
Stream #0:2: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:13 -> #0:2 (copy)
Press [q] to stop, ? for help
[mpegts @ 0x337a3e0] PES packet size mismatch
frame= 27 fps=0.0 q=-1.0 Lsize= 92kB time=00:00:01.04 bitrate= 718.9kbits/s speed= 855x
video:52kB audio:27kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 16.059505%
tzimmo@hypatia:/dlna/video$ ffmpeg -i output.m2ts
ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/n
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
[mpegts @ 0x359e2a0] Failed to open codec in av_find_stream_info
[NULL @ 0x35a3e60] start time for stream 2 is not set in estimate_timings_from_pts
Input #0, mpegts, from 'output.m2ts':
Duration: 00:00:01.21, start: 1.441711, bitrate: 619 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: vc1 (Advanced) (VC-1 / 0x312D4356), yuv420p(bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:2[0x102]: Data: bin_data ([6][0][0][0] / 0x0006)
At least one output file must be specified
--8<--8<--
In the output file, the subtitle stream is shown as just bin_data and not as hdmv_pgs_subtitle any more. With -analyzeduration 4G -probesize 4G options in both commands and a longer sample file most of the warnings are gone but the result looks still the same and the subtitle is not recognized by the player (mplayer) or ffmpeg any more.
Attachments (1)
Change History (2)
by , 9 years ago
Attachment: | input.m2ts added |
---|
comment:1 by , 9 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | mpegts pgssub added; bluray m2ts subtitle copy removed |
Resolution: | → duplicate |
Status: | new → closed |
Duplicate of ticket #2622
input.m2ts file for ffmpeg to reproduce the issue