Results 1 to 4 of 4

Thread: Convert MP4 file to avi

  1. #1
    Join Date
    Oct 2005
    Beans
    207

    Convert MP4 file to avi

    I used my camera to make at video. The video is in the MP4 format. I would like to convert this file to an avi file. What command would you suggest to make the avi file using ffmpeg and lame?
    (I know how to do this with mencoder but I would prefer to have more control with ffmpeg and lame).

    The details of the file that I would like to convert are:
    ffmpeg -i M4H00846.MP4
    ffmpeg version git-2012-01-06-ed14b72 Copyright (c) 2000-2012 the FFmpeg developers
    built on Jan 6 2012 10:54:37 with gcc 4.6.1
    configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
    libavutil 51. 34.100 / 51. 34.100
    libavcodec 53. 54.100 / 53. 54.100
    libavformat 53. 29.100 / 53. 29.100
    libavdevice 53. 4.100 / 53. 4.100
    libavfilter 2. 57.101 / 2. 57.101
    libswscale 2. 1.100 / 2. 1.100
    libswresample 0. 5.100 / 0. 5.100
    libpostproc 51. 2.100 / 51. 2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'M4H00846.MP4':
    Metadata:
    major_brand : MSNV
    minor_version : 19595353
    compatible_brands: MSNVmp42isom
    creation_time : 2012-04-04 12:22:47
    Duration: 00:00:36.03, start: 0.000000, bitrate: 9093 kb/s
    Stream #0:0(und): Video: mpeg4 (Advanced Coding Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 9026 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc
    Metadata:
    creation_time : 2012-04-04 12:22:47
    handler_name : Video Media Handler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 24000 Hz, mono, s16, 64 kb/s
    Metadata:
    creation_time : 2012-04-04 12:22:47
    handler_name : Sound Media Handler
    Thanks

  2. #2
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Convert MP4 file to avi

    Quote Originally Posted by volkerbradley View Post
    What command would you suggest to make the avi file using ffmpeg and lame?
    This is the command I suggest:-

    Code:
    ffmpeg -i M4H00846.MP4 -c:v copy -c:a libmp3lame -b:a 64k -ac 1 M4H00846.avi
    Last edited by ron999; April 9th, 2012 at 02:57 PM.

  3. #3
    Join Date
    Oct 2005
    Beans
    207

    Re: Convert MP4 file to avi

    Quote Originally Posted by ron999 View Post
    This is the command I suggest:-

    Code:
    ffmpeg -i M4H00846.MP4 -c:v copy -c:a libmp3lame -b:a 64k -ac 1 M4H00846.avi
    Perfect! Thank you.
    Gives me an idea on how to use ffmpeg options as well.

  4. #4
    Join Date
    Jun 2009
    Beans
    75

    Re: (SOLVED) Convert MP4 file to avi

    This worked for me :

    1. Install ffmpeg
    sudo apt-get install ffmpeg
    2. Convert your video
    ffmpeg -i myvideo.mp4 -vcodec mpeg4 -acodec ac3 -ar 48000 -ab 192k myvideo.avi

    Good luck

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •