Automatically rotate webrtc stream

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

Automatically rotate webrtc stream

Anton Kuzmin

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.

 

 

 


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

Re: Automatically rotate webrtc stream

Nicolas Dufresne-5
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
> [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 (201 bytes) Download Attachment