Log in

View Full Version : Editing h264 stream properties


FishB8
20th February 2010, 08:36
It's been a while since I've been here. Dashboard says I last visited in June 03. :P Can't believe I remembered my login...

Anyway, if I understand correctly, h264 contains data about it's content, including the frame rate correct? I often get ffmpeg complaining about the frame rates in the MP4 container not matching the frame rate in the video stream.

Changing the frame rate in the container is cake. But I can't figure out how to change the frame rate in the stream. I would like to change the frame rate in the stream without having to re-encode.

I've read that h264info can do this type of thing. But I really need a linux app, and furthermore I would prefer something using a CLI.

The most annoying instances are when the frame rate in the stream is double what is listed in the container. (e.g. usually something like 30000/1001 vs 60000/1001) I assume in these cases the frames are doubled up to deal with fields?

This is all very frustrating because when this happens, all I can do is re-encode.

roozhou
20th February 2010, 08:53
Try this ffmpeg build
http://forum.doom9.org/showthread.php?t=152419

J_Darnley
20th February 2010, 11:12
I often get ffmpeg complaining about the frame rates in the MP4 container not matching the frame rate in the video stream.
This message is not a problem. Ignore it.

The most annoying instances are when the frame rate in the stream is double what is listed in the container. (e.g. usually something like 30000/1001 vs 60000/1001) I assume in these cases the frames are doubled up to deal with fields?
Yes, the stream reports double because it reports the field rate.

FishB8
22nd February 2010, 01:50
@roozhou: Thanks, nice work. Patch applies cleanly. Just what I needed.