![]() ![]() I wasn't optimistic about this because I already knew that -r $maxfps puts it at a constant framerate. You simply need to combine the -vsync 2 option with the -r $maxfps option, of course where you replace $maxfps with the maximum framerate you want! And it WORKS! It doesn't duplicate frames from a source file, but it will drop frames that cause the file to go over the maximum framerate!īy default it seems that -r $maxfps by itself just causes it to duplicate/drop frames to achieve a constant framerate, and -vsync 2 by itself causes it to pull the frames in directly without really affecting the PTS values. But the first one I tried actually worked. But I did have a few ideas that I wasn't honestly very optimistic about. However, I don't quite have enough reputation to post a comment to just answer that 'sub-question' that everyone seems to be having. You can leave either video or audio unchanged and sync the remaining stream(s) to the unchanged one. With -map you can select from which stream the timestamps should be taken. For example, in the case that the format option avoid_negative_ts is enabled. Note that the timestamps may be further modified by the muxer, after this. Chooses between 1 and 2 depending on muxer capabilities.As passthrough but destroys all timestamps, making the muxer generate fresh timestamps based on frame-rate.Frames are passed through with their timestamp or dropped so as to prevent 2 frames from having the same timestamp.Frames will be duplicated and dropped to achieve exactly the requested constant frame rate.Each frame is passed with its timestamp from the demuxer to the muxer.Newly added values will have to be specified as strings always. For compatibility reasons old values can be specified as numbers. You can set it to a few different options, but the one you want is '2' or vfr. The answer to that is the oddly named -vsync option. Frustrated that you hadn't found an answer either, I was going to at least answer other people's questions about how to enable VFR (not V BR) output from FFMPEG. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |