![]() ![]() The second number is the number of the stream (also start with 0), so if you no the order of the streams you can extract the relevant stream by these method. You can map it like that: -map 0:1/1:3/2:2, the first number is for the number of input, if you have 2 inputs, so the first input will be 0 and the second will be 1. It is dependent on the encoder that create the file, if he dont map it the ffmpeg wont know which stream belong to his type.īut that not prevent from you to map the file, you can map it with numbers: map is mapping option, every TS file made from many transport streams, that means that you can map every TS file to video, audio, subtitles or metadata. f option is the format that you want the output will be, like mp4,data,subtitles and mpegts(TS). More of ffmpeg: you can see the -map option and the -f option, Notice that if you dont map the video it wont work. You also can do that on the fly by change the path of the file to the address that streams it udp://: Run the command ffmpeg -i /path/to/your/file -c copy -map data-re -f data /path/to/your/output/file c is the codec definition and you can see it set to copy. i is the input option, it define the input stream/file. More of ffmpeg: you can see that there is -i option and -c, You can add the option -y and it will override if the file already exist. Notice that the address with the prefix udp:// Run the command ffmpeg -i udp://: -c copy /path/to/your/output/file
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |