Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-28-2006, 10:16 AM
|
#1
|
Member
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207
Rep:
|
m4v converter (video on new ipod)
Does anyone know of any linux software that will convert mpeg/avi to m4v (quicktime) format?
I just bought a new video ipod and would like to get some movies on there. I have them in mpeg and avi format.
Gtkpod will allow me to put m4v format video clips onto my ipod. Is there any software to convert into m4v, or any software that will put other formats onto the video ipod, thx.
PS: mp3 and cover art sync works perfect in amarok
|
|
|
05-28-2006, 11:43 AM
|
#2
|
Member
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Rep:
|
I use all the vlc packages. I have the followin vlc rpm's (using Mandriva, but they should be similar):
mozilla-plugin-vlc
svlc
vlc
vlc-more-skins
vlc-plugin-a52
vlc-plugin-aa
vlc-plugin-alsa
vlc-plugin-arts
vlc-plugin-dvdnav
vlc-plugin-esd
vlc-plugin-faad
vlc-plugin-flac
vlc-plugin-ggi
vlc-plugin-gnutls
vlc-plugin-lirc
vlc-plugin-mad
vlc-plugin-mod
vlc-plugin-mpc
vlc-plugin-ncurses
vlc-plugin-ogg
vlc-plugin-opengl
vlc-plugin-sdl
vlc-plugin-speex
vlc-plugin-xosd
I thing the -faad plugin is the key one. It is the mp4 plugin. Then I use a script for vlc. to expedite matters:
Code:
#!/bin/bash
base=`echo $1 | gawk -F. '{print $1}' `
echo "$1 $base"
vlc -vvv "$1" :sout="#transcode{vcodec=mp4v,vb=1024,scale=1,acodec=mp4a,ab=128,channels=2}:standard{access=file,url=$base.mp4}" vlc:quit --aspect-ratio "4:3" --sout-transcode-width 360 --sout-transcode-height 240 --sout-transcode-fps 30
If you convert it to batch file for win32, vlc will also work on windows. Save this to a file called something like ipod.sh, and make it executable.
chmod +x ipod.sh
Then run it like so:
./ipod.sh vidfile.avi
You can also lower the video bit rate a bit if you want to. 1Mb/s is a bit high for such a small screen.
Good luck,
Pete
|
|
|
05-28-2006, 01:03 PM
|
#3
|
Member
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207
Original Poster
Rep:
|
thanks i'm trying to get vlc now, but i'm in major rpm dep hell with it. Sounds good though.
what formats will that work with?
|
|
|
05-29-2006, 10:03 AM
|
#4
|
Member
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Rep:
|
With all the plugins, just about everything. Now, one thing I found out. If you are transcoding to x264, do not stop the process. If you stop it early, or try to view it prior to finishing, the video is unviewable. You must let the encoder finish.
Cheers,
Pete
|
|
|
06-15-2006, 05:30 PM
|
#5
|
Member
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207
Original Poster
Rep:
|
sorry if i'm a bit late- but I just swiched to Kubuntu and was able to install vlc.
I tried your script again and it worked- but there is now sound on the output file. Is there any way to fix this? music videos...
|
|
|
06-16-2006, 01:47 PM
|
#6
|
Member
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Rep:
|
Does the original file play fine with vlc? If it does, the decoder is working. I would be safe to assume it is probable the aac encoder.
Pete
|
|
|
06-16-2006, 10:45 PM
|
#7
|
Member
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207
Original Poster
Rep:
|
yes, the original plays fine.
how would I install the acc encoder- I thought I had them all installed
thx for your help
|
|
|
07-02-2006, 12:43 PM
|
#8
|
Member
Registered: Apr 2003
Distribution: SuSe 10
Posts: 55
Rep:
|
nice script peter72, works perfectly!
what would be the easy way to batch that script to do more avi's at a time?
|
|
|
07-05-2006, 12:12 PM
|
#9
|
Member
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Rep:
|
I would do a simple for loop wrapper. ie
Code:
user@comp>$ for i in *.avi ; do ./ipod.sh $i ; done
|
|
|
12-30-2006, 02:48 PM
|
#10
|
LQ Newbie
Registered: Dec 2006
Posts: 1
Rep:
|
It is possible to reverse this process (ie: convert m4v to mpeg or other)?
|
|
|
01-18-2007, 11:57 AM
|
#11
|
LQ Newbie
Registered: Sep 2003
Posts: 6
Rep:
|
Quote:
Originally Posted by koy
nice script peter72, works perfectly!
what would be the easy way to batch that script to do more avi's at a time?
|
Have a look at http://thinliquidfilm.org. It's a gui that'll do batch video conversion for the ipod, and upload it as well.
|
|
|
08-15-2008, 08:34 PM
|
#12
|
LQ Newbie
Registered: Aug 2008
Posts: 7
Rep:
|
How to FAST convert your videos to iPod MP4
to convert video files to view on my iPod Nano, I use ffmpeg with this very fast and good quality configuration:
ffmpeg -y -i "in.avi" -f mp4 -vcodec xvid -me full -subq 5 -refs 3 -bt 700 -bf 0 -level 13 -maxrate 768 -b 700 -qmin 3 -qmax 5 -bufsize 8192 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -g 300 -r "23.976023976" -acodec aac -ac 2 -ar 48000 -ab 128 -s "320x240" -aspect "4:3" "out.mp4"
|
|
|
08-15-2008, 08:35 PM
|
#13
|
LQ Newbie
Registered: Aug 2008
Posts: 7
Rep:
|
|
|
|
01-07-2024, 02:23 AM
|
#14
|
LQ Newbie
Registered: Jan 2024
Posts: 1
Rep:
|
Quote:
Originally Posted by peter72
With all the plugins, just about everything. Now, one thing I found out. If you are transcoding to x264, do not stop the process. If you stop it early, or try to view it prior to finishing, the video is unviewable. You must let the encoder finish.
Cheers,
Pete
|
Thanks for the tip, Pete! Patience is key when transcoding to x264. I'll make sure to let the encoder finish to ensure a viewable video. Cheers for the advice!
|
|
|
All times are GMT -5. The time now is 03:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|