I have a large YCbCr file, I only want to convert the first N frames to bmp files. How to do that?
if I use
convert -colorspace yuv -size 1920x1080 src.yuv dest.bmp
it takes a long long time, and I have to delete all the unused bmp files.
Alternatively, Is there a way to extract the first N frames of the large YUV files, and save them to a separte short YUV files? Then I can use the above command to convert the short YCbCr file to BMP.
I checked the convert options, there is adjoin. combine etc. but I did not find an option to split the file.
Help please!
How to specify number of frames when conveting YCbCr to bmp
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to specify number of frames when conveting YCbCr to bmp
see http://www.imagemagick.org/Usage/files/#read_mods
convert image.yuv[0-9] ... image.bmp
converts the first 10 frames, but if bmp does not support multiple frames, then you will get image-0.bmp, image-1.bmp, etc. So you may want to convert to some image type such as .gif or .png to have a 10-frame image.
convert image.yuv[0-9] ... image.bmp
converts the first 10 frames, but if bmp does not support multiple frames, then you will get image-0.bmp, image-1.bmp, etc. So you may want to convert to some image type such as .gif or .png to have a 10-frame image.
Re: How to specify number of frames when conveting YCbCr to bmp
Great. It works.
Thanks a lot.
Thanks a lot.