Video orientation change

bojan74 bojan.flander at gmail.com
Thu Jul 23 06:41:21 UTC 2020


My pipeline is something like:
appsrc->rtpjitterbbuffer->rtpvp8depay->vp8dec->timeoverlay->videoconvert->vp8enc->webmmux->filesink

So I am creating webm video file with time on it from previously saved rtp
packets of vp8 video.
Mostly everything works ok.

But now I noticed a problem in case if user on mobile phone change phone
orientation (rotate phone) during video call - for example from portrait to
landscape. In this case new caps are generated in vp8 (width and height are
switched) and webmmux report error:


>From this moment further creation of webm stopped.

Can you give me any advice what it is possible to do in such situation?

I was thinking if it is possible for example at least to detect such
situation and then to rotate video with videoflip to have same caps as on
start. Ok video will maybe look strange but better this than to have
nothing.

Or maybe to stop video in such situation and started new track in webm with
different caps if this is possible?

Thanks in advance!





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list