<div dir="ltr">You say that the stream is "only P frames". I thought that one needs I frames to start the decode?<div><br></div><div>Also, have you tried sending the SPS/PPS as the very first packets to decode,</div><div>before sending any visual packets? I've found this is necessary when encoding</div><div>to file formats such as mp4, so it might be necessary for decode too.<br><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 12, 2024 at 5:34 PM David Ibbitson <<a href="mailto:david.ibbitson@gmail.com">david.ibbitson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi folks,<div><br></div><div>I have an mpegts file with the following stream:</div><div><br></div><div>Input #0, mpegts, from 'Downloads/e318_save.ts':<br>  Duration: 00:03:59.00, start: 8.400000, bitrate: 137 kb/s<br>  Program 1 <br>    Metadata:<br>      service_name    : Service01<br>      service_provider: FFmpeg<br>  Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 640x480, 5 fps, 5 tbr, 90k tbn, 10 tbc<br></div><div><br></div><div>It's only P frames with the occasional SPS/PPS. The ffmpeg tools handle it fine.</div><div><br></div><div>However when I demux the h264 and invoke the standard avcodec_send_packet/avcodec_receive_frame loops nothing happens.</div><div><br></div><div>avcodec_send_packet just continues to accept data (never hits an erors condition) and avcodec_receive_frame immediately hits EAGAIN.</div><div><br></div><div>Any ideas what could be happening here?</div><div><br></div><div>Thanks,</div><div>David</div><div><br></div></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br>
</blockquote></div>