-
Notifications
You must be signed in to change notification settings - Fork 85
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
example api2-decode fail #127
Comments
Are you using the latest release or a git checkout? I fixed a number of small problems related to these examples very recently. Try compiling a vanilla ffmpeg 6.1 and try transcoding file to file, if this doesn't work, then there is a problem. |
'-11' means EAGAIN. You can try to make access again, something like: if (ec) {
if (ec == av::make_ffmpeg_condition(-EGAIN)) {
continue;
}
...
} |
I git pull the latest commit from the master branch. The last commit is Dec 21.
|
In common way - you are right. But there is cases, when, for example, data is not ready yet but system work properly and you should just a wait a little. EBUSY, EAGAIN just a way say it. In any case, HW can just stuck and maybe some proper configuration is needed in additional to generic SW setup. |
The original code is something like this
You mean I should do a while in the while? eg, do a while loop after each packet or do it on the read packet & decode together? |
I have tried doing a for loop on VideoFrame frame = vdec.decode(pkt, ec); but it never stops after get -11 return value. |
Neither of the two approaches work. But if I use ffmpeg command line to do anything, decode or transcode. It is working. |
An update again. I have tried the example code of decode_video.c in the official ffmpeg repo under /doc/examples. |
@ywangwxd , could you please send me a sample of the problematic video? Also, issue are mpp related only? Does video successfully processed by the software decoder? |
I compiled ffmpeg with rockchip mpp. I have tested ffmpeg command to transcode a rtsp stream to a video file, it is working well.
But if I use api2-decode or api2-decode-encode-video, neither of them success.
This is the final part of the screen message. It seems that the decoder get many empty frame. The final error is hard to understand.
The text was updated successfully, but these errors were encountered: