-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using code from api2-remux.cpp sample. #130
Comments
Will look today |
@akochkarev , could you please check latest master code? |
@h4tr3d , thanks for response! I've tested api2-remux.cpp example from latest master sources today. But I see that there some new methods like Stream::codecParameters() was added and this breaks compatibility with v2.2.1 which I use from vcpkg currently. Waiting for a new release :) |
Oops... vcpkg... I forgot about them. |
vcpkg PR: microsoft/vcpkg#37366 Note, I rework the decode/encode functionality for now that breaks back compatibility. It will be released as v3.0.0. New functionality are required for more flexible using of the avcodec_send_XXX/avcode_receive_XXX approach. |
Great, does the new version support hardware encoding/decoding such as CUDA? |
There is no any changes in this direction. But, it is still usable via direct FFmpeg usage ( |
I tested version 6.1, and it seems that it is not supported either, for example |
More details are needed. |
Hello!
I am trying to adapt this sample (api2-remux.cpp) for truncating audio files to needed duration without reencoding.
But facing next issue:
When coping streams
// copy codec settings ocoder.copyContextFrom(icoder);
exception arises: "Codec context invalid"
and log says:
[NULL @ 0x562aaeddb780] copyContextFrom: Invalid target context
Log:
Any ideas, what can be wrong here?
Thanks!
The text was updated successfully, but these errors were encountered: