[FFmpeg-user] error compressing Flash video

Pablo Rodríguez oinos at web.de
Wed Nov 19 18:31:08 CET 2014


Hi there,

I recorded an screencast in WinXP using the following command:

ffmpeg -f gdigrab -framerate 5 -i desktop -f dshow -i audio="Realtek HD
Audio Input" -vcodec libx264 -crf 0 -acodec pcm_s16le output.flv

It worked fine and I stopped it pressing Ctrl+C in the command-line window.

I tried to convert it, but I got an error:

>ffmpeg -i output.flv -acodec libvo_aacenc -vcodec h264 -pix_fmt yuv420p
output.flv.flv
ffmpeg version N-66289-gb76d613 Copyright (c) 2000-2014 the FFmpeg
developers
  built on Sep 15 2014 22:02:10 with gcc 4.8.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-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-decklink
--enable-zlib
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, flv, from 'output.flv':
  Metadata:
    encoder         : Lavf56.4.101
  Duration: 00:03:03.40, start: 0.000000, bitrate: 1605 kb/s
    Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuv444p,
1280x1024, 5 fps,
 5 tbr, 1k tbn, 10 tbc
    Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
[libx264 @ 02edf020] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 02edf020] profile High, level 3.2
[libx264 @ 02edf020] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=5
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'output.flv.flv':
  Metadata:
    encoder         : Lavf56.4.101
    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p,
1280x1024, q=-1--1, 5 fps, 1k tbn, 5 tbc
    Metadata:
      encoder         : Lavc56.1.100 libx264
    Stream #0:1: Audio: aac (libvo_aacenc) ([10][0][0][0] / 0x000A),
44100 Hz, s
tereo, s16, 128 kb/s
    Metadata:
      encoder         : Lavc56.1.100 libvo_aacenc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
frame=    8 fps=0.0 q=0.0 size=       0kB time=00:00:02.48 bitrate=
1.3kbits/s
frame=   17 fps= 16 q=0.0 size=       0kB time=00:00:04.48 bitrate=
0.7kbits/s
frame=   26 fps= 16 q=0.0 size=       0kB time=00:00:06.49 bitrate=
0.5kbits/s
frame=   36 fps= 17 q=0.0 size=       0kB time=00:00:08.51 bitrate=
0.4kbits/s
frame=   45 fps= 17 q=0.0 size=       1kB time=00:00:09.99 bitrate=
0.6kbits/s
frame=   46 fps= 12 q=0.0 size=       9kB time=00:00:10.49 bitrate=
6.8kbits/s
[flv @ 03ca2020] Packets are not in the proper order with respect to DTS
av_interleaved_write_frame(): Invalid argument
frame=   48 fps=6.1 q=-1.0 Lsize=     173kB time=00:00:10.54 bitrate=
134.2kbits/s
video:133kB audio:165kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
[libx264 @ 02edf020] frame I:1     Avg QP: 4.93  size:135384
[libx264 @ 02edf020] frame P:12    Avg QP:12.46  size:   394
[libx264 @ 02edf020] frame B:35    Avg QP: 7.82  size:    69
[libx264 @ 02edf020] consecutive B-frames:  2.1%  0.0%  6.3% 91.7%
[libx264 @ 02edf020] mb I  I16..4: 76.3%  0.8% 22.9%
[libx264 @ 02edf020] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.4%
0.0%  0.0% 0.0%  0.0%    skip:99.6%
[libx264 @ 02edf020] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.2%
0.0%  0.0% direct: 0.0%  skip:99.8%  L0:16.2% L1:83.8% BI: 0.0%
[libx264 @ 02edf020] 8x8 transform intra:0.8% inter:5.6%
[libx264 @ 02edf020] coded y,uvDC,uvAC intra: 15.4% 27.2% 26.9% inter:
0.0% 0.0% 0.0%
[libx264 @ 02edf020] i16 v,h,dc,p: 93%  5%  2%  0%
[libx264 @ 02edf020] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 30% 34%  3%  2%
 1%  4% 6%  2%
[libx264 @ 02edf020] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 30% 26%  2%  3%
 3%  4% 2%  4%
[libx264 @ 02edf020] i8c dc,h,v,p: 80% 13%  6%  1%
[libx264 @ 02edf020] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 02edf020] ref P L0: 92.8%  0.6%  4.0%  2.6%
[libx264 @ 02edf020] ref B L0: 68.2% 31.8%
[libx264 @ 02edf020] kb/s:111.77
Conversion failed!

Sorry, but I’m afraid that I don’t know why this goes wrong.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


More information about the ffmpeg-user mailing list