[Solved] What is the fastest way to convert mp4 to avi?

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Hoser Rob
Level 9
Level 9
Posts: 2821
Joined: Sat Dec 15, 2012 8:57 am

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby Hoser Rob » Thu Sep 22, 2016 1:55 pm

deepakdeshp wrote:The ouput.avi file did play on my laptop with sound and video.

And yes since it works, I tried eating my hat but it wasnt tasty at all. :mrgreen:


If it played then your TV handles the format that was in the original file. I repeat .... NO converter will re encode any input file that isn't trivial in length that fast. It re encoded nothing. Did you try mediainfo?

deepakdeshp
Level 8
Level 8
Posts: 2370
Joined: Sun Aug 09, 2015 10:00 am

Re: What is the fastest way to convert mp4 to avi?

Postby deepakdeshp » Fri Sep 23, 2016 6:09 am

deepakdeshp wrote:
Laurent85 wrote:Ok got it, there was a typo in my above command, the correct command option is -codec: copy, not codecs:

Code: Select all

ffmpeg -i myvideo.mp4 -codec: copy myvideo.avi


Great .... It converted the file in a minute while earlier the media player estimated to convert it in 80 minutes.. Thank you


But this .avi file does not run my TV . Back to square one.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18 Cinnamon 64 bit with AMD processor .

deepakdeshp
Level 8
Level 8
Posts: 2370
Joined: Sun Aug 09, 2015 10:00 am

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby deepakdeshp » Fri Sep 23, 2016 6:59 am

It doesnt work on my TV. Hence installed avidemux
http://ubuntuhandbook.org/index.php/201 ... ntu-16-04/
and looking for a way to convert mp4 files to avi in avidemux
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18 Cinnamon 64 bit with AMD processor .

User avatar
Flemur
Level 13
Level 13
Posts: 4540
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby Flemur » Fri Sep 23, 2016 10:17 am

It doesnt work on my TV. Hence installed avidemux
http://ubuntuhandbook.org/index.php/201 ... ntu-16-04/
and looking for a way to convert mp4 files to avi in avidemux


The thread is marked "Solved" - is it solved ?

If not, did you try the extra-simple script here
viewtopic.php?f=48&t=229845#p1215944
which worked perfectly under similar circumstances (a picky player).

FWIW, I can't get the linux version of avidemux to run (Mint 18); the windows version works fine under wine.

To convert a file to avi in avidemux, you select avi as the output.
Mint 18.2 Xfce/fluxbox/pulse-less - Xubuntu 16.10/fluxbox/pulse-less
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

User avatar
phd21
Level 13
Level 13
Posts: 4886
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: What is the fastest way to convert mp4 to avi?

Postby phd21 » Fri Sep 23, 2016 5:32 pm

Hi "deepakdeshp",

I just read your post and the good replies to it. Here are my thoughts on this as well.


+1 for Avidemux

For an updated version of FFmpeg on Linux Mint 18

sudo add-apt-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg


For an updated version of FFmpeg on Linux Mint 17.x or less

sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg


Here are some other excellent easy to install and use multi-media converters:

Multi-media Converters: (convert video, audio (ex: music), and images)

Curlew - great very easy to use multi-media file converter which you can install in either of the two ways below:

1. From your console terminal prompt, type in each line below one at a time, or copy and paste each line below:
Console terminal Instructions below came from link below.
http://www.noobslab.com/2014/01/curlew-multi-converter-updated-to.html

Curlew – A Simple GTK3 Video Converter for Linux, June 28, 2016
http://ubuntuhandbook.org/index.php/2016/06/curlew-gtk3-video-converter-linux/


sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install curlew



2. You can also click the link below to download the "Curlew" easy install "ubuntu" ".deb" file to your "/download" folder or somewhere and then double click the file to install it. Then, you just run it.
http://linux.softpedia.com/get/Multimedia/Video/Curlew-95832.shtml




Format Junkie media converter - Superb application, converts a variety of audio and video formats, and even can convert ISOs to other disc images (in this case the CSO disc image). In addition to audio, video, and disc image files, this converter even converts images and converts all the popular formats! Not sure if it works with Linux Mint 18 (yet)
http://www.noobslab.com/2014/01/format-junkie-converter-for-ubuntu.html

To install this using the PPA method, open a console terminal, type in, or copy & paste, each line below one by one:

sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install formatjunkie


Install "FF Multi Converter" on Ubuntu 16.04, Ubuntu 15.10, Ubuntu 15.04 and Ubuntu 14.04 LTS
http://www.ubuntumaniac.com/2015/12/install-ff-multi-converter-172-on.html
To install this using the PPA method, open a console terminal, type in, or copy & paste, each line below one by one:

sudo add-apt-repository ppa:ffmulticonverter/stable
sudo apt-get update
sudo apt-get install ffmulticonverter


Hope this helps ...
Last edited by phd21 on Fri Sep 23, 2016 7:28 pm, edited 4 times in total.
Phd21: Mint KDE 17.3 & 18.2, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,3gb Ram,160gb hdd, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

deepakdeshp
Level 8
Level 8
Posts: 2370
Joined: Sun Aug 09, 2015 10:00 am

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby deepakdeshp » Fri Sep 23, 2016 5:58 pm

Flemur wrote:The thread is marked "Solved" - is it solved ?

If not, did you try the extra-simple script here
viewtopic.php?f=48&t=229845#p1215944
which worked perfectly under similar circumstances (a picky player).

FWIW, I can't get the linux version of avidemux to run (Mint 18); the windows version works fine under wine.

To convert a file to avi in avidemux, you select avi as the output.

Thank you

http://ubuntuhandbook.org/index.php/201 ... ntu-16-04/. This helped me in installining avidemux on Mint 18 Cinnamon

I havent tried the extra-simple script yet.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18 Cinnamon 64 bit with AMD processor .

deepakdeshp
Level 8
Level 8
Posts: 2370
Joined: Sun Aug 09, 2015 10:00 am

Re: What is the fastest way to convert mp4 to avi?

Postby deepakdeshp » Fri Sep 23, 2016 7:11 pm

Flemur wrote:
Avidemux is in the repos for mint 17.whatever but I'm not sure with mint 18,

avidemux is in the 18 repos.

I used vlc to convert a couple of odd formats and it seems to play the file as it converts - so it's slow.

Avidemux works well if you don't edit (cut/paste) anything in the file (then the audio is often out of sync); you might also look into ffmpeg/avconv command line converts and a GUI for them, winff. Setting up ffmpeg/avconv the first time will probably be a PITA, but then you'll have something you can run easily.

We used to have a DVD player with an SD card slot that was picky about which files it'd play, and I used this to convert everything to an AVI format it liked:
~/bin/ffmpeg_avicon :

Code: Select all

# Convert to AVI and leave the resolution the same.
#
/usr/bin/ffmpeg -i  $1                          \
-f avi -vcodec mpeg4  -vtag XVID                \
-b 800k -qmin 2 -qmax 4                         \
-acodec libmp3lame -ab 64k -ac 2                \
-threads 2                                      \
$1.avi

(NOTE: the "\" means a continued line, just so it's easier to read)
Then

Code: Select all

ffmpeg_avicon input-file.mp4

makes an AVI file named "input-file.mp4.avi"
Edit: it'll accept a lot of video formats for input, not just mp4.



These lines control the output quality:
-b 800k -qmin 2 -qmax 4 \
-acodec libmp3lame -ab 64k -ac 2

Edit2:
2.what is the minimum specifications of the output file to watch on a 29 inch tv screen so that conversion will take lesser time?

That depends on how much quality you want, how close you're sitting, etc. As a first shot you might as well leave the resolution alone, so output resolution = input resolution.


. Only thing I made chmod +x for the script , it runs beautifully. It took input as 563 MB file and produced a 1.4 gb file, which isnt a good thing. I had timed it with Linux time command

Code: Select all

real   26m56.326s
user   44m31.648s
sys   1m9.392s

The full output of the command is


time ffmpeg_avicon /media/uma/Windows/Users/pc-hp/Videos/Happy_Bhag_Jayegi_2016_DvD_Scr_Rips_by_-Filmywap.mp4

Code: Select all

ffmpeg version 2.8.6-1ubuntu2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.1 (Ubuntu 5.3.1-11ubuntu1) 20160311
  configuration: --prefix=/usr --extra-version=1ubuntu2 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=1ubuntu2 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/uma/Windows/Users/pc-hp/Videos/Happy_Bhag_Jayegi_2016_DvD_Scr_Rips_by_-Filmywap.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.12.100
  Duration: 02:05:33.95, start: 0.050000, bitrate: 598 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 3539:2676 DAR 1048553:445635], 496 kb/s, SAR 9600:7259 DAR 40:17, 29 fps, 29 tbr, 14848 tbn, 58 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Please use -b:a or -b:v, -b is ambiguous
File '/media/uma/Windows/Users/pc-hp/Videos/Happy_Bhag_Jayegi_2016_DvD_Scr_Rips_by_-Filmywap.mp4.avi' already exists. Overwrite ? [y/N] y
[mpeg4 @ 0x20e6ac0] Invalid pixel aspect ratio 9600/7259, limit is 255/255 reducing
Output #0, avi, to '/media/uma/Windows/Users/pc-hp/Videos/Happy_Bhag_Jayegi_2016_DvD_Scr_Rips_by_-Filmywap.mp4.avi':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    ISFT            : Lavf56.40.101
    Stream #0:0(und): Video: mpeg4 (XVID / 0x44495658), yuv420p, 854x480 [SAR 41:31 DAR 17507:7440], q=2-4, 800 kb/s, SAR 9600:7259 DAR 40:17, 29 fps, 29 tbn, 29 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc56.60.100 mpeg4
    Stream #0:1(und): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 32000 Hz, stereo, fltp, 64 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc56.60.100 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
frame=218483 fps=136 q=31.0 Lsize= 1399336kB time=02:05:33.97 bitrate=1521.6kbits/s   
video:1328335kB audio:58859kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.875263%

real   26m56.326s
user   44m31.648s
sys   1m9.392s
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18 Cinnamon 64 bit with AMD processor .

User avatar
Flemur
Level 13
Level 13
Posts: 4540
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby Flemur » Sat Sep 24, 2016 10:48 am

Only thing I made chmod +x for the script ,

Good catch I forgot to mention that.

It took input as 563 MB file and produced a 1.4 gb file, which isnt a good thing.

Ideally the output file size should be about the same as the input file size, maybe slightly bigger.

I haven't used that script for quite a while (samsung TV plays everything! Almost.) but these are the values which control output file size:

Code: Select all

-b 800k -qmin 2 -qmax 4
-acodec libmp3lame -ab 64k -ac 2 

The 2nd line is for audio - 64kbps might be low in some cases; you can also choose to copy the audio format rather than convert it, but I wanted a converter that would always work on that old-ish DVD player.

I had another version with:

Code: Select all

-b 400k -qmin 6 -qmax 9                       
-acodec libmp3lame -ab 64k -ac 2

which IIRC made smaller files.

Your input file:

Code: Select all

Duration: 02:05:33.95, start: 0.050000, bitrate: 598 kb/s

Note in your output: "Please use -b:a or -b:v, -b is ambiguous"
So "-b 800k -qmin 2 -qmax 4 " should be "-b:v 800k -qmin 2 -qmax 4"

Like I mentioned, getting the command-line stuff setup can be a pain at first, tho with avidemux, etc, you have to do the same tweaking to get good quality but not gigantic output files, you just have a GUI.


Edit:
If you go with scripts like this you might want to check "avconv" vs "ffmpeg"; they're similar, IIRC avconv is supposed to be better ... maybe just newer ?
Mint 18.2 Xfce/fluxbox/pulse-less - Xubuntu 16.10/fluxbox/pulse-less
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

Sunderlandgreen
Level 1
Level 1
Posts: 7
Joined: Thu Feb 09, 2017 4:28 am

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby Sunderlandgreen » Thu Apr 20, 2017 8:44 pm

You can batch convert MP4 to AVI with Freemake Video Converter

Step 1. Add MP4 videos

Install and run free Freemake Video Converter. Add MP4 videos into the software using "+Video" button. MP4 to AVI converter
Step 2. Choose "to AVI"

Click "to AVI". Use one of the ready presets (better “Same as source”) or create your own one. how to convert MP4 to AVI
Step 3. Convert MP4 to AVI

Click "Convert" button to start the conversion process.

deepakdeshp
Level 8
Level 8
Posts: 2370
Joined: Sun Aug 09, 2015 10:00 am

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby deepakdeshp » Sat Apr 29, 2017 12:40 am

Sunderlandgreen wrote:You can batch convert MP4 to AVI with Freemake Video Converter

Step 1. Add MP4 videos

Install and run free Freemake Video Converter. Add MP4 videos into the software using "+Video" button. MP4 to AVI converter
Step 2. Choose "to AVI"

Click "to AVI". Use one of the ready presets (better “Same as source”) or create your own one. how to convert MP4 to AVI
Step 3. Convert MP4 to AVI

Click "Convert" button to start the conversion process.

How to install freemake converter?
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18 Cinnamon 64 bit with AMD processor .

User avatar
jimallyn
Level 16
Level 16
Posts: 6673
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby jimallyn » Sat Apr 29, 2017 3:16 am

deepakdeshp wrote:How to install freemake converter?

That's a good question. It's a Windows program. Maybe it will run in Wine?
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

Hoser Rob
Level 9
Level 9
Posts: 2821
Joined: Sat Dec 15, 2012 8:57 am

Re: What is the fastest way to convert mp4 to avi?

Postby Hoser Rob » Sat Apr 29, 2017 10:41 am

deepakdeshp wrote:
deepakdeshp wrote:
Laurent85 wrote:Ok got it, there was a typo in my above command, the correct command option is -codec: copy, not codecs:

Code: Select all

ffmpeg -i myvideo.mp4 -codec: copy myvideo.avi


Great .... It converted the file in a minute while earlier the media player estimated to convert it in 80 minutes.. Thank you


But this .avi file does not run my TV . Back to square one.


I don't think the issue is which converter you're using, and suggesting that you should run Freemake in Wine, as was suggested, is ridiculous. It sucks even in Windows. Seriously, NO knowledgable user would use that crap.

The problem is likely that just having a .avi file isn't necessarily enough. AVI is just a container, it isn't a format or codec. You can even put h.264 video in an avi file, but but that's a good sign that whoever encoded it doesn't know anything about encoding.

TVs that play .avi files tend to have specific needs as to which video and audio formats and levels are in the file. The way to find this out is in the documentation for your TV.

deepakdeshp
Level 8
Level 8
Posts: 2370
Joined: Sun Aug 09, 2015 10:00 am

Re: What is the fastest way to convert mp4 to avi?

Postby deepakdeshp » Fri May 05, 2017 6:57 am

Laurent85 wrote:Ok got it, there was a typo in my above command, the correct command option is -codec: copy, not codecs:

Code: Select all

ffmpeg -i myvideo.mp4 -codec: copy myvideo.avi

Code: Select all

ffmpeg -i ../Desktop/20160908_160403.mp4  -codec: copy myvideo.avi
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../Desktop/20160908_160403.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-09-08 10:34:06
  Duration: 00:00:02.22, start: 0.000000, bitrate: 16492 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 16887 kb/s, 30.01 fps, 30 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      rotate          : 90
      creation_time   : 2016-09-08 10:34:06
      handler_name    : VideoHandle
    Side data:
      displaymatrix: rotation of -90.00 degrees
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 255 kb/s (default)
    Metadata:
      creation_time   : 2016-09-08 10:34:06
      handler_name    : SoundHandle
Output #0, avi, to 'myvideo.avi':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    ISFT            : Lavf56.40.101
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080, q=2-31, 16887 kb/s, 30.01 fps, 30 tbr, 600 tbn, 90k tbc (default)
    Metadata:
      rotate          : 90
      creation_time   : 2016-09-08 10:34:06
      handler_name    : VideoHandle
    Side data:
      displaymatrix: rotation of -90.00 degrees
    Stream #0:1(eng): Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, 255 kb/s (default)
    Metadata:
      creation_time   : 2016-09-08 10:34:06
      handler_name    : SoundHandle
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   64 fps=0.0 q=-1.0 Lsize=    4507kB time=00:00:02.21 bitrate=16642.5kbits/s   
video:4396kB audio:69kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.945413%
uma@mint-18-uma ~/Downloads $ ls myvideo.avi
myvideo.avi
 




Hello Laurent , the command did not work . It created a .avi file which runs on my laptop but does not run on my usb player connected to the TV. The usb player is Onida 5522.
The specs are https://www.videohelp.com/dvdplayers/onida-hdr-5522-atom/10352
Last edited by deepakdeshp on Fri May 05, 2017 7:34 am, edited 1 time in total.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18 Cinnamon 64 bit with AMD processor .

deepakdeshp
Level 8
Level 8
Posts: 2370
Joined: Sun Aug 09, 2015 10:00 am

Re: What is the fastest way to convert mp4 to avi?

Postby deepakdeshp » Fri May 05, 2017 7:02 am

Hoser Rob wrote:
deepakdeshp wrote:
deepakdeshp wrote:
Great .... It converted the file in a minute while earlier the media player estimated to convert it in 80 minutes.. Thank you


But this .avi file does not run my TV . Back to square one.


I don't think the issue is which converter you're using, and suggesting that you should run Freemake in Wine, as was suggested, is ridiculous. It sucks even in Windows. Seriously, NO knowledgable user would use that crap.

The problem is likely that just having a .avi file isn't necessarily enough. AVI is just a container, it isn't a format or codec. You can even put h.264 video in an avi file, but but that's a good sign that whoever encoded it doesn't know anything about encoding.

TVs that play .avi files tend to have specific needs as to which video and audio formats and levels are in the file. The way to find this out is in the documentation for your TV.


Hello Rob, Thank you for your response,
I used Avidemux (qt) as suggested by you earlier
It created a .avi file which runs on my laptop but does not run on my usb player connected to the TV. The usb player is Onida 5522.
The specs are https://www.videohelp.com/dvdplayers/on ... atom/10352
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18 Cinnamon 64 bit with AMD processor .

ColdBoot
Level 3
Level 3
Posts: 196
Joined: Thu Feb 16, 2017 10:40 pm

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby ColdBoot » Fri May 05, 2017 11:25 am

You'll need to find out which codecs your TV (or is a player) does support before you do the conversion. And as previously mentioned, it isn't fast and depends on your CPU speed. Maybe an overkill, since it is a video editor, but supporting many codecs and is simple to use, I recommend the portable version of Shotcut.
Last edited by ColdBoot on Fri May 05, 2017 11:26 am, edited 1 time in total.
Linux Mint Cinnamon 18.1
Intel G1820, DDR3 8GB, Nvidia GT720(2GB)

User avatar
phd21
Level 13
Level 13
Posts: 4886
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby phd21 » Fri May 05, 2017 11:25 am

Hi "deepakdeshp",

I have been following your post and the good replies to it. Here are more of my thoughts on this as well.

Avidemux, Curlew, WinFF, FFMultiConverter, can all easily convert one video format into another video format, like from mp4 to avi. The last three applications can do one or multiple videos at a time.

From what I could find out, your DVD player is around 6+ years old and can only support video resolutions up to 720p (1280x720) in ".avi" video format. So, in addition to converting the video from ".mp4" to ".avi" (transcode, transcoding), you would also have to change (scale) the video size to 720p or less (640x480 (480p) default older DVD resolution). FFMultiConverter can do this at the same time using its various presets, which include numerous avi output presets (not all say avi, but produce avi files, like xvid or divx).

A lot of older TV's and DVD players have various limits like this, and usually in the back of their manuals they have the specifications.

Most newer TV's and DVD/Blu-Ray players can support most if not all of the current HD video resolutions in many different common video formats. You might consider upgrading to a newer TV or DVD/Blu-Ray player.

Hope this helps ...
Last edited by phd21 on Sat May 06, 2017 12:01 am, edited 4 times in total.
Phd21: Mint KDE 17.3 & 18.2, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,3gb Ram,160gb hdd, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Hoser Rob
Level 9
Level 9
Posts: 2821
Joined: Sat Dec 15, 2012 8:57 am

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby Hoser Rob » Fri May 05, 2017 1:26 pm

ANd just in case no one's mentioned this, you can have the fastest conversion method or high quality output. NOT both. A good compromise (with e.g. Avidemux) is to use quantizer based output. Experiment to see which quantizer value you think has good enough quality video. 2 or 3 will give youvery good quality but 2 will probably give you a file larger than the input.

BTW the link with the specs aren't useful. You'll have to go into the actual docs and see which format and level the player wiill accept.

User avatar
phd21
Level 13
Level 13
Posts: 4886
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby phd21 » Sat May 06, 2017 10:07 am

Hi "deepakdeshp",

I was thinking about your post. I updated my last reply.

If you are using Linux Mint version 18, then I would upgrade that to version 18.1 through the Mint Update Manager.

Can you give us an example of what the videos mp4 format resolution is now that you are working with? I'm not sure that it matters, but your older video player might not be able to handle widescreen (aspect 16:9) video formats either, so when testing the conversions, try non-widescreen formats (aspect 4:3, sometimes called "full screen") too.

As an ex-software developer, I test a lot of software applications and utilities for Linux Mint members and for my own curiosity and use. You might consider creating sub-folders underneath your "/Videos" folder for the various multi-media converter (transcoder) application's output, and trying each one out to find out which one does what you want and that you like the most. You could create folders for "Avidemux", "Curlew", "FFMultiConverter" (ffmc), "WinFF", "Handbrake", "Transmageddon", etc... Then, try converting one video into various ".avi" formats that have a resolution of 720p or less to see which format works with your media player. Once you have found one that works, then you can use one of the applications to convert the rest of the videos.

I have personally tried most of the various multimedia converters. Their speed depends upon the size of the video(s), the application, and your computer hardware, most have settings for "multiple threads" to take advantage of multi-core CPU computers, like yours. The applications have "presets" that you can choose from, or edit, to control the output of the new video file, like to convert to ".avi" and at the same time, scale it into different sizes (video resolutions), like 720p or 480p, etc... The usual default output of "Avi" will keep the same size video, but if you select advanced options, video tab, video size, then you can change that, and the aspect ratio (widescreen vs fullscreen); the presets are already configured for these options, and using the advanced option will let you see what settings the "preset" is using.

Most of the multi-converters can process more than one video at a time. To convert a 1280x720 HD video (42min long) averaged around 16-30 minutes on my older computer hardware. Your times will vary.

My favorite multi-media converters (transcoders) that can output "avi" video files are "Curlew" and "FF Multi Converter" and they have a few "presets" for various "avi" output, and process multiple videos at one time.


Avidemux is great for many uses, but I do not think it can do multiple videos at one time.

Avidemux has an "appimage" method of being installed and run which I recommend. You must have "fuse" installed from the Software Manager or Synaptic Package Manager (SPM).

What is an “AppImage”? How do I install it?
https://askubuntu.com/questions/774490/what-is-an-appimage-how-do-i-install-it

Avidemux AppImage (SourceForge)
https://sourceforge.net/projects/avidemux/

Avidemux AppImage (FossHub)
- Download Avidemux Universal linux binary - 38.13 MB version: 2.6.20
https://www.fosshub.com/Avidemux.html


Hope this helps ...

Curlew_AdvancedOptions_LM17x_1sm.jpg
"Curlew" multi-media converter


Curlew_AdvancedOptions_LM17x_2sm.jpg
"Curlew" multi-media converter


Curlew_AdvancedOptions_LM17x_3sm.jpg
"Curlew" multi-media converter
Phd21: Mint KDE 17.3 & 18.2, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,3gb Ram,160gb hdd, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Sunderlandgreen
Level 1
Level 1
Posts: 7
Joined: Thu Feb 09, 2017 4:28 am

Re: [Solved] What is the fastest way to convert mp4 to avi?

Postby Sunderlandgreen » Thu May 18, 2017 9:16 pm

Convert MP4 to AVI with Free Video DVD Converter Ultimate will be very fast, because it supports batch conversion mode, therefore, you can batch load multiple MP4 files into the program. In addition, you can load MP4 files with various different video and audio codec and 4K/2K/HD/SD resolution to convert to AVI in various different codec such as Divx, Xvid or DV.

User avatar
jelabarre59
Level 2
Level 2
Posts: 50
Joined: Thu Jan 20, 2011 6:57 pm

Re: What is the fastest way to convert mp4 to avi?

Postby jelabarre59 » Wed Jun 07, 2017 10:40 am

Flemur wrote:We used to have a DVD player with an SD card slot that was picky about which files it'd play, and I used this to convert everything to an AVI format it liked:
~/bin/ffmpeg_avicon :
(script not pasted in this quote...)


Just wondering if your finicky DVD player was a GPX PD808 (portable player from 2008, https://gpx.com/pd808b.html). That's the one I'm trying to encode files for, and the manufacturer's help line has no idea of what codecs it supports under AVI (they'll say "oh, just any AVI file..."; they don't realize AVI is a container, which can use a variety of codecs).

Now, I could sit here and spend days trying to encode a sample video (2.5min clip from Shuumatsu no Izetta) but even with that I'd need to figure which ones are AVI-compatible (presuming some aren't) and which ones might have been commonly available in 2007 (allowing that a machine made in April 2008 was probably engineered/coded in 2007 at the latest).


Return to “Sound, Multimedia, & Codecs”

Who is online

Users browsing this forum: No registered users and 3 guests