2

I have .m2ts video which include a 3d video, with, as consequence, the left and right components. Is there a smart way to split the video in two stimulus (with for example ffmpeg)?

The actual solution is to convert the video in mp4 and then crop it in two. However, I suppose that it is not the smarter solution.

Thanks

3
  • Does this answer your question? Commands to cut videos in half horizontally or vertically, and rejoin them later Commented Feb 10, 2021 at 9:22
  • It is the same solution that I have adopted. However the m2ts videos should contains 2 separate videos of (in my case) full hd resolution Commented Feb 10, 2021 at 9:48
  • AFAIK ffmpeg support decoding and encoding M2TS format Commented Feb 10, 2021 at 10:40

1 Answer 1

3

Split video into 2 streams; both into 1 output file

Use the crop filter:

ffmpeg -i input.m2ts -filter_complex "[0]crop=iw/2:ih:0:0[left];[0]crop=iw/2:ih:ow:0[right]" -map "[left]" -map "[right]" -map 0:a output.mp4 

Split video into 2 separate output files

Use the crop filter:

ffmpeg -i input.m2ts -filter_complex "[0]crop=iw/2:ih:0:0[left];[0]crop=iw/2:ih:ow:0[right]" -map "[left]" -map 0:a left.mp4 -map "[right]" -map 0:a right.mp4 

Convert between stereoscopic formats

Such as above-below, side-by-side, alternating, interleaved, anaglyph, etc.

Use the stereo3d filter and also see FFmpeg Wiki: Stereoscopic.

Sign up to request clarification or add additional context in comments.

1 Comment

Split video into 2 separate output files is surprisingly slow, around 1/3 of realtime. Is that expected? Does it transcode the data? Is that necessary?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.