Closed ccaum closed 4 years ago
After thinking through this a bit more, I'm making it more complex than it needs to be. I'll use the rawvideo to process the frames and use the h264_omx encoder to hardware accelerate the h264 encoding when streaming the video to disk.
I'm trying to create an input context with the video4linux2 format. That format in libav has a "input_format" option where you can specify "mjpeg", "h264", and many other raw formats. I'm having trouble figuring out how to pass in that option with gmf. I tried using the SetOptions() function but it doesn't seem to apply.
Here's a successful ffmpeg command:
ffmpeg -f video4linux2 -input_format h264 -i /dev/video0 -vcodec copy -an output.mp4
Which shows it using h264 as the input codec:
Here's what I've tried using gmf:
However, when I run it, the libav output shows it's still using rawvideo (the default)
Is there any way to A) create an input codec to attach to the input format context? B) pass the "input_format" libav option to the input format context?