[FFmpeg-user] Simultaneous two-pass?
Gabri Nurtinaz Shally
gabri.ns at gmail.com
Thu Sep 27 16:56:28 CEST 2012
On Sep 27, 2012 5:07 PM, "Jesse Gordon" <tojesseg at gmail.com> wrote:
>
> I tried a few -threads options and nothing seemed to change anything. It
could be that the flv encoder doesn't support threads.
how did you test that ffmpeg actually not doing multithreading? i have a
little bit old ffmpeg and trying to transcode a video to flv on my windows
box, and checking using ProcessExplorer. it use all my dual core amd
resource. when i check on threads tab in Process Explorer, it do show
multithread.
here is output of my commandline
M:\Video\Clip>ffmpeg -i "Lucky Start - OP Theme.avi" -threads 2 -b:v 512k
-b:a 1
28k -c:a aac -c:v libx264 -strict experimental asd.flv
ffmpeg version N-41074-g9c27f29 Copyright (c) 2000-2012 the FFmpeg
developers
built on May 27 2012 13:22:28 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex
--enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --e
nable-zlib
libavutil 51. 55.100 / 51. 55.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.101 / 54. 6.101
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[avi @ 0227d280] max_analyze_duration 5000000 reached at 5016000
Input #0, avi, from 'Lucky Start - OP Theme.avi':
Metadata:
encoder : MEncoder SVN-r32492-4.2.5
Duration: 00:01:30.21, start: 0.000000, bitrate: 1441 kb/s
Stream #0:0: Video: h264 (High) (h264 / 0x34363268), yuv420p, 704x396
[SAR 1
:1 DAR 16:9], 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16,
128 kb
/s
File 'asd.flv' already exists. Overwrite ? [y/N] y
w:704 h:396 pixfmt:yuv420p tb:125/2997 sar:1/1 sws_param:flags=2
[buffersink @ 0241c9a0] No opaque field provided
[aformat @ 02279060] auto-inserting filter 'auto-inserted resampler 0'
between t
he filter 'src' and the filter 'aformat'
[aresample @ 0289f4c0] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt
r:4800
0Hz
[libx264 @ 024b9020] using SAR=1/1
[libx264 @ 024b9020] using cpu capabilities: MMX2 SSE2Fast FastShuffle
SSEMisali
gn LZCNT
[libx264 @ 024b9020] profile High, level 3.0
[libx264 @ 024b9020] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec
- Cop
yleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1
ref=3 deb
lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 m
e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1
chro
ma_qp_offset=-2 threads=2 lookahead_threads=1 sliced_threads=0 nr=0
decimate=1 i
nterlaced=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=23
scenec
ut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=512
ratetol=1.0 qc
omp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'asd.flv':
Metadata:
encoder : Lavf54.6.101
Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 704x396 [SAR
1:1
DAR 16:9], q=-1--1, 512 kb/s, 1k tbn, 23.98 tbc
Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 48000 Hz, stereo,
flt, 128
kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (mp3 -> aac)
Press [q] to stop, [?] for help
frame= 62 fps=0.0 q=35.0 size= 39kB time=00:00:00.66 bitrate=
479.0kbits/
More information about the ffmpeg-user
mailing list