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. |
21st May 2013, 22:48 | #1 | Link |
Registered User
Join Date: May 2013
Posts: 2
|
Parameters for low frame rate?
I am trying to encode video with an extremely low frame rate (about 1-2 fps) and I'm having a lot of difficulties playing it in many players (VLC, windows media player, etc). I am using the libx264 API with ffmpeg.
I was just wondering if anyone knew a good combination of preset/tune and other parameters to use for this. I have even tried just keeping 30fps but duplicating the images, but even then I have some problems in certain players. Players will skip frames, pause for like 5 seconds or more, or the video will look blurry and corrupted. But as soon as I speed things up the problems disappear. Thanks! |
22nd May 2013, 01:16 | #3 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
If the players, for whatever reason, cannot deal well with those ultra-low frame rates, you can just duplicate each frame like 10x to get 10 fps to 20 fps, as a workaround.
Exact duplicates should be very cheap to encode...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 22nd May 2013 at 01:33. |
22nd May 2013, 18:44 | #4 | Link |
Registered User
Join Date: May 2013
Posts: 2
|
Sorry this may be a newbie question, but what is the parameter in the x264 API for disabling b frames? And also for setting the gop size? I did a search in x264.h, and I found the following definitions, but I don't which variable to assign them to:
#define X264_B_ADAPT_NONE 0 #define X264_B_ADAPT_FAST 1 #define X264_B_ADAPT_TRELLIS 2 #define X264_OPEN_GOP_NONE 0 #define X264_OPEN_GOP_NORMAL 1 #define X264_OPEN_GOP_BLURAY 2 Is this even what I would use? Thanks! |
22nd May 2013, 19:11 | #5 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
-bf 0 to disable b frames -g for gop size |
|
22nd May 2013, 19:13 | #6 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
@ dace1234 - this is probably a playback or configuration issue, can you be more specific about what players , decoders and/or conditions this occurs under ? |
|
22nd May 2013, 22:14 | #7 | Link | |
Registered User
Join Date: May 2006
Posts: 957
|
Quote:
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
|
|
|