Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
surender_lady pe Simpatie
Femeie
25 ani
Arad
cauta Barbat
26 - 47 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [VIDEO] Convert 3D/VR Video Files to 2D with FFMPEG Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2228
You need ffmpeg for this: or the latest build
To run the following command you must add the video to the same folder as ffmpeg, or you can refer to a path between " and ".

Now this depends on how the 3D/VR video is made.
For example, I have a stereoscopic 180-degree video (LR_180) where the left and right views are stored side by side.
The following command will extract the left view and output it as a normal 2D video.

1. Go to the folder containing ffmpeg.exe (eg. C:\ffmpeg\bin)

2. In the address bar, instead of the folder address type cmd and press enter to open a cmd window inside the ffmpeg\bin folder

3. Type the following command, replacing the video paths with your own:


ffmpeg -i "D:\Folder_Name_Goes_Here\Video_name_goes_here_LR_180.mp4" -vf "crop=in_w/2:in_h:0:0" "D:\Folder_Name_Goes_Here\Video_name_goes_here_2D.mp4"


-i "D:\Folder_Name_Goes_Here\Video_name_goes_here_LR_180.mp4" input video file
-vf "crop=in_w/2:in_h:0:0"
- crop: initiates the crop command
- in_w/2: takes half the width of the input video, which is the left view.
- in_h: keeps the full height of the input video.
- 0:0: these coordinates start the crop from the top-left corner of the video.
Note: for right side, use -vf "crop=in_w/2:in_h:in_w/2:0" where in_w/2:0 starts the crop from the midpoint of the width (where the right view begins)
"D:\Folder_Name_Goes_Here\Video_name_goes_here_2D.mp4"[/color] output video file

If you are using powershell you might need to add .\ in front of the above commands:

.\ffmpeg ....


To also change the resolution of the video to 1080p, add the following part to the command line above:

ffmpeg -i "D:\Folder_Name_Goes_Here\Video_name_goes_here_LR_180.mp4" -vf "crop=in_w/2:in_h:0:0,scale=1920:1080" "D:\Folder_Name_Goes_Here\Video_name_goes_here_2D.mp4"



To also maintain aspect of the 1080p video, you can add the following part to the command line above:

ffmpeg -i "D:\Folder_Name_Goes_Here\Video_name_goes_here_LR_180.mp4" -vf "crop=in_w/2:in_h:0:0,scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2" "D:\Folder_Name_Goes_Here\Video_name_goes_here_2D.mp4"


To add bitrate you want for the converted video, you can add the following part to the command line above:
without aspect ratio:
ffmpeg -i "D:\Folder_Name_Goes_Here\Video_name_goes_here_LR_180.mp4" -vf "crop=in_w/2:in_h:0:0,scale=1920:1080" -b:v 4000k "D:\Folder_Name_Goes_Here\Video_name_goes_here_2D.mp4"

with aspect ratio:
ffmpeg -i "D:\Folder_Name_Goes_Here\Video_name_goes_here_LR_180.mp4" -vf "crop=in_w/2:in_h:0:0,scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2" -b:v 4000k "D:\Folder_Name_Goes_Here\Video_name_goes_here_2D.mp4"



For 360 degrees video, use the following ffmpeg command:

ffmpeg -i input_360.mp4 -vf v360=equirect:flat output_2d.mp4


Source:
ChatGPT


_______________________________________


pus acum 3 luni
   
Pagini: 1  

Mergi la