ffmpeg usage

2022. 12. 20. 07:53Multimedia

    목차
반응형

transcoding

ffmpeg -i input.hevc output.jpg

ffmpeg -i input.hevc -f rawvideo output.raw

ffmpeg -f rawvideo -pixel_format rgba -video_size 320x240 -i input.raw output.png

ffmpeg -f rawvideo -pixel_format rgba -video_size 4032x3024 -i out_rgb.raw output.png

ffmpeg -f rawvideo -pixel_format rgb24 -video_size 4032x3024 -i out_rgb.raw output.png

Raw format to PNG

ffmpeg -f rawvideo -pixel_format rgba -video_size 320x240 -i input.raw output.png

ffmpeg -f rawvideo -pixel_format rgb24 -video_size 1280x720 -i primary_img.raw primary_img.png

ffmpeg -f rawvideo -pixel_format yuv420p -video_size 1280x720 -i primary_img.raw primary_img.png

to convert single frame from raw RGBA

ffmpeg -y -f rawvideo -pix_fmt rgba -ss 00:01 -r 1 -s 320x240 -i input.raw -frames:v 1 output.png

-y: overwrite output

-r: input frame rate

-ss: skip to this time

-frames:v: number of frames to output

ffprobe extracted3.hevc

ffprobe -show_streams -print_format json -v error extracted3

ffmpeg -f rawvideo -pixel_format nv12 -video_size 1280x720 -i dump_bt709_rgb24.raw dump_bt709_rgb24.raw
ffmpeg -f rawvideo -pixel_format rgb24 -video_size 1280x720 -i dump_bt601_rgb23.raw dump_bt601_rgb23.raw.png
ffmpeg -f rawvideo -pixel_format rgba -video_size 1280x720 -i C052.raw  C052.raw.png
ffmpeg -f rawvideo -pixel_format rgb32 -video_size 1280x720 -i C052.raw  C052.raw.png
반응형

'Multimedia' 카테고리의 다른 글

ffmpeg pixel_format  (0) 2023.01.17
WebRTC  (0) 2023.01.16
WebP  (0) 2022.12.14
File type box  (0) 2022.12.13
MP4Box build and test  (0) 2022.12.12