-
Notifications
You must be signed in to change notification settings - Fork 43
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
Corruption Frame after decoding #188
Comments
Hello, I had that kind of problem. The content of the resulting AVFrame may not be parsed right. First, check the value in Example: if frame.format == AV_PIX_FMT_YUV420P {
/// The frame is in YUV420P format
} |
@SimonRacaud Thanks for your reply. I tried your method before, which is not the root cause of this issue. Also, I uploaded the video which is |
@Mon-ius , May I know how did you converted the frame which is YUV_420P format into RGB ? |
@Codewithteju Yes, I found the rust based ffmpeg solutions all have this issue. |
@Mon-ius, Actually I am trying to decode a input video and get the frames out of it for further modification such as converting them to grayscale, etc. With Rsmpeg I can only decode the video in raw format (.264), if i use the .mp4 video files, it\s saying there is -"No start codes found, NAL issues and something like this" Is there any discord channel for the rsmpeg module? I have got some doubts regarding encoding too? |
Hi, I uploaded these two video which are .mp4 format indeed, you can actually download them by clicking the dots and do more test 🤗 |
@Mon-ius , I have tried decoding with those videos, but getting the same error. How did you decode it, can you provide any code snippet of rsmpeg ? |
@Mon-ius Could you provide a minimal reproducible example in Rust and C? It's pretty interesting that's Rust-related. I am happy to do some investigation. |
Given two examples videos, after decoding we will get frames with heavy lines.
1.mp4
2.mp4
And the corrupted frames after decoding:
The text was updated successfully, but these errors were encountered: