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 > MPEG-4 AVC / H.264
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th August 2009, 09:32   #1  |  Link
Fe++
Registered User
 
Join Date: Jul 2009
Posts: 10
"broken ffmpeg default settings detected" and "use an encoding preset (vpre)"

Hi,
I try to encoding a YUV420 picture using ffmpeg and x264, but I'cannot open the x264 codec because i have these errors:

[libx264 @ 0x8b7d8b0]broken ffmpeg default settings detected
[libx264 @ 0x8b7d8b0]use an encoding preset (vpre)

If I use the mpeg4 ffmpeg encoder the encoding is ok, the error is only with x264. What is the cause of this error? Thanks in advance.
Best regards
Fe++ is offline   Reply With Quote
Old 7th August 2009, 09:34   #2  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,690
ffmpeg's defaults are broken and they override x264's encoding settings with completely broken ones. There doesn't seem to be much effort among ffmpeg developers to get this fixed, or for that matter, accept patches that fix them.

As a result, x264 will refuse to encode if it detects that you are using broken ffmpeg default settings and tells you to use -vpre instead with one of the included presets. This guide gives more information.
Dark Shikari is offline   Reply With Quote
Old 7th August 2009, 09:47   #3  |  Link
Fe++
Registered User
 
Join Date: Jul 2009
Posts: 10
Very clear, many thanks, i understand the problem. I ask another advice, I've to call the x264 not by CLI but by using ffmpeg api's, do you know source code file or other resource where i can consult for understand the correct routine for call x264 encoder?
Fe++ is offline   Reply With Quote
Old 7th August 2009, 09:59   #4  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,690
Quote:
Originally Posted by Fe++ View Post
Very clear, many thanks, i understand the problem. I ask another advice, I've to call the x264 not by CLI but by using ffmpeg api's, do you know source code file or other resource where i can consult for understand the correct routine for call x264 encoder?
If you want to call the x264 library, call it directly, not through libavcodec. See x264.h for the API and x264.c for an example encoder made using the API.
Dark Shikari is offline   Reply With Quote
Old 7th August 2009, 10:01   #5  |  Link
Fe++
Registered User
 
Join Date: Jul 2009
Posts: 10
Thanks, it's exactly the information that i'm looking for.
Fe++ 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 02:42.


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