PDA

View Full Version : HowTo: Encode Video for iPod Video



Pages : [1] 2 3

endersshadow
January 9th, 2006, 10:10 PM
------Last Update------
January 1, 2008: Started the New Year off with minor changes. Modified the installed packages for Gutsy and the FFMPEG SVN configure commands for the latest SVN.
------------------------

After much searching and about a week of on and off again attempts, I finally got video to encode for my iPod Video. So, I thought I'd share with you how.

This HowTo is broken up into three sections:
Vive
Transferring Video to the iPod Video
Encoding Video to the iPod Video

Vive

Vive (http://vive.sourceforge.net) is the project that stemmed out of this HowTo. It is a GUI for ffmpeg, but has presets already loaded for the iPod (just for you!). Downloads can be found here (http://sourceforge.net/project/showfiles.php?group_id=158461).

Currently, 2.0.0-beta1 is released, or you can use the SVN version. I always make sure that it runs before I commit to the SVN, so that would be the recommended way to go about it. Here's how to install it (you need to install ffmpeg first, so see below for it):


sudo apt-get install vobcopy mplayer libgtk2.0-dev libvte-dev libgnome2-dev libgnomeui-dev

If you want DVD support, you need to do the following. If you do not want it, you must use the --disable-dvd flag for ./configure.

sudo apt-get install libdvdcss2-dev libdvdnav-dev libdvdread-dev

Next, installation is rather simple (assuming you get the package either via the released package (https://sourceforge.net/project/showfiles.php?group_id=158461), or via the SVN (https://sourceforge.net/svn/?group_id=158461).

./configure --prefix=/usr
make
sudo make install

Also, if you'd like the preloaded presets, please do the following:

mkdir ~/.vive
cp examples/preferences ~/.vive

Transferring Video to the iPod Video

You will need to use gtkpod (http://gtkpod.sourceforge.net) to transfer your files to your iPod. It's only one command:


sudo apt-get install gtkpod-aac

This provides the ability to load video and audio that use the AAC sound codec, and it's also built with MPEG4 support. If anybody remembers the old instructions, this is MUCH easier.

Congratulations, you can now transfer videos to your iPod Video :-D

Encoding Video for the iPod Video

Dapper Packages!!!
SBX has been kind enough to create .deb packages for ffmpeg and Vive for Dapper. You can get them here (http://skulboxx.com/Ubuntu/sbx/) and install them both with sudo dpkg -i packagename.deb. Thanks so much to SBX for this contribution!

In order to encode video for the iPod Video, you need to install ffmpeg from source because it does not come with the support needed for the iPod Video format for a litany of legal reasons concerning the distribution of Ubuntu. Luckily, this is still very legal, and you are not breaking any law in the United States or anywhere else by configuring and installing ffmpeg in this way. This section of the guide is broken into two subsections:

1. Installing ffmpeg
2. ipodvidenc Script

The ipodvidenc Script is a simple bash script written by me to make encoding videos for the iPod Video quick and painless. Now, without further interruption, how to encode video for the iPod Video:

Installing ffmpeg

First, we need to fix ffmpeg for Ubuntu. We'll build it from source...but don't worry, it won't hurt. We'll also need to install some other libraries. So, here goes:


sudo apt-get install liblame-dev libxvidcore4-dev libx264-dev libfaac-dev libfaad2-dev liba52-dev libdc1394-dev libgsm1-dev libtheora-dev libvorbis-dev
sudo apt-get build-dep ffmpeg

There are 2 ways to do this. The version in the Ubuntu repositories does not have x264 support correct. You get an error in the ffmpeg code when you try to compile it. This can be averted by using the SVN version of ffmpeg. However, there are different flags to use, so the first one is using the ffmpeg in the repos (aka no x264), and the second is via the SVN (aka with x264).

Without x264:

apt-get source ffmpeg
cd ffmpeg-*/
./configure --enable-gpl --enable-pp --enable-vorbis \
--enable-libogg --enable-a52 --enable-dts \
--enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \
--enable-faad --enable-faac --enable-xvid --enable-pthreads --enable-shared
make
sudo make install

With x264:

sudo apt-get install subversion
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg/
./configure --prefix=/usr --enable-gpl --enable-pp --enable-pthreads --enable-libdc1394 --enable-liba52 --enable-libfaac \
--enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis \
--enable-libx264 --enable-libxvid --enable-shared --disable-debug
make
sudo make install

You're done! You can now enjoy ffmpeg!

ipodvidenc Script

And last, but certainly not least, you can create a script for converting your videos to iPod Video format.


gedit

This should pop up a blank document. Now, just copy and paste this code into it:


#!/bin/bash
## ipodvidenc - The iPod Video Encoder for Linux.
## Created by Eric Hewitt, January 9, 2006.
## Released under the GPL. Go nuts.

input_file=$1

echo "What would you like to name the output file (sans extension)?"

read output_file_name

echo "$output_file_name will be located in $PWD. Is this acceptable? [y/n]"

read output_file_loc_permis

if [ $output_file_loc_permis = 'n' ] || [ $output_file_loc_permis = 'N' ]
then
echo "Where would you like to store $output_file_name.mov?"
read output_dir
else
output_dir=$PWD
fi

ffmpeg -i "${input_file}" -f mp4 -vcodec mpeg4 -maxrate 1000k -b 700k -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 "${output_dir}/${output_file_name}.mov"

Save as ipodvidenc in your present working directory (it will be moved, anyway). Back in the terminal, run:


chmod 755 ipodvidenc
sudo mv ipodvidenc /usr/bin

Now, when you want to encode a video to iPod format, run this command:


ipodvidenc video.avi

It will run you through a few prompts and then encode the video. You can now use gtkpod to upload the video onto your iPod just like you load mp3's onto it.

*Note: You can now use ipodvidenc to encode straight from a *.vob file. This way, you can rip your DVDs using dvd::rip, and then simply encode them by passing them through ipodvidenc. Make sure that you compile ffmpeg with a52 support in order to do this, though.

This is a very basic script if you do not want the much larger and GUI version of ipodvidenc which can be found attached.

Fixing Video for the 60GB iPod v1.1 Firmware

In the new firmware for the 60GB iPods, video will play for 15 seconds, stop, and then continue without audio. If this happens to you, you need to install gpac, like this:


sudo apt-get install gpac

You can then remux the video so that it will work on your iPod using the following command:


MP4Box -add videofile.mov videofile.mov

A note: You can use the same name for the input and the output...it will simply overwrite the existing file.

Happy encoding!

Credits:
Original Sources:

http://ubuntuforums.org/showthread.php?t=108255
http://clug.net.nz/index.php/IpodSupportUnderLinux
A page that I can't find right now that supplied me with the correct ffmpeg command...I'd really like to give credit to them, but I can't seem to find it. If anybody finds it, let me know, and I'll update this to give them full credit.

Much thanks to:

Iandefor (http://ubuntuforums.org/member.php?u=39464) for countless suggestions, bugfixes, and corrections.
Dromio (http://ubuntuforums.org/member.php?u=10869) for corrections.
quietglow (http://ubuntuforums.org/member.php?u=33815) for corrections and the .deb support for mpeg4ip
pestilence4hr (http://ubuntuforums.org/member.php?u=9507) for corrections regarding the building of ffmpeg
hal pacino (http://ubuntuforums.org/member.php?u=59888) for the info about MP4Box
SBX for the Dapper packages.
Sir_Yaro (http://ubuntuforums.org/member.php?u=51286) for information about the mpeg4ip error correction.

endersshadow
January 12th, 2006, 02:37 AM
Update: Now on the Wiki (https://wiki.ubuntu.com/iPodVideo) :-D

I've decided to make this post the Change Log, so here it is:

------------------------
Updated: January 1, 2008: Started the New Year off with minor changes. Modified the installed packages for Gutsy and the FFMPEG SVN configure commands for the latest SVN.
Updated: July 20, 2007: Huge news! Vive 2.0.0 has finally been released! Download it here (https://sourceforge.net/project/showfiles.php?group_id=158461)! Also, an Ubuntu Feisty package has been added. I suggest that you use the Medibuntu (http://medibuntu.org) repository to meet the dependencies, as the Ubuntu package is compiled to allow DVD usage. Enjoy!
Updated: July 11, 2007: Vive 2.0.0-beta2 is now available! New features include multiple file and folder support, a simplified and streamlined interface, and a lot of behind the scenes stuff that makes me sleep better at night but you won't notice unless you look at the code. So download it today (https://sourceforge.net/project/showfiles.php?group_id=158461)!
Updated: June 1, 2007: Fixed some legacy issues with the bitrate handling of ffmpeg (used to be in kb/s, now in b/s) for the script and ipodvidenc, which is now v1.6.
Updated: April 20th, 2007: Major update for Feisty & Edgy - MUCH EASIER!!!
Updated: December 12th, 2006: ffmpeg configure altered to support H.264 format.
Updated: November 7th, 2006: Post updated with tweaks so that it will work on Edgy.
Updated: October 2nd, 2006: Released Vive 1.0.2 as a bug-fix release. You can find it on Sourceforge (http://sourceforge.net/project/showfiles.php?group_id=158461).
Updated: September 20th, 2006: Released Vive 1.0.1 to fix the configure script.
Updated: September 18th, 2006: Released Vive 1.0.0. Check it out at http://vive.sourceforge.net! Note: It will detect a previous version of Vive and update it accordingly without deleting any of your previously saved preferences!
Updated: June 4th, 2006: Released Vive 0.3 Beta 2 Release. Check it out at http://vive.sourceforge.net! Note: It will detect a previous version of Vive and update it accordingly without deleting any of your previously saved preferences!
Updated: May 21st, 2006: Added error correction for mpeg4ip thanks to Sir_Yaro. Also added the shameless self promotion of Vive.
Updated: April 30th, 2006: Okay, I know that it's been a while, but here are some updates. First, SBX gave us Dapper packages of Vive and ffmpeg. Go SBX. Second, I found out that the XML Perl Parser is in the repos...I'm an idiot...so I included it. Third, I added how to remux videos for the 60GB iPod v1.1 Firmware, and much thanks to hal pacino for that. I haven't forgotten about Vive...I'm just really busy, but it's almost ready for 0.3 to be unleashed...I went back and rewrote most of the code to make it a bit better.
Updated: March 23rd, 2006: I've released Vive 0.2 (Beta Release) (http://vive.sourceforge.net), and have attached a screenshot of the main window and the preferences window!
Updated: February 27th, 2006: I've released Vive (http://vive.sourceforge.net), and have attached a screenshot!
Updated: February 10th, 2006: Updated install script and HowTo to correct libgpod installation issues, as well as added to the HowTo and the Wiki the same information.
Updated: January 26th, 2006: Updated iPod Video Encoder to version 1.5 to include OGM support as requested here (http://ubuntuforums.org/showthread.php?p=682988#post682988).
Updated: January 25th, 2006: Updated iPod Video Encoder to version 1.4. There are so many new features, that I'm just including the full change log:

NEW: Added default videos directory option.
NEW: Added CLI interface.
NEW: Added support for standard size AVI encoding.
NEW: Added support for standard size MPEG encoding.
NEW: Added a preview feature.
NEW: Added help file. (Access via ipodvidenc -h).
IMPROVED: Condensed the installation to one script that automatically detects your previous level of installation.
IMPROVED: Uninstall script updated.
BUG FIX: Inability to remove original files with spaces in the name bug fixed.
BUG FIX: Overwriting existing files bug fixed.
Updated: January 24th, 2006: Updated iPod Video Encoder to version 1.3 to fix a couple of bugs and add a new feature, options, to cut down on the number of dialogs in the ripping and encoding process.
Updated: January 23rd, 2006: Updated iPod Video Encoder and HowTo to correct some ffmpeg configuration errors. Also added some features/improvements and bug fixes to iPod Video Encoder. See attached README file for a detailed list of changes to iPod Video Encoder
Updated: January 17th, 2006: Updated HowTo and iPod Video Encoder (to v1.1) to use dpkg-buildpackage to build ffmpeg. Much thanks to pestilence4hr (http://ubuntuforums.org/member.php?u=9507), who brought this to my attention!
Updated: January 16th, 2006: Added iPod Video Encoder (ipodvidenc), the GUI to make iPod Videos.
Updated: January 14th, 2006: Added .deb package for mpeg4ip and updated format of the HowTo as well as the Sources. Also editted the title.
Updated: January 13th, 2006: Added support for encoding vob files, and ipodvidenc script modified slightly for optimization. Also corrected the commands to install mpeg4ip.
Updated: January 12th, 2006: Corrected commands associated with compiling and installing mpeg4ip.
------------------------

Iandefor
January 12th, 2006, 06:18 AM
Good guide. I'll do it someday, when I get a 5th generation iPod. Until then, I'll adapt it to my *cough* encoding needs.

sbaush
January 12th, 2006, 10:32 AM
Thanks for this howto that i've aked for!!!
You're great!!

endersshadow
January 12th, 2006, 05:22 PM
Quite welcome...and trust me, I'm not that great...just a guy who was determined to get his iPod Video to work on Ubuntu :KS

Dromio
January 12th, 2006, 05:34 PM
Thanks for the tutorial. I'm having some trouble getting the dependencies installed.

sudo apt-get install libfaad2-dev libfaac-dev libxvidcore4-dev checkinstall fakeroot
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libxvidcore4-dev: Depends: libxvidcore4 (= 2:1.0.3-0.0) but 2:1.1.0-beta1-0.0 is to be installed
E: Broken packages

I don't think I've done anything to get a special version of libxvidcore4, but I suppose it is possible. Do you have any suggestions on how to fix this?

Dromio
January 12th, 2006, 08:03 PM
I got synaptic to pin the older version of libxvidcore4, so I'm ok with that now.

But now I'm getting confused while compiling and installing mpeg4ip.

It looks to me like


cp mpeg4ip_config.h mpeg4ip_version.h /usr/local/include
cp include/mpeg4ip.h /usr/local/include

should actually be


sudo cp mpeg4ip_config.h /usr/local/include

sudo cp include/mpeg4ip.h include/mpeg4ip_version.h /usr/local/include

(need to be superuser to copy to /usr/local/include and the mpe4ip_version.h file is actually under the include folder in the source)

Then, you edit the makefile for the lib/mp4v2 subfolder. Do you compile within that subfolder, or go back to the root folder to compile everything? When it asks for a package name, it's suggesting mp4v2, which seems a far cry from mpeg4ip.

endersshadow
January 13th, 2006, 03:41 AM
All apologies...you're right, it does need to be sudo.

And you need to do the configure, make, and install from the main mpeg4ip directory. I'll update the HowTo.

I apologize...as I said, it was a long time of me trying different things, and then finally getting to work, and then I had to sort through my .bash_history file to get all the correct commands...sorry for that!

endersshadow
January 13th, 2006, 06:52 AM
Update: Added instructions on how to convert straight from raw vob files. Note that if you've followed this HowTo before, you just need to do:


sudo apt-get install liba52-0.7.4 liba52-0.7.4-dev

Then add the line:


confflags += --enable-a52

To the debian/rules file in the ffmpeg source directory. Then in the ffmpeg source directory run:


./configure && make && sudo make install

You'll be all set :)

putte30
January 13th, 2006, 09:23 AM
Getting dependency problem with "sudo apt-get build-dep ffmpeg", any idea?

Been looking for a guide like this for months, thanks man. :)

endersshadow
January 13th, 2006, 01:06 PM
Getting dependency problem with "sudo apt-get build-dep ffmpeg", any idea?

Been looking for a guide like this for months, thanks man. :)

Post your full output here, so we know what the error is. I'll try to get back to it today, but I'm moving back to school today, so bear with me :-D

And you're welcome.

Dromio
January 13th, 2006, 02:37 PM
No need to apologize, I understand how hard this must have been to get together.

As a stickler, here's a couple of corrections:



sudo cp mpeg4ip_config.h mpeg4ip_version.h /usr/local/include
sudo cp include/mpeg4ip.h /usr/local/include

should actually be


sudo cp mpeg4ip_config.h /usr/local/include
sudo cp include/mpeg4ip.h include/mpeg4ip_version.h /usr/local/include


And when you put in


cd ../
make
sudo checkinstall -D make install

you should actually be going up 2 levels:


cd ../..
make
sudo checkinstall -D make install

Dromio
January 13th, 2006, 02:38 PM
I'm still have trouble compiling mpeg4ip. I must be missing some dependency:



/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_init':
: undefined reference to `dts_init'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_frame'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_blocks_num'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_block'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_samples'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_blocks_num'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_syncinfo'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_frame':
: undefined reference to `theora_decode_packetin'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_frame':
: undefined reference to `theora_decode_YUVout'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_end':
: undefined reference to `theora_info_clear'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_end':
: undefined reference to `theora_comment_clear'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_init':
: undefined reference to `theora_info_init'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_init':
: undefined reference to `theora_decode_header'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_init':
: undefined reference to `theora_decode_init'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_init':
: undefined reference to `gsm_create'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_close':
: undefined reference to `gsm_destroy'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_encode_frame':
: undefined reference to `gsm_encode'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_decode_frame':
: undefined reference to `gsm_decode'
collect2: ld returned 1 exit status


Anyone have any idea what could be missing?

putte30
January 13th, 2006, 03:39 PM
Post your full output here, so we know what the error is. I'll try to get back to it today, but I'm moving back to school today, so bear with me :-D

And you're welcome.

Im getting :

Observe, choosing liba52-0.7.4-dev instead of liba52-dev

Builddependency for ffmpeg could not be satisfied.

(Translated from Swedish ;) )

Also problem with :

The following packages have unmet dependencies:
libxvidcore4-dev: Depends: libxvidcore4 (= 2:1.0.3-0.0) but 2:1.1.0-beta1-0.0 is to be installed
E: Broken packages


Something missing in my sources.list?

Dromio
January 13th, 2006, 03:42 PM
The following packages have unmet dependencies:
libxvidcore4-dev: Depends: libxvidcore4 (= 2:1.0.3-0.0) but 2:1.1.0-beta1-0.0 is to be installed
E: Broken packages

I had this issue as well. It looks like the libxvidcore4-dev package is currently broken. You have to set apt to "pin" to the older version of libxvidcore4. I don't know how to do this using apt, but in Synaptic you just select the package and choose Package >> Force Version.

Dromio
January 13th, 2006, 03:46 PM
I solved my compile issue by removing libavcodec-dev from my system. Now on to the next step. . .

Dromio
January 13th, 2006, 04:05 PM
I finally made it through and have gtkpod running!

I could not find libgpod in any of my repositories. Instead, I got it from picpac's post in this thread (http://ubuntuforums.org/showthread.php?t=104937).

I have to wait to actually try it out until I get home and can plug in the ipod.

quietglow
January 13th, 2006, 04:13 PM
Not to derail the excellent conversation, but I thought I'd share. I've been holding back on picking up a 5G but this thread finally pushed me over the edge: I just got back from picking one up! I'm going to use this guide to start doing my own conversions in a bit. Right now I'm just enjoying the 8 zillion video podcasts via itunes. Man this thing rocks!

Don't underestimate the influence of your good work!

endersshadow
January 14th, 2006, 01:26 AM
Dirmo, thanks for your input. I've updated the HowTo.

As I said, I tried to piece together everything after I found it worked...it's a shame that I didn't take any notes...

And quietglow, you're quite welcome...I'm happy a few people can benefit from it.

daigorobr
January 14th, 2006, 12:13 PM
First of all, great guide, man. I don't own an iPod but all the info on ffmpeg and its tricks are useful for PSP encoding.
My question is: all my videos encoded in MP4 format with AAC audio seem to crash Nautilus (right clicking it and going to Properties). I though it was something I did wrong, but I saw that downloaded videos from Google Video for the PSP also do it.
Does it happen with iPod videos? Can somebody confirm and reproduce it?

putte30
January 14th, 2006, 02:58 PM
Anyone got a solution for my problem? :confused:

Observe, choosing liba52-0.7.4-dev instead of liba52-dev

Builddependency for ffmpeg could not be satisfied.

(Translated from Swedish )

Solved! The problem was a conflikt with Kubuntu, I uninstalled it and now it works!

quietglow
January 14th, 2006, 03:28 PM
Again, wonderful guide!

Just a note that may save someone some serious messing around time:

If you don't already have a /usr/local/include folder, you need to make one before you start this whole process:


sudo mkdir /usr/local/include

If you don't, when you do this:


sudo cp mpeg4ip_config.h /usr/local/include

You'll get a file (not a directory) with the content of mpeg4ip_config.h.

This will cause havoc with your compiler!

quietglow
January 14th, 2006, 04:26 PM
I know this is cheating, but after my third unsucessful attempt to compile mpeg4ip I got desperate and found this:

http://rarewares.org/debian/packages/unstable/mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb

Compiled gtkpod and I have video transfer! Now on to converting my own stuff...

endersshadow
January 15th, 2006, 12:13 AM
I know this is cheating, but after my third unsucessful attempt to compile mpeg4ip I got desperate and found this:

http://rarewares.org/debian/packages/unstable/mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb

Compiled gtkpod and I have video transfer! Now on to converting my own stuff...

That's not cheating, that's just what you call "better" haha.

I'll post it in the guide as an alternative, because I know that mpeg4ip is a pain and a half sometimes with dependencies and the like.

Thanks!!!

Oh, and a quick sneak peak into what I'm working on now: A program to rip straight from DVD to iPod format. Stay tuned :-D

quietglow
January 15th, 2006, 05:17 AM
Oh, and a quick sneak peak into what I'm working on now: A program to rip straight from DVD to iPod format. Stay tuned

Man that would rock! I'm finally getting round to watching some podcasts (diggnation rules) and would LOVE to be able to go directly from DVD to ipod. Imagine the Family Guy episodes!

Iandefor
January 16th, 2006, 06:01 AM
Man that would rock! I'm finally getting round to watching some podcasts (diggnation rules) and would LOVE to be able to go directly from DVD to ipod. Imagine the Family Guy episodes! Don't just stop at Family Guy! Go for something like Invader Zim or Neverwhere!

endersshadow
January 16th, 2006, 06:11 AM
As promised, I've written the GUI for this.

Check it out in the original post :-D

Iandefor
January 16th, 2006, 06:14 AM
And don't forget to mention you need vobcopy for the encoding script to work :-D!

endersshadow
January 16th, 2006, 06:16 AM
And don't forget to mention you need vobcopy for the encoding script to work :-D!

I added it to the install scripts to automatically install it.

Thanks for the heads up!

Edit: It uses cpdvd, as well. I added the apt-get install in the scripts, as well.

vobcopy and cpdvd are installed in both the baseinstall and install scripts.

Thanks Iandafor!

Another edit: Added a question dialog asking if you would like to delete the VOB...again, thanks to Iandafor :)

pestilence4hr
January 17th, 2006, 06:35 AM
Since you are modifying debian/rules, shouldn't you be building with


fakeroot dpkg-buildpackage

Doing ./configure && make doesn't pick up the options that you modified debian/rules to specify.

endersshadow
January 17th, 2006, 07:13 AM
Since you are modifying debian/rules, shouldn't you be building with


fakeroot dpkg-buildpackage

Doing ./configure && make doesn't pick up the options that you modified debian/rules to specify.

Updated the program, the HowTo, and the Wiki.

Thank you!

Iandefor
January 17th, 2006, 07:23 AM
I added it to the install scripts to automatically install it.

Thanks for the heads up!

Edit: It uses cpdvd, as well. I added the apt-get install in the scripts, as well.

vobcopy and cpdvd are installed in both the baseinstall and install scripts.

Thanks Iandafor!

Another edit: Added a question dialog asking if you would like to delete the VOB...again, thanks to Iandafor :) Very much welcome. Anything to help a "friend" :-D.

pestilence4hr
January 18th, 2006, 04:17 AM
Thank you!

No problem, I'm glad you wrote this guide. I have a question that perhaps you can answer. Should a video encoded in this manner be transferrable to the ipod through itunes in windows? (I skipped the mpeg4ip and gtkpod step, since I don't own an ipod and the person I am encoding for doesn't run linux)

Perhaps I did something wrong, and maybe it doesn't help that I have to first transcode from rmvb using mencoder to something that ffmpeg can transcode. But quicktime won't play it and itunes won't transfer it to the ipod. Maybe I'll have to get the ipod here and hook it up to gtkpod ;)

endersshadow
January 18th, 2006, 07:11 AM
No problem, I'm glad you wrote this guide. I have a question that perhaps you can answer. Should a video encoded in this manner be transferrable to the ipod through itunes in windows? (I skipped the mpeg4ip and gtkpod step, since I don't own an ipod and the person I am encoding for doesn't run linux)

Perhaps I did something wrong, and maybe it doesn't help that I have to first transcode from rmvb using mencoder to something that ffmpeg can transcode. But quicktime won't play it and itunes won't transfer it to the ipod. Maybe I'll have to get the ipod here and hook it up to gtkpod ;)

In theory, it should work...but I don't know, I don't have a Windows computer at my disposal.

But note that gtkpod will not recognize an iTunesDB that was created with iTunes...gtkpod still has a ways to go in development before it's totally interoperable...unfortunately :-|

Heliode
January 18th, 2006, 10:39 PM
But note that gtkpod will not recognize an iTunesDB that was created with iTunes...gtkpod still has a ways to go in development before it's totally interoperable...unfortunately :-|

Well, I regularly use iTunes as well as GTKPod, but all I get from GTKPod after using iTunes is this:


iTunesDB '/media/ipod/iPod_Control/iTunes/iTunesDB' does not match checksum in extended information file '/media/ipod/iPod_Control/iTunes/iTunesDB.ext'
gtkpod will try to match the information using MD5 checksums. This may take a long time.

And after a while everything is fine
(the "a long time" part is greatly exaggerated

endersshadow
January 19th, 2006, 04:51 AM
Well, I regularly use iTunes as well as GTKPod, but all I get from GTKPod after using iTunes is this:


iTunesDB '/media/ipod/iPod_Control/iTunes/iTunesDB' does not match checksum in extended information file '/media/ipod/iPod_Control/iTunes/iTunesDB.ext'
gtkpod will try to match the information using MD5 checksums. This may take a long time.

And after a while everything is fine
(the "a long time" part is greatly exaggerated

It's cracking an MD5 sum...which...in many cases, does take a long time :-D

Heliode
January 19th, 2006, 04:22 PM
Doesn't even take a minute on my PC. The only thing GTKpod screws up for me is the top-25 most played list, which it fills with whatever I last copied onto the pod...

endersshadow
January 19th, 2006, 08:51 PM
Doesn't even take a minute on my PC. The only thing GTKpod screws up for me is the top-25 most played list, which it fills with whatever I last copied onto the pod...

Cool! This is good info to know, thank you!

Heliode, could you perhaps test the uploading of videos encoded by ffmpeg in Ubuntu using iTunes in Windows?

Heliode
January 20th, 2006, 01:14 AM
Cool! This is good info to know, thank you!

Heliode, could you perhaps test the uploading of videos encoded by ffmpeg in Ubuntu using iTunes in Windows?

Don't have an iPod Video, just an iPod Photo. And I don't feel like ponying up another $300 :p

Your howto was useful for me to get the latest version of GTKPod running though... the older one was a bit buggy.

hatstand
January 20th, 2006, 05:30 AM
Have follwed the howto and I get the app in my menu and all seems to work but it doesn't make videos!

I looked into the config log and was told that libgopd was not found.

So I downloaded libgpod.
Cant configure it: het this message:
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool


Help!

endersshadow
January 20th, 2006, 06:40 AM
Have follwed the howto and I get the app in my menu and all seems to work but it doesn't make videos!

I looked into the config log and was told that libgopd was not found.

So I downloaded libgpod.
Cant configure it: het this message:
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool


Help!

http://ubuntuforums.org/showpost.php?p=282843&postcount=2


To install the XML parser, run the following command:


sudo perl -MCPAN -e shell


When asked to do a manual configuration, type no

At thecpan> prompt type:


install XML::Parser


After the installation complete, type exit and try to install gnomeicu and gnome-ppp again

That should fix the problem :-D

juantxorena
January 20th, 2006, 01:07 PM
When I try to encode a video I get this:

What would you like to name the output file (sans extension)?
Cradle\ Of\ Filth\ -\ From\ The\ Cradle\ To\ Enslave
Cradle Of Filth - From The Cradle To Enslave will be located in /home/juantxorena/Incoming/videos. Is this acceptable? [y/n]

/usr/bin/ipodvidenc: line 16: [: =: unary operator expected
/usr/bin/ipodvidenc: line 16: [: =: unary operator expected
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
Cradle: I/O error occured
Usually that means that input file is truncated and/or corrupted.
I can watch videos with Xine properlly. Help?

endersshadow
January 20th, 2006, 01:58 PM
When I try to encode a video I get this:

What would you like to name the output file (sans extension)?
Cradle\ Of\ Filth\ -\ From\ The\ Cradle\ To\ Enslave
Cradle Of Filth - From The Cradle To Enslave will be located in /home/juantxorena/Incoming/videos. Is this acceptable? [y/n]

/usr/bin/ipodvidenc: line 16: [: =: unary operator expected
/usr/bin/ipodvidenc: line 16: [: =: unary operator expected
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
Cradle: I/O error occured
Usually that means that input file is truncated and/or corrupted.
I can watch videos with Xine properlly. Help?

Try naming it without spaces.

I believe that this is a limitation with bash...as I said, I whipped this script up quickly...it's rough around the edges, but it works...

When I get some time to do it, I'll improve it a lot...but for now you have to work with bash :-|

Sorry.

Iandefor
January 20th, 2006, 05:08 PM
Try naming it without spaces.

I believe that this is a limitation with bash...as I said, I whipped this script up quickly...it's rough around the edges, but it works...

When I get some time to do it, I'll improve it a lot...but for now you have to work with bash :-|

Sorry. He could also try enclosing the filename in quotes. I think bash is interpreting the spaces to be seperate files.

riiidaa
January 20th, 2006, 11:31 PM
Guys,

I get the video successfuly encoded dialog but i also have no .mov in the destination folder, ran it from command line to find out this:

riiidaa@flag:~/downloaded-files$ ipodvidenc /home/riiidaa/downloaded-files/24se1 ep1.avi
Encode a video

(gnome-terminal:822): Gnome-WARNING **: Accessibility: failed to find module 'libgail-gnome' which is needed to make this application accessible
GTK Accessibility Module initialized
sorted this one

(gnome-terminal:822): Gnome-WARNING **: Accessibility: failed to find module 'libatk-bridge' which is needed to make this application accessible

Sorry I'm a noob, please help :confused:

juantxorena
January 21st, 2006, 10:43 AM
I got this when trying to convert a .avi video without spaces in the name (both output and input):

What would you like to name the output file (sans extension)?
cradle_of_filth_-_her_ghost_in_the_fog
cradle_of_filth_-_her_ghost_in_the_fog will be located in /home/juantxorena/Incoming/videos. Is this acceptable? [y/n]
/usr/bin/ipodvidenc: line 16: [: =: unary operator expected
/usr/bin/ipodvidenc: line 16: [: =: unary operator expected
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
Input #0, avi, from 'Cradle_of_Filth_-_Her_Ghost_In_The_Fog.avi':
Duration: 00:04:32.8, start: 0.000000, bitrate: 925 kb/s
Stream #0.0: Video: msmpeg4, yuv420p, 352x288, 25.00 fps
Stream #0.1: Audio: wmav2, 44100 Hz, stereo, 64 kb/s
Unknown codec 'aac'
I tried to convert it to mpg using ffmpeg and it works, so ffmpeg works. :???:

endersshadow
January 21st, 2006, 05:38 PM
Guys,

I get the video successfuly encoded dialog but i also have no .mov in the destination folder, ran it from command line to find out this:

riiidaa@flag:~/downloaded-files$ ipodvidenc /home/riiidaa/downloaded-files/24se1 ep1.avi
Encode a video

(gnome-terminal:822): Gnome-WARNING **: Accessibility: failed to find module 'libgail-gnome' which is needed to make this application accessible
GTK Accessibility Module initialized
sorted this one

(gnome-terminal:822): Gnome-WARNING **: Accessibility: failed to find module 'libatk-bridge' which is needed to make this application accessible

Sorry I'm a noob, please help :confused:

Try calling it using this command, instead:


ipodvidenc /home/riiidaa/downloaded-files/24se1\ ep1.avi

You have to escape the space with a \

juantxorena: You haven't compiled ffmpeg with AAC support. You need to make sure that ffmpeg is compiled with the --enable-faac flag.

riiidaa
January 21st, 2006, 06:53 PM
Try calling it using this command, instead:


ipodvidenc /home/riiidaa/downloaded-files/24se1\ ep1.avi

You have to escape the space with a \


Thanks but the 'libatk-bridge' issue is nothing to do with spaces in file names, I've tried using many diff source videos, and after reading the other posts I can see spaces in file names do cause problems, so made sure to try using files that don't have any.

Still looking for a resolution to my libatk-bridge nightmare - it's getting me down :mad: lol

Great work on the ipod vid project btw

riiidaa
January 21st, 2006, 08:02 PM
Still looking for a resolution to my libatk-bridge nightmare - it's getting me down :mad: lol

Great work on the ipod vid project btw

HEY, I solved this by installing the at-spi package.


BUT now it produces no error warnings and still no output file, any ideas?

endersshadow
January 21st, 2006, 09:58 PM
I noticed that you're using Kubuntu, so see if you can encode the video manually with this command:

ffmpeg -i infile.avi -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 outfile.mov

If not, post the error messages. The GUI program was written for Gnome :-|

endersshadow
January 21st, 2006, 09:59 PM
Itchy trigger finger...duplicate post :-|

hatstand
January 21st, 2006, 11:14 PM
I have a problem with this. I followed the instruction on this How To and it installed ipodvidenc OK, but when I try to encode a video file (have tried .avi so far), it guides me through the script but does nothing. The terminal flashes open for about .5 seconds, but no script is seen on it. Then I get the "successfully encoded" message and reques to delete the orignal, which I do.

No new film appears in the target folder and the old file still exists, yet ipodvidenc tells me that everything was succesful.

So i followed the instructions in the Wiki for ffmpeg and reinstalled ipodvidenc. Same results. i cannot use ffmpeg as I get this error:

$ ffmpeg -i filmmontealban.avi -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 output_file.
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
filmmontealban.avi: I/O error occured
Usually that means that input file is truncated and/or corrupted.
mat@ubuntu:~$ ffmpeg -i film montealban.avi -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 output_file.
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
film: I/O error occured
Usually that means that input file is truncated and/or corrupted.

As you can see, I tried it with and without spaces in the title, and from the directory that contains it. I changed the name to monte.avi and got a different message:

Input #0, avi, from 'monte.avi':
Duration: 00:00:11.0, start: 0.000000, bitrate: 1247 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 10.00 fps
Stream #0.1: Audio: pcm_u8, 8000 Hz, mono, 64 kb/s
Unknown codec 'aac'

endersshadow
January 23rd, 2006, 10:54 PM
I have a problem with this. I followed the instruction on this How To and it installed ipodvidenc OK, but when I try to encode a video file (have tried .avi so far), it guides me through the script but does nothing. The terminal flashes open for about .5 seconds, but no script is seen on it. Then I get the "successfully encoded" message and reques to delete the orignal, which I do.

No new film appears in the target folder and the old file still exists, yet ipodvidenc tells me that everything was succesful.

So i followed the instructions in the Wiki for ffmpeg and reinstalled ipodvidenc. Same results. i cannot use ffmpeg as I get this error:

$ ffmpeg -i filmmontealban.avi -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 output_file.
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
filmmontealban.avi: I/O error occured
Usually that means that input file is truncated and/or corrupted.
mat@ubuntu:~$ ffmpeg -i film montealban.avi -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 output_file.
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
film: I/O error occured
Usually that means that input file is truncated and/or corrupted.

As you can see, I tried it with and without spaces in the title, and from the directory that contains it. I changed the name to monte.avi and got a different message:

Input #0, avi, from 'monte.avi':
Duration: 00:00:11.0, start: 0.000000, bitrate: 1247 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 10.00 fps
Stream #0.1: Audio: pcm_u8, 8000 Hz, mono, 64 kb/s
Unknown codec 'aac'

Do the following in the terminal:


cd ~/.ipodvidenc/install/ffmpeg-*cvs*/
./configure --enable-gpl --enable-pp --enable-zlib --enable-vorbis \
--enable-libogg --enable-theora --enable-a52 --enable-dts \
--enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \
--enable-faad --enable-faac --enable-xvid --enable-a52
make
sudo make install

Then try it again. The first one was due to the spaces...I'm working on fixing that bug...

endersshadow
January 24th, 2006, 12:32 AM
I've updated iPod Video Encoder to v1.2 to fix a few bugs, and I added support for spaces in file names.

Also, I updated the install script...if you're having problems with ffmpeg, please run the full install or upgrade script to install. If you're encoding just fine, please just run the base install script for installation.

hatstand
January 24th, 2006, 03:30 AM
Do the following in the terminal:


cd ~/.ipodvidenc/install/ffmpeg-*cvs*/
./configure --enable-gpl --enable-pp --enable-zlib --enable-vorbis \
--enable-libogg --enable-theora --enable-a52 --enable-dts \
--enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \
--enable-faad --enable-faac --enable-xvid --enable-a52
make
sudo make install

Then try it again. The first one was due to the spaces...I'm working on fixing that bug...

It works! Perserverence and constant pestering pays off!

Endersshadow (btw, I love Ender's Game), YOU ARE THE MAN!

many, many thanks!:D

endersshadow
January 24th, 2006, 03:48 AM
All right hatstand! Glad to hear somebody else got this working! :-D

Oh, and also, I updated iPodVidEnc...I uploaded it earlier and then ran off to class and in class I sat there thinking to myself, "Oh boy...I uploaded the bugged devel version," and sure enough I did. So, if you've installed version 1.2, just redownload it and do the base install and all will be fine!

Iandefor
January 24th, 2006, 08:12 AM
Just an update/testimonial: after working with Endersshadow, we found a few problems in ipovidenc 1.2 which were quickly corrected. Ender has updated the script to 1.3. Get it on the guide! It's hot off the griddle!

Oh, and it's even working for me, who seems to have had the most trouble getting ffmpeg to work. Thanks again, Ender!

endersshadow
January 25th, 2006, 06:48 AM
Because I finally got it to work for Iandefor, I started adding features like crazy. Now, we're up to version 1.4 and it's better than ever!

Here's the full change log:

NEW: Added default videos directory option.
NEW: Added CLI interface.
NEW: Added support for standard size AVI encoding.
NEW: Added support for standard size MPEG encoding.
NEW: Added a preview feature.
NEW: Added help file. (Access via ipodvidenc -h).
IMPROVED: Condensed the installation to one script that automatically detects your previous level of installation.
IMPROVED: Uninstall script updated.
BUG FIX: Inability to remove original files with spaces in the name bug fixed.
BUG FIX: Overwriting existing files bug fixed.

As you can see, I've been busy...and I'm happy to release this version...it's awesome :-D

Iandefor
January 25th, 2006, 07:27 AM
Ender, you're crazy, but I love ya anyways for making such an awesome script :-D! The new features just make it soo much better! Thanks ten billion times over!

quietglow
January 26th, 2006, 03:47 PM
Oh man do you rock ender...

I'm thinking that this weekend if I can get some time, I'm going to try to put together a script which will pull video out of my MythTV folder at a specified time and then pass it on to ipodvidenc. I'm dreaming of waking up every morning to a video iPod synced to whatever I Myth-ed (doesn't have the ring of Tivo'd) the day before!

endersshadow
January 26th, 2006, 03:51 PM
Oh man do you rock ender...

I'm thinking that this weekend if I can get some time, I'm going to try to put together a script which will pull video out of my MythTV folder at a specified time and then pass it on to ipodvidenc. I'm dreaming of waking up every morning to a video iPod synced to whatever I Myth-ed (doesn't have the ring of Tivo'd) the day before!

Shouldn't be too hard...just use the command:


ipodvidenc -c ipod moviein.avi movieout.mov

:-D

riiidaa
January 28th, 2006, 03:34 PM
I noticed that you're using Kubuntu, so see if you can encode the video manually with this command:

ffmpeg -i infile.avi -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 outfile.mov

If not, post the error messages. The GUI program was written for Gnome :-|

Oops, was going to switch to kde after installing but desided to stick with Gnome.

I'll try your latest version from the top this weekend and hopefully it will produce .mov's :)

Vincent_Lin
January 31st, 2006, 10:25 PM
Hi,

I just purchased a VideoPod (not received yet) but I decided not to put money into buying a QuickTime license to do this encoding. This howto is great! Easy to follow and it's working in encoding my video colections into VPod format.

One small question: the script specifies -aspect to be 4:3. I believe this is due to the screen resolution that vpod has. Could any one tell me what I should specify if the original video is at the aspect ratio other than 4:3? Say 720x480 clip that has 3:2, or 16:9 from others? The first thing I tried this script on a video with 720x480 resolution, is to remove -aspect 4:3, but the result is still the same as if -aspect 4:3 is specified. Looks like the other option specified -s 320x240 dominates? The picture looks like it is been squeezed side-way. Persons look taller, you know, squeezed side-way.

The real question is: what options I could choose if I want to maintain 720x480 (3:2) or 16:9 aspect ratios since I don't mind to have two black bars on both top and bottom parts of the screen?

Thanks.

Vincent Lin

endersshadow
February 1st, 2006, 01:24 AM
Hi,

I just purchased a VideoPod (not received yet) but I decided not to put money into buying a QuickTime license to do this encoding. This howto is great! Easy to follow and it's working in encoding my video colections into VPod format.

One small question: the script specifies -aspect to be 4:3. I believe this is due to the screen resolution that vpod has. Could any one tell me what I should specify if the original video is at the aspect ratio other than 4:3? Say 720x480 clip that has 3:2, or 16:9 from others? The first thing I tried this script on a video with 720x480 resolution, is to remove -aspect 4:3, but the result is still the same as if -aspect 4:3 is specified. Looks like the other option specified -s 320x240 dominates? The picture looks like it is been squeezed side-way. Persons look taller, you know, squeezed side-way.

The real question is: what options I could choose if I want to maintain 720x480 (3:2) or 16:9 aspect ratios since I don't mind to have two black bars on both top and bottom parts of the screen?

Thanks.

Vincent Lin

Hey Vincent. Try making the aspect 3:2 instead of 4:3, but leave the size. The size is important because it's the size of the screen on the iPod.

Vincent_Lin
February 1st, 2006, 03:36 AM
Thanks.

That's about the only idea I think I would try.

Meanwhile, I am trying your GUI stuff on Gnome, and it works great.

I used to run DVD::rip to get my DVD collection onto HD, and really, it runs too slow. I am encoding DVDs on IBM X31 laptop (1.3GHz Centrino), my only fast machine, and it usually takes more than several hours to fully encode a movie, overnight is the way I would put it. But, with your GUI one, it seems it can be done within the time frame the same as the movie runs. I did not know transcode can be this slow. Hmmmm

Anyhow, iPod Video Encoder allows me to save the vob file (without deleting it) after the encoding for iPod is done. How about another option that allows me to specify the encoding options for the result file? Say the resulting resolution, maybe? I believe many people will appreciate the convenience and speed this iPod Video Encoder can bring to them (me).

Thanks for the great work that puts all these things together.

Vincent Lin

endersshadow
February 1st, 2006, 03:40 AM
Thanks.

That's about the only idea I think I would try.

Meanwhile, I am trying your GUI stuff on Gnome, and it works great.

I used to run DVD::rip to get my DVD collection onto HD, and really, it runs too slow. I am encoding DVDs on IBM X31 laptop (1.3GHz Centrino), my only fast machine, and it usually takes more than several hours to fully encode a movie, overnight is the way I would put it. But, with your GUI one, it seems it can be done within the time frame the same as the movie runs. I did not know transcode can be this slow. Hmmmm

Anyhow, iPod Video Encoder allows me to save the vob file (without deleting it) after the encoding for iPod is done. How about another option that allows me to specify the encoding options for the result file? Say the resulting resolution, maybe? I believe many people will appreciate the convenience and speed this iPod Video Encoder can bring to them (me).

Thanks for the great work that puts all these things together.

Vincent Lin

I'm working on that very thing right now. For now, though, iPod Video Encoder does encode into the default size of the VOB in MPEG, AVI, and OGM formats.

At any rate, I'm working as I can in between everything else on a program that gives video encoding a GUI in Linux...and doesn't suck. It'll take a little time...but I promise, it's coming :-D

JedTheHead
February 2nd, 2006, 07:05 PM
Absolutely smashing! I have been driving myself nuts trying to accomplish this!

Thank you!!!

NOTE: I had dvdrip and transcode installed previously which cause the ffmpeg deps to not build. Specifically liba5 as previously stated in this fourm. I removed the offending library and these instructions worked flawlessly!

Thanks again!

endersshadow
February 2nd, 2006, 08:25 PM
Absolutely smashing! I have been driving myself nuts trying to accomplish this!

Thank you!!!

NOTE: I had dvdrip and transcode installed previously which cause the ffmpeg deps to not build. Specifically liba5 as previously stated in this fourm. I removed the offending library and these instructions worked flawlessly!

Thanks again!
Quite welcome, Jed.

Just a quick q: Did you just do sudo apt-get remove liba5 to remove the library? If so, then I can make sure that it gets into the next version of the install script.

JedTheHead
February 3rd, 2006, 12:34 AM
No prob...

Actually I went into Synaptic to take care of it because I wasn't positive what was causing the build-deps to fail concerning liba52-0.7.4

I removed it, which also removed dvdrip, transcode, etc. and then ran the ffmpeg install as outlined in your post. Once done, and looking at it now, both liba52-0.7.4 and the -dev libraries are installed.

Hope that helps!

Thanks again!

jacrider
February 3rd, 2006, 07:33 PM
Love this HowTo, and I really want to get my video iPod hooked up to my Ubuntu box.

I am stuck at the install of libgpod.

Doesn't find it with a apt-get command.

I then found the message to install it manually, but the perl installation of the XML fails.

Any ideas on how to get libgpod another way?

Thanks again for a great HowTo. Must have taken a ton of time as the scripts were very long and involved.

Thanks.

endersshadow
February 3rd, 2006, 09:23 PM
Love this HowTo, and I really want to get my video iPod hooked up to my Ubuntu box.

I am stuck at the install of libgpod.

Doesn't find it with a apt-get command.

I then found the message to install it manually, but the perl installation of the XML fails.

Any ideas on how to get libgpod another way?

Thanks again for a great HowTo. Must have taken a ton of time as the scripts were very long and involved.

Thanks.

Can you post your error message here so that I can get a better idea of how to help you?

Thanks :)

jacrider
February 4th, 2006, 02:56 PM
Ok, I found a post on the XML installation that led me to another lib file needed. After installing that, the perl XML install went ok.

I finished up the rest of the install and all seems great.

New problem. I started to encode a DVD to move it to my iPod and the encoder stopped with an error. There was no error in the log file, but the process stopped at 4096MB. Am I missing something about file sizes?

The encoded file plays wonderfully, but ends 75% of the way through the movie.

Thanks.

jacrider
February 4th, 2006, 03:03 PM
As a follow-up, the encoding was way faster than a windows product (pdqipod or something like that) that I used before. It was about run-time in length on a faster computer. This was about 10 or 12 minutes to do the 4GB before failing.

endersshadow
February 4th, 2006, 06:39 PM
Try running from the command line:


ipodvidenc -v

This will give you the verbose mode. Vobcopy or ffmpeg should spit out an error if it's not finishing the file. I've had a bunch of buffer underflows from ffmpeg every now and then, but if you just let it go, it's never been a problem for me...

jacrider
February 4th, 2006, 07:36 PM
In doing some more research, FAT32 has a max file size of 4GB. Exactly where I the encoding blew up. I was saving to a FAT32 HD shared by ubuntu and windows.

I will redirect the encoding output to another drive that is ext3.

I will let you know how this works.

jacrider
February 4th, 2006, 07:51 PM
I tried to encode a small file from a DVD and the first process to create the .vob file worked (quickly). Then the encoding took my preference to iPod and started to work and the following error was recorded in the log file:


ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
Input #0, mpeg, from '/media/data/My_Video/Test2-1.vob':
Duration: 00:06:13.8, start: 0.187978, bitrate: 5253 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 29.97 fps, 9800 kb/s
Stream #0.1[0x20]: Subtitle: dvdsub
Stream #0.2[0x21]: Subtitle: dvdsub
Stream #0.3[0x22]: Subtitle: dvdsub
Stream #0.4[0x80]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream #0.5[0x81]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Unknown codec 'aac'

Did I mess up the install of ffmpeg? It looks like I don't have the aac codec.

Thanks.

endersshadow
February 4th, 2006, 07:53 PM
Well, I guess you learn something new every day :lol:

It must have been at the vobcopy part and never even got to ffmpeg. Your final video should be around 700mb...which FAT32 can handle (which is a good thing, as the iPod Video is a FAT32 drive).

endersshadow
February 4th, 2006, 07:55 PM
I tried to encode a small file from a DVD and the first process to create the .vob file worked (quickly). Then the encoding took my preference to iPod and started to work and the following error was recorded in the log file:


ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
Input #0, mpeg, from '/media/data/My_Video/Test2-1.vob':
Duration: 00:06:13.8, start: 0.187978, bitrate: 5253 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 29.97 fps, 9800 kb/s
Stream #0.1[0x20]: Subtitle: dvdsub
Stream #0.2[0x21]: Subtitle: dvdsub
Stream #0.3[0x22]: Subtitle: dvdsub
Stream #0.4[0x80]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream #0.5[0x81]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Unknown codec 'aac'

Did I mess up the install of ffmpeg? It looks like I don't have the aac codec.

Thanks.

ffmpeg was not compiled w/ aac support for whatever reason. Do this:


sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev

Next, go to the ffmpeg source folder, and then run:


./configure --enable-gpl --enable-pp --enable-zlib --enable-vorbis \
--enable-libogg --enable-theora --enable-a52 --enable-dts \
--enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \
--enable-faad --enable-faac --enable-xvid
make
sudo make install

Then try again..

jacrider
February 4th, 2006, 11:25 PM
Thanks for all your assistance. Everything seems to be working.

I just need to find a bigger ext3 HD space to hold the .vob files.

Great HowTo!

Vincent_Lin
February 7th, 2006, 11:12 PM
jcrider,

How did you resove libgpod issue? My apt-get could not find it either, as a consequence, gtkpod could not compile. Could you share the method you get this libgpod installed?

Thanks.

Vincent

ps. I just received my video pod from Amazon, 1 week earlier than promised. iTunes would not allow me to add movies that were transcoded by ffmpeg, per iPod Video Encoder script. And I could compile gtkpod with video support. Just yet.

quietglow
February 8th, 2006, 12:36 AM
I was just setting up a machine this morning and also noticed that libgpod is missing from the repositories. I wonder what the heck is up. If you're interested, its pretty easy to build from source: check the gtkpod page for info.

endersshadow
February 8th, 2006, 02:26 AM
libgpod is in the Dapper repositories, and you can find the debs here (http://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=libgpod&searchon=names&subword=1&version=dapper&release=all).

Vincent_Lin
February 8th, 2006, 03:59 AM
Thanks.

I actually downloaded source code from sourceforge and compiled it. So the whole installation is working. I had to link libgpod.so from /usr/local/bin to /usr/lib though.

Just one question about gtkpod: How can I download video encoded using your encoding GUI program? These .mov files are there, but I can't seem to find the procedure to put it on to my brand video pod? gtkpod recognises ipod, but I just can't find a way to put .mov onto ipod.

Thanks again.

Vincent

endersshadow
February 8th, 2006, 04:13 AM
Oh, sure...here's how to do it:

Load up gtkpod, hit the Read button. Then, go to the playlist that you want your video to be in (or none) on the left hand side. Then hit the button "Add files." Select your videos, then hit Sync, and you'll be all set!

Oh, and one note on this: You must manually edit the metadata on the files once they are on the iPod to have the length written to it. Otherwise, you will not be able to scroll through the movie. This is a limitation of gtkpod, as it does not copy metadata for videos (as of yet).

jacrider
February 8th, 2006, 04:17 AM
Vincent: I started with this post that has the website to download the source for libgpod:

http://www.ubuntuforums.org/showthread.php?t=104937&highlight=libgpod

Then in order to compile this, I needed to install XML/perl.

I started with this forum topic:

http://ubuntuforums.org/showthread.php?p=282843#post282843

but ran into problems, so I had to install another library:

sudo apt-get install libexpat-dev
(Note: I see a more recent post that says this is now lipexpat1-dev)

Then the instructions in the second thread worked perfectly.

Then, I had the means to install the downloaded package (which is a .deb) file) with the following terminal line:

sudo dpkg -i libgpodxxxxx.deb (the xxxxx is the version you download)

Then I was done. If you don't have any luck with gtkpod, you can do the same process.

Good luck.

halfname
February 8th, 2006, 05:20 AM
When I try to get ffmpeg, this is what happens

sudo apt-get build-dep ffmpeg Reading package lists...
Done Building dependency tree...
Done E: Build-dependencies for ffmpeg could not be satisfied.


Can anyone help me with this?

Vincent_Lin
February 8th, 2006, 05:56 AM
Hi, again.

So I fooled around gtkpod with sync, add files, add folders, read, etc..., and eventually those files got copied to ipod. Honestly, I still did not know what sequence caused the operation to suceed.

Then I went ahead to change metadata of the files on ipod.

It's the right click on the files/.mov items when ipod is the focus, right? Select "Edit Details" and change "Play Time" to the actually run-time I got form gxine, apply it, and Quit. Unit is in minutes. So 2 hours 20 minutes and 20 seconds run-time would be 140:20.

Then I right-click again to click on "Update", after all tracks/videos have been typed with proper run-time.

Then I click on sync.

Now all the information I typed in gtkpod are transferred to ipod.
(This procedure costs me a couple of hours to figure out.)

And video I encoded with your setting can be played on iPod video. Hurray!!

Only one problem: audio will only play about one minute then iPod stops playing the vidoe, for a brief monent. Then it resumes without audio. Well, scroll forward a couple ticks and it is in sunc again. Then it plays a munite or so, then the same drill. Note: short video (2:35) would not have this behaviour.

Simply can't figure out what happened. All the video files are from DVD, and they play well under gxine.

So far so good, I would say to myself. But, Help!!

Thanks all the time and efforts in doing the developing and supporting. Can't say enough about that!!!


Vincent

hal pacino
February 8th, 2006, 11:10 AM
I have the exact same problem: video pauses and resumes with audio cut out. What's that about?

endersshadow
February 8th, 2006, 01:15 PM
For kicks and giggles, what happens if you don't set the play time?

Vincent_Lin
February 8th, 2006, 04:46 PM
If playtime is not set, I could not sroll (forward / backward) at all.
The display on ipod is always 0:00 and 0:00 when playtime not set.

When playtime is set, it shows the correct run-time at left, and the total play-time at right, as usual song playing would display.

Thanks.

Vincent

endersshadow
February 8th, 2006, 04:59 PM
If playtime is not set, I could not sroll (forward / backward) at all.
The display on ipod is always 0:00 and 0:00 when playtime not set.

When playtime is set, it shows the correct run-time at left, and the total play-time at right, as usual song playing would display.

Thanks.

Vincent

Right, this is to be expected, but does the video play all the way through without interruption?

Vincent_Lin
February 8th, 2006, 05:58 PM
As I described in previous post, video will pause a brief moment (10-15 seconds), and it resumes without audio. Just scroll a tick or 2 (forward 1 or 2 seconds) will bring back audio, sort of like the old days when software DVD players runs out of sync of video/audio, but a pause or forward/rewind brings it back in sync.

Short video does not have this behaviour (2:35).

Those videos that have these behaviour are all full feature movies (around 2 hours) encoded from DVDs. A relatively short film (Glenn Gould Plays Goldberg Variations) with runtime about 58 minutes has this problem too.

All these videos when played on ipod show the current-run-time and total-run-time properly, after play-time information is added, updated, and sync-ed. Scroll forward/backward updates current-run-time correctly as well.

Thanks.

Vincent

endersshadow
February 8th, 2006, 06:09 PM
As I described in previous post, video will pause a brief moment (10-15 seconds), and it resumes without audio. Just scroll a tick or 2 (forward 1 or 2 seconds) will bring back audio, sort of like the old days when software DVD players runs out of sync of video/audio, but a pause or forward/rewind brings it back in sync.

Short video does not have this behaviour (2:35).

Those videos that have these behaviour are all full feature movies (around 2 hours) encoded from DVDs. A relatively short film (Glenn Gould Plays Goldberg Variations) with runtime about 58 minutes has this problem too.

All these videos when played on ipod show the current-run-time and total-run-time properly, after play-time information is added, updated, and sync-ed. Scroll forward/backward updates current-run-time correctly as well.

Thanks.

Vincent

I'm going to level with you: I'm totally befuddled...I haven't had the problem nor can I reproduce it, so I haven't been able to play around with it :-|

All apologies...mayhaps someone with more expertise can help...

endersshadow
February 11th, 2006, 04:07 AM
I've updated the HowTo with instructions on how to install the XML Parser and libgpod, and I've updated the install script and Wiki accordingly.

All should be well in iPod Video land :-D

rdwtux
February 11th, 2006, 09:59 PM
Hi, thanks for the great howto.

There seems to be an error with the install script for ipodvidenc. line 148 and 150 (think that's them) have "if <blah> then;" rather than "if <blah>; then"

I changed it in my copy and all is well. Cept know I'm having dependency hell.. but I'll keep working on that.

endersshadow
February 11th, 2006, 10:28 PM
Thanks for the info...it's fixed.

BTW, what dependency problems are you having? Hopefully, I can solve them all via the install script, so then people wouldn't have any problems in the future.

Thanks again!

rdwtux
February 11th, 2006, 11:06 PM
I was having huge dependency problems with mpeg4ip so i compiled from source. Compiling from source seems to have worked for mpeg4ip but FFMPEG is failing now.


me@localhost:~/$ sudo apt-get build-dep ffmpeg
Reading package lists... Done
Building dependency tree... Done
E: Build-dependencies for ffmpeg could not be satisfied.


If I skip this step, configure works fine for ffmpeg but then make fails with a syntax error:


dtsdec.c: At top level:
dtsdec.c:315: error: ‘dts_state_t’ undeclared here (not in a function)
dtsdec.c:315: error: syntax error before ‘)’ token
make[1]: *** [dtsdec.o] Error 1
make: *** [lib] Error 2



I think automatix might be the root cause of most of my problems.

I also noticed that in the instructions it didn't say to change the name of libgtkpod-0.3.0 to libgtkpod.

rdwtux
February 11th, 2006, 11:44 PM
OK so it's definately conflicts caused by automatix.

Had to install the following packages via synaptics - removing all conflicts:

libdts-dev
libtheora-dev
libgsm1-dev
libraw1394-dev

Then go back and re-run:

sudo apt-get build-dep ffmpeg

Then just keep following instructions. I also had to change the recommendation of ffmpeg's version number. The doc recommends 1.0xxxxx.. i almost immediately got a prompt to update my ffmpeg from ubuntu repositories to 3:0.1cvsxxxxx... so i changed my custom version to "3:1.0csv_custom"

Also, the ffmpeg binaries were installed in /usr/local/bin but the ipodvidenc script looked for them in /usr/bin. so I sym linked all 3 binaries.. but not the best way to do it. The configure should specify the prefix.

pestilence4hr
February 12th, 2006, 04:39 AM
Don't have an iPod Video, just an iPod Photo. And I don't feel like ponying up another $300 :p

Your howto was useful for me to get the latest version of GTKPod running though... the older one was a bit buggy.

Well, I finally got the windows machine in front of me to test it myself. Quicktime won't even play the movie, it gives "Error -2048: the file is not a movie file". I can't seem to even add the movie to itunes. Could somebody else see if their movie plays with a version of quicktime? I assume that it should...

It plays just fine in mplayer, and mplayer reports the correct codecs being used.

pestilence4hr
February 12th, 2006, 06:24 AM
Ok, so even though quicktime won't play the file, and itunes won't do anything with it, transferring it over to the ipod using gtkpod worked perfectly. The video plays great on the ipod. Great howto!

endersshadow
February 12th, 2006, 06:43 AM
The source of this problem w/ Quicktime and/or iTunes could be that the file has no metadata other than length. Not for any real lack of knowing how to do it, it's just unnecessary w/ gtkpod because gtkpod doesn't transfer metadata of the videos (which is why you need to manually put in the length of the video in gtkpod).

rdwtux: Were the conflicts caused by Automatix just the fact that these files weren't installed: libdts-dev, libtheora-dev, libgsm1-dev, libraw1394-dev? If so, I'll include them in the install file.

rdwtux
February 12th, 2006, 03:55 PM
rdwtux: Were the conflicts caused by Automatix just the fact that these files weren't installed: libdts-dev, libtheora-dev, libgsm1-dev, libraw1394-dev? If so, I'll include them in the install file.

Well they probably should be included in your script, as ffmpeg won't compile without them. But Automatix seems to have installed some video libs that conflict with libdts-dev and libtheora-dev. So I basically had to uninstall each offending lib/app. I had to uninstall all the way down to totem.. then reinstall what I needed from OFFICIAL ubuntu repositories later.

I've read many people complaining about Automatix and it really shouldn't be used as it modifies your source.list file... but it was useful. Now I understand the repercusions.

endersshadow
February 12th, 2006, 06:02 PM
Well they probably should be included in your script, as ffmpeg won't compile without them. But Automatix seems to have installed some video libs that conflict with libdts-dev and libtheora-dev. So I basically had to uninstall each offending lib/app. I had to uninstall all the way down to totem.. then reinstall what I needed from OFFICIAL ubuntu repositories later.

I've read many people complaining about Automatix and it really shouldn't be used as it modifies your source.list file... but it was useful. Now I understand the repercusions.

The install script changes out your sources.list file and then puts it all back to what you had before when it does it (just using official Ubuntu repositories). Since they do provide some conflicts that need to be fixed by hand, I suppose that I'll just leave them out...

I've used an earlier version of Automatix and haven't had any problems, though.

rdwtux
February 15th, 2006, 01:26 AM
If I enode an avi file using ffmpeg the way you mention, i get great results. However if i try to add an MP4 file that was preformatted for the IPOD I generally get an error with gtkpod saying it doesn't understand the format.

This isn't a huge issue. I've setup a cron script on my system to automatically encode any video I have in a certain directory during the night.. the next morning I can add it to my ipod.

But just wondering, can you add MP4 files directly to gtkpod?

endersshadow
February 15th, 2006, 02:49 AM
If I enode an avi file using ffmpeg the way you mention, i get great results. However if i try to add an MP4 file that was preformatted for the IPOD I generally get an error with gtkpod saying it doesn't understand the format.

This isn't a huge issue. I've setup a cron script on my system to automatically encode any video I have in a certain directory during the night.. the next morning I can add it to my ipod.

But just wondering, can you add MP4 files directly to gtkpod?

Rename the file to .mov. For some reason, gtkpod doesn't play nice with .mp4 files.

rdwtux
February 15th, 2006, 03:00 AM
Rename the file to .mov. For some reason, gtkpod doesn't play nice with .mp4 files.

*LAFF* do you know how many hours I've spent re-encoding The Family Guy because of this! hehe.

I just figured it was an encoding issue. *slap*

Thanks.

hal pacino
February 16th, 2006, 08:35 AM
I'm still having the pausing problem of the video playing for a few seconds fine and then pausing itself and then playing with no sound. HELP!!!

rdwtux
February 16th, 2006, 01:37 PM
I'm not having any issues with pausing/no audio. However another guy here at work who has a 5G video and only uses itunes has the same issue your mentioning. You might want to see if it's actually an ipod issue rather than a gtkpod/ffmpeg issue.

He started having issues when he upgraded to firmware 1.1, however i'm running 1.1. without issues.

endersshadow
February 16th, 2006, 02:17 PM
Try rebooting the iPod. Press and hold the menu and the center button simultaneously until you get a glowing apple logo.

rdwtux
February 17th, 2006, 12:36 AM
Found the problem with video playing for 10 seconds and then freezing, then no audio.

It's a problem with the 1.1 firmware on the 60GB Ipod (i just exchanged my 30gb for the 60gb and had the same issue).

Basically you have to downgrade the firmware on the 60gb ipod from 1.1 to 1.0. This does not affect the 30gb ipod apparently.

Here's the original thread:
http://digg.com/apple/iPod_Update_Causing_Major_Headache_for_Some_Video_ Owners

Here are the steps (copied from thread - i tried it and it works fine):


1. Download iPodWizard here:
sourceforge.net/project/showfiles.php?group_id=153441
(download the release, top link of the two)

2. Extract the files, and launch the program.

3. Put in your Original CD,
On The iPodWizard, Click Open Updater..
point to the CD, Program Files/ iPod/ updater exe

4. Click Load on the iPodWizard

5. Click on DownGrade Firmware

6. Exit the Wizard

7. Open the iPodupdater directly from CD/ Program Files/ iPod/ Updater.exe
it will said ur iPod is OutDated 1.1

Click Update... instead of Restore....

and u will be back to 1.0

endersshadow
February 17th, 2006, 12:57 AM
Okay, just would like to say:

Woot. Not my fault!

Edward The Bonobo
February 17th, 2006, 12:33 PM
I had a problem with the Make on the HowTo. See this thread, where I've pasted what I got in my terminal. http://www.ubuntuforums.org/showthread.php?t=127542

Can anyone help? (In relative newbie language, I'm afraid)

Vincent_Lin
February 17th, 2006, 08:29 PM
Count me in for the video stop and then audio cut off victim.

Reverting back to iPod software 1.0 from CD (I have to use a Windows PC to do so) brings my iPod back to the whole glory. Unfortunately that I have to do restore instead of Update options, since update option is greyed out. No matter, transferring files "only" took about 2 hours. I had 19Gig music, 15 Gig photos, and 8 Gig .mov files, and growing and growing.

Anyhow, thanks to all, especially Endersshadow for this wonderful Howto and scripts.

I am watching Cats, the DVD which I purchased back in 1998, encoded by this wonderful scripts and put onto my iPod video.

A very happy ubuntu user,

Vincent Lin

BTW, specifying -aspect 16x9 in ffmpeg does encode those wide-screen clips into a better looking .mov file. Thanks. Can't say more about Thanks.

KingOfNowhere
February 19th, 2006, 05:28 PM
hey, endersshadow, great guide.

just one question, when i encode videos with ipodvidenc i cannot move forward/backward though the playback on my ipod. what would you recommend to fix this?

endersshadow
February 19th, 2006, 05:30 PM
hey, endersshadow, great guide.

just one question, when i encode videos with ipodvidenc i cannot move forward/backward though the playback on my ipod. what would you recommend to fix this?

In gtkpod, you need to edit the metadata (right click on the video, and select properties) and manually enter in the length (in minutes:seconds, so if you had a clip 2 hours, 28 minutes, 32 seconds, it would be 148:32 instead of 2:28:32). This is only because gtkpod is not able to pull the metadata from any video file, and one of the things that the devel of it is working very hard on doing.

chronusdark
February 24th, 2006, 02:08 AM
is there anyway to modify this script to do batch reencodings (ie all the video files in a directory at once)

also i was wondering about reencoding ogg and mkv with dual audio for ipod...(selecting only the english audio track)

thanks

endersshadow
February 27th, 2006, 06:45 AM
is there anyway to modify this script to do batch reencodings (ie all the video files in a directory at once)

also i was wondering about reencoding ogg and mkv with dual audio for ipod...(selecting only the english audio track)

thanks

Other than making a for loop, I'm not sure about the first.

As for the second, I'm not exactly sure what you mean, but it's late...however, you may need to hack the script or run a custom command...

endersshadow
February 27th, 2006, 06:48 AM
Introducing...VIVE (http://vive.sourceforge.net) - the cohesive GUI for encoding videos for the iPod Video!!! I've attached a screenshot, and I've updated the main post...it took a lot of work, and my eyes are about to fall out, but it's finally ready for release :-D

beaucollins
February 27th, 2006, 09:48 AM
I just tried to install and I get this (there's a syntax error or something):

beau@optimus:~/ipodvidenc$ ./install
mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb
gtkpod-0.99.2
gtkpod-0.99.2.tar.gz
cat: /home/beau/.ipodvidenc/install/ffmpeg-*/debian/rules: No such file or directory
Get:1 http://archive.ubuntu.com breezy Release.gpg [189B]
Get:2 http://archive.ubuntu.com breezy-updates Release.gpg [189B]
Get:3 http://security.ubuntu.com breezy-security Release.gpg [189B]
Get:4 http://archive.ubuntu.com breezy-backports Release.gpg [189B]
Hit http://archive.ubuntu.com breezy Release
Hit http://security.ubuntu.com breezy-security Release
Hit http://archive.ubuntu.com breezy-updates Release
Hit http://security.ubuntu.com breezy-security/main Packages
Hit http://archive.ubuntu.com breezy-backports Release
Hit http://security.ubuntu.com breezy-security/restricted Packages
Hit http://security.ubuntu.com breezy-security/main Sources
Hit http://archive.ubuntu.com breezy/main Sources
Hit http://archive.ubuntu.com breezy/restricted Sources
Hit http://archive.ubuntu.com breezy/universe Sources
Hit http://archive.ubuntu.com breezy/universe Packages
Hit http://archive.ubuntu.com breezy/main Packages
Hit http://archive.ubuntu.com breezy/restricted Packages
Hit http://archive.ubuntu.com breezy/multiverse Packages
Hit http://archive.ubuntu.com breezy-updates/main Packages
Hit http://security.ubuntu.com breezy-security/restricted Sources
Hit http://security.ubuntu.com breezy-security/universe Packages
Hit http://security.ubuntu.com breezy-security/universe Sources
Hit http://archive.ubuntu.com breezy-updates/restricted Packages
Hit http://archive.ubuntu.com breezy-updates/main Sources
Hit http://archive.ubuntu.com breezy-updates/restricted Sources
Hit http://archive.ubuntu.com breezy-backports/main Packages
Hit http://archive.ubuntu.com breezy-backports/restricted Packages
Hit http://archive.ubuntu.com breezy-backports/universe Packages
Hit http://archive.ubuntu.com breezy-backports/multiverse Packages
Hit http://archive.ubuntu.com breezy-backports/main Sources
Hit http://archive.ubuntu.com breezy-backports/restricted Sources
Hit http://archive.ubuntu.com breezy-backports/universe Sources
Hit http://archive.ubuntu.com breezy-backports/multiverse Sources
Fetched 4B in 1s (2B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
vobcopy is already the newest version.
cpdvd is already the newest version.
ogmtools is already the newest version.
build-essential is already the newest version.
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
./install: line 153: syntax error near unexpected token `else'
./install: line 153: ` else'

endersshadow
February 27th, 2006, 04:34 PM
Lines 146-156 of the install file should read as follows:


if make; then
if sudo make install; then
echo "ffmpeg installed correctly."
else
echo "ffmpeg not configured correctly."
exit 1
fi
else
echo "ffmpeg not configured correctly."
exit 1
fi

What do you have?

moebis
February 27th, 2006, 05:44 PM
Introducing...VIVE (http://vive.sourceforge.net) - the cohesive GUI for encoding videos for the iPod Video!!! I've attached a screenshot, and I've updated the main post...it took a lot of work, and my eyes are about to fall out, but it's finally ready for release :-D

First and foremost, GREAT WORK! You are adding to a much needed cause in the Ubuntu community (our love for iPods).

I'm running Dapper F4, been experimenting and troubleshooting all those little things to help make this the best release yet, however I can't seem to get your guide to work on it. First it doesn't like to compile ffmpeg, and one that comes with Dapper might already have all the needed parts. So I removed the first few lines of your install script to not detect what ffmpeg I have.... proceeded with the installation and apt-get installed anything else that was missing. Finally got it to run, but when I do an encode it seems to just hang trying to read the DVD. Any ideas suggestions. I'm willing to put the time in to debug this thing for Dapper.

endersshadow
February 27th, 2006, 06:07 PM
First and foremost, GREAT WORK! You are adding to a much needed cause in the Ubuntu community (our love for iPods).

I'm running Dapper F4, been experimenting and troubleshooting all those little things to help make this the best release yet, however I can't seem to get your guide to work on it. First it doesn't like to compile ffmpeg, and one that comes with Dapper might already have all the needed parts. So I removed the first few lines of your install script to not detect what ffmpeg I have.... proceeded with the installation and apt-get installed anything else that was missing. Finally got it to run, but when I do an encode it seems to just hang trying to read the DVD. Any ideas suggestions. I'm willing to put the time in to debug this thing for Dapper.

Great! I've got two debuggers for Dapper! (Another anonymous buddy will remain so because he screwed up his Xgl/Compiz install on Breezy and was forced to upgrade to Dapper).

Anyway, Vive uses cpdvd to get your DVD results. I wasn't thinking too clearly when I made that part and just made the default /dev folder for the dvd /dev/dvd and the mount points either /cdrom or /dvd and nothing else (poor choice, and it will be fixed in 0.2)...The code starts on line 273 of the program (/usr/bin/vive). Keep in mind I'm learning Perl whilst writing this, so my code may be a bit messy. And I will clean up the install script...I just spent a lot of time getting Vive the program done, the install and the web page were just afterthoughts and I didn't have the time to put into them to make them really good.

marks_linux
February 27th, 2006, 11:08 PM
vive looks fantastic, had some little bugs like having to create the .vive directory and copying vive.xbm to /usr/share? But after mucking around for two days with various other options and not even getting dvdrip to do anything, vive is a godsend!

quick question, when taking a copy of a DVD do you have to do each 'title' seperately. I've got a dvd that shows 4 titles so I started four copies of vive one for each title. but playing back the partial files they look and sound the same.

Am I being really stupid here?

chronusdark
February 27th, 2006, 11:26 PM
i have a question about vive does the encoding bypass the bug from video ipod version 1.1 firmware where the sound drops out?

Vincent_Lin
February 28th, 2006, 12:20 AM
Hi,

Vive looks great! Thanks a huge bunch!!

I eventually installed it also bypassing the check for ffmpeg, as another person did. Could I also request another feature? As I did not see it as an option as original iPod Video Encoder have? That is to have the option to keep the vob file that vobcopy'd saved. I am "dreaming" about building my media PC using ubuntu, and I would like to used the resulting vob files to become my DVD "collections".

As to the ipod, while palying video, pauses and resumes without audio issue, it is a known bug, for firmware 1.1 on 60Gig iPod Video only. A more comprehensive discussion and only solution can be seen here at ipodlounge:
http://forums.ilounge.com/showthread.php?threadid=143446

Thanks again.


Vincent

endersshadow
February 28th, 2006, 01:33 AM
vive looks fantastic, had some little bugs like having to create the .vive directory and copying vive.xbm to /usr/share? But after mucking around for two days with various other options and not even getting dvdrip to do anything, vive is a godsend!

quick question, when taking a copy of a DVD do you have to do each 'title' seperately. I've got a dvd that shows 4 titles so I started four copies of vive one for each title. but playing back the partial files they look and sound the same.

Am I being really stupid here?

As per the install script, this was the sequence of events last night in my head:

"HOLY CRAP!!! IT WORKS!!!!"
...30 seconds later...
"Hmmm...crap...need an install script..."
...30 seconds later...
"Okay, need to improve the web site..."
...30 seconds later...
"Time to tell everyone!"
...30 seconds later...
"Bed!"

As you can tell, I did not spend a ton of time on either the install script nor the web site--something I fully plan to rectify in the coming versions.

As per the DVD titles, I'm not sure what you're doing, but, in theory, that should work. Let me explain a bit about the way that DVD's are interpretted just as a general FYI...DVD's contain a variety of titles which lead to certain content, say the actual movie, or perhaps a menu, or even a bonus feature (like outtakes, or games, etc.). Inside titles are chapters which break it up into sections. So, for example, I have a copy of Tommy Boy (the greatest movie ever, not up for debate), and it has 13 or so titles. However, title #1 is the actual movie, the other 12 are just extra stuff. Generally, the one you want will be the longest one. Inside that title are like 30 chapters, but vobcopy ignores chapters and just copies the entire title. Mayhaps I'll bug the guy who's behind vobcopy and we'll work together on getting chapters integrated...he may be getting some more demand if Vive picks up in popularity. At any rate, I'm not sure if that spiel helped...but maybe you have a better understanding of what the program does!


i have a question about vive does the encoding bypass the bug from video ipod version 1.1 firmware where the sound drops out?

As Vincent said, this is a bug with Apple's firmware. Otherwise known as: Not my fault, but I do blame Steve Jobs, or "NMFBIDBSJ". Okay, made that last thing up, but downgrade to firmware 1.0 and the problem will be gone.


I eventually installed it also bypassing the check for ffmpeg, as another person did. Could I also request another feature? As I did not see it as an option as original iPod Video Encoder have? That is to have the option to keep the vob file that vobcopy'd saved. I am "dreaming" about building my media PC using ubuntu, and I would like to used the resulting vob files to become my DVD "collections".

Fantastic suggestion and that will be included in v0.1.1, I guarantee you. Sorry for leaving it out!

(BTW, ipodvidenc and vive use the same programs for a backend, so I've sped nothing up, just condensed it all into one GUI :-D)

beaucollins
February 28th, 2006, 06:12 AM
line #146 had to be changed, it was:
if make then;

I changed to:
if make; then

and all is good

chronusdark
March 1st, 2006, 10:42 AM
As Vincent said, this is a bug with Apple's firmware. Otherwise known as: Not my fault, but I do blame Steve Jobs, or "NMFBIDBSJ". Okay, made that last thing up, but downgrade to firmware 1.0 and the problem will be gone.


i hate to change the subject but is there any way to do this without a windows box?

i kinda feel like im being punished for being brave and going all out linux.

endersshadow
March 1st, 2006, 03:54 PM
i hate to change the subject but is there any way to do this without a windows box?

i kinda feel like im being punished for being brave and going all out linux.

The only thing I could find on it was this:

http://armin.emx.at/ipod/update_howto.html

I'll bring this issue up w/ some of the devels of the community that are working together to make the iPod fully available on Linux, and this will definitely be on the to-do list.

hal pacino
March 2nd, 2006, 08:14 AM
It shouldn't be necessary. isquid and I think one other ffmpeg based converter have both released fixes for the 1.1 firmware issue. I guess, the linux community will be there shortly too. Personally, I don't know ffmpeg well enough to know what they did to work around this issue, but I read somewhere that gpac can also work around it by remuxing files.

I hope someone who actually knows what they're doing adds their two cents, as I'm not really a programmer or anything of that sort.

endersshadow
March 2nd, 2006, 08:28 AM
It shouldn't be necessary. isquid and I think one other ffmpeg based converter have both released fixes for the 1.1 firmware issue. I guess, the linux community will be there shortly too. Personally, I don't know ffmpeg well enough to know what they did to work around this issue, but I read somewhere that gpac can also work around it by remuxing files.

I hope someone who actually knows what they're doing adds their two cents, as I'm not really a programmer or anything of that sort.

Do you have any articles?

Mark JB
March 2nd, 2006, 05:03 PM
I get this error while trying to fix ffmpeg.

mark@ubuntu:~$ apt-get source ffmpeg
E: Opening /etc/apt/sources.list - ifstream::ifstream (13 Permission denied)
E: The list of sources could not be read.

Is it a repositorty problem ? Any ideas ?

endersshadow
March 2nd, 2006, 06:29 PM
I get this error while trying to fix ffmpeg.

mark@ubuntu:~$ apt-get source ffmpeg
E: Opening /etc/apt/sources.list - ifstream::ifstream (13 Permission denied)
E: The list of sources could not be read.

Is it a repositorty problem ? Any ideas ?

Try:


sudo apt-get source ffmpeg

Apt-get requires root :-D

Mark JB
March 2nd, 2006, 07:29 PM
Try:


sudo apt-get source ffmpeg

Apt-get requires root :-D

Cheers mate that now works.

When i enter the make command i get this error though :(

mark@ubuntu:~/ffmpeg-0.cvs20050121$ make
make -C libavcodec all
make[1]: Entering directory `/home/mark/ffmpeg-0.cvs20050121/libavcodec'
gcc -O3 -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o bitstream.o bitstream.c
In file included from avcodec.h:14,
from bitstream.c:28:
common.h:59: error: array type has incomplete element type
common.h:63: error: array type has incomplete element type
make[1]: *** [bitstream.o] Error 1
make[1]: Leaving directory `/home/mark/ffmpeg-0.cvs20050121/libavcodec'
make: *** [lib] Error 2


Soory for the noob-ness!

endersshadow
March 2nd, 2006, 07:36 PM
Cheers mate that now works.

When i enter the make command i get this error though :(

mark@ubuntu:~/ffmpeg-0.cvs20050121$ make
make -C libavcodec all
make[1]: Entering directory `/home/mark/ffmpeg-0.cvs20050121/libavcodec'
gcc -O3 -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o bitstream.o bitstream.c
In file included from avcodec.h:14,
from bitstream.c:28:
common.h:59: error: array type has incomplete element type
common.h:63: error: array type has incomplete element type
make[1]: *** [bitstream.o] Error 1
make[1]: Leaving directory `/home/mark/ffmpeg-0.cvs20050121/libavcodec'
make: *** [lib] Error 2


Soory for the noob-ness!

What was the output of your ./configure statement?

Mark JB
March 2nd, 2006, 07:54 PM
What was the output of your ./configure statement?

Really sorry but how do i view that, i cant find it in my home directory.

endersshadow
March 2nd, 2006, 08:01 PM
Really sorry but how do i view that, i cant find it in my home directory.


./configure --enable-gpl --enable-pp --enable-zlib --enable-vorbis \
--enable-libogg --enable-theora --enable-a52 --enable-dts \
--enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \
--enable-faad --enable-faac --enable-xvid

:-D

Mark JB
March 2nd, 2006, 08:08 PM
./configure --enable-gpl --enable-pp --enable-zlib --enable-vorbis \
--enable-libogg --enable-theora --enable-a52 --enable-dts \
--enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \
--enable-faad --enable-faac --enable-xvid

:-D

ah, i get you now, i though u wanted me to look elsewhere :rolleyes:


Install prefix /usr/local
Source path /home/mark/ffmpeg-0.cvs20050121
C compiler gcc
make make
CPU x86 (generic)
Big Endian no
inttypes.h yes
broken inttypes.h no
MMX enabled yes
Vector Builtins no
gprof enabled no
zlib enabled yes
mp3lame enabled yes
vorbis enabled yes
faad enabled yes
faadbin enabled no
faac enabled yes
xvid enabled yes
a52 support yes
a52 dlopened no
dts support yes
pp support yes
debug symbols no
strip symbols yes
optimize yes
shared pp no
Video hooking yes
SDL support yes
risky / patent encumbered codecs yes
Imlib2 support yes
freetype support yes
Sun medialib support no
pthreads support no
AMR-NB float support no
AMR-NB fixed support no
AMR-WB float support no
network support yes
IPv6 support yes
License: GPL
Creating config.mak and config.h
config.h is unchanged


thats the output mate.:-k

patsissons
March 3rd, 2006, 07:12 AM
Not sure if this will help anyone out, but I built an ffmpeg deb file with most of the options enabled. it's available here. Honestly I don't know if I set everything up right in the rules file, so use this deb at your own risk.

http://box.go.dyndns.org/dev/ffmpeg_0.cvs20050918-4ubuntu1_i386.deb

On the other side of things, if you already have ffmpeg with aac and mp4 enabled (or managed to get my deb working) then i made a handy script for converting video files to (efficient) ipod format. This script will shrink the videos down enough such that they are small and managable (and the conversion doesn't take too long either), but not so much that they look like garbage. I also included my scripts for dvd conversion (you need handbreak tho, which i don't have a deb for).

video2ipod


#!/bin/bash
# $1 - video file
ffmpeg -i $1 -f mp4 -vcodec mpeg4 -acodec aac -b 300 -ab 48 -r 15 `basename $1`.mp4


dvd2ipod


#!/bin/bash
# $1 - output filename
# $2 - title number
handbrake -f mp4 -i /dev/hdd -o $1.mp4 -t $2 -e ffmpeg -E faac -w 320 -r 15 -b 384 -B 48


dvd2ipodx (for converting multiple titles, particularily usefull when converting dvd's with multiple tv episodes)


#!/bin/bash
# $1 - start title
# $2 - end title
# $3 - base output file name
if [ -z "$3" ]
then
echo -e "Usage :"
echo -e "\t$0 start_title end_title output_name\n"
echo -e "e.g. $0 1 4 myrips"
else
start=$1
end=$2
for (( i=$start; i <= $end; i++ ))
do
dvd2ipod $3-$i $i
done
fi


Hopefully these will be beneficial to some of you out there. Enjoy :)

xmastree
March 3rd, 2006, 08:01 AM
Hm... :-k

I tried this with a veiw to making mp4 files for my phone. After downloading and running the install script, fixing the syntax error and running it again, I thought I had it. But... whatever options I try, ffmpeg fails with the same error.


Unsupported codec for output stream #0.1

And it looks nothing like the screenshot either. :???:

Edward The Bonobo
March 3rd, 2006, 10:36 AM
There's been a lot of developments over the last couple of weeks. Great stuff and I'm sure a lot of people will be very grateful (especially me!)

Suggestion - this would be a good time to take stock and revise the howto wiki to show the simplified process, based on:

ffmpeg install from the deb
Vive

I'd volunteer myself - but I'm not expert enough and would probably get it wrong.

xmastree
March 3rd, 2006, 12:13 PM
I like the idea, then a numpty like me can give it another go and maybe succeed this time. :???:

All I want is to make a couple of MP4s... :-(

rdwtux
March 3rd, 2006, 01:54 PM
There's a syntax error in the install script. The script and HOWTO are great, but both times I've tried it there have been syntax errors in the install script - very hard for average users to use it in this condition as they can't troubleshoot the syntax errors if they don't know programming.

Line ~149 has an error in the if statement - the semicolon is in the wrong spot.

endersshadow
March 3rd, 2006, 03:19 PM
I like the idea, then a numpty like me can give it another go and maybe succeed this time. :???:

All I want is to make a couple of MP4s... :-(

What's the output if you try this manually:


ffmpeg -i infile.avi -f mp4 -vcodec mpeg4 -maxrate 1000 \
-b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 \
-acodec aac -ab 192 -s 320x240 -aspect 4:3 outfile.mov

Also, let's see this:

ffmpeg -formats

As per the syntax, I thought I had reuploaded the correct one...but apparently not. I've uploaded it again...sorry!

As per the wiki, I may add the ffmpeg .deb file, but I'm hesitant to post Vive there. First and foremost, I don't want to use the Wiki as my personal advertisement. Secondly, it's still an alpha release. I will say this: Wait till Alpha Release 2...it's looking awesome...

Mark JB
March 3rd, 2006, 07:13 PM
Any ideas with my problem mate ?

Should i try install from the Deb on the previous page ?

endersshadow
March 3rd, 2006, 09:37 PM
Any ideas with my problem mate ?

Should i try install from the Deb on the previous page ?

I'm sorry, I completely forgot to address your post.

And yeah, I'd say give it a definite try w/ the deb on that page.

xmastree
March 4th, 2006, 02:03 AM
What's the output if you try this manually:


ffmpeg -i infile.avi -f mp4 -vcodec mpeg4 -maxrate 1000 \
-b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 \
-acodec aac -ab 192 -s 320x240 -aspect 4:3 outfile.mov

chris@xmastree:~/Downloaded$ ffmpeg -i gun.wmv -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 outfile.mov

ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame --enable-faad --enable-faac --enable-xvid --prefix=/usr
built on Mar 1 2006 22:51:48, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 30.00 (30/1)
Input #0, asf, from 'gun.wmv':
Duration: 00:00:13.9, start: 5.000000, bitrate: 448 kb/s
Stream #0.0: Audio: wmav2, 32000 Hz, stereo, 48 kb/s
Stream #0.1: Video: wmv2, yuv420p, 320x240, 1000.00 fps
Output #0, mp4, to 'outfile.mov':
Stream #0.0: Video: mpeg4, yuv420p, 320x240, 30.00 fps, q=3-5, 700 kb/s
Stream #0.1: Audio: aac, 32000 Hz, stereo, 192 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
[aac @ 0x8335848]libfaac doesn't support this output format!
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height


Also, let's see this:

ffmpeg -formats




chris@xmastree:~/Downloaded$ ffmpeg - formats

ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame --enable-faad --enable-faac --enable-xvid --prefix=/usr
built on Mar 1 2006 22:51:48, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
Unable for find a suitable output format for 'pipe:'

chris@xmastree:~/Downloaded$

I get the same result if the outfile is .mp4 rather than .mov :confused:

endersshadow
March 4th, 2006, 03:30 AM
Make sure there's no space in -formats -- you put it as:


ffmpeg - formats

When it should be...


ffmpeg -formats

hal pacino
March 4th, 2006, 11:20 PM
A possible solution for firmware 1.1 and those who don't use Mac or Windows: http://www.isquint.org/cgi-bin/ikonboard.cgi?;act=ST;f=2;t=199;&#top . This forum suggests a workaround by remuxing the files. Would it be possible for someone to write a linux script to remux the files. If so this would be the easiest solution for those of us who don't use MacWin.

Good luck and good linuxing!

xmastree
March 5th, 2006, 12:50 AM
Make sure there's no space in -formats
Oops... :rolleyes:


chris@xmastree:~$ ffmpeg -formats
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame --enable-faad --enable-faac --enable-xvid --prefix=/usr
built on Mar 1 2006 22:51:48, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
File formats:
E 3g2 3gp2 format
E 3gp 3gp format
D 4xm 4X Technologies format
D RoQ Id RoQ format
DE ac3 raw ac3
DE alaw pcm A law format
DE asf asf format
E asf_stream asf format
DE au SUN AU Format
DE audio_device audio grab and output
DE avi avi format
E crc crc testing format
D daud D-Cinema audio format
D dc1394 dc1394 A/V grab
D dts raw dts
DE dv DV video format
D dv1394 dv1394 A/V grab
E dvd MPEG2 PS format (DVD VOB)
D ea Electronic Arts Multimedia Format
DE ffm ffm format
D film_cpk Sega FILM/CPK format
D flic FLI/FLC animation format
DE flv flv format
DE gif GIF Animation
DE h261 raw h261
DE h263 raw h263
DE h264 raw H264 video format
D idcin Id CIN format
DE image image sequence
DE image2 image2 sequence
DE image2pipe piped image2 sequence
DE imagepipe piped image sequence
D ipmovie Interplay MVE format
DE m4v raw MPEG4 video format
D matroska Matroska file format
DE mjpeg MJPEG video
DE mmf mmf format
E mov mov format
D mov,mp4,m4a,3gp,3g2 QuickTime/MPEG4 format
E mp2 MPEG audio layer 2
DE mp3 MPEG audio layer 3
E mp4 mp4 format
DE mpeg MPEG1 System format
E mpeg1video MPEG video
E mpeg2video MPEG2 video
DE mpegts MPEG2 transport stream format
D mpegvideo MPEG video
E mpjpeg Mime multipart JPEG format
DE mulaw pcm mu law format
D nsv NullSoft Video format
E null null video format
DE nut nut format
DE ogg Ogg Vorbis
E psp psp mp4 format
D psxstr Sony Playstation STR format
DE rawvideo raw video format
D redir Redirector format
DE rm rm format
E rtp RTP output format
D rtsp RTSP input format
DE s16be pcm signed 16 bit big endian format
DE s16le pcm signed 16 bit little endian format
DE s8 pcm signed 8 bit format
D sdp SDP
D shn raw shn
D sol Sierra SOL Format
E svcd MPEG2 PS format (VOB)
DE swf Flash format
DE u16be pcm unsigned 16 bit big endian format
DE u16le pcm unsigned 16 bit little endian format
DE u8 pcm unsigned 8 bit format
E vcd MPEG1 System format (VCD)
D video4linux video grab
D vmd Sierra VMD format
E vob MPEG2 PS format (VOB)
DE wav wav format
D wc3movie Wing Commander III movie format
D wsaud Westwood Studios audio format
D wsvqa Westwood Studios VQA format
DE yuv4mpegpipe YUV4MPEG pipe format

Image formats (filename extensions, if any, follow):
DE gif gif

Codecs:
D V 4xm
D V D 8bps
DEA aac
D V D aasc
DEA ac3
DEA adpcm_4xm
DEA adpcm_adx
DEA adpcm_ct
DEA adpcm_ea
DEA adpcm_ima_dk3
DEA adpcm_ima_dk4
DEA adpcm_ima_qt
DEA adpcm_ima_smjpeg
DEA adpcm_ima_wav
DEA adpcm_ima_ws
DEA adpcm_ms
DEA adpcm_swf
DEA adpcm_xa
DEA adpcm_yamaha
D A alac
DEV D asv1
DEV D asv2
D V D camtasia
D V D cinepak
D V D cljr
D V D cyuv
D A dts
DES dvbsub
D S dvdsub
DEV D dvvideo
DEV D ffv1
DEVSD ffvhuff
D A flac
D V D flic
DEVSD flv
D V D fraps
DEA g726
DEA gsm
DEV D h261
DEVSDT h263
D VSD h263i
EV h263p
D V DT h264
DEVSD huffyuv
D V D idcinvideo
D V D indeo2
D V indeo3
D A interplay_dpcm
D V D interplayvideo
EV ljpeg
D V D loco
D A mace3
D A mace6
D V D mdec
DEV D mjpeg
D V D mjpegb
DEA mp2
DEA mp3
D A mp3adu
D A mp3on4
DEVSDT mpeg1video
DEVSDT mpeg2video
DEVSDT mpeg4
D A mpeg4aac
D VSDT mpegvideo
DEVSD msmpeg4
DEVSD msmpeg4v1
DEVSD msmpeg4v2
D V D msrle
D V D msvideo1
D V D mszh
DEV pam
DEV pbm
DEA pcm_alaw
DEA pcm_mulaw
DEA pcm_s16be
DEA pcm_s16le
DEA pcm_s24be
DEA pcm_s24daud
DEA pcm_s24le
DEA pcm_s32be
DEA pcm_s32le
DEA pcm_s8
DEA pcm_u16be
DEA pcm_u16le
DEA pcm_u24be
DEA pcm_u24le
DEA pcm_u32be
DEA pcm_u32le
DEA pcm_u8
DEV pgm
DEV pgmyuv
DEV png
DEV ppm
D V D qdraw
D V D qpeg
D V D qtrle
DEV rawvideo
D A real_144
D A real_288
D A roq_dpcm
D V D roqvideo
D V D rpza
DEV D rv10
DEV D rv20
D A shorten
D V D smc
DEV snow
D A sol_dpcm
DEA sonic
EA sonicls
D V D sp5x
DEV D svq1
D VSD svq3
D V theora
D V D truemotion1
D V D ultimotion
D V vc9
D V D vcr1
D A vmdaudio
D V D vmdvideo
DEA vorbis
D V vp3
D V D vqavideo
D A wmav1
D A wmav2
DEVSD wmv1
DEVSD wmv2
D V wmv3
D V D wnv1
D A ws_snd1
D A xan_dpcm
D V D xan_wc3
D V D xl
EV xvid
DEV D zlib

Supported file protocols:
file: pipe: udp: rtp: tcp: http:
Frame size, frame rate abbreviations:
ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif
Motion estimation methods:
zero(fastest) full(slowest) log phods epzs(default) x1

Note, the names of encoders and decoders dont always match, so there are
several cases where the above table shows encoder only or decoder only entries
even though both encoding and decoding are supported for example, the h263
decoder corresponds to the h263 and h263p encoders, for file formats its even
worse
chris@xmastree:~$

Am I right inthinking that means I should be able to encode 3gp? That's what I'm after.

endersshadow
March 5th, 2006, 03:19 AM
It almost looks like it can't deal w/ the inputted format...what if you try another video in a different format?

xmastree
March 5th, 2006, 04:06 AM
Here's one of the files I'm tying to encode:
http://movies26.enwhore.com/abiggun1.wmv
(rather funny actually...)
I have another, in mpg format, but that gives the same result. :???:

ayarov
March 6th, 2006, 01:50 AM
In gtkpod, you need to edit the metadata (right click on the video, and select properties) and manually enter in the length (in minutes:seconds, so if you had a clip 2 hours, 28 minutes, 32 seconds, it would be 148:32 instead of 2:28:32). This is only because gtkpod is not able to pull the metadata from any video file, and one of the things that the devel of it is working very hard on doing.

Hi guys,

1st thanks for the great howto at the beginning, really THANKS.

today I wanted to watch some of the video files on my ipod, and I found out that some of them I can scroll without problem and some of them I cannot scroll at all, well after a short investigation I found out that the ones in which I can scroll are mp4 and they were official movie trailers from the apple website. And the others in which I cannot scroll are the ones created using ipodvidenc.

But if I rename some of the .mov files created with ipodvidenc to .mp4 everything is fine, I can scroll without any problem, so I have changed the ipodvidenc script on my pc to save directly to .mp4 files.

Any comments on that?

Formidable1987
March 11th, 2006, 10:55 PM
I don't seem to be able to encode movies =(

beelzebub1987@ray-ubuntu-k7:~/_/Movies$ sudo ipodenc Baseketball.avi
Password:
What would you like to name the output file (sans extension)?
Baseketball
Baseketball will be located in /home/beelzebub1987/_/Movies. Is this acceptable? [y/n]
y
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame --enable-faad --enable-faac --enable-xvid
built on Mar 11 2006 14:09:31, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
Input #0, avi, from 'Baseketball.avi':
Duration: 01:38:00.7, start: 0.000000, bitrate: 937 kb/s
Stream #0.0: Video: msmpeg4, yuv420p, 704x336, 23.98 fps
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 96 kb/s
Output #0, mp4, to '/home/beelzebub1987/_/Movies/Baseketball.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 320x240, 23.98 fps, q=3-5, 700 kb/s
Stream #0.1: Audio: aac, 48000 Hz, stereo, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[mpeg4 @ 0x8335bc8]removing common factors from framerate
[mpeg4 @ 0x8335bc8]timebase not supported by mpeg 4 standard
Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

dpaint4
March 13th, 2006, 07:23 PM
Wow. I've never compiled from source, but I followed your steps and everything succeeded. So now I pass all the program checks, but when I get to the very last step in exeuting the INSTALL as sudo, I receive this message:


Checking ffmpeg installation... [ OK ]
Checking vobcopy installation... [ OK ]
Checking cpdvd installation... [ OK ]
Checking VLC installation... [ OK ]
Checking Totem installation... [ OK ]
Installing Vive... [ FAIL ]

cp: cannot stat `vive': No such file or directory

I've taken a look at the steps that the script executes and I think I could just do them myself. Should I? Why can't it find the file? It's sitting right next to the install file.

Help out a well-intentioned, quickly developing Newbie. This program is exactly what I've been looking for, and I think I'm very close to success.

dpaint4
March 13th, 2006, 07:35 PM
Wow. I've never compiled from source, but I followed your steps and everything succeeded. So now I pass all the program checks, but when I get to the very last step in exeuting the INSTALL as sudo, I receive this message:


Checking ffmpeg installation... [ OK ]
Checking vobcopy installation... [ OK ]
Checking cpdvd installation... [ OK ]
Checking VLC installation... [ OK ]
Checking Totem installation... [ OK ]
Installing Vive... [ FAIL ]

cp: cannot stat `vive': No such file or directory

I've taken a look at the steps that the script executes and I think I could just do them myself. Should I? Why can't it find the file? It's sitting right next to the install file.

Help out a well-intentioned, quickly developing Newbie. This program is exactly what I've been looking for, and I think I'm very close to success.

Nevermind. I figured out I needed to cd to the directory before running the script. I'm learning, I swear I am.

rathortushar
March 15th, 2006, 08:43 AM
Hi,

i used your useful information on encoding the video for ipod and compiling gtk with the mpeg4ip support.
After the encoding was done, i was also able to play ( with audio support ) on my linux pc. doing a file on the encoded movie gave me : movie.mp4: ISO Media, MPEG v4 system, version 1

But after transferring the movie to my ipod video, i am not able to hear the audio.

Any help to solve this .

dpaint4
March 19th, 2006, 10:56 PM
Hi,

i used your useful information on encoding the video for ipod and compiling gtk with the mpeg4ip support.
After the encoding was done, i was also able to play ( with audio support ) on my linux pc. doing a file on the encoded movie gave me : movie.mp4: ISO Media, MPEG v4 system, version 1

But after transferring the movie to my ipod video, i am not able to hear the audio.

Any help to solve this .

Same here. No audio on any of the files of various formats that I've transcoded with Vive. Most have MP3 streams as the audio of the original source. Some are from DVD. Some are Quicktime MOV files. They all transcode gorgeously, but with no audio at all.

endersshadow
March 19th, 2006, 11:44 PM
Are you using a 60gig iPod Video with Firmware 1.1?

And please excuse my tardiness in replies...I've been coast to coast in the past two weeks :)

dpaint4
March 19th, 2006, 11:59 PM
Are you using a 60gig iPod Video with Firmware 1.1?

And please excuse my tardiness in replies...I've been coast to coast in the past two weeks :)

Oh wow! I can't believe you're replying in person; isn't Vive your software? You're a little bit of a celebrity then!

Yes. I remember reading something about the 60 gig's having a firmware glitch, and that is indeed what I'm using. :\

I'm also using Ubuntu as my only OS on my only personal computer, so I guess I'll have to do an upgrade when Apple releases one on my Mac at work. Not comfortable downgrading I don't think. Wish there was a way around this.

Videora iPod was a free app on Windows that was able to transcode for my unit, so I'm holding out hope for a work-around in the future. Wine dosen't handle it though because it relies on Quicktime (I think...).

Thanks for the reply. Really wasn't expecting it actually, so there's no such thing as a 'tardy' reply. :D

Iandefor
March 20th, 2006, 12:08 AM
Oh wow! I can't believe you're replying in person; isn't Vive your software? You're a little bit of a celebrity then! Umm... I'm a little confused. Want to elaborate on why Ender is a "bit of a celebrity"?

endersshadow
March 20th, 2006, 12:18 AM
Oh wow! I can't believe you're replying in person; isn't Vive your software? You're a little bit of a celebrity then!

Yes. I remember reading something about the 60 gig's having a firmware glitch, and that is indeed what I'm using. :\

I'm also using Ubuntu as my only OS on my only personal computer, so I guess I'll have to do an upgrade when Apple releases one on my Mac at work. Not comfortable downgrading I don't think. Wish there was a way around this.

Videora iPod was a free app on Windows that was able to transcode for my unit, so I'm holding out hope for a work-around in the future. Wine dosen't handle it though because it relies on Quicktime (I think...).

Thanks for the reply. Really wasn't expecting it actually, so there's no such thing as a 'tardy' reply. :D

It's the firmware issue, then, not a Vive issue...sorry :-|

As per me being a celebrity, you made my week. I'm not really all that much of a celebrity...just a dude who solved a problem. And I'm the only one that I know of supporting Vive, so, yes, yes I will be around much. I've just taken a two week vacation or something like it--so my apologies for not getting back to you sooner...otherwise, I'm on here every day :-D

I'm working on the Beta release of it right now...trust me...it's awesome.

Now that I'm a celebrity, it's time for...groupies....

dpaint4
March 20th, 2006, 12:33 AM
Umm... I'm a little confused. Want to elaborate on why Ender is a "bit of a celebrity"?

Well, Endersshadow is a bit of a celebrity to me, personally, because I'm a web designer at my dayjob, which means that I know just enough about code to admire people who do it well, and enough about interface to admire people who do that well too.

Plus I'm a video/audio compression fanatic, and so Endersshadow falls neatly into the 'celebrity' category, as far as I'm concerned.

As far as the firmware issue is concerned, I understand. Hate that the 30 and 60 would have different firmware! How frustrating right? Well. I'm assuming they'll update soon enough.

Thanks for all the work on Vive!

endersshadow
March 20th, 2006, 12:42 AM
Well, Endersshadow is a bit of a celebrity to me, personally, because I'm a web designer at my dayjob, which means that I know just enough about code to admire people who do it well, and enough about interface to admire people who do that well too.

Plus I'm a video/audio compression fanatic, and so Endersshadow falls neatly into the 'celebrity' category, as far as I'm concerned.

As far as the firmware issue is concerned, I understand. Hate that the 30 and 60 would have different firmware! How frustrating right? Well. I'm assuming they'll update soon enough.

Thanks for all the work on Vive!

You're quite welcome, and thank you for the compliments!

And nevermind Ian...he's just upset because I called him an idiot (http://ubuntuforums.org/showthread.php?p=841603#post841603) :-D

Iandefor
March 20th, 2006, 12:44 AM
You're quite welcome, and thank you for the compliments!

And nevermind Ian...he's just upset because I called him an idiot (http://ubuntuforums.org/showthread.php?p=841603#post841603) :-D lol. Thanks, Eric. And I was just confused as to how Eric was a celebrity, seeing as how he doesn't have that much notoriety.

dpaint4
March 20th, 2006, 07:07 PM
I booted back into Windows to use Videora iPod coverter, which is based on ffmpeg. Anyway, the new version includes an option to 'fix for 60gb 1.1 firmware'.

Also look at this page, which is for a Mac app with an apple script that does the same thing.

http://www.isquint.org/

Here's a quote from the page:


AppleScript to fix up previously-converted videos for 1.1 Firmware Posted Wednesday, March 1, 2006 by Tyler Loch
iSquint Forum rockstar macr0t0r has come up with a nice AppleScript droplet that will batch-fix any .mp4 files created with previous versions of iSquint (or any ffmpeg-based compressor) to work without incident on version 1.1 of the 60GB iPod's firmware:
http://homepage.mac.com/james_sorenson/ReMux_Quicktime.dmg
It's already made one 3-year-old overly happy, and hopefully it'll do the same for you too.

We should find out what they're 'fixing' about the file and do the same. Hope this is helpful.

endersshadow
March 20th, 2006, 09:28 PM
I booted back into Windows to use Videora iPod coverter, which is based on ffmpeg. Anyway, the new version includes an option to 'fix for 60gb 1.1 firmware'.

Also look at this page, which is for a Mac app with an apple script that does the same thing.

http://www.isquint.org/

We should find out what they're 'fixing' about the file and do the same. Hope this is helpful.

Thanks! I've emailed Tyler and hopefully he'll get back to me and let me take a peek at the source code for the fix. I can't find any info or discussion on it out there, but I'll keep Googling. I think that the trick is to fool it into thinking that it came from iTunes. If it does in fact include putting DRM on it, I don't think that I can legally put it in the program (as Vive is GPL'd). Let's just cross our fingers though and hopefully he'll let me take a quick look at the AppleScript (which, for anyone wondering, reads like a book).

endersshadow
March 20th, 2006, 10:45 PM
Well, Tyler got back to me, and good news, I just have to pass it through mpeg4ip (which you would have installed, anyway, if you're using gtkpod to put videos onto your iPod). I'll include it in the next version of Vive.

If Tyler comes across this, thanks to him for his help!

dpaint4
March 20th, 2006, 11:32 PM
Well, Tyler got back to me, and good news, I just have to pass it through mpeg4ip (which you would have installed, anyway, if you're using gtkpod to put videos onto your iPod). I'll include it in the next version of Vive.

If Tyler comes across this, thanks to him for his help!

That's really good news. So glad that there turns out to be a way! :KS

hal pacino
March 21st, 2006, 12:54 AM
I fixed my mp4s for ipod G5 1.1 by remuxing with MP4Box.


wget http://internap.dl.sourceforge.net/sourceforge/gpac/gpac-0.4.0-rc2.tar.gz
wget http://internap.dl.sourceforge.net/sourceforge/gpac/gpac_extra_libs-0.4.0.tar.gz
tar -zxf gpac-0.4.0-rc2.tar.gz
tar -zxf gpac_extra_libs-0.4.0.tar.gz
cd gpac_extra_libs
cp -r * ../gpac/extra_lib
cd ../gpac
chmod +x configure
./configure
make lib
make apps
make install

Then just type:

MP4Box -add <inputvideo>.mp4 <outputvideo>.mp4

It doesn't take long. Remuxing is a lot quicker than encoding.

endersshadow
March 21st, 2006, 03:55 PM
I fixed my mp4s for ipod G5 1.1 by remuxing with MP4Box.


wget http://internap.dl.sourceforge.net/sourceforge/gpac/gpac-0.4.0-rc2.tar.gz
wget http://internap.dl.sourceforge.net/sourceforge/gpac/gpac_extra_libs-0.4.0.tar.gz
tar -zxf gpac-0.4.0-rc2.tar.gz
tar -zxf gpac_extra_libs-0.4.0.tar.gz
cd gpac_extra_libs
cp -r * ../gpac/extra_lib
cd ../gpac
chmod +x configure
./configure
make lib
make apps
make install

Then just type:

MP4Box -add <inputvideo>.mp4 <outputvideo>.mp4

It doesn't take long. Remuxing is a lot quicker than encoding.

Thanks for the tip. When I installed it, it did not copy libgpac.so over, so after make install, you need to do this:


cd bin/gcc
sudo cp libgpac.so /usr/lib/

But only do that if you get an error when you try to run MP4Box :-D

chrluc
March 22nd, 2006, 10:56 PM
I have tried to read thru this thread and find it pretty confusing, someware a few weeks ago someone sugested that the wiki be updated to reflect some of the changes in the process, but I think it has not been done (not sure) but the wiki does not even mention vive or how to install it or ipodvidenc.

Here are a few of the questions I have

1.What is the difference between ipodvidenc-1.5.tar.gz and vive-0.1.tar.gz, I first thought that vive is the new ipodvidenc but after tring to just install vive i got shut down right away (would not install) then i thought will maybe vive is just the gui for ipodvidenc but after trying to install ipodvidenc I got this message
" => `libgpod-0.3.0.tar.gz'
Resolving umn.dl.sourceforge.net... 128.101.240.209
Connecting to umn.dl.sourceforge.net|128.101.240.209|:80... failed: Connection refused.
tar: libgpod-0.3.0.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
./install: line 80: cd: libgpod-0.3.0/: No such file or directory
./install: line 83: ./configure: No such file or directory
libgpod not configured correctly. Please see ~/.ipodvidenc/install/install.log for details."
so im still not sure if vive is just a gui.

2.if I only want to transfer video to a PSP do i need to install ALL the suggested programs, like mpeg4ip and gtkpod or are they just for ipod?

and thats the questions so far, iknow im just at the start of the whole process, but could really use some advice this far.

endersshadow
March 22nd, 2006, 11:36 PM
I have tried to read thru this thread and find it pretty confusing, someware a few weeks ago someone sugested that the wiki be updated to reflect some of the changes in the process, but I think it has not been done (not sure) but the wiki does not even mention vive or how to install it or ipodvidenc.

Here are a few of the questions I have

1.What is the difference between ipodvidenc-1.5.tar.gz and vive-0.1.tar.gz, I first thought that vive is the new ipodvidenc but after tring to just install vive i got shut down right away (would not install) then i thought will maybe vive is just the gui for ipodvidenc but after trying to install ipodvidenc I got this message
" => `libgpod-0.3.0.tar.gz'
Resolving umn.dl.sourceforge.net... 128.101.240.209
Connecting to umn.dl.sourceforge.net|128.101.240.209|:80... failed: Connection refused.
tar: libgpod-0.3.0.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
./install: line 80: cd: libgpod-0.3.0/: No such file or directory
./install: line 83: ./configure: No such file or directory
libgpod not configured correctly. Please see ~/.ipodvidenc/install/install.log for details."
so im still not sure if vive is just a gui.

2.if I only want to transfer video to a PSP do i need to install ALL the suggested programs, like mpeg4ip and gtkpod or are they just for ipod?

and thats the questions so far, iknow im just at the start of the whole process, but could really use some advice this far.

Hey there, sorry to confuse you!

First and foremost, I did not feel as though putting Vive in the Wiki was very tasteful. Afterall, it's my program that I wrote, and I would hate to use someone else's space to promote it.

Secondly, to answer your last question, you do not need mpeg4ip and/or gtkpod to transfer files to your PSP, only ffmpeg. Here's what you're going to do:


sudo apt-get build-dep ffmpeg
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev
apt-get source ffmpeg
cd ffmpeg-*/
./configure --enable-gpl --enable-pp --enable-zlib --enable-vorbis \
--enable-libogg --enable-theora --enable-a52 --enable-dts \
--enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \
--enable-faad --enable-faac --enable-xvid
make
sudo make install

If you don't have the necessary codecs installed, you'll have to work through those with the ffmpeg installation (it will tell you what you're missing, but you should be able to get everything with the Multimedia Codecs page in the Wiki). Then, install Vive, select the iPod/PSP Video preset, and you'll be off to the races.

Thirdly, as for the differences between ipodvidenc and Vive. Both accomplish (nominally) the same task. ipodvidenc was designed specifically with the iPod and Ubuntu in mind (hence the gtkpod and mpeg4ip install). Also, it was written in bash and the GUI was via zenity. I decided that I needed to make it more accessible for other distributions and a bit more professional than just a series of pop-up windows. Vive was born. They're both GUIs, and do nominally the same thing...one was just a full installation and automation script for Ubuntu, and the other is a video encoding frontend for ffmpeg for the masses. I've got Vive v0.2 (Beta release) currently done, and trust me, it's awesome. I'm writing the configuration and installation processes right now, and should be done by the end of this week. :-D

Hope this helps!

endersshadow
March 23rd, 2006, 06:06 PM
Well, the day hath come. I present: Vive 0.2 (Beta Release)! Now featuring Preferences, a more configurable interface, a more horizontal interface, the Firmware 1.1 workaround, and more! Vive has transformed from an iPod Video video encoding frontend to the application to take care of all of your video encoding and/or DVD ripping needs. I'm nice like that. Grab it at http://vive.sourceforge.net!!!

http://vive.sourceforge.net/images/vive_main_screenie.png

http://vive.sourceforge.net/images/vive_prefs_screenie.png

Vincent_Lin
March 23rd, 2006, 07:05 PM
Hi,

I recently spent the money to purchase Apple AV cable, hoping that videos stored in my iPod, encoded by ipodvidenc, can be enjoyed as displayed on TV. It works. But the image quality is not even on par as VHS tape stuff. The video, while played on iPod's tiny screen as perfect/beautiful as it should be, shows a lot of artifacts and the color seems to be washed out. I wonder if there is room for improvement for ffmpeg's encoding process??

I went on the net to research, starting from ffmpeg home page at sourceforge.net. And here is what I found:

1. Quality
http://ffmpeg.sourceforge.net/ffmpeg-doc.html#SEC7
I wonder if the -hq setting mentioned in this documentation does make any difference.

2. Size of encoded video
http://homepage.mac.com/major4/ipod_for_tv.html
This page, mentioned in ffmpeg.sourceforge.net, documents an OSX application using ffmpeg. And the instereting bit of this page is the option to encode video into bigger size (than 320x240) while iPod video can still play it, and supposedly if output to TV via AV cable you would get better image quality. A higher bit rate up to 2500kbps is also possible.

3. AV cable
http://www.macdevcenter.com/pub/a/mac/2005/11/18/video-ipod.html?page=1
It turns out Apple AV cable is nothing but a general AV cable such as provided by video camara with a twist in output heads arrangement. Even so, I don't think I am going to return the cable I bought from Apple Store.

Would you care to comment and, if possible, implement the options to change size of video and various bitrates possible? And what the heck "-hq" option is for??

Thanks.

Vincent

endersshadow
March 23rd, 2006, 07:16 PM
Hi,

I recently spent the money to purchase Apple AV cable, hoping that videos stored in my iPod, encoded by ipodvidenc, can be enjoyed as displayed on TV. It works. But the image quality is not even on par as VHS tape stuff. The video, while played on iPod's tiny screen as perfect/beautiful as it should be, shows a lot of artifacts and the color seems to be washed out. I wonder if there is room for improvement for ffmpeg's encoding process??

I went on the net to research, starting from ffmpeg home page at sourceforge.net. And here is what I found:

1. Quality
http://ffmpeg.sourceforge.net/ffmpeg-doc.html#SEC7
I wonder if the -hq setting mentioned in this documentation does make any difference.

2. Size of encoded video
http://homepage.mac.com/major4/ipod_for_tv.html
This page, mentioned in ffmpeg.sourceforge.net, documents an OSX application using ffmpeg. And the instereting bit of this page is the option to encode video into bigger size (than 320x240) while iPod video can still play it, and supposedly if output to TV via AV cable you would get better image quality. A higher bit rate up to 2500kbps is also possible.

3. AV cable
http://www.macdevcenter.com/pub/a/mac/2005/11/18/video-ipod.html?page=1
It turns out Apple AV cable is nothing but a general AV cable such as provided by video camara with a twist in output heads arrangement. Even so, I don't think I am going to return the cable I bought from Apple Store.

Would you care to comment and, if possible, implement the options to change size of video and various bitrates possible? And what the heck "-hq" option is for??

Thanks.

Vincent

1 & 2. I'll add -hq and 2 pass encoding into Vive 1.0 (the next release)...a glaring omission that I thought about at one point and then promptly forgot. As per the size, with the new release of Vive, you can change the size (or even leave them blank, and it will be the size of the original video).

If you'd like to try out -hq and 2 pass encoding (better quality), in the Bitrate setting, make it read:

700 -hq -pass 2

I (quite foolishly, and am realizing it now) did not put data integrity checking into Vive and it's possibly a security risk (not really too much of one, especially considering the limited reach of Vive and the lack of any internet connections.

3. Given this stuff, let me know how it turns out :-D

marks_linux
March 23rd, 2006, 09:30 PM
any ideas what this:

Use of uninitialized value in substitution (s///) at /usr/bin/cpdvd line 76.

means when clicking encode?

I'm not sure anything 'happens' after this. vive GUI doesn't refresh, using 'top' etc shows no CPU activity.


cheers
Mark

chrluc
March 23rd, 2006, 11:07 PM
thanks for the quick reply, I understand pretty well now but I still am having problems w/ ffmpeg, at "sudo make install"...

make -C libavcodec all
make[1]: Entering directory `/home/clucas/Desktop/ffmpeg-0.4.9-pre1/libavcodec'
gcc -O3 -Wall -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
In file included from avcodec.h:14,
from common.c:28:
common.h:67: error: array type has incomplete element type
common.h:71: error: array type has incomplete element type
make[1]: *** [common.o] Error 1
make[1]: Leaving directory `/home/clucas/Desktop/ffmpeg-0.4.9-pre1/libavcodec'
make: *** [lib] Error 2

I got this from a ffmpeg download because apt-get source ffmpeg gave me nothing but errors.

any ideas?

endersshadow
March 24th, 2006, 01:04 AM
thanks for the quick reply, I understand pretty well now but I still am having problems w/ ffmpeg, at "sudo make install"...

make -C libavcodec all
make[1]: Entering directory `/home/clucas/Desktop/ffmpeg-0.4.9-pre1/libavcodec'
gcc -O3 -Wall -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
In file included from avcodec.h:14,
from common.c:28:
common.h:67: error: array type has incomplete element type
common.h:71: error: array type has incomplete element type
make[1]: *** [common.o] Error 1
make[1]: Leaving directory `/home/clucas/Desktop/ffmpeg-0.4.9-pre1/libavcodec'
make: *** [lib] Error 2

I got this from a ffmpeg download because apt-get source ffmpeg gave me nothing but errors.

any ideas?

It appears that there's an error in the code...I'm not going to make you look through a bunch of C code to find it, that's for sure. I posted it incorrectly, so did you do "sudo apt-get source ffmpeg" or did you neglect to put the sudo in (as I had written)?


any ideas what this:

Use of uninitialized value in substitution (s///) at /usr/bin/cpdvd line 76.

means when clicking encode?

I'm not sure anything 'happens' after this. vive GUI doesn't refresh, using 'top' etc shows no CPU activity.


cheers
Mark

cpdvd has a little snafu in that it sometimes tries to pass an uninitialized variable through a function when it's not copying DVDs. However, it shouldn't implement that when you press "Encode," only when you press "Load DVD"...

Is it still producing the video?

endersshadow
March 26th, 2006, 08:52 PM
Well, Vincent, I've been experimenting and adding new options to Vive, and I've found the following:

Old iPod configuration (single pass, w/o the -hq, 320x240 size) on a 5:22 video: 34.4MB
New iPod configuration (dual pass, w/ the -hq, default video size) on a 5:22 video: 230.5MB
Raw VOB of same 5:22 video: 304.1MB

So, as you can see, you go from a 90% compression to a 20% compression...but it does look good large...I'll grant you that :-D

hatstand
March 27th, 2006, 12:21 AM
Great programme. Love using it. The new script is great.

endersshadow
March 27th, 2006, 12:48 AM
Great programme. Love using it. The new script is great.

Thanks for the compliments :-D

As I know that you have a 60GB w/ 1.1 firmware, I'll ask you: Does Vive encode the video correctly for it?

hatstand
March 27th, 2006, 02:46 AM
Hold on: It's just gone!
I tried a few other movies and they didn't work, so I tried the movie it worked on orignally and now I get this:

Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from '/home/mat/videos/streakerscores.wmv':
Duration: 00:00:20.4, start: 3.000000, bitrate: 503 kb/s
Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 64 kb/s
Stream #0.1: Video: wmv2, yuv420p, 384x288, 1000.00 fps
Unknown codec 'aac'

Hmm. I did move all the ipodvidenc, gtkpod debs and folders from my home folder to a backup, but I have moved them back and no difference!

¿que pasó?

endersshadow
March 27th, 2006, 02:56 AM
Hold on: It's just gone!
I tried a few other movies and they didn't work, so I tried the movie it worked on orignally and now I get this:

Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from '/home/mat/videos/streakerscores.wmv':
Duration: 00:00:20.4, start: 3.000000, bitrate: 503 kb/s
Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 64 kb/s
Stream #0.1: Video: wmv2, yuv420p, 384x288, 1000.00 fps
Unknown codec 'aac'

Hmm. I did move all the ipodvidenc, gtkpod debs and folders from my home folder to a backup, but I have moved them back and no difference!

¿que pasó?

¿Qué es el resulto de ffmpeg -formats?

hatstand
March 27th, 2006, 03:40 AM
¿Qué es el resulto de ffmpeg -formats?


¿hablas Español? Que bueno. Aquí está:

ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)
File formats:
E 3g2 3gp2 format
E 3gp 3gp format
D 4xm 4X Technologies format
D RoQ Id RoQ format
DE ac3 raw ac3
DE alaw pcm A law format
DE asf asf format
E asf_stream asf format
DE au SUN AU Format
DE audio_device audio grab and output
DE avi avi format
E crc crc testing format
D daud D-Cinema audio format
D dc1394 dc1394 A/V grab
D dts raw dts
DE dv DV video format
D dv1394 dv1394 A/V grab
E dvd MPEG2 PS format (DVD VOB)
D ea Electronic Arts Multimedia Format
DE ffm ffm format
D film_cpk Sega FILM/CPK format
D flic FLI/FLC animation format
DE flv flv format
DE gif GIF Animation
DE h261 raw h261
DE h263 raw h263
DE h264 raw H264 video format
D idcin Id CIN format
DE image image sequence
DE image2 image2 sequence
DE image2pipe piped image2 sequence
DE imagepipe piped image sequence
D ipmovie Interplay MVE format
DE m4v raw MPEG4 video format
D matroska Matroska file format
DE mjpeg MJPEG video
DE mmf mmf format
E mov mov format
D mov,mp4,m4a,3gp,3g2 QuickTime/MPEG4 format
E mp2 MPEG audio layer 2
D mp3 MPEG audio
E mp4 mp4 format
DE mpeg MPEG1 System format
E mpeg1video MPEG video
E mpeg2video MPEG2 video
DE mpegts MPEG2 transport stream format
D mpegvideo MPEG video
E mpjpeg Mime multipart JPEG format
DE mulaw pcm mu law format
D nsv NullSoft Video format
E null null video format
DE nut nut format
DE ogg Ogg Vorbis
E psp psp mp4 format
D psxstr Sony Playstation STR format
DE rawvideo raw video format
D redir Redirector format
DE rm rm format
E rtp RTP output format
D rtsp RTSP input format
DE s16be pcm signed 16 bit big endian format
DE s16le pcm signed 16 bit little endian format
DE s8 pcm signed 8 bit format
D sdp SDP
D shn raw shn
D sol Sierra SOL Format
E svcd MPEG2 PS format (VOB)
DE swf Flash format
DE u16be pcm unsigned 16 bit big endian format
DE u16le pcm unsigned 16 bit little endian format
DE u8 pcm unsigned 8 bit format
E vcd MPEG1 System format (VCD)
D video4linux video grab
D vmd Sierra VMD format
E vob MPEG2 PS format (VOB)
DE wav wav format
D wc3movie Wing Commander III movie format
D wsaud Westwood Studios audio format
D wsvqa Westwood Studios VQA format
DE yuv4mpegpipe YUV4MPEG pipe format

Image formats (filename extensions, if any, follow):
DE gif gif

Codecs:
D V 4xm
D V D 8bps
D V D aasc
DEA ac3
DEA adpcm_4xm
DEA adpcm_adx
DEA adpcm_ct
DEA adpcm_ea
DEA adpcm_ima_dk3
DEA adpcm_ima_dk4
DEA adpcm_ima_qt
DEA adpcm_ima_smjpeg
DEA adpcm_ima_wav
DEA adpcm_ima_ws
DEA adpcm_ms
DEA adpcm_swf
DEA adpcm_xa
DEA adpcm_yamaha
D A alac
DEV D asv1
DEV D asv2
D V D camtasia
D V D cinepak
D V D cljr
D V D cyuv
D A dts
DES dvbsub
D S dvdsub
DEV D dvvideo
DEV D ffv1
DEVSD ffvhuff
D A flac
D V D flic
DEVSD flv
D V D fraps
DEA g726
DEA gsm
DEV D h261
DEVSDT h263
D VSD h263i
EV h263p
D V DT h264
DEVSD huffyuv
D V D idcinvideo
D V D indeo2
D V indeo3
D A interplay_dpcm
D V D interplayvideo
EV ljpeg
D V D loco
D A mace3
D A mace6
D V D mdec
DEV D mjpeg
D V D mjpegb
DEA mp2
D A mp3
D A mp3adu
D A mp3on4
DEVSDT mpeg1video
DEVSDT mpeg2video
DEVSDT mpeg4
D VSDT mpegvideo
DEVSD msmpeg4
DEVSD msmpeg4v1
DEVSD msmpeg4v2
D V D msrle
D V D msvideo1
D V D mszh
DEV pam
DEV pbm
DEA pcm_alaw
DEA pcm_mulaw
DEA pcm_s16be
DEA pcm_s16le
DEA pcm_s24be
DEA pcm_s24daud
DEA pcm_s24le
DEA pcm_s32be
DEA pcm_s32le
DEA pcm_s8
DEA pcm_u16be
DEA pcm_u16le
DEA pcm_u24be
DEA pcm_u24le
DEA pcm_u32be
DEA pcm_u32le
DEA pcm_u8
DEV pgm
DEV pgmyuv
DEV png
DEV ppm
D V D qdraw
D V D qpeg
D V D qtrle
DEV rawvideo
D A real_144
D A real_288
D A roq_dpcm
D V D roqvideo
D V D rpza
DEV D rv10
DEV D rv20
D A shorten
D V D smc
DEV snow
D A sol_dpcm
DEA sonic
EA sonicls
D V D sp5x
DEV D svq1
D VSD svq3
D V theora
D V D truemotion1
D V D ultimotion
D V vc9
D V D vcr1
D A vmdaudio
D V D vmdvideo
DEA vorbis
D V vp3
D V D vqavideo
D A wmav1
D A wmav2
DEVSD wmv1
DEVSD wmv2
D V wmv3
D V D wnv1
D A ws_snd1
D A xan_dpcm
D V D xan_wc3
D V D xl
DEV D zlib

Supported file protocols:
file: pipe: udp: rtp: tcp: http:
Frame size, frame rate abbreviations:
ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif
Motion estimation methods:
zero(fastest) full(slowest) log phods epzs(default) x1

Note, the names of encoders and decoders dont always match, so there are
several cases where the above table shows encoder only or decoder only entries even though both encoding and decoding are supported for example, the h263 decoder corresponds to the h263 and h263p encoders, for file formats its even worse


Gracias

endersshadow
March 27th, 2006, 04:01 AM
¿hablas Español? Que bueno. Aquí está:

ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
built on Sep 29 2005 03:25:16, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)

Gracias

Hablo español un poco, pero trato, es verdad. Sin embargo, tu problema...

Es obvio que no hay aac en tu resulto...aquí:

D V 4xm
D V D 8bps
D V D aasc
DEA ac3

Debe estar aac antes de aasc...así, hace este:


sudo apt-get install faac libfaac0 libfaac-dev gstreamer0.8-faac faac

Y también, es posible que necesites compilar ffmpeg también con --enable-faac y --enable-faad.

Dígame si ese es bueno. :-D

hatstand
March 27th, 2006, 04:13 AM
Hablo español un poco, pero trato, es verdad. Sin embargo, tu problema...

Es obvio que no hay aac en tu resulto...aquí:

D V 4xm
D V D 8bps
D V D aasc
DEA ac3

Debe estar aac antes de aasc...así, hace este:


sudo apt-get install faac libfaac0 libfaac-dev gstreamer0.8-faac faac

Y también, es posible que necesites compilar ffmpeg también con --enable-faac y --enable-faad.

Dígame si ese es bueno. :-D

La contesta corta es "no"

Ya tengo faac libfaac0 etc.

Entonces necesito compilar ffmpeg. ¿Como se puede hacerlo? ¿Tengo que reinstalar y reconstruir ffmpeg from source?

Gracias mate

hatstand
March 27th, 2006, 04:23 AM
La contesta corta es "no"

Ya tengo faac libfaac0 etc.

Entonces necesito compilar ffmpeg. ¿Como se puede hacerlo? ¿Tengo que reinstalar y reconstruir ffmpeg from source?

Gracias mate


ups

hicé un error.

usé vi debian/rules y cambié unas lineas pero las equivicadas. Ahora se me olvidó las originales. Voy a reconstruir ffmpeg usando las instrucciónes de pagaina 1.

te diré las resultados

endersshadow
March 27th, 2006, 04:25 AM
ups

hicé un error.

usé vi debian/rules y cambié unas lineas pero las equivicadas. Ahora se me olvidó las originales. Voy a reconstruir ffmpeg usando las instrucciónes de pagaina 1.

te diré las resultados

Bueno...entonces, no necesitas mi contesta que escribí :-D

hatstand
March 27th, 2006, 04:37 AM
Bueno: aquí lo tenemos:

con un test video estaba bien pero con el segundo video tengo errores como esos:

Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from '/home/mat/Palace Vids/champ.wmv':
Duration: 00:03:57.5, start: 8.000000, bitrate: 156 kb/s
Stream #0.0: Audio: wmav2, 32000 Hz, mono, 20 kb/s
Stream #0.1: Video: wmv3, yuv420p, 320x240, 1000.00 fps
Output #0, mp4, to '/home/mat/videos/champ.mov':
Stream #0.0: Video: mpeg4, yuv420p, 320x240, 25.00 fps, q=3-5, 700 kb/s
Stream #0.1: Audio: aac, 32000 Hz, mono, 192 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
[wmv3 @ 0x8335b88]This decoder is not supposed to produce picture. Dont report this as a bug!
[wmv3 @ 0x8335b88]Profile 1:
frmrtq_postproc=4, bitrtq_postproc=2
LoopFilter=1, MultiRes=0, FastUVMV=0, Extended MV=0
Rangered=0, VSTransform=1, Overlap=1, SyncMarker=0
DQuant=1, Quantizer mode=0, Max B frames=0
Press [q] to stop encoding
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]Transform used: 4x8
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors
[wmv3 @ 0x8335b88]VOP DQuant info
[wmv3 @ 0x8335b88]concealing 300 DC, 300 AC, 300 MV errors

endersshadow
March 27th, 2006, 04:44 AM
Escondí esta pagina en este problema:

http://www.richardgoodwin.com/wp/2006/02/15/building-ffmpeg-to-support-windows-media-files/

Recuerda que usar el ./configure de la primera pagina, y no uses solamente ./configure sin las opciones.

hatstand
March 27th, 2006, 04:46 AM
parece que es el tipo de video que estoy bajando. Funciona con todos otros videos.

endersshadow
March 27th, 2006, 04:53 AM
parece que es el tipo de video que estoy bajando. Funciona con todos otros videos.

Sí, es el tipo de video. Ya que es un WMV3 para su video, necesitas una modificación a la fuente de ffmpeg por que puedas usar ese tipo de video.

Lo siento :-|

hatstand
March 27th, 2006, 05:03 AM
está bien. lo que es más importante es que puedo convertir mis DVDs para usar en el ipod. los otros serían un bonus nada más.

Es un buen programa y gracias por todo su ayuda.

endersshadow
March 27th, 2006, 05:11 AM
está bien. lo que es más importante es que puedo convertir mis DVDs para usar en el ipod. los otros serían un bonus nada más.

Es un buen programa y gracias por todo su ayuda.

De nada y gracias.

Now, in English for everybody that may have the same problem:
When he did ffmpeg -formats, he didn't get aac as a codec. Therefore, he had to install the aac packages (faac, gstreamer0.8-faac, libfaac0, libfaac-dev), and configure ffmpeg w/ the flags that can be found on the first page.

If you need to use Vive to encode WMV files, you need to follow the guide on the following page:

http://www.richardgoodwin.com/wp/2006/02/15/building-ffmpeg-to-support-windows-media-files/

hatstand
March 27th, 2006, 05:41 AM
whoops

404 error page, endersshadow

keep up the good work

endersshadow
March 27th, 2006, 05:52 AM
whoops

404 error page, endersshadow

keep up the good work

Whoops...selected the text from the post instead of the link...my fault--fixed :-D

Hydoskee
April 6th, 2006, 12:03 AM
I think I did one better. I made a perl script to encode a whole folder's worth of video, automatically.

put the file below, saved as "convert.pl" in the directory you wish to convert, and run the following lines:



ls > files
./convert.pl files
./conversionscript.sh


Takes the pain out of doing it one by one!

Here's the code for convert.pl


#!/usr/bin/perl

$ROOM=$ARGV[0];
$in=$ROOM;
$out="conversionscript.sh";

open(input,$in);
open(output,">>$out");
@filenames=<input>;
close(input);


print output "#!/bin/bash\n";
foreach $file (@filenames)
{
$length = length($file);
if(index($file, '.') != -1 ){
chop($file);
# print $file;
# print "\n";
print output "ffmpeg -i ";
print output '"';
print output $file;
print output '"';
print output ' ';
print output " -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 ";
$length = length($file);
print output '"';
print output substr($file, 0, $length - 3);
print output "mp4";
print output '"';
print output "\n";
}
}
close(output);


enjoy!

endersshadow
April 6th, 2006, 02:08 AM
Interesting...I'll have to make the next version of Vive have a batch encode feature...

Thanks!

ruvil
April 8th, 2006, 02:28 AM
excuse me.. but does anyone know what i have done wrong?
When i run the 'ipodvidenc' script (i have installed ffmpeg exactly as you told "me") this shows up:
/usr/bin/ipodv: line 17: [: missing `]'
/usr/bin/ipodv: line 18: ]: command not found
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame --enable-faad --enable-faac --enable-xvid
built on Apr 8 2006 03:14:36, gcc: 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
Input #0, avi, from 'myfile.avi':
Duration: 00:03:30.9, start: 0.000000, bitrate: 2426 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x480, 25.00 fps
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 192 kb/s
Must supply at least one output file
/usr/bin/ipodv: line 27: -qmin: command not found
/usr/bin/ipodv: line 28: -aspect: command not found

anyone knows what is wrong? Is it okay to remove the -qmin and aspect lines from the script and encode without them?
Or will the video be messed up then?

x5452
April 10th, 2006, 05:34 AM
i just set up a ubuntu system for my friends laptop and he has an ipod video, i found your how to post just in time since hes bringing his ipod over tomorrow, thanks for writing the how to, hope it works well for me!
I have gtkpod installed already but it is not the new 9 version, should i uninstall it before begining the how to procedure?

Awsome name by the way, the Ender series was awsome! although, I think Ender's game was my favorite book of them all!! :mrgreen:

endersshadow
April 10th, 2006, 05:56 AM
i just set up a ubuntu system for my friends laptop and he has an ipod video, i found your how to post just in time since hes bringing his ipod over tomorrow, thanks for writing the how to, hope it works well for me!
I have gtkpod installed already but it is not the new 9 version, should i uninstall it before begining the how to procedure?

Awsome name by the way, the Ender series was awsome! although, I think Ender's game was my favorite book of them all!! :mrgreen:

Nope, you don't need to uninstall. The newer version will update it automatically.

As for Ender...yeah, I think Ender's Game was the best, but my favorite character has always been Bean. But naming yourself Bean just leads to a lot of questions :-D

x5452
April 10th, 2006, 06:09 AM
right on, thanks, i hate uninstalling stuff, the last time i did it took my desktop with it, stupid evolution!

Yeah, I guess bean would get questions here huh? lol they were supposed to make an Ender movie, guess it got scrapped though, too bad. All the other books got too religious for sci-fi anyways

thanks for your help

riiidaa
April 10th, 2006, 09:34 AM
With assistance from my mate, we've got ipodvidenc and vive working, Thanks lots for the work!

However my problem is that i want to encode .mp4 vids on the ubuntu server and then ftp the encoded video to my windows box where i can then use iTunes to chuck them onto my ipod.

Sadly it falls down at the iTunes -> iPod section, at first it was giving me the "not a video file" error when I was trying to copy it to the iTunes library but then I read back on page 11 something about blank meta data fields so went back to VIVE and entered in info in the "copyright" etc boxes. Then it allowed it to copy to the iTunes library and even play!

BUT even tho it plays the file fine when I i play the file in iTunes if i try to copy it to the iPod it says it can't ](*,)

Really need to be able to do this, any ideas??

endersshadow
April 10th, 2006, 02:00 PM
With assistance from my mate, we've got ipodvidenc and vive working, Thanks lots for the work!

However my problem is that i want to encode .mp4 vids on the ubuntu server and then ftp the encoded video to my windows box where i can then use iTunes to chuck them onto my ipod.

Sadly it falls down at the iTunes -> iPod section, at first it was giving me the "not a video file" error when I was trying to copy it to the iTunes library but then I read back on page 11 something about blank meta data fields so went back to VIVE and entered in info in the "copyright" etc boxes. Then it allowed it to copy to the iTunes library and even play!

BUT even tho it plays the file fine when I i play the file in iTunes if i try to copy it to the iPod it says it can't ](*,)

Really need to be able to do this, any ideas??

Make sure that it's named .mov instead of .mp4...it matters, for some reason.

Also, do you happen to have a 60GB iPod?

Oh, and if you'd like to do it in Windows, check out Videora (http://www.videora.com/en-us/Converter/) if the above doesn't work. It may be quicker.

And a question: Would a CLI be helpful for Vive?

riiidaa
April 10th, 2006, 02:57 PM
When it was .mov before it didn't wanna know at all but then the extra metadata wasn't there, thanks I shall try that.

I'm on the 30gb version.

On windows indeed i have been running Videora, it works well, and outputs .mp4 that i have no sweat in watching / copying over to my pod.

Reason i wanna do it from ubuntu is that I'm gonna house it in a datacentre, and grab stuff from newsgroups, then keep it on my personal ftp share but also make ipod video versions of the files that i can easily download if i wanna watch a vid at short notice - method in my madness you might say...

riiidaa
April 10th, 2006, 08:48 PM
Make sure that it's named .mov instead of .mp4...it matters, for some reason.


Renaming to .mov proves fruitless mate, iTunes doesn't allow it to add to library when it's a .mov

bummer

endersshadow
April 10th, 2006, 09:47 PM
Try encoding it with the container format being h264 instead of mp4 and let me know how it works.

x5452
April 10th, 2006, 11:09 PM
ok i have confused myself, i just got my friends ipod video here now. I plugged it in the usb, and it showed up on the desktop, cool? I have an old version of gtkpod installed. I began reading your how to again and got confused, first, i tried downloading the attached ipodvidenc-1.5.tar.gz and it didnt do anything, i click save and it doesnt download? weird. second, at the top of your post it says that "The full install actually also does this whole HowTo for you. I've called it, very unimaginitively, "iPod Video Encoder" or ipodvidenc for short." does that mean there is something to download that will install the gui, new gtkpod and set me up for making videos and sending stuff to the ipod, all at once? if so where is that link?

Lol, i guess im basically asking where to begin? thanks Bean :mrgreen:

x5452
April 11th, 2006, 02:48 AM
ok so when im on my computer thats running ubuntu, i go to page one of this post and click the download link of the attached file, and it ask me if i want to save it to disk, i click yes, then the box dissappears, no dowload box shows up, and the file is nowhere to be found. then i was able to download the vive tar file, and i could not follow the read me instruction very well. i unpacked the tar file in my home directiory, i opened up terminal and typed ./configure, it did some stuff and told me to install mp4box, but it did work, it said try wget for two files, i did. then i tried typing make. nothing. make install. nothing, im sure im an idiot, but what do i do?

x5452
April 11th, 2006, 07:24 AM
Please help, ive tried a dozen different how to's, and somewhere ]there is always an error or somthing wont install or dependencies conflict. here is the script from my last attempt following the HowTo at the beginning of this thread:

scott@ubuntu:~$ sudo apt-get remove libmp4v2-0 libmp4v2-dev faac gstreamer0.8-faac libfaac0 libfaac-dev
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
faac gstreamer0.8-faac libfaac-dev libfaac0 libmp4v2-0 libmp4v2-dev
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 2683kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 84635 files and directories currently installed.)
Removing faac ...
Removing gstreamer0.8-faac ...
Removing libfaac-dev ...
Removing libfaac0 ...
Removing libmp4v2-dev ...
Removing libmp4v2-0 ...
scott@ubuntu:~$ wget http://rarewares.org/debian/packages/unstable/mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb
--22:59:59-- http://rarewares.org/debian/packages/unstable/mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb
=> `mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb.1'
Resolving rarewares.org... 66.225.254.3
Connecting to rarewares.org|66.225.254.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 499,078 (487K) [text/plain]

100%[====================================>] 499,078 314.62K/s

23:00:01 (313.56 KB/s) - `mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb.1' saved [499078/499078]

scott@ubuntu:~$ sudo dpkg -i mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb
(Reading database ... 84581 files and directories currently installed.)
Unpacking mpeg4ip-libs (from mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb) ...Setting up mpeg4ip-libs (1.2.5+cvs20050126.20-0.0) ...

scott@ubuntu:~$ wget http://internap.dl.sourceforge.net/sourceforge/mpeg4ip/mpeg4ip-1.4.1.tar.gz
--23:02:35-- http://internap.dl.sourceforge.net/sourceforge/mpeg4ip/mpeg4ip-1.4.1.tar.gz
=> `mpeg4ip-1.4.1.tar.gz.1'
Resolving internap.dl.sourceforge.net... 64.74.207.43
Connecting to internap.dl.sourceforge.net|64.74.207.43|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4,791,075 (4.6M) [application/x-gzip]

100%[====================================>] 4,791,075 320.65K/s ETA 00:00

23:02:50 (311.80 KB/s) - `mpeg4ip-1.4.1.tar.gz.1' saved [4791075/4791075]

scott@ubuntu:~$ tar xzf mpeg4ip-1.4.1.tar.gz
scott@ubuntu:~$ cd mpeg4ip-1.4.1
scott@ubuntu:~/mpeg4ip-1.4.1$ ./bootstrap --disable-server
dir: .
SDL does not appear to be installed - install the SDL development package
You must have sdl-config in your path to continue
scott@ubuntu:~/mpeg4ip-1.4.1$


Ideas?> Help please

endersshadow
April 11th, 2006, 05:53 PM
Skip the installing from the mpeg-1.4.1 from source step. You've already installed it with the deb file.

Just go straight to installing gtkpod.

Sorry for not getting to you sooner, I just reinstalled and I'm working on getting a dual booting Ubuntu/Arch machine...but I've done the HowTo from beginning to end, and it worked for me on a clean install.

x5452
April 11th, 2006, 09:02 PM
no problem, I understand people get busy :mrgreen: I guess got got messed up, (being new) at the part about where i wget the deb from rarewares then dpkg it, i didnt iknow if the next few code boxes were only for the people doing source or not, and i tried the cd../../ make and checkinstall stuff and got errors, probably because i wasnt supposed to do that right? ](*,) So now im not sure of my mpeg4 status, not sure of any lib files, i do have the newest .99.2 gtkpod installed, is there a way to "start over" or does it matter? can i just do the mpe4 part, then skip to the ffmpeg part? sorry for my retardation

endersshadow
April 11th, 2006, 09:29 PM
no problem, I understand people get busy :mrgreen: I guess got got messed up, (being new) at the part about where i wget the deb from rarewares then dpkg it, i didnt iknow if the next few code boxes were only for the people doing source or not, and i tried the cd../../ make and checkinstall stuff and got errors, probably because i wasnt supposed to do that right? ](*,) So now im not sure of my mpeg4 status, not sure of any lib files, i do have the newest .99.2 gtkpod installed, is there a way to "start over" or does it matter? can i just do the mpe4 part, then skip to the ffmpeg part? sorry for my retardation

Start right over from scratch. It will overwrite any of the stuff you've done previously. Also, you need to have mpeg4ip installed before gtkpod...it gets weird, I know, but trust me on this. :-D

x5452
April 11th, 2006, 10:05 PM
should i uninstall the .99.2 gtkpod first then? or will following the steps and installing .99.2 gtkpod overwite the current version and mainain the oreder of installation?

endersshadow
April 11th, 2006, 10:14 PM
should i uninstall the .99.2 gtkpod first then? or will following the steps and installing .99.2 gtkpod overwite the current version and mainain the oreder of installation?

No, you don't need to uninstall the .99.2 version...just start it up from the top, and it will all be taken care of automatically :-D

x5452
April 11th, 2006, 10:43 PM
Sorry but I dont know what im doing wrong, i just started from the beginning, here is the entire terminal copy of what i did, and i just copy and pasted exactly what was written i typed nothing. i get to the perl makefile part and it says not such thing:

scott@ubuntu:~$ sudo apt-get remove libmp4v2-0 libmp4v2-dev faac gstreamer0.8-faac libfaac0 libfaac-dev
Password:
Reading package lists... Done
Building dependency tree... Done
Package libmp4v2-0 is not installed, so not removed
Package libmp4v2-dev is not installed, so not removed
Package faac is not installed, so not removed
Package gstreamer0.8-faac is not installed, so not removed
Package libfaac0 is not installed, so not removed
Package libfaac-dev is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
scott@ubuntu:~$ wget http://rarewares.org/debian/packages/unstable/mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb
--14:37:02-- http://rarewares.org/debian/packages/unstable/mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb
=> `mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb.2'
Resolving rarewares.org... 66.225.254.3
Connecting to rarewares.org|66.225.254.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 499,078 (487K) [text/plain]

100%[====================================>] 499,078 206.16K/s

14:37:05 (205.35 KB/s) - `mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb.2' saved [499078/499078]

scott@ubuntu:~$ sudo dpkg -i mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb
(Reading database ... 84716 files and directories currently installed.)
Preparing to replace mpeg4ip-libs 2:1.2.5+cvs20050126.20-0.0 (using mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb) ...
Unpacking replacement mpeg4ip-libs ...
Setting up mpeg4ip-libs (1.2.5+cvs20050126.20-0.0) ...

scott@ubuntu:~$ sudo apt-get install libexpat1-dev libglade2-0 libglade2-dev flex libid3tag0 libid3tag0-dev
Reading package lists... Done
Building dependency tree... Done
libexpat1-dev is already the newest version.
libglade2-0 is already the newest version.
libglade2-dev is already the newest version.
flex is already the newest version.
libid3tag0 is already the newest version.
libid3tag0-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
scott@ubuntu:~$ wget http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
--14:39:14-- http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
=> `XML-Parser-2.34.tar.gz.2'
Resolving search.cpan.org... 216.52.237.135
Connecting to search.cpan.org|216.52.237.135|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.ibiblio.org/pub/mirrors/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz [following]
--14:39:14-- http://www.ibiblio.org/pub/mirrors/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
=> `XML-Parser-2.34.tar.gz.2'
Resolving www.ibiblio.org... 152.2.210.80
Connecting to www.ibiblio.org|152.2.210.80|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://mirrors.ibiblio.org/pub/mirrors/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz [following]
--14:39:14-- http://mirrors.ibiblio.org/pub/mirrors/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
=> `XML-Parser-2.34.tar.gz.2'
Resolving mirrors.ibiblio.org... 152.2.210.65
Connecting to mirrors.ibiblio.org|152.2.210.65|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 229,689 (224K) [application/x-gzip]

100%[====================================>] 229,689 175.20K/s

14:39:16 (174.58 KB/s) - `XML-Parser-2.34.tar.gz.2' saved [229689/229689]

scott@ubuntu:~$ tar xzf XML-Parser-2.34.tar.gz
scott@ubuntu:~$ perl Makefile.PL
Can't open perl script "Makefile.PL": No such file or directory
scott@ubuntu:~$


sorry foir long post, do you have any idea what i am doing wrong?

x5452
April 12th, 2006, 01:24 AM
ok so im an idiot again, i did not realize i had to cd into the new place. the checkinstall wouldnt work for me because i didnt know i had to INSTALL checkinstall, lol, i thought it was pre installed. In my haste i did not read all the way through the gtkpod install part, where you say dont forget to rename gtkpod, i just pushed y and enter and never renamed anything. does it really matter, and is there a way to rename it later?

endersshadow
April 12th, 2006, 01:29 AM
ok so im an idiot again, i did not realize i had to cd into the new place. the checkinstall wouldnt work for me because i didnt know i had to INSTALL checkinstall, lol, i thought it was pre installed. In my haste i did not read all the way through the gtkpod install part, where you say dont forget to rename gtkpod, i just pushed y and enter and never renamed anything. does it really matter, and is there a way to rename it later?

It only really matter unless you'd like to upgrade it or remove it.

x5452
April 12th, 2006, 02:12 AM
ok, whats the deal with the ffmpeg build dependencies? i saw another post about it and the guy installed libdts-dev, libtheora-dev, libgsm1-dev, libraw1394-dev so i sud apt-get installed them, and tried sudo apt-get build-dep ffmpeg again and get
reading package lists... Done
Building dependency tree...Done
Note, selecting liba52-0.7.4-dev instead of liba52-dev
E: Build-dependencies for ffmpeg could not be satisfied

whats that mean?

x5452
April 12th, 2006, 02:18 AM
ok, whats the deal with the ffmpeg build dependencies? i saw another post about it and the guy installed libdts-dev, libtheora-dev, libgsm1-dev, libraw1394-dev so i sud apt-get installed them, and tried sudo apt-get build-dep ffmpeg again and get
reading package lists... Done
Building dependency tree...Done
Note, selecting liba52-0.7.4-dev instead of liba52-dev
E: Build-dependencies for ffmpeg could not be satisfied

whats that mean?

x5452
April 14th, 2006, 02:04 AM
Guess ill be normal and post in here, I feel bad for bothering Mr. Ender so much. I was finally able to get Vive working and encoding properly, im sure that in my haste i missed some key steps initially. However, while befuddling around i had installed ipodvidenc probably twice or so, and support files with it, and im wondering how can I find out how to uninstall it? I go to cd vive-0.2 try uninstall and it says directoiry does not exist? but i know it does, because I can run ipodvidenc through my menu... can someone please help me clean up my system from the mistakes i made, thanks in advance.

endersshadow
April 14th, 2006, 02:30 AM
Guess ill be normal and post in here, I feel bad for bothering Mr. Ender so much. I was finally able to get Vive working and encoding properly, im sure that in my haste i missed some key steps initially. However, while befuddling around i had installed ipodvidenc probably twice or so, and support files with it, and im wondering how can I find out how to uninstall it? I go to cd vive-0.2 try uninstall and it says directoiry does not exist? but i know it does, because I can run ipodvidenc through my menu... can someone please help me clean up my system from the mistakes i made, thanks in advance.

Do you want to uninstall Vive or ipodvidenc? If you want to uninstall ipodvidenc, simply do this:


sudo rm -f /usr/bin/ipodvidenc
sudo rm -rf /home/YOUR_USERNAME/.ipodvidenc/

Done :-D

x5452
April 14th, 2006, 04:32 AM
lol, i knew i must have messed something up when trying to install and get everything going. nothing happens when i type those codes in

endersshadow
April 14th, 2006, 04:39 AM
lol, i knew i must have messed something up when trying to install and get everything going. nothing happens when i type those codes in

That means they worked :-D

Fun fact about Linux: It usually assumes that you're not an idiot, so it doesn't congradulate you when you do something right. Instead, it only yells at you once you've done something wrong.

Your system is good to go :mrgreen:

x5452
April 14th, 2006, 04:51 AM
crap sorry, i should have clarified myself, all the program is stillthere, still in menu, still folders in home ect.

endersshadow
April 14th, 2006, 04:56 AM
crap sorry, i should have clarified myself, all the program is stillthere, still in menu, still folders in home ect.

Oh, right...my fault...do you want to uninstall Vive or ipodvidenc? Knowing what you did, you don't have any bloat on your system as far as Vive installation is concerned (stuff overwrites itself...Linux is good about that). As per the ipodvidenc menu, my fault for not doing it:


sudo rm /usr/share/pixmaps/ipodvidenc.xpm
sudo rm /usr/share/applications/ipodvidenc.desktop
killall gnome-panel

You can also cd to your home folder and run:


rm -rf ipodvidenc*

And if you want to remove the Vive source, just do this:


rm -rf vive*

Should be all set :-D

x5452
April 14th, 2006, 05:00 AM
ok thanks ill give that a go, no I dont want vive gone, its awsome now that you helped me set it up here, lol. I just want to clean this system up as much as i can before i give it back to the owner, (all this and its not even mine, I dont even have an IPOD!) lol thanks

endersshadow
April 14th, 2006, 05:10 AM
Glad I could help out :-D

Would a "Beginner's Guide to the iPod and MP3 Players" be helpful, or is the information out there already and it would just be redundant?

x5452
April 14th, 2006, 05:16 AM
i think it would be very helpful to have all the info "consolidated" there is a lot of info, but I must have bookmared 15 different pages when going through stuff and its easy to get lost, so I think its a good idea.

(while your here), lol, what the hell is nautilus and whys it eat my memory like candy

endersshadow
April 14th, 2006, 05:25 AM
Okay, I'll work on that :)

Erm, probably wrong thread, but as per Nautilus...it's your file manager and also handles drawing the desktop. I've attached a screenshot of it in action. But make sure that you're looking at Resident Memory and not Virtual Memory. Suffice it to say that Virtual Memory is an inflated number than what is actually being used on your system...it's a long story, so I'll give it the short version. Anyway, at idle, I've got Nautilus using 12MB of RM and 29.4MB of VM...so there's a difference. Don't worry about it, but it's needed. I've also included a screenshot of the system monitor, for good measure :)

Iandefor
April 30th, 2006, 08:52 PM
'ello, Eric! I don't know if this has been posted yet, but someone made a .deb for vive. It's for Dapper, but Dapper's out in a month anyways.

http://skulboxx.com/Ubuntu/sbx/

Looks like there's an "optimized" ffmpeg there, too.

endersshadow
April 30th, 2006, 10:21 PM
'ello, Eric! I don't know if this has been posted yet, but someone made a .deb for vive. It's for Dapper, but Dapper's out in a month anyways.

http://skulboxx.com/Ubuntu/sbx/

Looks like there's an "optimized" ffmpeg there, too.

I've updated the main post, there, sweetie. But thank you :-D

SBX was kind enough to email me about them...he made them via checkinstall, so use at your own risk, but they should work on every installation w/o trouble.

Iandefor
May 1st, 2006, 06:09 AM
I've updated the main post, there, sweetie. But thank you :-D

SBX was kind enough to email me about them...he made them via checkinstall, so use at your own risk, but they should work on every installation w/o trouble. Like I'm gonna bother reading the rest of the damn thread ;)?

jms830
May 2nd, 2006, 06:31 PM
I'm having some problems compiling the stuff for MP4box, is there a .deb or can anyone post/send me a .deb or something? thanks.

jms830
May 4th, 2006, 07:05 PM
just wanted to note that the new ipod firmware 1.1.1 supposedly fixes the video playback problems of 1.1, So far, I haven't had the problem since I upgraded to 1.1.1

ubernoob
May 11th, 2006, 04:07 PM
Well... your script didn't work. I tried it once. And it failed. Then when i tried again it failed on the same place.

Trying to revert the stuff the script did seems to be impossible....

Your script overwrote my original source list when i tried to run the script the second time :(

endersshadow
May 11th, 2006, 04:27 PM
Well... your script didn't work. I tried it once. And it failed. Then when i tried again it failed on the same place.

Trying to revert the stuff the script did seems to be impossible....

Your script overwrote my original source list when i tried to run the script the second time :(

Could you please provide the error messages that you received?

Edit: To get your old sources.list back:


sudo mv /etc/apt/sources.list.bak /etc/apt/sources.list

ubernoob
May 11th, 2006, 05:33 PM
there were several errors. One of them was about some xml parser. And the other was that http://rarewares.org/debian/packages/unstable/mpeg4ip-libs_1.2.5+cvs20050126.20-0.0_i386.deb doesn't exist.

You should change your script to check if sources.list.ipodvidenc.bak exists. If it does, you shouldn't overwrite it. Because if the script hangs before you revert the original source from sources.list.ipodvidenc.bak and you run it again. You will overwrite the original source which is in sources.list.ipodvidenc.bak


sudo mv /etc/apt/sources.list.bak /etc/apt/sources.list
I don't have that. But i think i have been able to restore it more or less like it was before this.

Does the script have anything that is not in the howto or the wiki? Should i try to run it again? Or is it waste of time? I'm about to finnish the rest of the stuff from the wiki now.

ubernoob
May 11th, 2006, 05:43 PM
Error while following the wiki:

Selecting previously deselected package xml-parser-2.34.
(Reading database ... 168615 files and directories currently installed.)
Unpacking xml-parser-2.34 (from .../xml-parser-2.34_2.34-1_i386.deb) ...
dpkg: error processing /home/ubuntu/XML-Parser-2.34/xml-parser-2.34_2.34-1_i386.deb (--install):
trying to overwrite `/usr/local/lib/perl/5.8.7/perllocal.pod', which is also in package vive
Errors were encountered while processing:
/home/ubuntu/XML-Parser-2.34/xml-parser-2.34_2.34-1_i386.deb


The wiki doesn't say that i should rename it from "xml-parser-2.34" to "xml-parser". Should I always rename and remove the version when using checkinstall?

Edit: removing vive helped.

endersshadow
May 11th, 2006, 07:19 PM
To get the XML Parser:


sudo apt-get install libxml-parser-perl

Try doing that, and then continuing on with the HowTo. I'll recheck the Wiki.

ubernoob
May 12th, 2006, 08:52 PM
I'm trying to convert some Episodes of Simpsons. When i right click on the films, it says:

DivX MS-MPEG-4 Version 3

Do you know how i convert them?

endersshadow
May 12th, 2006, 09:01 PM
I'm trying to convert some Episodes of Simpsons. When i right click on the films, it says:

DivX MS-MPEG-4 Version 3

Do you know how i convert them?

Try this command:

ffmpeg -i simpsons_movie.mpeg -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 output_movie.mov

And let me know what the output is.

ubernoob
May 13th, 2006, 08:09 PM
it seems like that worked like it should! Thanks alot! Now i just need my ipod. I'm getting it in the mail on monday... can hardly wait :rolleyes:

ubernoob
May 14th, 2006, 02:39 PM
Strange... some of the episodes works, but other doesn't:

This is the first, that works (i killed it thats why the sig term in the end):

ubernoob@ubuntu:/data/ipodsimpsons$ ffmpeg -i Simpsons\ 15x01* -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 Simpsons_15x0111.mov
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame --enable-faad --enable-faac --enable-xvid
built on May 12 2006 20:42:40, gcc: 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Input #0, avi, from 'Simpsons 15x01 - Treehouse of Horror XIV [rl].avi':
Duration: 00:21:31.6, start: 0.000000, bitrate: 650 kb/s
Stream #0.0: Video: msmpeg4, yuv420p, 320x240, 23.94 fps
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, mp4, to 'Simpsons_15x0111.mov':
Stream #0.0: Video: mpeg4, yuv420p, 320x240, 23.94 fps, q=3-5, 700 kb/s
Stream #0.1: Audio: aac, 44100 Hz, stereo, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 273 q=0.0 Lsize= 940kB time=11.4 bitrate= 675.1kbits/s
video:692kB audio:241kB global headers:0kB muxing overhead 0.773557%
Received signal 2: terminating.


The second which is coded with the same says:



ubernoob@ubuntu:/data/ipodsimpsons$ ffmpeg -i Simpsons\ 15x02* -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 Simpsons_15x02.mov
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame --enable-faad --enable-faac --enable-xvid
built on May 12 2006 20:42:40, gcc: 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Input #0, avi, from 'Simpsons 15x02 - My Mother The Carjacker [rl].avi':
Duration: 00:21:23.4, start: 0.000000, bitrate: 654 kb/s
Stream #0.0: Video: msmpeg4, yuv420p, 320x240, 23.97 fps
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, mp4, to 'Simpsons_15x02.mov':
Stream #0.0: Video: mpeg4, yuv420p, 320x240, 23.97 fps, q=3-5, 700 kb/s
Stream #0.1: Audio: aac, 44100 Hz, stereo, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[mpeg4 @ 0x8334688]timebase not supported by mpeg 4 standard
Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

endersshadow
May 14th, 2006, 04:07 PM
This (http://linuxfr.org/forums/9/13750.html) was the only info I could find on the matter, and it's in French. Attempting to translate (I speak Spanish, not French :) ), the replier says that apparently the codec doesn't support certain timebases.

Other than that, I haven't been able to find any info :-|

Sir_Yaro
May 20th, 2006, 07:17 PM
For everyone who has problems with mpeg4ip compilation:
mpeg4ip_1.4.1-3_i386.deb
gtkpod_0.99.4-1_i386.deb
http://yaro.gdi.pl/deb/index.php

both working under breezy

ubernoob
May 20th, 2006, 10:50 PM
I'm having problems with the sound on my 5G videos. I have tried to install gpac, but someting has gone wrong:


ubernoob@ubuntu:/data/downloads/ipodsimpsons$ MP4Box -add Simpsons_15x01.mov Simpsons_15x01.mov
MP4Box: error while loading shared libraries: libgpac.so: cannot open shared object file: No such file or directory


ubernoob@ubuntu:/data/downloads/ipodsimpsons$ ls -l /usr/local/lib/libgpac*
-rwxr-xr-x 1 root root 2397496 2006-05-20 23:42 /usr/local/lib/libgpac-0.4.0.so
lrwxrwxrwx 1 root root 16 2006-05-20 23:42 /usr/local/lib/libgpac.so -> libgpac-0.4.0.so
-rw-r--r-- 1 root root 2799390 2006-05-20 23:41 /usr/local/lib/libgpac_static.a

Sir_Yaro
May 21st, 2006, 03:33 AM
"Please install MP4Box by running:
./install mp4box
Or, run the following commands by yourself:
wget http://internap.dl.sourceforge.net/sourceforge/gpac/gpac-0.4.0-rc2.tar.gz
wget http://internap.dl.sourceforge.net/sourceforge/gpac/gpac_extra_libs-0.4.0.tar.gz
tar -zxf gpac-0.4.0-rc2.tar.gz
tar -zxf gpac_extra_libs-0.4.0.tar.gz
cd gpac_extra_libs
cp -r * ../gpac/extra_lib
cd ../gpac
chmod +x configure
./configure
make lib
make apps
make install
sudo cp bin/gcc/libgpac.so /usr/lib\n";


Did you do last step ?

ubernoob
May 21st, 2006, 08:37 AM
Thanks. I hadn't done that. Where did you find that instruction? It wasn't on the first page here.