GStreamer issue on TX2

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

GStreamer issue on TX2

MonkeyWithComputer
Anyone know why the following command does not seem to work?
gst-launch-1.0 udpsrc port=[port_num] ! tee name=t ! queue ! filesink
location=/some/path/test.mpg t. ! queue ! tsparse ! tsdemux ! h264parse !
omxh264dec ! nveglglessink -e

output:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context,
display=(GstEGLDisplay)NULL;
Setting pipeline to PLAYING ...
New clock: GstSystemClock

It just stall here and does not do anything as far as I can tell. There is
an empty test.mpg file created, but it does not get written to. I've written
the gstreamer c code equivalent and it does the same exact thing.

I've tried these and they all work:

gst-launch-1.0 udpsrc port=[port_num] ! filesink
location=/some/path/test.mpg

gst-launch-1.0 udpsrc port=[port_num] ! tsparse ! tsdemux ! queue !
h264parse ! omxh264dec ! nveglglessink -e

gst-launch-1.0 filesrc location=/some/path/test.mpg ! tee name=t ! queue !
filesink location=/some/path/t_test.mpg t. ! queue ! tsparse ! tsdemux !
h264parse ! omxh264dec ! nveglglessink -e
where the test.mpg is the same exact type of file being sent over udp.

gst-launch-1.0 udpsrc port=[port_num] ! tee name=t ! queue ! filesink
location=/some/path/t_test.mpg t. ! queue ! fakesink
This one writes to the file.

Thanks!




--
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: GStreamer issue on TX2

Nicolas Dufresne-5
Le mardi 12 décembre 2017 à 10:35 -0700, MonkeyWithComputer a écrit :
> Anyone know why the following command does not seem to work?
> gst-launch-1.0 udpsrc port=[port_num] ! tee name=t ! queue ! filesink
> location=/some/path/test.mpg t. ! queue ! tsparse ! tsdemux !
> h264parse !
> omxh264dec ! nveglglessink -e

That is because the queue before filesink is full, make it bigger and
it will work.

  1) udpsrc produce 1 buffer
  2) "queue ! filesink" received it and preroll
  3) "queue ! dec" will queue, but not produce anything yet
  4) "queue ! filesink"" stores data
  5) 3) happens again
  ....
  N) "queue ! filesink" the queue is full, we are blocked on pre-roll.

Considering you don't really care if you start writing to disk before
you have reached play, I'd just set async=FALSE on filesink, and safe a
some RAM.

Nicolas

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

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer issue on TX2

MonkeyWithComputer
That worked. Thank you!

I don't see a way to mark your reply as a solution. If it is an option let
me know and ill update it?





--
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: GStreamer issue on TX2

Nicolas Dufresne-5
Le mercredi 13 décembre 2017 à 12:34 -0700, MonkeyWithComputer a écrit :
> That worked. Thank you!
>
> I don't see a way to mark your reply as a solution. If it is an option let
> me know and ill update it?

That's because this is a mailing list. Nable only makes it look like a
forum to you. What you are doing is sending emails to:

  [hidden email]

See https://gstreamer.freedesktop.org/lists/

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

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer issue on TX2

MonkeyWithComputer
Ah I see, well thanks for your help! I included your response on the NVIDIA
dev forum since I had posted the same question there.

-Bogdan



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