i am trying to convert a raw video into lossless video that is playable by VLC or QuickTime.
The structure of the input video:
pixels are 8-bit grayscale
frame size is 1280x1024 pixels
frames start from offset XXX bytes from the start of the file
each subsequent frame starts with an offset YYY bytes (that is, there is a gap of YYY bytes between frames). It is possible that XXX = YYY but I want to know a more general solution, if achievable.
number of frames is not known in advance
I start with:
ffmpeg7 -f rawvideo -pixel_format gray -video_size 1280x1024 -r 1 -i aaa.raw -r 120 -vcodec av1 aaa.mp4
However, this does not accommodate the frame offsets and I end up with garbage.
How do I account for the frame offsets within the file?
I would also appreciate suggestions for lossless codecs and containers, other than AV1 and mp4.
Thank you for your time.
as a follow up, what would be a the arguments for ffplay?