NTU CSIE ITCT 2017 Spring Final Project
To create and playback a raw video, we use ffmpeg and ffplay.
ffmpeg -i input.mp4 -vcodec rawvideo -pix_fmt rgb24 output.rgb # generate raw video
ffplay -f rawvideo -pix_fmt rgb24 -video_size 720x480 -i raw.rgb # playback raw video
To convert from RGB file to H.264 format file, we use ffmpeg again.
ffmpeg -f rawvideo -pix_fmt rgb24 -s:v 854x480 -r 25 -i input.yuv -c:v libx264 -f rawvideo output.264
A file with extension .rgb is an RGB file. It does not contain any header. For example, snoopy.rgb is a RGB file with resolution 854x480, and each pixels contains 1 byte of red followed by 1 byte of green and followed by 1 byte of blue.
There are 2 sets of intra prediction modes, one is 16x16 luma prediction modes, and the other is 8x8 chroma prediction modes.
Reference:
Reference:
- H.264/AVC 4x4 Transform and Quantization
- H.264 學習筆記(四)—— 變換與量化(ZT)
- H.264 中整數DCT變換,量化,反量化,反DCT究竟是如何實現的?
- Hadamard 變換中的歸一化問題
Reference: