videoflip: Automatic rotation does not work for a particular MJPEG stream
Steps:
- Checkout the project at https://github.com/appium/WebDriverAgent/tree/master
- Open it in Xcode, select WebDriverAgentRunner schema, select any available iPad Simulator device, then Product->Test
- After the local MJPEG server is ready and running (it is visible in the logs, could also be checked from a browser by navigating http://127.0.0.1:9100) start the following GStreamer pipeline:
gst-launch-1.0 souphttpsrc -e do-timestamps=true is-live=true timeout=0 location=http://127.0.0.1:9100 ! multipartdemux ! jpegparse ! queue ! jpegdec ! videoflip method=automatic ! videorate ! videoscale ! video/x-raw,width=1920,height=1920,pixel-aspect-ratio=1/1 ! autovideosink
- While the pipeline is running try to change the Simulator orientation from portrait to landscape and back
Actual result: The video generated by the above pipeline still keeps the initial orientation, only the content is rotated
Expected result: I expect video frames to be aligned properly according to the actual jpeg pictures orientation tag supplied by the above mjpeg server, so the visual bottom of the content on the simulator screen is aligned to the bottom of the video frame.
It is important to mention that JPEG pictures generated by the above mjpeg server are all in portrait mode, however they all contain a valid orientation tag in their EXIF metadata.