[gst-devel] muxing and filesink

Peter Innerhofer peter.innerhofer at student.tugraz.at
Fri Nov 19 12:41:17 CET 2010


On 19.11.2010 11:16, sudarshan bisht wrote:
> One more thing,  I have used videotestsrc instead of v4l2src .
>
> On Fri, Nov 19, 2010 at 8:10 AM, sudarshan bisht
> <bisht.sudarshan at gmail.com <mailto:bisht.sudarshan at gmail.com>> wrote:
>
>     In your first pipeline it should be udpsink , not udpsrc.
>
>
>     Another thing is that you are not properly setting up rtp packets
>     of encoded data.
>     So I think your pipelines should look like this;
>
>
>     gst-launch videotestsrc ! videoscale ! videorate !
>     video/x-raw-yuv,width=640,height=480,framerate=25/1 !
>     ffmpegcolorspace ! ffenc_mpeg4   ! rtpmp4vpay  ! udpsink
>     host=127.0.0.1 port=5000
>
>      
>     gst-launch  udpsrc port=5000   !
>     application/x-rtp,media=video,payload=100,clock-rate=100000000,encoding-name=MP4V-ES 
>     ! rtpmp4vdepay  !
>     video/mpeg,width=640,height=480,framerate=25/1,mpegversion=4,systemstream=false 
>     ! avimux  ! filesink location=test.avi
>
>     And I could  play this file using gst-launch playbin
>     uri=file:///home/maemo/test.avi
>
>
first of all, thanks for your answer.
but this pipeline doesn't solve my problem, vlc cant play the recorded
video. (anyway the problem is not so big, and there are some workarounds) 

i already thought about the rtp payloader,  i could even make a rtp
stream with control ports, but that's quite an overhead and i think it
doesn't solve my problems ether.

could it be a failure of the filesink? does the filesink add codec
details, or make a header? vlc sometimes even thinks the file just has a
audio track...

the reason why i want it to play with vlc is, that i think it is one of
the most common player on all systems and i probably want to edit it
further on
mfg
 peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101119/cdfbc0e8/attachment.htm>


More information about the gstreamer-devel mailing list