stream a mp4 file to udpsink again and again

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

stream a mp4 file to udpsink again and again

kk
Hi experts:
OS: Ubuntu 16.04.6 LTS
Gstreamer Version: GStreamer 1.8.3

My pipeline:
    gst-launch-1.0 -v filesrc location=test.mp4 ! decodebin ! x264enc ! rtph264pay ! udpsink host=224.1.1.1

What I want:
    I want to send the mp4 file again and again, does gstreamer have some option like ffmpeg's '-stream_loop' options?

Thanks!
//dengke

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

AW: stream a mp4 file to udpsink again and again

BGraaf

Use bash and run something like:

 

#!/bin/bash

while :

do

      gst-launch-1.0 -v filesrc location=test.mp4 ! decodebin ! x264enc ! rtph264pay ! udpsink host=224.1.1.1    

done

 

Bernhard

 


Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von kk
Gesendet: Freitag, 16. August 2019 09:26
An: [hidden email]
Betreff: stream a mp4 file to udpsink again and again

 

Hi experts:

OS: Ubuntu 16.04.6 LTS

Gstreamer Version: GStreamer 1.8.3

 

My pipeline:

    gst-launch-1.0 -v filesrc location=test.mp4 ! decodebin ! x264enc ! rtph264pay ! udpsink host=224.1.1.1

 

What I want:

    I want to send the mp4 file again and again, does gstreamer have some option like ffmpeg's '-stream_loop' options?

 

Thanks!

//dengke


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

Re: stream a mp4 file to udpsink again and again

Jack
In reply to this post by kk
Did you try multifilesrc instead of filesrc. There is a loop property
with this element that can help.
++

Jack



Le 16/08/2019 à 09:26, kk a écrit :

> Hi experts:
> OS: Ubuntu 16.04.6 LTS
> Gstreamer Version: GStreamer 1.8.3
>
> My pipeline:
>     gst-launch-1.0 -v filesrc location=test.mp4 ! decodebin ! x264enc !
> rtph264pay ! udpsink host=224.1.1.1
>
> What I want:
>     I want to send the mp4 file again and again, does gstreamer have
> some option like ffmpeg's '-stream_loop' options?
>
> Thanks!
> //dengke
>
> _______________________________________________
> 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
kk
Reply | Threaded
Open this post in threaded view
|

Re: stream a mp4 file to udpsink again and again

kk
Pipeline:
    gst-launch-1.0 -v multifilesrc loop=true location=easy_c.mp4 ! qtdemux ! h264parse ! rtph264pay ! udpsink host=224.1.1.1

ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: GStreamer encountered a general stream error.
Additional debug info:
qtdemux.c(6370): gst_qtdemux_process_adapter (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
no 'moov' atom within the first 10 MB



On Sun, Aug 18, 2019 at 12:40 AM Jack <[hidden email]> wrote:
Did you try multifilesrc instead of filesrc. There is a loop property
with this element that can help.
++

Jack



Le 16/08/2019 à 09:26, kk a écrit :
> Hi experts:
> OS: Ubuntu 16.04.6 LTS
> Gstreamer Version: GStreamer 1.8.3
>
> My pipeline:
>     gst-launch-1.0 -v filesrc location=test.mp4 ! decodebin ! x264enc !
> rtph264pay ! udpsink host=224.1.1.1
>
> What I want:
>     I want to send the mp4 file again and again, does gstreamer have
> some option like ffmpeg's '-stream_loop' options?
>
> Thanks!
> //dengke
>
> _______________________________________________
> 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

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

Re: stream a mp4 file to udpsink again and again

kk
In reply to this post by BGraaf
Thanks, good idea!

On Sat, Aug 17, 2019 at 11:10 PM Bernhard Graaf <[hidden email]> wrote:

Use bash and run something like:

 

#!/bin/bash

while :

do

      gst-launch-1.0 -v filesrc location=test.mp4 ! decodebin ! x264enc ! rtph264pay ! udpsink host=224.1.1.1    

done

 

Bernhard

 


Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von kk
Gesendet: Freitag, 16. August 2019 09:26
An: [hidden email]
Betreff: stream a mp4 file to udpsink again and again

 

Hi experts:

OS: Ubuntu 16.04.6 LTS

Gstreamer Version: GStreamer 1.8.3

 

My pipeline:

    gst-launch-1.0 -v filesrc location=test.mp4 ! decodebin ! x264enc ! rtph264pay ! udpsink host=224.1.1.1

 

What I want:

    I want to send the mp4 file again and again, does gstreamer have some option like ffmpeg's '-stream_loop' options?

 

Thanks!

//dengke

_______________________________________________
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