#5749(undetermined:new): File produced ffmpeg by stream copy reports audio (AAC) for the stream that should be video (MPEG2)
#5749: File produced ffmpeg by stream copy reports audio (AAC) for the stream that should be video (MPEG2) -------------------------------------+------------------------------------- Reporter: gyhrvy | 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: I'm attempting a partial stream copy of the file "Alcorn McBride PAL Test Clip (SD)" vid00003.mpg Available here: http://alcorn.com/test-files/ The source file shows these streams, with the AAC one that I'm not expecting, and no video stream: {{{ stream,0,mpeg2video,MPEG-2 video,Main,video,1/25 stream,1,mp2,MP2 (MPEG audio layer 2),unknown,audio,1/44100 }}} Copying the streams with a cut {{{ffmpeg.exe -i vid00003.mpg -ss 00:00:10 -c:v copy -c:a copy vid00003_cut.mpg}}} gives these streams: {{{ stream,0,mp2,MP2 (MPEG audio layer 2),unknown,audio,1/44100 stream,1,aac,AAC (Advanced Audio Coding),SSR,audio,1/24000 }}} Copying the streams without the cut {{{ffmpeg.exe -i vid00003.mpg -c:v copy -c:a copy vid00003_nocut.mpg}}} works fine. How to reproduce: {{{ % ffmpeg.exe -i vid00003.mpg -ss 00:00:10 -c:v copy -c:a copy vid00003_cut.mpg ffmpeg version is from zeranoe.com, dated 2016-07-28, git fb91143 ffmpeg version N-81154-gfb91143 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable- version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avi synth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable- frei0r --e nable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable- libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-l ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable- librtmp --en able-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --ena ble-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo- amrwbenc -- enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-l ibx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --ena ble-lzma --enable-decklink --enable-zlib libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 51.100 / 57. 51.100 libavformat 57. 44.100 / 57. 44.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 49.100 / 6. 49.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 }}} Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5749> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5749: File produced ffmpeg by stream copy reports audio (AAC) for the stream that should be video (MPEG2) -------------------------------------+------------------------------------- Reporter: gyhrvy | Owner: Type: defect | Status: open Priority: normal | Component: Version: git-master | undetermined Keywords: mpegps | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 1 -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: => mpegps * status: new => open * version: unspecified => git-master * reproduced: 0 => 1 Comment: For future tickets, please remember to always provide both the command line you tested and the complete, uncut console output. {{{ $ ffmpeg -i vid00003_cut.mpg -vcodec copy -an -ss 1 out.vob ffmpeg version N-81219-g8ee113a Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.7 (SUSE Linux) configuration: --enable-gpl libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 51.100 / 57. 51.100 libavformat 57. 44.100 / 57. 44.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 49.100 / 6. 49.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mpeg, from 'vid00003_cut.mpg': Duration: 00:00:02.44, start: 0.384444, bitrate: 8393 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg), 720x576 [SAR 16:15 DAR 4:3], 7680 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16p, 224 kb/s [svcd @ 0x3394c80] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [svcd @ 0x3394c80] VBV buffer size not set, using default size of 130KB If you want the mpeg file to be compliant to some specification Like DVD, VCD or others, make sure you set the correct buffer size Output #0, svcd, to 'out.vob': Metadata: encoder : Lavf57.44.100 Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 7680 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 25 fps=0.0 q=-1.0 Lsize= 1018kB time=00:00:01.28 bitrate=6515.1kbits/s speed= 251x video:1003kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.452841% }}} {{{ $ ffmpeg -i out.vob ffmpeg version N-81219-g8ee113a Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.7 (SUSE Linux) configuration: --enable-gpl libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 51.100 / 57. 51.100 libavformat 57. 44.100 / 57. 44.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 49.100 / 6. 49.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 [mp3 @ 0x35ddd00] Header missing Last message repeated 406 times [mpeg @ 0x35dc280] decoding for stream 0 failed [mpeg @ 0x35dc280] Could not find codec parameters for stream 0 (Audio: mp3, 0 channels, s16p): unspecified frame size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpeg, from 'out.vob': Duration: 00:00:00.96, start: 0.620000, bitrate: 8686 kb/s Stream #0:0[0x1e0]: Audio: mp3, 0 channels, s16p At least one output file must be specified }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/5749#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg