First I will demonstrate the syntax of the “map” and “itsoffset” switches and what they mean. There are a few different ways to accomplish the same result with minor variations, and I will try to demonstrate them. We will use itsoffset and map to delay one of the streams, and then merge them back together into another file. We will use this one input file twice, once for its audio portion, and once for its video portion. The itsoffset switch is nearly always used in conjunction with the “map” switch, since this tells ffmpeg which stream you want to affect, and what streams you wish to merge into a new output file.įor our purposes, we will deal with just one input file that has two streams out of sync (the most common problem). But sometimes during a conversion to another file format (such as mp4), the audio and video will not remain in sync and the itsoffset switch can be used to adjust them. On my camera, they merge into an MTS high-def formatted file. A typical video camera will record one video stream and one audio stream which are merged into one file. The itsoffset switch is used to nudge (forward or backward) the start time of either an audio or video “stream”. It will take some time to learn, but is very powerful once you understand it. I will try to explain how to use a couple of these switches to correct common sync problems with videos. Some of them are not explained very well in the documentation, and many websites have confusing postings by well-meaning people trying to make use of the switches. The ffmpeg program has numerous “switches” that help to adjust and convert audio and video files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |