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)

enter image description here

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

1 Answer 1


My format is called Y-only or GRAY video.

I do it this way:

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

The really good part is that I even do not need to deinterlace it myself, ffmpeg could do it for me too.

P.S. many thanks MBaz for this lead


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.