We can also combine multiple transpose filters to change the orientation of the video. We’ll get this output when playing the output_0.mp4 video: This is the default preset if we don’t pass any values to transpose. This will change the video orientation to portrait. We’re passing the value 0 to the transpose filter which rotates the video counterclockwise and vertically. Video:1040kB audio:229kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.406613% but nothing worked.$ ffmpeg -i big_buck_bunny_720p_1mb.mp4 -vf "transpose=0" output_0.mp4 Is not FFmpeg able to produce a standard MPEG4 file, or what the hell is this about? I've tried all the alternatives presented, such as "-fflags +genpts", "-fflags genpts", "-movflags faststart", "-movflags +faststart", "pix_fmt=yuv420p" etc. Windows Explorer does not even show a video thumbnail, so the video file is broken by Windows. However, Windows Media Player or Samsung TV does not play it. This works very well in VLC, for example. Since all my media players does not support rotate-knowledge, I have turned the video over again, and at the same time slightly decreased the resolution of command "ffmpeg -i "input.mp4" -vf "scale=720:1280,transpose=0,transpose=0" -c:a copy "output.mp4"" I have this kind of video recorded in some Samsung Galaxy phone (info from: "ffprobe -v error -show_format -show_streams filename.mp4") Ĭodec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10Ĭodec_long_name=AAC (Advanced Audio Coding)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |