# How can I convert raw pixel data to AVI video?

I have series of gray-scale 8-bit frames and I want to convert them into AVI video. How can I do this? Is there any existing converting utils or products for this type of task? I even do not understand how my format is called, is what I have (digitized stream from analogue interlaced PAL TV-camera) could be considered as RAW video?

Example of what I have in my .bin file: (do not pay attention to sliced frame, I will fix this with preconversion processing, and I still have to deinterlace this frames)

• I think that ffmpeg should be able to do this. – MBaz Nov 12 '18 at 14:56
• Have you tried to open the file in VLC which supports quite many formats? videolan.org – Juha P Nov 12 '18 at 15:23
• @MBaz , thank you! your lead was very helpfull! – stronk_kisik Nov 13 '18 at 10:59
• @stronk_kisik You're welcome! – MBaz Nov 13 '18 at 14:01

ffmpeg -f rawvideo -pix_fmt gray -s:v 640x200 -i orbita_data.y -c:v rawvideo -pix_fmt yuv420p out.avi