Lamb
16th June 2008, 03:43
Hi all!
I am using mencoder on a web video hosting platform, and I am having troubles with FPS and Deinterlacing. I don’t have any control on my video sources: they can be PAL or NTSC, interlaced or progressive, 24, 25, 30 (or anything you want) FPS. Because they will mainly come from amateurs, I guess I’ll have to deal with a couple of interlaced videos.
I am trying to automatically produce 25 FPS Progressive videos which will be encoded in MPEG4-AVC @ 320kbit/sec, using x264. These videos will then be played from a Flash Player.
- My first question is about the “ofps” option:
If I get FPS bigger than 25 using "mplayer -identify" on the source, my script adds “-ofps 25” to the command line. But I don’t know how mencoder changes the framerate. For example, if I use the “-ofps 25” option on a 30 FPS video, how does mencoder select the frames which will be deleted? Is it a good idea to use this option (the goal is to optimize x264 compression / decompression: 5 extra frames make quite a difference). Or should I leave the FPS to its original value?
- My second question concerns deinterlacing:
Is there some automated way to detect if a video is interlaced or not? I didn’t find any way to grab that kind of information using mplayer. I think it’s quite a bad idea to deinterlace all my video sources (using “pp=lb” for example) because some of them will be progressive.
Thank you in advance for your help! :)
I am using mencoder on a web video hosting platform, and I am having troubles with FPS and Deinterlacing. I don’t have any control on my video sources: they can be PAL or NTSC, interlaced or progressive, 24, 25, 30 (or anything you want) FPS. Because they will mainly come from amateurs, I guess I’ll have to deal with a couple of interlaced videos.
I am trying to automatically produce 25 FPS Progressive videos which will be encoded in MPEG4-AVC @ 320kbit/sec, using x264. These videos will then be played from a Flash Player.
- My first question is about the “ofps” option:
If I get FPS bigger than 25 using "mplayer -identify" on the source, my script adds “-ofps 25” to the command line. But I don’t know how mencoder changes the framerate. For example, if I use the “-ofps 25” option on a 30 FPS video, how does mencoder select the frames which will be deleted? Is it a good idea to use this option (the goal is to optimize x264 compression / decompression: 5 extra frames make quite a difference). Or should I leave the FPS to its original value?
- My second question concerns deinterlacing:
Is there some automated way to detect if a video is interlaced or not? I didn’t find any way to grab that kind of information using mplayer. I think it’s quite a bad idea to deinterlace all my video sources (using “pp=lb” for example) because some of them will be progressive.
Thank you in advance for your help! :)