Rotate and append videos with mp4parser

放肆的年华 提交于 2019-12-14 01:48:37

问题


I would like to append several video files from the camera through mp4parser. Unfortunately, in the same fragment, despite the fact that I try to change the OrientationHint of the media recorder when changing camera, only the first one seems to work (ie. if I start with the front camera, the videos with the back camera are reversed and vice versa).

To solve this problem, I tried to rotate the video that are in the wrong direction and that works (with the method of setMatrix mp4parser, the new files are in good direction). But when I want to append the files, (all in the right direction) I get the same result as if I had not rotated the videos, as if it could have only one orientation videos for my final component video.

Do you have a solution for this?

Thanks

来源:https://stackoverflow.com/questions/23764889/rotate-and-append-videos-with-mp4parser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!