You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something I've tried several times with FFmpeg.AutoGen, and failed to do, is to be able to process a source file, while preserving as much from the original file as possible.
What I want to do is something like this:
ProcessFrames("source.mp4","destination.mp4",_singleFrameProcessor);void_singleFrameProcessor(intwidth,intheight,intstride,stringpixelFormat,Byte[]pixels){// draw some text over the image, apply denoise filter, whatever.}
And I would like to do so while preserving the original FPS and audio stream.
The example you have has a fixed 25 fps and it is not specified how to get the fps from the original video.
Also, I am not sure if setting the target FPS is the right approach, and what would be required is to set AVFrame.pts, AVFrame.pkt_dts and AVFrame.time_base to match the original frame time from the source file... but I tried to do so and the video was a complete mess.
So, any ideas on how to address this?
The text was updated successfully, but these errors were encountered:
Something I've tried several times with FFmpeg.AutoGen, and failed to do, is to be able to process a source file, while preserving as much from the original file as possible.
What I want to do is something like this:
And I would like to do so while preserving the original FPS and audio stream.
The example you have has a fixed 25 fps and it is not specified how to get the fps from the original video.
Also, I am not sure if setting the target FPS is the right approach, and what would be required is to set AVFrame.pts, AVFrame.pkt_dts and AVFrame.time_base to match the original frame time from the source file... but I tried to do so and the video was a complete mess.
So, any ideas on how to address this?
The text was updated successfully, but these errors were encountered: