gstreamer custom element

Duchassin Frederic duchassin at sefram.fr
Tue May 15 09:26:03 UTC 2018


If somebody can have a look at debug file in order to give me a clue.

2 zip archive containing dot files : 

-          The first is a pipeline from a file and is working.

-          The second is a live stream from udp and is not working.

 

 

BR

 

Frederic

 

 

 

De : gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org]
De la part de Duchassin Frederic
Envoyé : mardi 15 mai 2018 10:47
À : 'Discussion of the development of and with GStreamer'
Objet : RE: gstreamer custom element

 

Hello,

 

I try to add pts and dts to the output buffer
 but nothing more.

It always doesn’t work on live stream whereas it work when I use an
intermediate file.

Help me please,  it’s going to make me crazy !!!!

 

Frederic

 

 

De : gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org]
De la part de Duchassin Frédéric
Envoyé : lundi 14 mai 2018 14:25
À : 'Discussion of the development of and with GStreamer'
Objet : gstreamer custom element

 

Hello,

 

I try to make my own element called “t2mi” : this element take a t2-mi
stream as input as output an mpeg2-ts stream.

So using these pipeline :

 

(this first pipeline create a file called out.ts which contain valid
mpeg2-ts)

gst-launch-1.0 -v udpsrc address=239.0.0.1 port=1234 buffer-size=300000000
do-timestamp=false ! queue ! t2mi pid=64 ! queue ! filesink
location=/home/t2misample/out.ts

 

+

 

(this second pipeline read the out.ts file and display the decoded video)

gst-launch-1.0 -v filesrc location=/home/t2misample/out.ts blocksize=564 !
tsdemux name=d ! multiqueue name=q use-buffering=1 d. ! q. q.  ! queue
max-size-bytes=100000000 max-size-time=0 ! vpudec ! queue
max-size-bytes=100000000 max-size-time=0 ! imxipuvideosink q. ! queue
max-size-bytes=100000000 max-size-time=0 ! decodebin ! queue
max-size-bytes=100000000 max-size-time=0 ! audioconvert ! volume volume=10 !
alsasink

 

 

 

So my element seems working but when I use the following pipeline, it
doesn’t work anymore  :

gst-launch-1.0 -v udpsrc address=239.0.0.1 port=1234 buffer-size=300000000
do-timestamp=false ! queue ! t2mi pid=64 ! queue ! tsdemux name=d !
multiqueue name=q use-buffering=1 d. ! q. q.  ! queue
max-size-bytes=100000000 max-size-time=0 ! vpudec ! queue
max-size-bytes=100000000 max-size-time=0 ! imxipuvideosink q. ! queue
max-size-bytes=100000000 max-size-time=0 ! decodebin ! queue
max-size-bytes=100000000 max-size-time=0 ! audioconvert ! volume volume=10 !
alsasink

 

So when I use a filesink + filesrc and 2 pipeline, it’s working. But when I
use only one pipeline it doesn’t work.

So my question is why ?

 

Thanks in advance for your help.

 

Frederic

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180515/eecd2415/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t2mi file_WORKING.zip
Type: application/x-zip-compressed
Size: 12534 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180515/eecd2415/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t2mi udp_NOT WORKING.zip
Type: application/x-zip-compressed
Size: 9613 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180515/eecd2415/attachment-0003.bin>


More information about the gstreamer-devel mailing list