The -s option in your command line is for the output size because it's
written after -i.
You must also set the input size before -i.
Your RAW image contains only pixel data and no header for size and pixel
format.
I din't understand the header for size and pixel format, width error is
resolved but the error Invalid argument is still coming.
This example works for me:
rem Make a RAW image:
ffmpeg -f lavfi -i testsrc2=s=320x200 -pixel_format gray10be -frames 1
-f rawvideo -y raw.raw
rem The file raw.raw contains exactly 320 x 200 x 2 = 128000 bytes
rem It doesn't contain any information about width, height and pixel
format.
rem Convert the RAW image to JPG:
ffmpeg -s 320x200 -pixel_format gray10be -f rawvideo -i raw.raw -y out.jpg
Michael
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".