-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timestamp argument in Encode function #1
Comments
Thank you for question. Regarding from the article below, time stamp is two frames time interval in ms. And openh264 have rate control flag. So, it might be set base.iRCMode = RC_TIMESTAMP_MODE; instead of base.iRCMode = RC_QUALITY_MODE; If so, my OpenH264Lib have timestamp argument in Encode function, |
Handling timestamp processing was incorrect. I deleted timestamp argument in encode function. |
@secile how can I encode frames that were can captured with no set framerate then? I have the timestamps, why was this tribes, how can I get the same functionality, I need to line up the frames with the audio, and they weren't captured at a set framerate |
Hello! You are saying that you have images and audio sampling data with different frame rate? You have images and audios that are not regularly sampled? |
@secile no that would be impossible since it's not a set rate, I know you had a timestamp parameter before but it was "obsolete", in the original dll there is probably a way to do it |
Encode(bmp, timestamp) overload is obsoleted because it seemed that timestamp value is not effect to output h264 frame data. As I writed above, My library uses 'RC_QUALITY_MODE'. It may work fine if change the mode to 'RC_TIMESTAMP_MODE'. I don't know it works as you expected, but I will describe how to use timestamp and 'RC_TIMESTAMP_MODE'. [Encoder.cpp] [Encoder.h] [Your project] |
Hello, can you tell me what is the purpose of timestamp argument in Encode function? I think it is delay between two frames but it could also be time from the beginning. However, there are no changes on the video when i change that parameter. How would i inform encoder about time between two frames?
The text was updated successfully, but these errors were encountered: