Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques 3D to 2D conversion with ffmpeg

  • 3D to 2D conversion with ffmpeg

    Posted by Alain Dazzi on February 29, 2012 at 6:14 pm

    I have a 3D video (AVCHD left, right side, with audio attached to left eye).
    I convert it to 2D using …

    1/
    ffmpeg -y -i 3D_V_.MP4 -r 20 -aspect 16:9
    -vcodec mjpeg -qscale 1 -vf crop=960:1080:0:0 -acodec pcm_s16le -ac 2 l.avi

    2/
    ffmpeg -y -i 3D_V_.MP4 -r 20 -aspect 16:9
    -vcodec mjpeg -qscale 1 -vf crop=960:1080:960:0 -an r.avi

    3/
    ffmpeg -y -i l.avi -i r.avi
    -vcodec copy -acodec adpcm_ima_wav -ar 22050 -ab 32 -ac 2
    -vcodec copy -map 0:0 -map 0:1 -map 1:0 HTD.AVI

    This works great.

    My question is: do I need the last step (#3)? step #2 actually produces a video+audio that works and I don’t see any visual differences. Thank you for your comments.

    Stephen Dixon replied 14 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Stephen Dixon

    February 29, 2012 at 9:21 pm

    The last step puts both video streams into the one AVI file. If you don’t need to hang on to both streams you could do it in one step (either step 1 or step 2, depending on whether you want to keep the left or right side).

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy