Video examples of gst-launch
Nicolas Dufresne
nicolas at ndufresne.ca
Thu Nov 21 14:58:54 UTC 2019
Le jeudi 21 novembre 2019 à 17:32 +0300, Yuriy Rusinov a écrit :
> Hello, Nicolas !
>
> Desktop architecture.
> I correct command line. omxh264enc -> x264enc. But new bug was arisen.
> gst-launch-1.0 -e --gst-debug-level=2 filesrc location=/home/ylr/ship_no_scales.avi ! videoconvert ! x264enc bitrate=2048000 ! h264parse ! rtph264pay mtu=1400 ! udpsink sync=false async=false
> produce
>
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLED ...
> 0:00:00.045919435 29207 0x55661738f4f0 WARN basesrc gstbasesrc.c:3072:gst_base_src_loop:<filesrc0> error: Internal data stream error.
> 0:00:00.045940340 29207 0x55661738f4f0 WARN basesrc gstbasesrc.c:3072:gst_base_src_loop:<filesrc0> error: streaming stopped, reason not-negotiated (-4)
No negotiated, means two of the elements you tried to connect are
incompatible. In this case it quite clear, you try to send AVI to
videoconvert. AVI files need to be demuxed, as they may contain
multiple streams. Then what comes next depends on the specific AVI
file. Again, there is decodebin to help you demux and decode with less
programming.
p.s. try to start with tune=zerolatency on x264enc for RTP streaming.
> ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data stream error.
> Additional debug info:
> gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
> streaming stopped, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> I never worked with gstreamer before and all that I find in google does not help.
>
>
>
> On Thu, Nov 21, 2019 at 4:46 PM Nicolas Dufresne <nicolas at ndufresne.ca> wrote:
> >
> > Le jeu. 21 nov. 2019 03 h 25, Yuriy Rusinov <yrusinov at gmail.com> a écrit :
> > > Sorry, Ubuntu 19.10
> >
> > Which architecture? OMX is currently only used on older Raspberry Pi, Xilinx ZynqMP and NVidia Tegra séries. Try decodebin when unsure.
> >
> > > On Thu, Nov 21, 2019 at 10:44 AM Yuriy Rusinov <yrusinov at gmail.com> wrote:
> > > > Hello, colleagues !
> > > >
> > > > I try to launch my video with gst-launch using examples from documentation.
> > > > If I try to
> > > > gst-launch-1.0 filesrc location=my_file.avi ! videoconvert ! omxh264enc low-latency=1 control-rate=2 bitrate=4000000 insert-sps-pps=true ! h264parse ! rtph264pay mtu=1400 ! udpsink sync=false async=false
> > > > then I receive an error
> > > > erroneous pipeline: no element omxh264enc
> > > > despite of all plugins of gstreamer were set. System Ubuntu linux 9.2. Which way I have to solve it ?
> > > >
> > > >
> > > > --
> > > > Best regards,
> > > > Sincerely yours,
> > > > Yuriy Rusinov.
> > >
> > >
> > > --
> > > Best regards,
> > > Sincerely yours,
> > > Yuriy Rusinov.
> > > _______________________________________________
> > > gstreamer-devel mailing list
> > > gstreamer-devel at lists.freedesktop.org
> > > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191121/fefb2061/attachment.sig>
More information about the gstreamer-devel
mailing list