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 21st May 2013, 22:48   #1  |  Link
dace1234
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!
dace1234 is offline   Reply With Quote
Old 22nd May 2013, 01:10   #2  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Even though the actual problem must be in the players you've chosen , and not in the x264 encoder , my suggestion is disable B-frames, or even set the GOP length to 1, since the framerate is so low.
filler56789 is offline   Reply With Quote
Old 22nd May 2013, 01:16   #3  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
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.
LoRd_MuldeR is offline   Reply With Quote
Old 22nd May 2013, 18:44   #4  |  Link
dace1234
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!
dace1234 is offline   Reply With Quote
Old 22nd May 2013, 19:11   #5  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,377
Quote:
Originally Posted by dace1234 View Post

I am using the libx264 API with ffmpeg.

.
.
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:
In ffmpeg libx264

-bf 0 to disable b frames
-g for gop size
poisondeathray is offline   Reply With Quote
Old 22nd May 2013, 19:13   #6  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,377
Quote:
Originally Posted by filler56789 View Post
Even though the actual problem must be in the players you've chosen , and not in the x264 encoder
Exactly ; I've used 1 FPS no problems in many players before


@ dace1234 - this is probably a playback or configuration issue, can you be more specific about what players , decoders and/or conditions this occurs under ?
poisondeathray is offline   Reply With Quote
Old 22nd May 2013, 22:14   #7  |  Link
J_Darnley
Registered User
 
J_Darnley's Avatar
 
Join Date: May 2006
Posts: 957
Quote:
Originally Posted by dace1234 View Post
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!
No, you would set the number of B-frames to 0 (zero), i_bframes or similar. As for the GOP size, i_keyint_max, or similar. Try reading the comments for the x264_param_t structure.
__________________
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.
J_Darnley 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 12:55.


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