[FFmpeg-user] ffmpeg adn *EXPERIMENTAL* x262/x264

JULIAN GARDNER joolzg at btinternet.com
Tue Jan 15 17:20:21 CET 2013


Just wondering if anybody had gotten ffmpeg and libx262 to work in either mode x262/x264?

im using this command line
./ffmpeg -i ../testStreams/Pil.avi -preset faster -vcodec libx264 -x264opts bitrate=1000:vbv-bufsize=2000 -s 720x576 -acodec mp2 -y -f mpegts a.ts

and get this
ffmpeg version N-47348-g0ee0746 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 15 2013 16:48:10 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libx264
  libavutil      52. 10.100 / 52. 10.100
  libavcodec     54. 78.100 / 54. 78.100
  libavformat    54. 41.100 / 54. 41.100
  libavdevice    54.  3.101 / 54.  3.101
  libavfilter     3. 23.105 /  3. 23.105
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.101 /  0. 17.101
  libpostproc    52.  2.100 / 52.  2.100
[mp3 @ 0x2634300] Header missing
[mpeg4 @ 0x2633740] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from '../testStreams/Pil.avi':
  Metadata:
    encoder         : Nandub v1.0rc2
  Duration: 00:56:37.00, start: 0.000000, bitrate: 1358 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 624x352 [SAR 1:1 DAR 39:22], 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 32 kb/s
x264 [warning]: VBV maxrate unspecified, assuming CBR
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [warning]: bitrate tolerance too small, using .01
x264 [info]: profile High, level 3.0
Output #0, mpegts, to 'a.ts':
  Metadata:
    encoder         : Lavf54.41.100
    Stream #0:0: Video: h264, yuv420p, 720x576 [SAR 78:55 DAR 39:22], q=-1--1, 21 kb/s, 90k tbn, 25 tbc
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 -> libx264)
  Stream #0:1 -> #0:1 (mp3 -> mp2)
Press [q] to stop, [?] for help
[mp3 @ 0x2634300] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg4 @ 0x3042ea0] Invalid and inefficient vfw-avi packed B frames detected
x264 [error]: Invalid input colorspace
Video encoding failed

Now when using mpeg2 i get the same error as long as i add dc=10:mpeg2 tp the x264opts option.

I was hoping this would be a drop in replacement as ffmpeg's mpeg2 encoder is a little lacking.

joolz


More information about the ffmpeg-user mailing list