[Libav-user] Reflecting changes from I-Frame to the subsequent frames!
Ibrahim Radwan
i.radwan1996 at gmail.com
Sun Jan 27 07:43:33 EET 2019
Thanks for your response and sorry about the top-posting 🙏
Well what I’ve done is hard-setting the `pict` frame buffers (inside the h264_decode_frame function) to the color I want, the first frame (i.e. the first I-frame) is completely blue as expected, but the subsequent frames tend to return back to the original video frame gradually (as shown in the attached frame).
I don’t know if there’s something more that I’ve to change to reflect the change on the next frames!
Best Regards,
Ibrahim Radwan
> On Jan 27, 2019, at 05:38, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>
> 2019-01-27 3:12 GMT+01:00, Ibrahim Radwan <i.radwan1996 at gmail.com>:
>
>> I’ve another question, as per my understanding for the H264 decoding
>> technique, the I-frame (a.k.a. key frame) is the actual full frame, the
>> P-frame is the one predicted from the previous I-frame and finally the
>> B-frame is some kind of interpolation between frames.
>
>> Now If, in the h264_decode_frame function, I changed each
>> I-frame to be let’s say blue frame, why the video isn’t all blue?
>> I see a lot of blocks from the original video scene!
>
> You may have missed something when changing the the frame?
>
> Please do not top-post here, Carl Eugen
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20190127/334c3b14/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2019-01-27 at 04.35.15.png
Type: image/png
Size: 254563 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20190127/334c3b14/attachment.png>
More information about the Libav-user
mailing list