LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 05-28-2006, 10:16 AM   #1
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Rep: Reputation: 30
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
 
Old 05-28-2006, 11:43 AM   #2
peter72
Member
 
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Blog Entries: 1

Rep: Reputation: 30
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
 
Old 05-28-2006, 01:03 PM   #3
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Original Poster
Rep: Reputation: 30
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?
 
Old 05-29-2006, 10:03 AM   #4
peter72
Member
 
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Blog Entries: 1

Rep: Reputation: 30
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
 
Old 06-15-2006, 05:30 PM   #5
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Original Poster
Rep: Reputation: 30
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...
 
Old 06-16-2006, 01:47 PM   #6
peter72
Member
 
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Blog Entries: 1

Rep: Reputation: 30
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
 
Old 06-16-2006, 10:45 PM   #7
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Original Poster
Rep: Reputation: 30
yes, the original plays fine.

how would I install the acc encoder- I thought I had them all installed

thx for your help
 
Old 07-02-2006, 12:43 PM   #8
koy
Member
 
Registered: Apr 2003
Distribution: SuSe 10
Posts: 55

Rep: Reputation: 15
nice script peter72, works perfectly!

what would be the easy way to batch that script to do more avi's at a time?
 
Old 07-05-2006, 12:12 PM   #9
peter72
Member
 
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Blog Entries: 1

Rep: Reputation: 30
I would do a simple for loop wrapper. ie
Code:
user@comp>$ for i in *.avi ; do ./ipod.sh $i ; done
 
Old 12-30-2006, 02:48 PM   #10
sharperguy
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
It is possible to reverse this process (ie: convert m4v to mpeg or other)?
 
Old 01-18-2007, 11:57 AM   #11
dmbkiwi
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Rep: Reputation: 0
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.
 
Old 08-15-2008, 08:34 PM   #12
everthonvs
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
Smile 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"
 
Old 08-15-2008, 08:35 PM   #13
everthonvs
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
P.S.: from How to FAST convert your videos to iPod MP4 on Ubuntu
 
Old 01-07-2024, 02:23 AM   #14
Kaizien48
LQ Newbie
 
Registered: Jan 2024
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by peter72 View Post
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!
 
  


Reply

Tags
ipod, mp3, video



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
Linux Video Converter ghackett Linux - Software 9 09-30-2010 03:36 AM
Video Converter? gauge73 Linux - Software 13 01-21-2009 08:20 PM
Video Converter in Linux kaon Linux - Software 6 01-21-2009 02:12 AM
general video converter to mpeg4(ipod) true_atlantis Linux - Software 2 02-05-2006 04:51 AM
LXer: Video Without Boundaries, Inc. Linux-based Media Centers to Support Apple iPod and iTunes, Google Video, AOL Optimized 9.0, and More LXer Syndicated Linux News 0 12-29-2005 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:13 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