Try out the below:<br><br>gst-launch-0.10 videotestsrc is-live=true<i><b> num-buffers=100</b></i> ! '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<br>
<br><br>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.<br>
<br><br><br><div class="gmail_quote">On Wed, May 6, 2009 at 12:51 PM, ldac <span dir="ltr"><<a href="mailto:ldacvs@gmail.com" target="_blank">ldacvs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
<br>
Hi and thank you yangsb,<br>
<br>
but even removing the element <i>'h264parse'</i> the problem is still
happening. <br>
<i><br>
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<br>
<br>
vlc testV3.avi<div><br>
[00000418] avi demux error: avi module discarded (invalid file)<br>
[00000418] avformat demux error: av_open_input_stream failed</div></i><br>
<br>
I guess that the problem is related with <i>avimux,</i> because if
I just change in the pipeline below <i>avimux</i> by <i>flutsmux</i>
to generate a <i>.TS</i> file, VLC can open it.<br>
<br>
Any other suggestion?<br>
Thank you very much.<br>
LD.<div><div></div><div><br>
<br>
<br>
<br>
yangsb wrote:
<blockquote type="cite">
<pre>Maybe h264parse is not needed.
Remove it and try again.
Good luck.
ldac wrote:
</pre>
<blockquote type="cite">
<pre>&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. <a href="http://p.sf.net/sfu/kodak-com" target="_blank">http://p.sf.net/sfu/kodak-com</a>
_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<pre> </pre>
</blockquote>
<br>
</div></div></div>
<br>------------------------------------------------------------------------------<br>
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your<br>
production scanning environment may not be a perfect world - but thanks to<br>
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700<br>
Series Scanner you'll get full speed at 300 dpi even with all image<br>
processing features enabled. <a href="http://p.sf.net/sfu/kodak-com" target="_blank">http://p.sf.net/sfu/kodak-com</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>