(not audio)rtspsrc connect live555 , then I put livestream to save avi video file,but there is not audio .

Sérgio Agostinho sergio.r.agostinho at gmail.com
Thu Dec 18 07:31:41 PST 2014


On the first question:
There's nothing in your pipeline sending an audio channel into the avimux.
h264 is video only. To add audio you'll need something like (changes in
bold)

GST_DEBUG="*:2" gst-launch-0.10 -v -e rtspsrc debug=1 location=rtsp://
192.168.1.4:554/vs1 ! gstrtpjitterbuffer ! rtph264depay ! h264parse !
capsfilter caps="video/x-h264,width=1280,height=720,framerate=(fraction)25/1"
! avimux *name=mux* ! filesink location=foo.avi \
 *<some_audio_src_element_or_chain_of_elements> ! mux. *

For live reproduction:
gst-launch-0.10 -e rtspsrc location=rtsp://192.168.1.4:554/vs1 ! rtph264depay
! h264parse ! capsfilter caps="video/x-h264,width=1280,
height=800,framerate=(fraction)25/1" ! ffdec_h264 ! ffmpegcolorspace !
glimagesink  *<some_audio_src_element_or_chain_of_elements>** !
autoaudiosink*

2014-12-18 16:22 GMT+01:00 Sérgio Agostinho <sergio.r.agostinho at gmail.com>:
>
> On the second question:
>
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-dataaccess.html#section-preroll-probes
>
>
>
> 2014-12-18 15:00 GMT+01:00 zhang007z <zhang007z at gmail.com>:
>>
>> First problem:
>> I taken this command as follow: (but there is not audio.)
>> //----------------------------------save video file by using
>> command---------------------------//
>> GST_DEBUG="*:2" gst-launch-0.10 -v -e rtspsrc debug=1
>> location=rtsp://192.168.1.4:554/vs1 ! gstrtpjitterbuffer ! rtph264depay !
>> h264parse ! capsfilter
>> caps="video/x-h264,width=1280,height=720,framerate=(fraction)25/1" !
>> avimux
>> ! filesink location=foo.avi
>>
>> //--------------------------------------------------------------------------------------------//
>> by using I may real-time view video as follow:(but there is not audio.)
>> //---------------------------------real-time view command by using
>> command------------------//
>> gst-launch-0.10 -e rtspsrc location=rtsp://192.168.1.4:554/vs1 !
>> rtph264depay ! h264parse ! capsfilter
>> caps="video/x-h264,width=1280,height=800,framerate=(fraction)25/1" !
>> ffdec_h264 ! ffmpegcolorspace ! glimagesink
>>
>> //--------------------------------------------------------------------------------------------//
>> above two commands could save avi video file and view at real-time, but
>> there is not audio.
>> how to save audio to avi video file ? or  is there audio when I view at
>> real-time?
>>
>> Second problem:
>> For example: Avi video file record 60 minutes of file at actual time,I
>> want
>> to play video section after 23 minutes of video file, how to implement
>> this
>> function pipeline by using gstreamer?
>>
>> on this two problem ,please anybody have any idea for me. thank you for
>> helping me.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/not-audio-rtspsrc-connect-live555-then-I-put-livestream-to-save-avi-video-file-but-there-is-not-audi-tp4669963.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141218/7908916d/attachment.html>


More information about the gstreamer-devel mailing list