Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th February 2017, 23:07   #1  |  Link
ultron
Registered User
 
Join Date: Sep 2016
Posts: 14
Can't get multithreading with libvpx

I am trying to reencode a video with this command
Quote:
ffmpeg -i Roland\ Garros\ 2005\ -\ Rafael\ Nadal\ Vs\ Roger\ Federer.avi -c:v libvpx-vp9 -b:v 414K -threads 2 -speed 1 -tile-columns 2 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a copy out.mkv
but get only single core use.

As far as I know, only tile-colums > 0 and -threads 1 are necessary. What's can be happening here? Thanks for any help.
ultron is offline   Reply With Quote
Old 8th February 2017, 00:34   #2  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
Quote:
Originally Posted by ultron View Post
I am trying to reencode a video with this command but get only single core use.

As far as I know, only tile-colums > 0 and -threads 1 are necessary. What's can be happening here? Thanks for any help.
To get libvpx to use 2 threads, you would need the resolution to be at least 1024 pixels horizontally. Your video might have lower resolution? Every thread needs at least 512 pixels. (Basically tile threading is a joke.)
mandarinka is offline   Reply With Quote
Old 10th February 2017, 02:11   #3  |  Link
ultron
Registered User
 
Join Date: Sep 2016
Posts: 14
Quote:
Originally Posted by mandarinka View Post
To get libvpx to use 2 threads, you would need the resolution to be at least 1024 pixels horizontally. Your video might have lower resolution? Every thread needs at least 512 pixels. (Basically tile threading is a joke.)
It didn't. If I get a video larger than that, but rescale it to a lower resolution, will it work?
ultron is offline   Reply With Quote
Old 10th February 2017, 10:01   #4  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
No, it depends on the resolution that is being encoded.
Your alternative is splitting the input video into parts, separately encode them in parallel using multiple instances of libvpx, and then joining the outputs together manually.
mandarinka is offline   Reply With Quote
Old 11th February 2017, 00:13   #5  |  Link
ultron
Registered User
 
Join Date: Sep 2016
Posts: 14
Very useful, thanks.

EDIT: Strange I did one more encoding just to test the resulting quality, and now I am getting the near 200% of cpu occupation that I expected, but the bitrate became insane, I send 777k and it is in this exact moment at about 5000kbps

Last edited by ultron; 11th February 2017 at 02:12.
ultron is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.