Splitmuxsink data re transmit through udpsink

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Splitmuxsink data re transmit through udpsink

arunselvam
Hi

i am trying to transmit h264 and receive the same in client side and i want
to mux using the mp4mux and re transmit through udpsink , but i am facing
issue, if i dump as mp4 files using splitmuxsink its creating properly , but
when i try to retransmit through udpsink then issue comes

mp4 file command - working properly
gst-launch-1.0 -v -e udpsrc address=127.0.0.1 port=5001
caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000,encoding-name=(string)H264" ! rtph264depay ! h264parse
! splitmuxsink location=file-%03d.mp4

udp command
gst-launch-1.0 -v -e udpsrc address=127.0.0.1 port=5004
caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000,encoding-name=(string)H264" ! rtph264depay ! h264parse
! mp4mux ! udpsink host=127.0.0.1 port=9001

the above command not transmitting anything and getting following error
Additional debug info:
gstqtmux.c(2780): gst_qt_mux_start_file ():
/GstPipeline:pipeline0/GstMP4Mux:mp4mux0
/GstPipeline:pipeline0/GstMP4Mux:mp4mux0.GstPad:src: caps = video/quicktime,
variant=(string)iso
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps =
video/quicktime, variant=(string)iso
ERROR: from element /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: Downstream is
not seekable - will not be able to create a playable file

how to resolve this , the same if i use mpegtsmux and stream its working
fine , but i want to transmit in mp4 format



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Splitmuxsink data re transmit through udpsink

Thornton, Keith
Hi, in the first launch you have port 5001, in the second port 5004. Where are you sending to?

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <[hidden email]> Im Auftrag von arunselvam
Gesendet: Dienstag, 30. April 2019 13:59
An: [hidden email]
Betreff: Splitmuxsink data re transmit through udpsink

Hi

i am trying to transmit h264 and receive the same in client side and i want to mux using the mp4mux and re transmit through udpsink , but i am facing issue, if i dump as mp4 files using splitmuxsink its creating properly , but when i try to retransmit through udpsink then issue comes

mp4 file command - working properly
gst-launch-1.0 -v -e udpsrc address=127.0.0.1 port=5001 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000,encoding-name=(string)H264" ! rtph264depay ! h264parse ! splitmuxsink location=file-%03d.mp4

udp command
gst-launch-1.0 -v -e udpsrc address=127.0.0.1 port=5004 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000,encoding-name=(string)H264" ! rtph264depay ! h264parse ! mp4mux ! udpsink host=127.0.0.1 port=9001

the above command not transmitting anything and getting following error Additional debug info:
gstqtmux.c(2780): gst_qt_mux_start_file ():
/GstPipeline:pipeline0/GstMP4Mux:mp4mux0
/GstPipeline:pipeline0/GstMP4Mux:mp4mux0.GstPad:src: caps = video/quicktime, variant=(string)iso
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = video/quicktime, variant=(string)iso
ERROR: from element /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: Downstream is not seekable - will not be able to create a playable file

how to resolve this , the same if i use mpegtsmux and stream its working fine , but i want to transmit in mp4 format



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Splitmuxsink data re transmit through udpsink

Vinod Kesti
In reply to this post by arunselvam
Arun
By default mp4mux is not streamable, it requires sink which is seekable.

Use fragment-duration for fragmented mp4 streaming.







--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AW: Splitmuxsink data re transmit through udpsink

arunselvam
In reply to this post by Thornton, Keith
both ports i am using to receive the data from udpsrc, i am not using to send
the data



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Splitmuxsink data re transmit through udpsink

arunselvam
In reply to this post by Vinod Kesti
hi

i am able to stream by setting mp4mux streamable=true
fragment-duration=1000000 these flags , but i could receive only few frames
and receiver is hanging , in sender side i am getting this error

WARNING: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Attempting
to send a UDP packets larger than maximum size (66988 > 65507)
Additional debug info:
gstmultiudpsink.c(722): gst_multiudpsink_send_messages ():
/GstPipeline:pipeline0/GstUDPSink:udpsink0:
Reason: Error sending message: Message too long



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Splitmuxsink data re transmit through udpsink

Tim Müller
In reply to this post by arunselvam
Hi,

> gst-launch-1.0 -v -e ... ! mp4mux ! udpsink
>
> the above command not transmitting anything and getting following
> error
>
> ERROR: from element /GstPipeline:pipeline0/GstMP4Mux:mp4mux0:
> Downstream is not seekable - will not be able to create a playable
> file
>
> how to resolve this , the same if i use mpegtsmux and stream its
> working fine , but i want to transmit in mp4 format

It doesn't really make sense to send MP4 over UDP. The MP4 container
format is just not made for that. You need to use a streamable format
that's made for transport over a lossy medium such as UDP, like MPEG-TS
or RTP. Or use a different transport.

Cheers
 Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Splitmuxsink data re transmit through udpsink

arunselvam
Hi Tim

my intention is to play the mp4 in chrome browser so i tried this option as
ts is not supported by chrome, it will helpful if there is any other way



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Splitmuxsink data re transmit through udpsink

Nicolas Dufresne-5
In reply to this post by arunselvam


Le mar. 30 avr. 2019 08 h 10, arunselvam <[hidden email]> a écrit :
Hi

i am trying to transmit h264 and receive the same in client side and i want
to mux using the mp4mux and re transmit through udpsink , but i am facing
issue, if i dump as mp4 files using splitmuxsink its creating properly , but
when i try to retransmit through udpsink then issue comes

mp4 file command - working properly
gst-launch-1.0 -v -e udpsrc address=127.0.0.1 port=5001
caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000,encoding-name=(string)H264" ! rtph264depay ! h264parse
! splitmuxsink location=file-%03d.mp4

udp command
gst-launch-1.0 -v -e udpsrc address=127.0.0.1 port=5004
caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000,encoding-name=(string)H264" ! rtph264depay ! h264parse
! mp4mux ! udpsink host=127.0.0.1 port=9001

ISOMP4 is not a streamable format. You simply cannot use it like this. Also, be aware that you need something design for datagram streaming, like RTP or Mpeg TS.


the above command not transmitting anything and getting following error
Additional debug info:
gstqtmux.c(2780): gst_qt_mux_start_file ():
/GstPipeline:pipeline0/GstMP4Mux:mp4mux0
/GstPipeline:pipeline0/GstMP4Mux:mp4mux0.GstPad:src: caps = video/quicktime,
variant=(string)iso
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps =
video/quicktime, variant=(string)iso
ERROR: from element /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: Downstream is
not seekable - will not be able to create a playable file

how to resolve this , the same if i use mpegtsmux and stream its working
fine , but i want to transmit in mp4 format



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel