I´m already working on project with 3d video an i have problem,i got left and right channel of video a a ineed to merge it into side by side.I already read some blogs about this problem and i got this code:
ffmpeg -i avatar35l.avi -vf "movie=avatar35r.avi [in1]; [in]pad=1920*2:1080[in0]; [in0][in1] overlay=1920:0 [out]" avatar35sbs.avi
it works,but i got significant quality loss and i need a quality of output video same as input video,30fps,1080p,same lenght,i´m a new one to ffmpeg and i need a concrete example of that
Can anybody help me?
Lossless
You'll have to use a truly lossless format if you require "a quality of output video same as input video". Example for ffv1 using the hstack filter instead of movie+pad+overlay:
FFmpeg supports several additional lossless compressed formats such as:
-c:v libx264 -crf 0
-c:v huffyuv
-c:v huffyuv
-c:v utvideo
Since it is lossless the output file will be huge, and your player or device will probably not like it.
Visually lossless
Of course what you may actually want is "lossy, yet 'visually lossless', but not a gigantic, huge file like true lossless provides". In that case use:
You didn't mention audio. If you want to merge the audio from each input as well use the amerge filter:
See FFmpeg Wiki: H.264 Video Encoding.