To play a 3D SBS (Side-by-Side) video from a URL using ffplay and merge the two split sides into one stereo video stream, you can use the following command:

ffplay -i <URL> -vf "[in]split[left][tmp];[tmp]crop=iw/2:ih:0:0[right];[left]pad=iw*2:ih:0:0[left];[left][right]hstack"

Here's a breakdown of the flags and filters used in the command:

  • -i <URL>: Specifies the input video URL.
  • -vf: Applies a video filter chain to modify the video stream.
  • "[in]split[left][tmp];": Splits the input video stream into two parts, storing the left side in [left] and a temporary copy in [tmp].
  • [tmp]crop=iw/2:ih:0:0[right];: Crops the temporary copy ([tmp]) to keep only the right side of the video.
  • [left]pad=iw*2:ih:0:0[left];: Pads the left side ([left]) to double its width, creating space for the right side to be merged.
  • [left][right]hstack: Horizontally stacks the left and right sides together, merging them into one stereo video stream.

Make sure to replace <URL> with the actual URL of your 3D SBS video


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

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