2video4iPod

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

2video4ipod allows easy and quickly conversion of your video in video who your ipod video can read

video in xvid/mp4
sound in aac 128 kbp/s

Depends on ffmpeg (and for easy install wget)

To install it, just copy the file into /usr/share/apps/konqueror/servicemenus/ with video2video4ipod.desktop in name

----- Easy install -----
in a terminal type

~$ su
~# cd usr/share/apps/konqueror/servicemenus/
~# wget http://kde-look.org/content/files/33835-a.desktop
~# chmod 777 33835-a.desktop

in french for kde french user's ;)

thanks to jhuebel

bugger

12 years ago

Although a bit old I like this service menu. Replace the existing command with the following:

Exec=cd "%d";konsole --noclose -e ffmpeg -f mp4 -y -vcodec xvid -b 768 -qmax 10 -bufsize 4096 -g 300 -acodec aac -vol 256 -ab 128 -ac 2 -i %u -aspect 4:3 "`echo %u | perl -pe 's/\\.[^.]+$//'`.mp4"

Courtesy of "454casull" who created the AVI2IPod kommander script under http://www.kde-apps.org/content/show.php/Avi+2+iPod+(mp4)?content=56915

Report

C

pld1

13 years ago

i've no problem with ffmpeg with ubuntu.

Report

jhuebel

13 years ago

If you're running a binary distribution like Fedora, Debian or Mandriva, you'll probably have to recompile ffmpeg with xvid support. Many of these distributions support a limited set of codecs in their pre-compiled binaries.

If you're using Gentoo (which I use), then make sure the aac and xvid USE flags are set.

Report

BorgQueen

13 years ago

I get this when I try to use it on an mpeg or avi:

ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
built on Sep 10 2005 22:40:23, gcc: 3.3.5 (Debian 1:3.3.5-13)
Input #0, mpeg, from '/home/Media-Works/Film_Clips/Misc/TimeFlys.mpg':
Duration: 00:17:19.5, bitrate: 412 kb/s
Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps
Unknown input or output format: psp

Report

jhuebel

13 years ago

The problem is with the -f option in the .desktop file. Change the Exec line in the file to:

Exec=konsole --noclose -e ffmpeg -i %u -vcodec xvid -r 29.970030 -b 768 -ar 24000 -ab 128 -s 320x240 ipod_file.mp4

Basically, I removed the -f option and added the -vcodec option. xvid is MPEG4.

Honestly, these settings aren't really ideal. IMO, a bitrate above 650 is overkill for such a low resolution video file. It's also better to keep the original framerate (by ommitting the -r option) to avoid "ghosting" of the video. If you're interested in fine-tuning your conversions, take a look at this blog post:

http://www.huebelfamily.org/node/23

I would suggest splitting the service menu into four options. One would do full-screen conversion at 320x240 (4:3). The second would do widescreen at 320x192 (16:9). These two options are good for iPod viewing. Then also have two conversions that are TV-friendly. Full-screen resolution would be 480x360 and widescreen would be 480x288.

Lastly, it may also be useful to have a service menu that shows the input video file's characteristics so the user can make an educated decision on the conversion to choose. You can get that information by using this command line:

ffmpeg -i input_file.avi

Sure, it exits with an error. But that's typically a quick way to determine what the input resolution, framerate and audio bitrates are.

Report

thoand

13 years ago

Hi,

I read your page and took your settings, they work great, but there is one thing I would like. If a source not in the ipod format ffmpeg should add black borders.

Any idea howto do this automaticly?

Report

BorgQueen

13 years ago

Doesn't work.

ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr
built on Jan 15 2006 13:54:06, gcc: 3.3.5 (Debian 1:3.3.5-13)
Input #0, mpeg, from '/home/Media-Works/Film_Clips/Misc/rasher-pig.mpg':
Duration: 00:00:12.2, start: 0.177778, bitrate: 870 kb/s
Stream #0.0[0x1c0]: Audio: mp2, 32000 Hz, mono, 32 kb/s
Stream #0.1[0x1e0], 25.00 fps(r): Video: mpeg1video, yuv420p, 320x240, 104857 kb/s
Unknown codec 'xvid'

is all I get with that.

I have the laster xvid installed

Report

acidphex

13 years ago

I was in the same situation about the Unknown 'xvid' error. It's true you have recompile ffmpeg with xvid support, but don't worry here's a nice tutorial/wiki to help you. It's only a couple of commands:

https://wiki.ubuntu.com/ffmpeg

Report

arthur-kalm

13 years ago

Hi, I get the same error. Any ideas?

Report

BorgQueen

13 years ago

Nope. No clue. Send the term output to the author along with your system specs and ffmpeg version. Maybe he can track it down. Are you on debian 3.1?

Report

C

pld1

13 years ago

it's a problem with you're ffmpeg !

i use the version 3:20051101-0.0 (testing) in the marillat debian server

work fine with it ;)

Report

BorgQueen

13 years ago

Installed that version, still doesn't work. Install latest version this is what I got.

ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr
built on Jan 15 2006 13:54:06, gcc: 3.3.5 (Debian 1:3.3.5-13)
Input #0, mpeg, from '/home/Media-Works/Film_Clips/Misc/rasher-pig.mpg':
Duration: 00:00:12.2, start: 0.177778, bitrate: 870 kb/s
Stream #0.0[0x1c0]: Audio: mp2, 32000 Hz, mono, 32 kb/s
Stream #0.1[0x1e0], 25.00 fps(r): Video: mpeg1video, yuv420p, 320x240, 104857 kb/s
Output #0, psp, to 'ipod_file.mp4':
Stream #0.0, 29.97 fps(c): Video: mpeg4, yuv420p, 320x240, q=2-31, 768 kb/s
Stream #0.1: Audio: 0x0000, 24000 Hz, mono, 128 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
[mpeg4 @ 0x83a9d30]removing common factors from framerate
Unsupported codec for output stream #0.1

but I did get an empty output file

Report

angrykeyboarder

13 years ago

2video4ipod allows easy and quickly conversion of you are video files to videos for you are iPod video (5g)
that copy the output file in you're home?

OK....

Report

C

pld1

13 years ago

lol, i'm was tired ;) ;)

Report

tux86

13 years ago

i think the point is that you always write "you're" (vous _etes) when you mean "your" (votre)

[i can't speak french very well, but i hope i chose the right words and you get my point ;) ]

Report

C

pld1

13 years ago

aaaaaaaaaaaaaaaaaaaa

ok, it's exactly that ;)

merci ;)

Report

12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
0.5
updated Jan 23 2006
added Jan 14 2006
downloads 24h
0
pageviews 24h 1
System Tags addon