[FFmpeg-user] Reencoding mpeg4 get "Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec libx264: Invalid argument"

fgouvea thunder45 at yahoo.com
Fri Oct 19 01:40:30 CEST 2012


Hi guys,
Could anybody help me with that? I looked for the same issue around but just
found that with people trying to copy the video stream. I`m trying to
reencode it on VBV. It happens either when the input is MPEG4 part 2 (Divx)
or MPEG4 part 10 (Avc).

Here is the full output:


C:\Users>ffmpeg -analyzeduration 900000000 -i "GalinhaPintadinha2.avi"
-async 1 -map 0:v -c:v libx264 -vbsf h264_mp4toannexb -maxrate 20M -bufsize
1M -g 50 -acodec copy -f matroska GalinhaPintadinha2.mkv

ffmpeg version N-45279-g1a104bf Copyright (c) 2000-2012 the FFmpeg
developers
  built on Oct 10 2012 19:23:23 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads
--enable-runtime-cpudetect --enable-avisynth --enable
-bzlib --enable-frei0r --enable-libass --enable-libcelt
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libopenjpeg --enable-librtmp --enable-libschroed
inger --enable-libspeex --enable-libtheora --enable-libutvideo
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--enable-zlib
  libavutil      51. 74.100 / 51. 74.100
  libavcodec     54. 65.100 / 54. 65.100
  libavformat    54. 31.100 / 54. 31.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100

Input #0, avi, from 'GalinhaPintadinha2.avi':
  Metadata:
    encoder         : VirtualDubMod 1.5.4.1 (build 2178/release)
  Duration: 00:42:08.99, start: 0.000000, bitrate: 1974 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658),
yuv420p, 720x544 [SAR 1:1 DAR 45:34], 29.97
 tbr, 29.97 tbn, 29.98 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16,
224 kb/s
[libx264 @ 0000000004b604a0] using SAR=1/1
[libx264 @ 0000000004b604a0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0000000004b604a0] profile High, level 3.2
[libx264 @ 0000000004b604a0] 264 - core 128 r2216 198a7ea - H.264/MPEG-4 AVC
codec - Copyleft 2003-2012 - http://www.vid
eolan.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=6 lookah
ead_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=50
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
vbv_maxrate=20000 vbv_bufsize=1000 crf_max=0.0 nal_hrd
=none ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'GalinhaPintadinha2.mkv':
  Metadata:
    encoder         : Lavf54.31.100
    Stream #0:0: Video: h264, yuv420p, 720x544 [SAR 1:1 DAR 45:34], q=-1--1,
1k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 -> libx264)
Press [q] to stop, [?] for help
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec
libx264: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec
libx264: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec
libx264: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec
libx264: Invalid argument
...
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec
libx264: Invalid argument
frame=  179 fps= 61 q=-1.0 Lsize=      72kB time=00:00:05.94 bitrate= 
99.6kbits/s
video:70kB audio:0kB subtitle:0 global headers:0kB muxing overhead 2.500866%
[libx264 @ 0000000004b604a0] frame I:5     Avg QP:12.00  size:  4844
[libx264 @ 0000000004b604a0] frame P:52    Avg QP:23.28  size:   707
[libx264 @ 0000000004b604a0] frame B:122   Avg QP:25.81  size:    85
[libx264 @ 0000000004b604a0] consecutive B-frames:  7.8%  3.4%  1.7% 87.2%
[libx264 @ 0000000004b604a0] mb I  I16..4: 92.0%  4.2%  3.7%
[libx264 @ 0000000004b604a0] mb P  I16..4:  4.8%  1.2%  0.3%  P16..4:  2.9% 
0.3%  0.3%  0.0%  0.0%    skip:90.3%
[libx264 @ 0000000004b604a0] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8:  1.0% 
0.0%  0.0%  direct: 2.0%  skip:96.8%  L0:39
.9% L1:58.7% BI: 1.5%
[libx264 @ 0000000004b604a0] 8x8 transform intra:10.9% inter:74.3%
[libx264 @ 0000000004b604a0] coded y,uvDC,uvAC intra: 5.9% 6.3% 5.1% inter:
0.5% 1.8% 0.2%
[libx264 @ 0000000004b604a0] i16 v,h,dc,p: 95%  2%  3%  0%
[libx264 @ 0000000004b604a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 17% 25%  3% 
2%  2%  3%  2%  3%
[libx264 @ 0000000004b604a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 22% 14%  5% 
6%  4%  6%  5%  5%
[libx264 @ 0000000004b604a0] i8c dc,h,v,p: 87%  7%  5%  0%
[libx264 @ 0000000004b604a0] Weighted P-Frames: Y:17.3% UV:3.8%
[libx264 @ 0000000004b604a0] ref P L0: 75.1%  8.0% 11.4%  4.9%  0.5%
[libx264 @ 0000000004b604a0] ref B L0: 65.7% 27.3%  7.0%
[libx264 @ 0000000004b604a0] ref B L1: 94.8%  5.2%
[libx264 @ 0000000004b604a0] kb/s:95.57
Received signal 2: terminating.

Thank you in advance



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Reencoding-mpeg4-get-Failed-to-open-bitstream-filter-h264-mp4toannexb-for-stream-0-with-codec-libx26-tp4654314.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list