LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-18-2008, 10:27 PM   #1
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Rep: Reputation: 25
How to convert multiple format videos to *.mp4 files which can be played on my iPod


How to convert multiple format videos to *.mp4 files which can be played on my iPod? I have searched on google, but didn't get a working way. So, if i want to convert some videos to my iPod to watch, i have to restart my computer and boot my windows system which i rarely use it, that's not want i want. I really want to do it on my slackware!

Regards.
 
Old 10-18-2008, 10:31 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Here's what I use

Quote:
ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output.mp4
I still use itunes to load it though
 
Old 10-18-2008, 10:59 PM   #3
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by billymayday View Post
Here's what I use



I still use itunes to load it though
that's the output of mine:
Code:
kcynice@kcynice:~/Desktop$ ffmpeg -i sc081018.rmvb  -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output.mp4
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-shared --enable-gpl --enable-pp --enable-pthreads --enable-liba52 --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-debug
  libavutil version: 49.5.0
  libavcodec version: 51.44.0
  libavformat version: 51.14.0
  built on May  6 2008 17:26:44, gcc: 4.2.3
[NULL @ 0xb7d32730]Unsupported video codec
Input #0, rm, from 'sc081018.rmvb':
  Duration: 00:23:51.5, start: 0.000000, bitrate: 102 kb/s
  Stream #0.0: Video: RV30 / 0x30335652, 320x240, 79 kb/s, 12.00 fps(r)
  Stream #0.1: Audio: cook, 22050 Hz, mono, 20 kb/s
  Stream #0.2: Data: 0x0000
PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, mp4, to 'output.mp4':
  Stream #0.0: Video: mpeg4 (hq), yuv420p, 320x180, q=2-31, 1200 kb/s, 12.00 fps(c)
  Stream #0.1: Audio: libfaac, 22050 Hz, mono, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Unsupported codec (id=71) for input stream #0.0
it seems that, my ffmpeg doesn't support mpeg4 video format output?
 
Old 10-18-2008, 11:01 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Why would you say that?

Quote:
Unsupported codec (id=71) for input stream #0.0
 
Old 10-18-2008, 11:06 PM   #5
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by billymayday View Post
Why would you say that?
but, what's it really mean? I really don't know how to resolve it. Any ideas?
 
Old 10-18-2008, 11:22 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What is the input?
 
Old 10-18-2008, 11:33 PM   #7
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
i used command like:
Code:
 ffmpeg -i sc081018.rmvb  -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output.mp4
my input file name is sc081018.rmvb. i don't know how to view more details about it. i just copied your command but replacing the input file
 
Old 10-18-2008, 11:36 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That doesn't tell me what an rmvb file is. Surely you know something about what you are trying to convert.
 
Old 10-18-2008, 11:40 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Although this does http://en.wikipedia.org/wiki/RMVB
 
Old 10-18-2008, 11:50 PM   #10
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

Rep: Reputation: 47
Maybe you could try mvpod, it is a graphical program.
 
Old 10-18-2008, 11:56 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It looks to me after a quick read at the ffmpeg site that ffmpeg doesn't support rmvb. A web search suggests that mencoder does, but I'm unable to see any reference to rmvb on their site.
 
Old 10-19-2008, 12:17 AM   #12
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 306

Rep: Reputation: 47
http://sourceforge.net/projects/mvpod
 
Old 10-19-2008, 12:24 AM   #13
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
i have just tried mvpod but got an error:
[code]Because the MP4Box component is missing the operation could not be completed. Please install it and try again later.[/code]

i don't known why?
----------Added--------------------
it works well now. i just download and installed gpac from http://gpac.sourceforge.net. Then mvpod can go well.
Now i can convert my *.rmvb files to *.mp4 files can be played by my ipod now.
Thanks, all

The ONLY problem is that, mvpod is a java program so that it's very slow, very very slow.
So, i select converting *.rmvb to *.avi(use mencoder) as conjunction, then converting the *.avi to *.mp4

Last edited by kcynice; 10-20-2008 at 12:05 AM. Reason: resolved
 
Old 10-21-2008, 07:00 AM   #14
kcynice
Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 25
my final resolution is:
Code:
mencoder -o temp.avi -ovc lavc -oac mp3lame input.rmvb
ffmpeg -i temp.avi -vcodec libxvid -b 500k -acodec libfaac -ab 128 output.mp4
i have tested it on my 6gen iPod, witch supports fitting screen settings so i needn't specify the screen width and height of the output file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert a .dat (vcd?) to ipod-viewable mp4 bruno321 Linux - Software 2 02-03-2009 01:16 PM
Trying to convert from flv to mp4 (for iPod) using mencoder. alkos333 Slackware 6 11-03-2007 02:36 PM
Encoding videos to ipod format hackarre Debian 3 05-16-2007 11:58 AM
How to convert flv to ipod format? depam Linux - Software 1 10-25-2006 08:21 AM
How can I convert video files into mp4 Basel Linux - Software 2 03-11-2006 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration