To play a VR 3D SBS (Side-by-Side) video stream using ffplay without splitting it on two sides, you can use the following command:

ffplay -fflags +genpts -i input_file -vf 'split[a][b];[a]crop=iw/2:ih:0:0[left];[b]crop=iw/2:ih:iw/2:0[right];[left][right]hstack'

Make sure to replace 'input_file' with the path to your actual video file.

Explanation of the command:

  • '-fflags +genpts' ensures proper synchronization of audio and video.
  • '-i input_file' specifies the input video file.
  • '-vf 'split[a][b];[a]crop=iw/2:ih:0:0[left];[b]crop=iw/2:ih:iw/2:0[right];[left][right]hstack'' is the filtergraph used for video processing.
    • 'split[a][b]' splits the video into two streams.
    • '[a]crop=iw/2:ih:0:0[left]' crops the left half of the video.
    • '[b]crop=iw/2:ih:iw/2:0[right]' crops the right half of the video.
    • '[left][right]hstack' horizontally stacks the left and right cropped videos.

This command will play the VR 3D SBS video stream in a single display without splitting it on two sides.


原文地址: https://www.cveoy.top/t/topic/o9w7 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录