Hi Guys
<div><br></div><div>I have an interesting issue where on trying to decode a mpeg1video file I get:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
[mpeg1video @ 01d16900] ignoring pic after 100<br>[mpeg1video @ 01d16900] Missing picture start code<br>[mpeg1video @ 01d16900] warning: first frame is no keyframe</blockquote><div><br></div><div>After doing some research it appears that FFMpeg will drop the first frame if it's deemed "broken, corrupt or not a keyframe", but it seems that the first frame is present and looks perfectly valid when playing through VLC/MPC. I have taken the following logs which indicate that the first frame is indeed a non-keyframe. My questions is whether there is any way to salvage the first frame (which is quite important for me) using FFMpeg?</div>
</div><div><br></div><div>Frame dump from FFProbe (I've cut down the info from the second frame)</div><div><br></div><div><div>[FRAME]</div><div>media_type=video</div><div>key_frame=0</div><div>pkt_pts=48000</div><div>
pkt_pts_time=0.040000</div><div>pkt_dts=48000</div><div>pkt_dts_time=0.040000</div><div>pkt_duration=48000</div><div>pkt_duration_time=0.040000</div><div>pkt_pos=4096</div><div>width=320</div><div>height=240</div><div>pix_fmt=yuv420p</div>
<div>sample_aspect_ratio=1:1</div><div>pict_type=?</div><div>coded_picture_number=0</div><div>display_picture_number=0</div><div>interlaced_frame=0</div><div>top_field_first=0</div><div>repeat_pict=0</div><div>reference=3</div>
<div>[/FRAME]</div><div><br></div><div>[FRAME]</div><div>media_type=video</div><div>key_frame=0</div><div>pict_type=P</div><div>[/FRAME]</div><div><br></div><div>[FRAME]</div><div>key_frame=0</div><div>pict_type=P</div><div>
[/FRAME]</div><div><br></div><div>[FRAME]</div><div>key_frame=0</div><div>pict_type=P</div><div>[/FRAME]</div><div><br></div><div>[FRAME]</div><div>key_frame=0</div><div>pict_type=P</div><div>[/FRAME]</div><div><br></div>
<div>[FRAME]</div><div>key_frame=1</div><div>pict_type=I</div><div>[/FRAME]</div></div><div><br></div><div><br></div><div>Packet dump from FFProbe</div><div><br></div><div><div>[PACKET]</div><div>codec_type=video</div><div>
stream_index=0</div><div>pts=0</div><div>pts_time=0.000000</div><div>dts=0</div><div>dts_time=0.000000</div><div>duration=48000</div><div>duration_time=0.040000</div><div>size=4883</div><div>pos=N/A</div><div>flags=K</div>
<div>[/PACKET]</div><div><br></div><div>[PACKET]</div><div>codec_type=video</div><div>stream_index=0</div><div>pts=48000</div><div>pts_time=0.040000</div><div>dts=48000</div><div>dts_time=0.040000</div><div>duration=48000</div>
<div>duration_time=0.040000</div><div>size=28</div><div>pos=4096</div><div>flags=_</div><div>[/PACKET]</div><div><br></div><div>[PACKET]</div><div>codec_type=video</div><div>stream_index=0</div><div>pts=96000</div><div>pts_time=0.080000</div>
<div>dts=96000</div><div>dts_time=0.080000</div><div>duration=48000</div><div>duration_time=0.040000</div><div>size=28</div><div>pos=N/A</div><div>flags=_</div><div>[/PACKET]</div></div><div><br></div><div>Thanks guys,</div>
<div>Mark.</div><div><br></div>