GStreamer: network pipeline with local video source

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GStreamer: network pipeline with local video source

pier
I want to convert this script, that created a gstreamer pipeline with example video source:

    #!/bin/sh
    gst-launch-1.0 \
      audiotestsrc ! \
        audioresample ! audio/x-raw,channels=1,rate=16000 ! \
        opusenc bitrate=20000 ! \
          rtpopuspay ! udpsink host=127.0.0.1 port=5002 \
      videotestsrc ! \
        video/x-raw,width=320,height=240,framerate=15/1 ! \
        videoscale ! videorate ! videoconvert ! timeoverlay ! \
        vp8enc error-resilient=1 ! \
          rtpvp8pay ! udpsink host=127.0.0.1 port=5004

In a similar gstreamer pipeline, with the difference that i don't want audio/video testsrc, but starting from a local mp4 video in the same directory in which the script has been launched.