I have a bunch of video files with a slightly weird format. There's a regular video stream, and there's also a text stream, which is being used to store precise time stamps of the video frames (from a GPS-synchronized hardware clock). Here's an example output from ffmpeg
:
Input #0, avi, from 'in.avi':
Duration: 00:00:52.13, start: 0.000000, bitrate: 311033 kb/s
Stream #0.0: Video: rawvideo, rgb32, 658x492, 30 tbr, 30 tbn, 30 tbc
Stream #0.1: Data: 0x0000
The video is uncompressed, so I want to compress it. I'm successfully using ffmpeg
for that part. The problem is, I want to map the Data stream #0.1 into the output file, completely unchanged. I've been trying and trying, but I can't find any way to make ffmpeg
do that. It only wants to deal with Audio, Video, and Subtitle streams, and the text is not in a valid subtitle format. The guy who made the videos just retired, so changing the input format is not an option. Any ideas?
-map
which is the natural solution. Could you make a short sample video available? Most of us don't have videos with random extra data tracks. – blahdiblah