The NUV (NuppelVideo) media format doesn't sets the
keyframes fields from the video frame's headers. Some
problems occured when I had been playing some NUV files
using the FFMPEG plugins to GStreamer, and the
streaming stops on the first keyframe. Here is a very
simple patch:
--- libavformat/nuv.c (revision 7024)
+++ libavformat/nuv.c (working copy)
@@ -202,6 +202,9 @@
ret = av_new_packet(pkt, HDRSIZE + size);
if (ret < 0)
return ret;
+ /* sets the keyframe flag; if the
hdr[2] is equals to zero, it is a keyframe */
+ if ( hdr[2] == 0 )
+ pkt->flags |= PKT_FLAG_KEY;
pkt->pos = url_ftell(pb);
pkt->pts = LE_32(&hdr[4]);
pkt->stream_index = ctx->v_id;
Patch to the NUV format support to keyframes
This Sourceforge bug tracker here has been abandoned many years ago.
Our new tracker can be found through http://www.ffmpeg.org/bugreports.html