Hi !
Here's the continuation of my short series of threads concerning specific parameters in FFmpeg.
So here the question is : is -vpre supposed to work with all and any codec, or just libx264 ?
I tried a two-pass encoding formula. Tested it once with a .mp4 file at the output. Worked fine. Copy-pasted the command line, and only changed the output file extension, -vcodec, -f (and all that stuff) so that the result would be a WMV file instead. I enter the line and, first thing I get, is an error telling me the file preset for slow_firstpass was not found.
Anyone has any clue what I might be doing wrong ?
Thanks as always !![]()
+ Reply to Thread
Results 1 to 8 of 8
-
Last edited by Klagar; 9th Nov 2010 at 10:34. Reason: Grammatical correction
-
vpre is short for 'video preset', and it can be used with codecs other than libx264. However, the preset options needs to be defined in a file in order for ffmpeg to make use of them. My version of ffmpeg comes bundled with a set of libx264 presets, but none for other codecs.
The preset files are stored in different places, depending on what OS you have.
If you search your computer for: libx264-slow_firstpass.ffpreset you can hopefully find the folder with them in.
first thing I get, is an error telling me the file preset for slow_firstpass was not found.
http://www.ffmpeg.org/ffmpeg-doc.html#SEC13
This is relevant for Windows users wanting to know where to store their preset files:
http://forum.doom9.org/showthread.php?t=148777 -
..
Last edited by bat999; 9th Nov 2010 at 11:39. Reason: Already been answered.
-
Now I understand.
Thanks Intracube, your reply gave me the idea to actually open one of my .ffpreset files and see what it contained. I thought it would be just gibberish, comparable to .dll files or so, but now I see what purpose they really serve.
That's gonna help me a lot.
In the end, I can just copy my libx264 presets, rename them, and they should pretty much work with other vcodecs, right ?
Gonna try it out !
Thanks again ! -
Last edited by intracube; 9th Nov 2010 at 12:17.
-
I use wmv2, libx264, some libxvid and I think I have like one line that uses libtheora.
I've begun my investigation, I see what you mean, I started with libx264 and switched to wmv2 and FFmpeg told me the following error : [wmv2 @ 01e88010] b frames not supported by codec
I just deleted the -bf parameter from the preset and it seems to work fine so far. I guess I'll go by trial and error to adapt to the other codecs.
Fortunately, the only two presets I pretty much use are slow and slow_firstpass, at least for now. So it shouldn't prove too fastidious. -
One thing to watch out for; even if ffmpeg converts your videos without error, and the file plays back on your computer - the video might not play on standalone DVD players that would otherwise play wmv/DivX videos, as they often have additional restrictions with the formats they support.
This might not be directly related to what you're trying to do, but this page shows some some of the limitations of the iPod and PSP that need to be taken into account:
http://rob.opendot.cl/index.php/2007/01/11/ipodpspx264-encoding-guides/ -
Nice !
As you said, this is not directly related to what I'm trying to do, but nobody said it wouldn't ever be. I shall keep that info preciously
Similar Threads
-
FFmpeg on Win only - FAQ can ffmpeg realize screen capture
By feelart in forum Capturing and VCRReplies: 1Last Post: 14th Feb 2012, 04:11 -
Which ffmpeg options are used behind the scenes by ffmpeg?
By roberto.aloi in forum ffmpegX general discussionReplies: 1Last Post: 26th Jul 2011, 05:09 -
Best libx264 -vpre preset to use/is there a way to convert bit rate ONLY?
By ninethirty in forum Video ConversionReplies: 6Last Post: 16th Feb 2011, 10:11 -
Difference between ffmpeg -threads and ffmpeg-mt
By Calidore in forum Video ConversionReplies: 2Last Post: 7th Mar 2010, 22:44 -
FFMPEG QUESTION :How do I take one frame and make a jpeg with FFMPEG?
By goheadtry in forum Newbie / General discussionsReplies: 1Last Post: 18th Sep 2007, 02:55