How to convert .avi to .mp4/.3gp

Asked by SWAGATAK GHOSH

 I want to convert some avi files to mp4 or 3gp for my mobile. I have tried with winff and devede. but no solution . In windows there is so many softwares for converting videos, the are very easy to use also. but how to solve this ubuntu. I have tried them (free video studio from www.dvdvideosoft.com/free-dvd-video-software.htm,total video converter , etc) with wine, but they are not working. Not opening those.There is so many great replacement of windows softwares in ubuntu but no such for video converting. It is necessary to convert any format to any other.Actually I want to forget about dual os . I want to totally migrate to ubuntu only. So I want some substitute of those softwares for my purpose. If there is no softwares like those of windows, I am requesting the great Developers to create such a programme. thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu winff Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

https://help.ubuntu.com/community/iPodVideoEncoding

I'm guessing its for an iPod thing...

Revision history for this message
SWAGATAK GHOSH (swagatak) said :
#2

thanks, but this is a large tutorial of many softwares. which should I use.
 I have also tried Arista Transcoder. its great . but can I make preset for my mobile. plz tell me how to creat preset for my device

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Try:

sudo apt-get install install lsdvd mplayer gpac zenity mencoder; wget http://diveintomark.org/public/2007/06/podencoder.txt -O /usr/local/bin/ipodencoder; chmod +x ./ipodencoder; sudo mv ./podencoder /usr/bin

You can now use:

ipodencoder mediafile

and it will convert. If you had a decent device it would just play what you have.

Revision history for this message
SWAGATAK GHOSH (swagatak) said :
#4

thanks a lot @ actionparsnip
I did as you said and the output is

swagatak@MOON:~$ sudo apt-get install install lsdvd mplayer gpac zenity mencoder; wget http://diveintomark.org/public/2007/06/podencoder.txt -O /usr/local/bin/ipodencoder; chmod +x ./ipodencoder; sudo mv ./podencoder /usr/bin
[sudo] password for swagatak:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package install
/usr/local/bin/ipodencoder: Permission denied
chmod: cannot access `./ipodencoder': No such file or directory
mv: cannot stat `./podencoder': No such file or directory
swagatak@MOON:~$ ipodencoder mediafile
ipodencoder: command not found
swagatak@MOON:~$

thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Sorry:

sudo chmod +x /usr/local/bin/ipodencoder

ipodencoder mediafile was an EXAMPLE

you use your file you want to convert.

Revision history for this message
SWAGATAK GHOSH (swagatak) said :
#6

thanks @actionparsnip

I run in the terminal
sudo chmod +x /usr/local/bin/ipodencoder
it asked my sudo password and the output is

swagatak@MOON:~$ sudo chmod +x /usr/local/bin/ipodencoder
chmod: cannot access `/usr/local/bin/ipodencoder': No such file or directory
swagatak@MOON:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

ok run:

cd ~
wget http://diveintomark.org/public/2007/06/podencoder.txt
mv ./podencoder.txt ./ipodencoder
chmod +x ./ipodencoder
sudo mv ./ipodencoder /usr/bin

You can now use the ipodencoder command to make your files into something your ipod can handle (due to its limited abilities)

Revision history for this message
SWAGATAK GHOSH (swagatak) said :
#8

I dont understand what happened .I run as you said @ actionparsnip
and the output is

swagatak@Moon:~$ cd ~
swagatak@Moon:~$ wget http://diveintomark.org/public/2007/06/podencoder.txt
--2011-03-12 00:58:55-- http://diveintomark.org/public/2007/06/podencoder.txt
Resolving diveintomark.org... 174.133.33.154
Connecting to diveintomark.org|174.133.33.154|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://wearehugh.com/public/2007/06/podencoder.txt [following]
--2011-03-12 00:59:12-- http://wearehugh.com/public/2007/06/podencoder.txt
Resolving wearehugh.com... 174.133.33.154
Connecting to wearehugh.com|174.133.33.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18190 (18K) [text/plain]
Saving to: `podencoder.txt'

100%[======================================>] 18,190 4.27K/s in 4.2s

2011-03-12 00:59:23 (4.27 KB/s) - `podencoder.txt' saved [18190/18190]

swagatak@Moon:~$ mv ./podencoder.txt ./ipodencoder
swagatak@Moon:~$ chmod +x ./ipodencoder
swagatak@Moon:~$ sudo mv ./ipodencoder /usr/bin

now what should I do?

thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

You can now use the ipodencoder command to make your files into something your ipod can handle (due to its limited abilities)

Like I said before.....

so in a terminal you can convert a file named examplefile.avi (for the sake of this example):

ipodencoder examplefile.avi

And it will convert.

Revision history for this message
SWAGATAK GHOSH (swagatak) said :
#10

thanks @ actionparsnip

I run as you advised,but it is not working. the output is (the name of the song is"Give Me Some Sunshine")

swagatak@Moon:~$ ipodencoder Give Me Some Sunshine.avi
ipodencoder: command not found
swagatak@Moon:~$

Now I want to know, where I have to keep my input file ,which I want to convert and where the output shall I get ?
I want give you the information that I have tried as you said ,keeping the input .avi file in the desktop.

thanks a lot.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

Ok and what folder is the file in? Please give the full path (case sensitive)

Thanks

In Linux you need to escape the spaces so interpreter knows the text is part of the filename.

Revision history for this message
SWAGATAK GHOSH (swagatak) said :
#12

many many thanks @ actionparsnip

I said before the file I have kept in the desktop. the path is /home/swagatak/Desktop

you said
"In Linux you need to escape the spaces so interpreter knows the text is part of the filename."
to do so I have to change my file name ?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

No you just change the command. You ran the command in:

/home/swagatak

The file is not in that folder so the command will not have found the file. So in this case you need to run:

cd ~/Desktop
ipodencoder Give\ Me\ Some\ Sunshine.avi

As you can see, you need to use the '\' character to escape the spaces. Spaces in Linux can cause issues but can be managed.

Revision history for this message
SWAGATAK GHOSH (swagatak) said :
#14

thanks @ actionparsnip

I run

swagatak@Moon:~$ cd ~/Desktop
swagatak@Moon:~/Desktop$ ipodencoder Give\ Me\ Some\ Sunshine.avi
ipodencoder: command not found
swagatak@Moon:~/Desktop$

please help me

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#15

Found this:
http://www.youtube.com/watch?v=TeC4jP152ys

Should do you :)

Can you help with this problem?

Provide an answer of your own, or ask SWAGATAK GHOSH for more information if necessary.

To post a message you must log in.