Re: Convert avi and vob files to ipod video format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert L Cochran wrote:
> How can I convert either *.avi or *.vob files to a format that can
> be synced to my new iPod Nano -- the wide one? 8 Gb.

The new iPod's aren't yet working with any of the apps that use
libgpod to communicate (Amarok, Gtkpod, Rhythmbox, Quod Libet, to name
a few).  In order to sync to them, you need to build libgpod from it's
Subversion repository and then rebuild your other applications with
that new libgpod.  I know gtkpod works with the latest libgpod and I
am fairly sure that amarok and rhythmbox do as well.

I don't have access to one of the new iPod's, so I can't give you a
first hand report that it all works.  If you go this route, check out
the gtkpod lists on sourceforge to report problems or success.

As far as converting video from various formats, I'm sure there are
numerous methods you can use.  I used a script I found somewhere to do
this a few times.  It popped up a little dialog asking you what file
you wanted to convert, the video size to use (TV, Widescreen, DVD),
and where to put the output.  I'll attach that script.  I converted
it's dialogs from Spanish to English, but other than that I haven't
used it since I downloaded it a year or so ago.

Then it used ffmpeg to do the conversion.  You won't find ffmpeg in
the standard repos.  It is available from a few 3rd party repos
though.

Searching videohelp.com for convert to ipod linux turns up a number of
articles that may be useful.  One links to an ffmpeg frontend called
WinFF that looks like it may be useful. http://biggmatt.com/winff/

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Most people would sooner die than think; in fact, they do so.
    -- Bertrand Russell (1872-1970)

#!/bin/bash

# Version 2.0
# (c)2006 Rubén Rodríguez Pérez

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this package; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# # 02111-1307, USA.



function video43(){
ffmpeg -y -i "$1" -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ar 44100 -ab 192 -s 554x416 -aspect 4:3 "$2"  2> /tmp/ipodvideo.log 
}
function video235(){
ffmpeg -y -i "$1" -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ar 44100 -ab 192 -s 716x320 -aspect 2.35 "$2"  2> /tmp/ipodvideo.log
}
function video169(){
ffmpeg -y -i "$1" -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ar 44100 -ab 192 -s 640x360 -aspect 16:9 "$2" 2> /tmp/ipodvideo.log
}

function process(){
echo 1
$ratio "$input" "$output"
if [ $? -eq 0 ]
then
	zenity --info --title="Finished" --text "Successfully processed video"
else
	zenity --text-info --title="Error!"  --filename="/tmp/ipodvideo.log"

fi
echo 100

}
zenity --info --title="Video Converter for iPod" --text="This program converts video files for use on an iPod.
It requires ffmpeg to be installed.

USAGE:
Select the file you want to convert
Select the aspect ratio
Select the folder in which to save the file
The video will be converted for use on your iPod

Copyright(C) 2006 Rubén Rodríguez Pézez."

input=`zenity --file-selection --multiple --title="Select the file you want to convert"`
ratio=`zenity --list  --title="Ratio" --text="Select the aspect ratio" --hide-column=1 --column=" " --column=Ratio video43 "4:3   - TV" video169 "16:9 - TV (Widescreen)" video235 "2.35 - DVD"`
outdir=`zenity --file-selection --directory --title="Select folder"`

if [ -n "$outdir" ]; then
    [ ! -d "$outdir" ] && mkdir "$outdir"
    output="$(basename "$input")"
    output="${output%.*}"
    output="$outdir/$output.mp4"
else
    zenity --info --text="You must select a folder to save the file in."
    exit 1
fi

if [ -f "$output" ]
then
	zenity --question --text="The file $output already exists.
Overwrite it?" || exit
fi

process | zenity --progress --title="Processing" --text="Converting video file" --pulsate --auto-close 

Attachment: pgpZMBQn0CbWB.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux