Debayer video with ffmpeg -
looking debayer video ffmpeg. can't find way without piping raw video between 2 instances of ffmpeg, because can't change pixel format of input video "in place" gray bayer_gbrg8. so, command works:
ffmpeg -i fr_losslessmovie_png_codec.avi -f image2pipe -pix_fmt gray \ -vcodec rawvideo - | ffmpeg -r 25 -f rawvideo -s 2048x700 \ -pix_fmt bayer_gbrg8 -i pipe:0 -y -pix_fmt yuv420p -b:v 25000k \ fr_debayer_compressed.mp4
i have given source movie pixel format, didn't realize ffmpeg suported bayered pixel formatting.
didn't see exact question online, , have not found way change pixel format video filters etc. without ffmpeg thinking i'm trying convert data. want change pixel format existing gray data has been assigned.
thanks in advance! andrew
i think bayer support added in ffmpeg use mlv demuxer. automatically debayers magic lantern files bayer_rggb16le desired colorspace. way know of debayer video in ffmpeg. support currenly basic. if video in mlv container debayer this:
ffmpeg -i bayer-raw-input.mlv -pix_fmt yuv420p yuv-output.mp4
Comments
Post a Comment