Automatically rotate webrtc stream

Nicolas Dufresne nicolas at ndufresne.ca
Mon Aug 27 14:52:43 UTC 2018


Le lundi 27 août 2018 à 01:34 +0000, Anton Kuzmin a écrit :
> Hi all,
>  
> At the moment, I am already using gstreamer to record webrtc video
> stream to filesystem:
> dataurisrc uri="data:text/plain;base64,<base64StringHere>" sdpdemux
> latency=10000 timeout=0 ! parsebin ! matroskamux streamable=false !
> filesink location=<outputPath>
>  
> Now, I am trying to see if it’s feasible to support different video
> orientations. At the moment, it’s always landscape.
>  
> I found from the documentation that
> videoflip video-direction=auto
> can automatically flip the video based on the orientation tag in the
> video
>  
> However, I cannot get it to work.
>  
> dataurisrc uri="data:text/plain;base64,<base64StringHere>" sdpdemux
> latency=10000 timeout=0 ! decodebin ! videoflip video-direction=auto
> ! matroskamux streamable=false ! filesink location=<outputPath>
>  
> Would be awesome if anybody could drop a hint or provide a solution
> to this problem.

You would need a stream that contains the orientation tag in the first
place. Have you verified that this tag is present in your stream ?

>  
>  
>  
> _______________________________________________
> 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/20180827/b21ad083/attachment.sig>


More information about the gstreamer-devel mailing list