0
votes

I want to synchronously play audio (.wav) file and video which is provided to me in rgb format.

The rgb file contains all the rgb images in the video frames. How can I combine rgb file and audio using ffmeg to get output video which can be played on vlc player?

Input 1 : audio.wav

Input 2 : allimages.rgb

Output : A video file which can be played in vlc player.

I was looking at ffmpeg documentation but couldn't find anything for rgb input. It would be great help if you can provide the ffmpeg command for doing above.

Thanks

1

1 Answers

0
votes

The closest I got with this is using below command, but I see Green and Pink colors in my video after I play it. I think I am missing something in the ffmpeg command. Can anyone tell me what is wrong in above command and help to improve video quality and remove green and pink colors?

ffmpeg -s 480x270 -r 15 -pix_fmt gbrp  -i /Users/sandeep/Downloads/Videos/input.rgb -c:v libx264 -y output.mp4

enter image description here