How to convert variable buffer size to fixed size

Marc Rechte mrechte at studelec-sa.com
Thu Mar 31 05:30:50 UTC 2016


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.
>
> https://github.com/AVnu/Open-AVB/issues
>
>>
>> Regards
>>
>>
>> On Wed, Mar 30, 2016 at 6:01 PM, Marc Rechte <mrechte at studelec-sa.com 
>> <mailto:mrechte at studelec-sa.com>> 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
>>> gstreamer-devel at lists.freedesktop.org 
>>> <mailto:gstreamer-devel at lists.freedesktop.org>
>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org 
>> <mailto: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

-- 


  Marc Rechte


    Ingénieur Informatique Industrielle
    /Industrial IT Engineer/


    Tél : +33 (0)5 61 41 31 21
    mrechte at studelec-sa.com

www.studelec-sa.com <http://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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160331/c6631035/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: studsig.png
Type: image/png
Size: 5961 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160331/c6631035/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3837 bytes
Desc: Signature cryptographique S/MIME
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160331/c6631035/attachment-0001.bin>


More information about the gstreamer-devel mailing list