Opened 12 years ago
Last modified 12 years ago
#2515 open defect
Output file incompatible with PS3 and a Panasonic TV when muxing h264 to mpegts
Reported by: | SubJunk | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | h264 mpegts |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
I have a set of files that are identical in MediaInfo except for bitrate. I'm trying to mux them to MPEG-TS using the following command:
ffmpeg -i input.mkv -c:a copy -v:a copy -vbsf h264_mp4toannexb -f mpegts output.mpeg
The strange thing is that one file in the set is coming out differently to the others, causing it to be incompatible with devices over DLNA (tested on a PS3 and a Panasonic TV).
MediaInfo doesn't report any difference between the output files, either, except for bitrate.
Windows Explorer reads them differently, though; the file that does work is read by Windows to have the correct resolution but incorrect duration (1920x1080 and 18 hours long) and the one that does not work is reported by Windows to have the incorrect resolution but correct duration (720x480 and 10 seconds).
Windows is horrible at reading file info but the fact that it sees the two files very differently shows that there is a difference between them.
Windows does not show any difference between the input files; it correctly detects their duration and resolution.
I have uploaded 10 second samples of 2 of the files after verifying that the bug is reproducible via the samples.
Produces erroneous file: http://www.spirton.com/uploads/FFmpeg/20130430-1.mkv
Produces normal file: http://www.spirton.com/uploads/FFmpeg/20130430-2.mkv
I have tried several versions of FFmpeg, from the latest from Git master to versions several years old, with the same result each time.
Change History (7)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
FFmpeg command line:
ffmpeg -i input.mkv -c:a copy -v:a copy -vbsf h264_mp4toannexb -f mpegts output.mpeg
Uncut console output:
ffmpeg version N-52523-g0fb64da Copyright (c) 2000-2013 the FFmpeg developers built on Apr 28 2013 00:01:23 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 27.101 / 52. 27.101 libavcodec 55. 6.100 / 55. 6.100 libavformat 55. 3.100 / 55. 3.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 61.100 / 3. 61.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, matroska,webm, from 'input.mkv': Metadata: creation_time : 2013-04-30 03:47:29 Duration: 00:00:10.22, start: 0.000000, bitrate: 19005 kb/s Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: aac, 48000 Hz, 5.1, fltp (default) Output #0, mpegts, to 'output.mpeg': Metadata: encoder : Lavf55.3.100 Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 90k tbn, 23.98 tbc (default) Stream #0:1(eng): Audio: aac, 48000 Hz, 5.1 (default) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [adts @ 04f32ac0] Encoder did not produce proper pts, making some up. frame= 245 fps=0.0 q=-1.0 Lsize= 25598kB time=00:00:10.21 bitrate=20522.8kbits/s video:23377kB audio:323kB subtitle:0 global headers:0kB muxing overhead 8.007445%
comment:3 by , 12 years ago
Is this problem also reproducible if you use -an or -vn or only if both audio and video are copied?
comment:4 by , 12 years ago
The problem still happens with -an. I don't know how to check if it still happens with -vn since my methods of detection (playing on PS3, Panasonic TV, and checking resolution in Windows Explorer) rely on the presence of a video stream.
Here is the console output from -an:
ffmpeg -i input.mkv -an -v:a copy -vbsf h264_mp4toannexb -f mpegts output.mpeg ffmpeg version N-52523-g0fb64da Copyright (c) 2000-2013 the FFmpeg developers built on Apr 28 2013 00:01:23 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 27.101 / 52. 27.101 libavcodec 55. 6.100 / 55. 6.100 libavformat 55. 3.100 / 55. 3.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 61.100 / 3. 61.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, matroska,webm, from 'input.mkv': Metadata: creation_time : 2013-04-30 03:47:29 Duration: 00:00:10.22, start: 0.000000, bitrate: 19005 kb/s Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: aac, 48000 Hz, 5.1, fltp (default) Output #0, mpegts, to 'output.mpeg': Metadata: encoder : Lavf55.3.100 Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 90k tbn, 23.98 tbc (default) Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 245 fps=0.0 q=-1.0 Lsize= 25232kB time=00:00:10.13 bitrate=20395.0kbits/s video:23377kB audio:0kB subtitle:0 global headers:0kB muxing overhead 7.933851%
comment:5 by , 12 years ago
Keywords: | h264 mpegts added |
---|---|
Status: | new → open |
comment:6 by , 12 years ago
Summary: | Erroneous file output when muxing → Erroneous file output when muxing h264 to mpegts |
---|
comment:7 by , 12 years ago
Summary: | Erroneous file output when muxing h264 to mpegts → Output file incompatible with PS3 and a Panasonic TV when muxing h264 to mpegts |
---|
Please provide the ffmpeg command line that produces the failing file together with the complete, uncut console output to make this a valid ticket.