1

Topic: Regarding the usage of .CIF fromat

Hello Sir,

How to use the raw video form i.e., for eg : foreman.cif to compress it to either .mpg or .mp4 format.?

2

Re: Regarding the usage of .CIF fromat

Hybrid doesn't support raw video (without headers) unless it's inside a container or has headers.

So you can either download your content inside a container/with headers (Xiph has the most common test sequences available as y4m) or add a container (or headers) to your content using for example FFmpeg:

ffmpeg -s cif -r 30 -i "pathToInputFile.cif"  -pix_fmt yuv420p -f yuv4mpegpipe "PathToOutputFile.y4m"

Not that it is important to properly adjust:
a. set the video size, here by using ' -s cif ' (see: https://www.ffmpeg.org/ffmpeg-all.html#toc-Video-size)
b. set the video frame rate, here by using ' -r 30 ' (see: https://www.ffmpeg.org/ffmpeg-all.html#toc-Video-rate)
c. set the pixel format, here ' -pix_fmt yuv420p ' (see: https://www.ffmpeg.org/ffmpeg-all.html# … o-options)
d. set the output (here ' "PathToOutputFile.y4m" ') and input (here ' -i "pathToInputFile.cif" ')

Cu Selur

Ps.: If you don't want to use Hybrid for reencoding you can directly use ffmpeg to convert to mpg/mp4 or other formats by adjusting the ffmpeg call accordingly.