Using ffmpeg to scale app preview videos for the AppStore

后端 未结 1 1875
半阙折子戏
半阙折子戏 2021-01-14 10:12

I\'m generating an app preview video to send to the AppStore. Depending on the device type, the AppStore requires certain video resolutions.

I have a main video, wit

相关标签:
1条回答
  • 2021-01-14 10:54

    FFmpeg's scale filter will adjust the sample aspect ratio of the video so that the original display ratio is preserved. Apple, apparently, computes the new effective display resolution using that SAR.

    Insert a setsar filter to reset the SAR to 1, so that the display resolution is the same as the stored resolution.

    ffmpeg -i video_1920_1080.mp4 -vf scale=1920:886,setsar=1 -c:a copy video_1920_886.mp4
    
    0 讨论(0)
提交回复
热议问题