[FFmpeg-user] Unexpected FFmpeg and avconv Result Difference

Quinn Wood mtcjayne at gmail.com
Mon Aug 10 09:31:14 CEST 2015


On Aug 10, 2015 02:27, "Carl Eugen Hoyos" <cehoyos at ag.or.at> wrote:
> Please always post all information here on the
> mailing list, external resources may disappear.
>
Sure thing.

/cygdrive/c/Users/Quinn\
Wood/Downloads/libav-11.3-win64/win64/usr/bin/avconv.exe -i test.mp4 -c
copy -map 0:0 -map 0:1 -f segment -segment_time 60 -bsf:a aac_adtstoasc -v
verbose out%03d.mp4 avconv version 11.3, Copyright (c) 2000-2014 the Libav
developers built on Mar 9 2015 02:12:20 with gcc 4.8.3 (Gentoo 4.8.3 p1.1,
pie-0.5.9) configuration: --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
--sysroot=/usr/x86_64-w64-mingw32/ --enable-runtime-cpudetect
--enable-shared --enable-cross-compile --enable-w32threads --prefix=/usr
--target-os=mingw32 --enable-memalign-hack --enable-gpl --enable-version3
--enable-libmp3lame --enable-libopus --enable-libvo-aacenc
--enable-libvorbis --enable-libvpx --enable-libx264 libavutil 54. 3. 0 /
54. 3. 0 libavcodec 56. 1. 0 / 56. 1. 0 libavformat 56. 1. 0 / 56. 1. 0
libavdevice 55. 0. 0 / 55. 0. 0 libavfilter 5. 0. 0 / 5. 0. 0 libavresample
2. 1. 0 / 2. 1. 0 libswscale 3. 0. 0 / 3. 0. 0 [mpegts @ 000000000249af00]
max_analyze_duration 5000000 reached Input #0, mpegts, from 'test.mp4':
Duration: 00:00:55.52, start: 11254.091000, bitrate: 1696 kb/s Program 1
Stream #0.0[0x100]: Audio: aac, 44100 Hz, stereo, fltp, 126 kb/s Stream
#0.1[0x101]: Video: h264 (Constrained Baseline), yuv420p, 1280x720, 30 fps,
90k tbn, 2k tbc Stream #0.2[0x102]: Data: [21][0][0][0] / 0x0015 [mp4 @
00000000063d00a0] Using AVStream.codec.time_base as a timebase hint to the
muxer is deprecated. Set AVStream.time_base instead. [mp4 @
00000000063d00a0] Tag [15][0][0][0]/0x0000000f incompatible with output
codec id '86018' Output #0, segment, to 'out%03d.mp4': Metadata: encoder :
Lavf56.1.0 Stream #0.0: Audio: libvo_aacenc, 44100 Hz, stereo, 126 kb/s
Stream #0.1: Video: libx264, yuv420p, 1280x720, q=2-31, 90k tbn, 90k tbc
Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Could
not write header for output file #0 (incorrect codec parameters ?): Invalid
data found when processing input And with FFmpeg $ /cygdrive/c/Users/Quinn\
Wood/Downloads/ffmpeg-20150806-git-9c0407e-win64-static/bin/ffmpeg.exe -i
test.mp4 -c copy -map 0:0 -map 0:1 -f segment -segment_time 60 -bsf:a
aac_adtstoasc -v verbose out%03d.mp4 ffmpeg version N-74313-g9c0407e
Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.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-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--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-libvidstab
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma
--enable-decklink --enable-zlib libavutil 54. 30.100 / 54. 30.100
libavcodec 56. 57.100 / 56. 57.100 libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 32.100 / 5. 32.100
libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100 [mpegts @ 0000000004e06a40] parser not
found for codec timed_id3, packets or times may be invalid. Last message
repeated 1 times [h264 @ 0000000004e08e60] Current profile doesn't provide
more RBSP data in PPS, skipping Last message repeated 1 times [mpegts @
0000000004e06a40] max_analyze_duration 5000000 reached at 5013600
microseconds st:0 Input #0, mpegts, from 'test.mp4': Duration: 00:00:55.55,
start: 11254.091000, bitrate: 1695 kb/s Program 1 Stream #0:0[0x100]:
Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 126 kb/s
Stream #0:1[0x101]: Video: h264 (Constrained Baseline), 1 reference frame
([27][0][0][0] / 0x001B), yuv420p, 1280x720, 30 fps, 30 tbr, 90k tbn, 2k
tbc Stream #0:2[0x102]: Data: timed_id3 (ID3 / 0x20334449) [segment @
00000000052100a0] Codec for stream 0 does not use global headers but
container format requires global headers [segment @ 00000000052100a0] Codec
for stream 1 does not use global headers but container format requires
global headers [segment @ 00000000052100a0] Selected stream id:1 type:video
[mp4 @ 0000000005906fa0] Codec for stream 0 does not use global headers but
container format requires global headers [mp4 @ 0000000005906fa0] Codec for
stream 1 does not use global headers but container format requires global
headers Output #0, segment, to 'out%03d.mp4': Metadata: encoder :
Lavf56.40.101 Stream #0:0: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz,
stereo, 126 kb/s Stream #0:1: Video: h264, 1 reference frame ([27][0][0][0]
/ 0x001B), yuv420p, 1280x720 (0x0), q=2-31, 30 fps, 30 tbr, 16k tbn, 1k tbc
Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press
[q] to stop, [?] for help [NULL @ 0000000004e08e60] Current profile doesn't
provide more RBSP data in PPS, skipping [segment @ 00000000052100a0]
segment:'out000.mp4' starts with packet stream:1 pts:0 pts_time:0 frame:0
[NULL @ 0000000004e08e60] Current profile doesn't provide more RBSP data in
PPS, skipping Last message repeated 12 times No more output streams to
write to, finishing. [segment @ 00000000052100a0] segment:'out000.mp4'
count:0 ended frame= 1666 fps=0.0 q=-1.0 Lsize=N/A time=00:00:55.54
bitrate=N/A video:9837kB audio:893kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown Input file #0 (test.mp4): Input stream
#0:0 (audio): 2392 packets read (930873 bytes); Input stream #0:1 (video):
1666 packets read (10073227 bytes); Input stream #0:2 (data): 0 packets
read (0 bytes); Total: 4058 packets (11004100 bytes) demuxed Output file #0
(out%03d.mp4): Output stream #0:0 (audio): 2392 packets muxed (914129
bytes); Output stream #0:1 (video): 1666 packets muxed (10073227 bytes);
Total: 4058 packets (10987356 bytes) muxed

> What is wrong with the output of FFmpeg?
>
The output of FFmpeg seems fine. I want to know why it works in FFmpeg and
not avconv- or more accurately what "problem" FFmpeg is allowing to happen
that avconv is not- so I can determine whether or not avconv is worth
fighting with.


More information about the ffmpeg-user mailing list