Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ffmpeg] Pas de prise en compte du nombre de threads
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Picani
Apprentice
Apprentice


Joined: 05 Jul 2009
Posts: 180

PostPosted: Sun Nov 07, 2010 8:29 pm    Post subject: [ffmpeg] Pas de prise en compte du nombre de threads Reply with quote

Bonsoir,
Lorsque je veux convertir une vidéo avec ffmpeg, le paramètre -threads N n'est pas pris en compte, qq soit la valeur de N (valeur entière). Pourtant, ffmpeg est bien compilé avec le USE "threads" ...

Voila par exemple, la ligne de commande que j'ai utilisée tt a l'heure :

Code:
ffmpeg -i America\ Beauty.mkv -acodec libvorbis -ab 128k -vcodec libtheora -qmin 1 -qmax 31 -minrate 0 -maxrate 9000000 -pass 1 -passlogfile pass1.fpf -threads 3  America\ Beauty.ogg


Qq soit la valeur que je mets pour -threads, la conversion se fait à la même vitesse. Et attendre presque 4h pour convertir un film en HD ça ne m'enchante pas du tt ...

Et voici ffmpeg -version :
Code:
FFmpeg version SVN-r25423, Copyright (c) 2000-2010 the FFmpeg developers
  built on Nov  7 2010 16:48:19 with gcc 4.4.5
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static --enable-shared --cc=x86_64-pc-linux-gnu-gcc --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-network --disable-vaapi --disable-static --disable-vdpau --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-indev=v4l --disable-indev=v4l2 --disable-indev=oss --disable-indev=jack --enable-x11grab --disable-outdev=oss --enable-pthreads --enable-libschroedinger --disable-altivec --cpu=core2 --enable-hardcoded-tables
  libavutil     50.32. 3 / 50.32. 3
  libavcore      0. 9. 1 /  0. 9. 1
  libavcodec    52.92. 0 / 52.92. 0
  libavformat   52.80. 0 / 52.80. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.48. 0 /  1.48. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
FFmpeg SVN-r25423
libavutil     50.32. 3 / 50.32. 3
libavcore      0. 9. 1 /  0. 9. 1
libavcodec    52.92. 0 / 52.92. 0
libavformat   52.80. 0 / 52.80. 0
libavdevice   52. 2. 2 / 52. 2. 2
libavfilter    1.48. 0 /  1.48. 0
libswscale     0.12. 0 /  0.12. 0
libpostproc   51. 2. 0 / 51. 2. 0

Si qqn sait ce qu'il ce passe ...

Merci.
Back to top
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3174
Location: Paris

PostPosted: Mon Nov 08, 2010 10:44 am    Post subject: Reply with quote

Question stupide, mais tu vérifies que "ce n'est pas pris en compte" comment, précisément?
Uniquement par le temps que ça prend?

Et sinon, google me répond çà: http://www.pubbs.net/201003/gentoo/63148-gentoo-user-ffmpeg-quotthreadsquot-parameter.html
_________________
-TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT)
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Mon Nov 08, 2010 12:05 pm    Post subject: Reply with quote

El_Goretto wrote:
(snip)
Et sinon, google me répond çà: http://www.pubbs.net/201003/gentoo/63148-gentoo-user-ffmpeg-quotthreadsquot-parameter.html

En complément spécifique sur f.g.o => Ebuild for multi-threaded ("multi-core") mplayer (ffmpeg-mt)

_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
Picani
Apprentice
Apprentice


Joined: 05 Jul 2009
Posts: 180

PostPosted: Mon Nov 08, 2010 8:10 pm    Post subject: Reply with quote

Par le temps que sa prend, mais aussi l'utilisation du processeur, le débit (en kbits/s en bas à droite), et le nombre d'images traitées en 10s environ.

Et je ne suis pas trop chaud pour utiliser des overlays, alors j'ai regardé avec vlc-1.1.4.1 et après avoir lancé l'encodage, le film ce met en route, mais rien ne se passe, il n'est pas encodé ...

Au cas où voici ses USES :
eix vlc :
Code:
Installed versions:  1.1.4.1(12:02:38 01/11/2010)(X a52 aac alsa cdda dbus dts dvd elibc_glibc ffmpeg flac gcrypt id3tag kate libass libnotify libtiger matroska mmx mp3 mpeg ncurses nsplugin ogg opengl png qt4 rtsp samba schroedinger sdl speex sse svg theora truetype vcdx vorbis x264 xcb xml xv zvbi -aalib -altivec -atmo -avahi -bidi -cddb -dc1394 -debug -dirac -directfb -dvb -fbcon -fluidsynth -fontconfig -ggi -gnome -gnutls -httpd -ieee1394 -jack -kde -libcaca -libproxy -libv4l -libv4l2 -lirc -live -lua -modplug -mtp -musepack -optimisememory -oss -projectm -pulseaudio -pvr -remoteosd -run-as-root -sdl-image -shine -shout -skins -sqlite -stream -svga -taglib -twolame -udev -upnp -v4l -v4l2 -vaapi -vlm -win32codecs -wma-fixed -xosd)
Back to top
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3174
Location: Paris

PostPosted: Mon Nov 08, 2010 8:20 pm    Post subject: Reply with quote

Pas trop chaud pour utiliser des overlays, mais tu as ffmpeg en "SVN"... ouais ben si tu aimes t'embêter, écoute, c'est ton droit :)
Tu as la réponse que tu es venu chercher en tout cas.
_________________
-TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT)
Back to top
View user's profile Send private message
Picani
Apprentice
Apprentice


Joined: 05 Jul 2009
Posts: 180

PostPosted: Mon Nov 08, 2010 8:27 pm    Post subject: Reply with quote

En effet, je n'avais pas fait attention. Quand je dis pas chaud, c'est que j'ai plus beaucoup de temps pour m'occuper de ma gentoo, elle marche et je veux rien toucher. Mais j'avais pas vu que ffmpeg était en SVN, je vais essayer de l'installer en amd64, pas ~amd64.

Je passerais le sujet en "résolu" à ce moment là.

Et merci !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum