MP4 streaming problem
Totoketchup
anthony.damato at hotmail.fr
Sun Mar 29 11:06:36 PDT 2015
I encounter some problems with gstreamer to stream a .mp4 file in localhost.
Here is my server :
gst-launch -v filesrc location=video.mp4 ! qtdemux ! queue ! h264parse
! rtph264pay ! udpsink host=127.0.0.1 port=1234
And here my client :
gst-launch -v udpsrc port=1234 ! application/x-rtp, media=video,
clock-rate=90000, encoding-name=H264, payload=96, ssrc=2545360752,
clock-base=3639988718,seqnum-base=15733 ! rtph264depay ! queue ! decodebin2
! xvimagesink sync=false
The problem is that my client is blocked..
Here is the console for the client :
Setting pipeline to PAUSED
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264, payload=(int)96, ssrc=(int)-1749606544,
clock-base=(int)-654978578, seqnum-base=(int)15733
/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps =
video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal
/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264, payload=(int)96, ssrc=(int)-1749606544,
clock-base=(int)-654978578, seqnum-base=(int)15733
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-h264,
stream-format=(string)byte-stream, alignment=(string)nal
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-h264,
stream-format=(string)byte-stream, alignment=(string)nal
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:src:
caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)nal
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:sink:
caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)nal
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstGhostPad:sink: caps
= video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstGhostPad:sink.GstProxyPad:proxypad0:
caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)nal
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstH264Parse:h264parse0.GstPad:src:
caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)nal, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstH264Parse:h264parse0.GstPad:sink:
caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)nal
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstCapsFilter:capsfilter1.GstPad:src:
caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)nal, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstCapsFilter:capsfilter1.GstPad:sink:
caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)nal, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/ffdec_h264:ffdec_h2640.GstPad:sink:
caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)nal, parsed=(boolean)true
At the end, nothing append and I have no video ( the
And here for the server :
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-h264,
stream-format=(string)avc, alignment=(string)au, level=(string)3,
profile=(string)constrained-baseline,
codec_data=(buffer)0142e01eff0100152742e01ea9181405ff2e00d418041adb0ad7bdf01001000428de09c8,
width=(int)640, height=(int)360, framerate=(fraction)24/1,
pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-h264,
stream-format=(string)avc, alignment=(string)au, level=(string)3,
profile=(string)constrained-baseline,
codec_data=(buffer)0142e01eff0100152742e01ea9181405ff2e00d418041adb0ad7bdf01001000428de09c8,
width=(int)640, height=(int)360, framerate=(fraction)24/1,
pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =
video/x-h264, stream-format=(string)avc, alignment=(string)au,
level=(string)3, profile=(string)constrained-baseline,
codec_data=(buffer)0142e01effe100152742e01ea9181405ff2e00d418041adb0ad7bdf01001000428de09c8,
width=(int)640, height=(int)360, framerate=(fraction)24/1,
pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps =
video/x-h264, stream-format=(string)avc, alignment=(string)au,
level=(string)3, profile=(string)constrained-baseline,
codec_data=(buffer)0142e01eff0100152742e01ea9181405ff2e00d418041adb0ad7bdf01001000428de09c8,
width=(int)640, height=(int)360, framerate=(fraction)24/1,
pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src: caps =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264,
sprop-parameter-sets=(string)\"J0LgHqkYFAX/LgDUGAQa2wrXvfAQ\\,KN4JyA\\=\\=\",
payload=(int)96, ssrc=(uint)3404941693, clock-base=(uint)4256886040,
seqnum-base=(uint)10066
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:sink: caps =
video/x-h264, stream-format=(string)avc, alignment=(string)au,
level=(string)3, profile=(string)constrained-baseline,
codec_data=(buffer)0142e01effe100152742e01ea9181405ff2e00d418041adb0ad7bdf01001000428de09c8,
width=(int)640, height=(int)360, framerate=(fraction)24/1,
pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: timestamp = 4256886040
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: seqnum = 10066
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264,
sprop-parameter-sets=(string)\"J0LgHqkYFAX/LgDUGAQa2wrXvfAQ\\,KN4JyA\\=\\=\",
payload=(int)96, ssrc=(uint)3404941693, clock-base=(uint)4256886040,
seqnum-base=(uint)10066
Do you see where is the problem ?
Thanks ;)
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/MP4-streaming-problem-tp4671377.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list