[FFmpeg-devel] How to use CPU Extensions?
James Darnley
james.darnley at gmail.com
Fri Jul 8 10:15:39 CEST 2011
On 08/07/2011, Philipp Angele <info at camcast.de> wrote:
> Hi,
>
> ffmpeg works fine on my Ubuntu x86_64
>
> it just dont use the CPU extensions for any reason:
>
> ffmpeg -threads 16 -i myinputfile.mp4 -re -acodec copy -vcodec libx264
> -profile main -level 51 -vpre slow -b 512k -s 480x270 -bf 1 -subq 6 -cmp 256
> -refs 5 -qmin 10 -qmax 51 -qdiff 4 -coder 1 -trellis 1 -flags +mv4 -f flv
> output.flv
>
> encoding is fine just the cpu goes ridicously high cause it wont use the cpu
> extensions:
>
> [libx264 @ 0x23ece00] using cpu capabilities: none!
>
> in total:
>
>
> ffmpeg version N-31290-gebd1edf, Copyright (c) 2000-2011 the FFmpeg
> developers
> built on Jul 7 2011 16:58:16 with gcc 4.5.2
> configuration: --enable-gpl --enable-version3 --enable-nonfree
> --enable-postproc --enable-libvpx --enable-libmp3lame --enable-libfaac
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
> --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab
> --enable-librtmp
> libavutil 51. 11. 0 / 51. 11. 0
> libavcodec 53. 7. 0 / 53. 7. 0
> libavformat 53. 5. 0 / 53. 5. 0
> libavdevice 53. 2. 0 / 53. 2. 0
> libavfilter 2. 24. 3 / 2. 24. 3
> libswscale 2. 0. 0 / 2. 0. 0
> libpostproc 51. 2. 0 / 51. 2. 0
> Metadata:
> startDate 07-06-2011
> startTime 04:00:03:00
> framerate 25.00
> width 848.00
> height 480.00
> videodatarate 1600.00
> audiosamplerate 48000.00
> audiochannels 2.00
> audiodatarate 128.00
> [flv @ 0x219a400] Estimating duration from bitrate, this may be inaccurate
> Input #0, flv, from 'rxxxx':
> Duration: N/A, start: 0.000000, bitrate: N/A
> Stream #0.0: Video: h264 (Main), yuv420p, 848x480 [PAR 1:1 DAR 53:30],
> 25 tbr, 1k tbn, 50 tbc
> Stream #0.1: Audio: aac, 48000 Hz, stereo, s16
> [buffer @ 0x22b93c0] w:848 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1
> sws_param:
> [scale @ 0x21b00c0] w:848 h:480 fmt:yuv420p -> w:480 h:270 fmt:yuv420p
> flags:0x4
> [libx264 @ 0x23ece00] using SAR=1/1
> [libx264 @ 0x23ece00] using cpu capabilities: none!
> [libx264 @ 0x23ece00] profile Main, level 5.1
> [libx264 @ 0x23ece00] 264 - core 115 r2008 4c552d8 - H.264/MPEG-4 AVC codec
> - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1
> ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=6 psy=1 psy_rd=1.00:0.00
> mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11
> fast_pskip=1 chroma_qp_offset=-2 threads=16 sliced_threads=0 nr=0 decimate=1
> interlaced=0 bluray_compat=0 constrained_intra=0 bframes=1 b_pyramid=0
> b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250
> keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=abr mbtree=1
> bitrate=512 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41
> aq=1:1.00
> Output #0, flv,...
>
>
> If someone had this problem too and knows how to fix it ...
>
>
> would be very cool if you could answer me ;)
Don't compile x264 with --disable-asm. If configure complains about
yasm, install it.
More information about the ffmpeg-devel
mailing list