<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
PS: do you know whenever gstreamer can add an index to avi file?<br>
<br>
I use this command to record a live asf stream:<br>
<br>
<br>
> #source description<br>
> export SOURCE_PROTOCOL=mmssrc<br>
> export SOURCE_DEMUXER=asfdemux<br>
> export SOURCE_AUDIO_CODEC=ffdec_wmav2<br>
> export SOURCE_VIDEO_CODEC=ffdec_wmv3<br>
><br>
> #destanation description<br>
> export DEST_PROTOCOL=filesink<br>
> export DEST_MUXER=avimux<br>
> export DEST_AUDIO_CODEC=lame<br>
> export DEST_VIDEO_CODEC=xvidenc<br>
<br>
> gst-launch \<br>
> $SOURCE_PROTOCOL location=$SOURCE_LOCATION ! queue ! $SOURCE_DEMUXER name=demuxer \<br>
> \<br>
> demuxer. ! queue ! $SOURCE_VIDEO_CODEC ! videorate ! postproc_default ! tee name=raw_video \<br>
> demuxer. ! queue ! $SOURCE_AUDIO_CODEC ! tee name=raw_audio \<br>
> \<br>
> raw_video. ! queue leaky=1 ! $DEST_VIDEO_CODEC ! queue ! $DEST_MUXER name=muxer \<br>
> raw_audio. ! queue leaky=1 ! $DEST_AUDIO_CODEC ! queue ! muxer. \<br>
> \<br>
> raw_video. ! queue ! gconfvideosink \<br>
> raw_audio. ! queue ! gconfaudiosink \<br>
> \<br>
> muxer. ! $DEST_PROTOCOL location=$DEST_LOCATION \<br>
<br>
It works, but resulting file can be seeking to non key-frames, which<br>
obliviously make seeking very unpleasant.<br>
(since muxers are limited to such small number of codecs, can't they<br>
know which frames are key and which not ?)</blockquote><div> </div><div>You just have to fire an EOS event to finalize the file and build the index <br></div></div><br>