You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build a tool to convert a bunch of png's into a video. I figured the best place to start was the example api2-decode-encode-video.cpp but I don't understand how to use the example. I compiled it using homebrew ffmpeg 4.0.2 on MacOS and then run with:
./api2-decode-encode-video input.png out.mkv
The line above always crashes when initiating the VideoEncoderContext with an error:
libc++abi.dylib: terminating with uncaught exception of type av::Exception: Codec context invalid media type
I tried other output names but get the same error. How am I supposed to use this example?
The text was updated successfully, but these errors were encountered:
Seems that codecpar using required new way for creation streams and codec contexts :-\ In current way codecpar keeps uninitialized, as result - media_type is UNKNOWN and exception is thrown.
I am trying to build a tool to convert a bunch of png's into a video. I figured the best place to start was the example api2-decode-encode-video.cpp but I don't understand how to use the example. I compiled it using homebrew ffmpeg 4.0.2 on MacOS and then run with:
The line above always crashes when initiating the
VideoEncoderContext
with an error:I tried other output names but get the same error. How am I supposed to use this example?
The text was updated successfully, but these errors were encountered: