How to convert variable buffer size to fixed size

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

How to convert variable buffer size to fixed size

Marc Rechté
Hello,

Testing the Open-AVB gstreamer plugin (avbsink), I am trying to stream
the output of a UVC camera to an ethernet device, using this command:

# gst-launch-1.0 -e uvch264src device=/dev/video0 name=zoro
auto-start=true  zoro.vidsrc !
video/x-h264,width=1280,height=720,framerate=30/1 ! tee name=t ! queue !
avdec_h264 ! xvimagesink sync=false t. ! queue ! avbsink interface=enp2s0

The problem is that avbsink expects a fixed blocksize of 1024 bytes. The
uvch264src has no blocksize property.

Please would you have any suggestion to make sure blocks passed to
avbsink have a fixed size ?

Thanks



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

Re: How to convert variable buffer size to fixed size

Peter Maersk-Moller-2
The modules rndbuffersize and chopmydata can chop a stream of bytes into a fixed buffer size stream although I don't know if your protocol needs the chunks to be framed like RTP over TCP where a length specifier is needed.

Regards


On Wed, Mar 30, 2016 at 6:01 PM, Marc Rechte <[hidden email]> wrote:
Hello,

Testing the Open-AVB gstreamer plugin (avbsink), I am trying to stream the output of a UVC camera to an ethernet device, using this command:

# gst-launch-1.0 -e uvch264src device=/dev/video0 name=zoro auto-start=true  zoro.vidsrc ! video/x-h264,width=1280,height=720,framerate=30/1 ! tee name=t ! queue ! avdec_h264 ! xvimagesink sync=false t. ! queue ! avbsink interface=enp2s0

The problem is that avbsink expects a fixed blocksize of 1024 bytes. The uvch264src has no blocksize property.

Please would you have any suggestion to make sure blocks passed to avbsink have a fixed size ?

Thanks



_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: How to convert variable buffer size to fixed size

Nicolas Dufresne-4
Le mercredi 30 mars 2016 à 18:27 +0200, Peter Maersk-Moller a écrit :
The modules rndbuffersize and chopmydata can chop a stream of bytes into a fixed buffer size stream although I don't know if your protocol needs the chunks to be framed like RTP over TCP where a length specifier is needed.

Also, arguably, avbsink element should handle this trivial transformation by itself.  Please report the issue to the author. This is a third party plugin.



Regards


On Wed, Mar 30, 2016 at 6:01 PM, Marc Rechte <[hidden email]> wrote:
Hello,

Testing the Open-AVB gstreamer plugin (avbsink), I am trying to stream the output of a UVC camera to an ethernet device, using this command:

# gst-launch-1.0 -e uvch264src device=/dev/video0 name=zoro auto-start=true  zoro.vidsrc ! video/x-h264,width=1280,height=720,framerate=30/1 ! tee name=t ! queue ! avdec_h264 ! xvimagesink sync=false t. ! queue ! avbsink interface=enp2s0

The problem is that avbsink expects a fixed blocksize of 1024 bytes. The uvch264src has no blocksize property.

Please would you have any suggestion to make sure blocks passed to avbsink have a fixed size ?

Thanks



_______________________________________________
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

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

Re: How to convert variable buffer size to fixed size

Marc Rechté
Thanks a  lot for the suggestion, I posted an issue to the Open-AVB project.

Would you suggest some plugin to study in order to temporarily implement this missing conversion myself ?

Marc

Le 30/03/2016 19:06, Nicolas Dufresne a écrit :
Le mercredi 30 mars 2016 à 18:27 +0200, Peter Maersk-Moller a écrit :
The modules rndbuffersize and chopmydata can chop a stream of bytes into a fixed buffer size stream although I don't know if your protocol needs the chunks to be framed like RTP over TCP where a length specifier is needed.

Also, arguably, avbsink element should handle this trivial transformation by itself.  Please report the issue to the author. This is a third party plugin.



Regards


On Wed, Mar 30, 2016 at 6:01 PM, Marc Rechte <[hidden email]> wrote:
Hello,

Testing the Open-AVB gstreamer plugin (avbsink), I am trying to stream the output of a UVC camera to an ethernet device, using this command:

# gst-launch-1.0 -e uvch264src device=/dev/video0 name=zoro auto-start=true  zoro.vidsrc ! video/x-h264,width=1280,height=720,framerate=30/1 ! tee name=t ! queue ! avdec_h264 ! xvimagesink sync=false t. ! queue ! avbsink interface=enp2s0

The problem is that avbsink expects a fixed blocksize of 1024 bytes. The uvch264src has no blocksize property.

Please would you have any suggestion to make sure blocks passed to avbsink have a fixed size ?

Thanks



_______________________________________________
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

--

Marc Rechte

Ingénieur Informatique Industrielle
Industrial IT Engineer

Tél : +33 (0)5 61 41 31 21
[hidden email]

www.studelec-sa.com
Logo
                STUDELEC

Siège social : 19 rue Paulin Talabot - 31100 TOULOUSE - FRANCE
Tél : +33 (0)5 61 41 31 21 Fax : +33 (0)5 61 41 49 20

Agence PACA : 1495 rd 6007 - Immeuble Alexandra - 06270 VILLENEUVE LOUBET - FRANCE
Tél : +33 (0)4 93 22 60 13

Pour des raisons légales et de sécurité, les informations contenues dans ce message ne sont pas juridiquement contraignantes. Sur demande, nous vous adresserons une confirmation écrite nous engageant. Les informations contenues dans ce message électronique ont un caractère strictement confidentiel et sont exclusivement destinées à la personne à laquelle il est adressé. Toute divulgation, utilisation, diffusion ou reproduction de tout ou partie de ce message, ou des informations qu'il contient, est interdite. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de détruire ce message.
For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Afin de contribuer au respect de l'environnement, merci de n'imprimer ce courriel que si nécessaire.
Please don't print this e-mail unless you really need to.


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

smime.p7s (5K) Download Attachment