[gst-devel] AVI format error

Jyoti jyoti.d at allaboutif.com
Wed May 6 10:43:21 CEST 2009


Try out the below:

gst-launch-0.10 videotestsrc is-live=true* num-buffers=100* !
'video/x-raw-yuv,format=(fourcc)I420,width=640,height=480,framerate=(fraction)25/1'
! x264enc ! queue ! mux. avimux name=mux ! filesink location=testV3.avi


When you are recording from live pipelines and you stop gst-launch with
ctrl+c, it simply shuts the pipeline down, no EOS is sent. Some muxers need
to send data after they receive EOS to finish the file properly, if no EOS
is received the file ends up in an unconsistent state.



On Wed, May 6, 2009 at 12:51 PM, ldac <ldacvs at gmail.com> wrote:

>
>     Hi and thank you yangsb,
>
> but even removing the element *'h264parse'* the problem is still
> happening.
> *
> gst-launch-0.10 videotestsrc is-live=true !
> 'video/x-raw-yuv,format=(fourcc)I420,width=640,height=480,framerate=(fraction)25/1'
> ! x264enc ! queue ! mux. avimux name=mux ! filesink location=testV3.avi
>
> vlc testV3.avi
> [00000418] avi demux error: avi module discarded (invalid file)
> [00000418] avformat demux error: av_open_input_stream failed
> *
>
>     I guess that the problem is related with *avimux,* because if I just
> change in the pipeline below *avimux* by *flutsmux* to generate a *.TS*file, VLC can open it.
>
>     Any other suggestion?
>     Thank you very much.
>     LD.
>
>
>
>
> yangsb wrote:
>
> Maybe h264parse is not needed.
> Remove it and try again.
> Good luck.
>
>
> ldac wrote:
>
>
>  &nbsp;&nbsp;&nbsp; Hi all.
>
> &nbsp;&nbsp;&nbsp; I am trying to generate an AVI file with this pipeline:
>
> gst-launch-0.10 videotestsrc is-live=true ! \
> 'video/x-raw-yuv,format=(fourcc)I420,width=640,height=480,framerate=(fraction)25/1'
> ! \
> x264enc ! h264parse ! queue ! mux. \
> audiotestsrc is-live=true ! audioconvert !
> \&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &gt;&gt; optional
> 'audio/x-raw-int,rate=44100,channels=2' ! lame ! queue ! mux.
> \&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &gt;&gt; optional
> avimux name=mux ! filesink location=test.avi
>
> The file that I get can be played using ffplay (for instance), but it
> can not be played using VLC or Windows Media Player. In the case of
> VLC, this error appears:
>
> [00000418] avi demux error: avi module discarded (invalid file)
> [00000418] avformat demux error: av_open_input_stream failed
>
> &nbsp;&nbsp;&nbsp; I have tried to use a MPEG4 encoder for the video, and
> even
> removing the audio part of the pipeline in blue colour, but it happens
> the same.
>
> &nbsp;&nbsp;&nbsp; Any hint? Is an AVIMUX problem? Is there some
> alternative (other
> AVI muxer)? Why ffplay plays the file?
>
> &nbsp;&nbsp;&nbsp; THANKS in advance!
> &nbsp;&nbsp;&nbsp; All the best.
> &nbsp;&nbsp;&nbsp; LD.
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> gstreamer-devel mailing listgstreamer-devel at lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090506/1530ccbc/attachment.htm>


More information about the gstreamer-devel mailing list