raldone01 / 3D_mvc_to_sbs_mkv

Converts MVC (multi view encoded) mkv files to sbs mkv files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert mvc to sbs mkv

This docker container can convert frame-packed (mvc) mkv files to side-by-side (sbs) mkv files. All audio and subtitle tracks are copied to the output file.

Makemkv should output two streams one for the left and one for the right eye. This script will take the multi view encoded streams and combine them back into a sbs video.

Based on 3DVideos2Stereo, 2016 Making a side-by-side 3D video out of blu-ray

# Extract one frame
ffmpeg -ss 01:27:38 -i input.mkv -frames:v 1 -q:v 2 frame_9.png
docker buildx build . --tag mvc_to_sbs
# Note the right eye file does not support spaces in the file path
docker run --rm -it -v ./input:/input -v ./output:/output mvc_to_sbs /input/input_file_left.mkv /input/input_file_right.mkv /output/output_file.mkv
# The right eye file can be omitted
docker run --rm -it -v ./input:/input -v ./output:/output mvc_to_sbs /input/input_file.mkv nothing /output/output_file.mkv
# debug command
docker run --rm -it --entrypoint /bin/bash -v ./input:/input -v ./output:/output mvc_to_sbs
/entrypoint.sh /input/input_file.mkv nothing /output/output_file.mkv
wine /usr/local/bin/d3d11-triangle/d3d11-triangle.exe
# test with first 10 minutes
ffmpeg -i input/input_file_full.mkv -to 00:10:00 -c copy input/input_file.mkv
ffmpeg -i input/input_file_full_left.mkv -to 00:10:00 -c copy input/input_file_left.mkv
ffmpeg -i input/input_file_full_right.mkv -to 00:10:00 -c copy input/input_file_right.mkv

About

Converts MVC (multi view encoded) mkv files to sbs mkv files.


Languages

Language:Dockerfile 55.5%Language:Shell 44.5%