Convert 2 Video MP4 ( iPod & PSP )

Dolphin Service Menus

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

1
Become a Fan
5.0

Description:
Convert most any video file to mp4 that will be playable on your iPod or PSP.

Codecs:

Xvid
h264
faac

Screen format:

4
16:9
2.35:1

Resolution:

iPod
iPod TV
PSP

Requirements:

ffmpeg with aac xvid and h264
Kdialog
bash


----------------------------------------

The install script will create a directory under your home directory called .convert_2_mp4

The scripts and icon files will be kept there.

The *.desktop file will be in the standard KDE konqueror service menu directory. $HOME/.kde/share/apps/konqueror/servicemenus

For the install script to execute correctly you must be in a terminal and in the dir that it is extracted to when you execute it.

Do not use the mouse (click) to execute the install script.

Type "sh convert_install" without the quotes

To use the konqueror service menu right click on a video file and select Convert 2 MP4.
The file will automatically be converted to the selected format in the same dir it was started in. The resulting file will have the original name along with the codec, format and an .mp4 extension.

Batch convert:
You can select and convert more that one file at a time but it will take a very long time ( make sure they are of the same format 16:9, 4:3, 2.35:1 ).

Xvid is much quicker than h264.

--------------------------------------------------------------------
Other information:

The service menu selections are broken down in the following format.

Example

Service menu selection "Xvid-iPod-4:3-300k.Bitrate"

"Xvid" is the codec. You will also see h264
"iPod" is the resolution. You will also see PSP and TV (for the iPod TV output)
"4:3" is the screen format. You will also see 16:9 (wide) and 2.35:1 (super wide)
"300k" is the video bitrate. You will also see 500k. TV has a bitrate of 800k
---------------------------------------------------------------------
Requirements:
mplayer & kdialog (for progressbar to work)
ffmpeg (h264, xvid and aac codecs)

You can also try my ffmpeg GUI (Avi2iPod) on www.kde-apps.org http://www.kde-apps.org/content/show.php/Avi+2+iPod+%2B+PSP+%28mp4%29?content=56915

Enjoy
454

Ratings & Comments

7 Comments

thenthenio

Thank you very much for this service menu. I will enjoy it a lot for converting videos to my daughter iPod! With it I also learned something on customizing KDE! I have a suggestion for the conversion statistics line inside kdialog in order to clean it from unwanted extra characters at the beginning. Replace this line: `tail -c 84 "${STRING_TEMP_FILENAME}"` with this one: `grep frame "${STRING_TEMP_FILENAME}" | sed -s s/.*frame/frame/` I would be happy if my contribution could improve your addon. Thanks. Mauro

thenthenio

This is better then the previous suggested: Replace this line: `tail -c 84 "${STRING_TEMP_FILENAME}"` with this one: `tail -n 1 "${STRING_TEMP_FILENAME}"`

laluz

can you please just add a step by step instruction on how to install your script? Like download to a folders so and so, Extract to folder so and so chdir to some folder and run this and that. I have extracted it into some directory, chdired there, in the shell executed sh convert_install. The files were placed into ~/.kde/share/apps/konqueror/servicemenus but the menu still would not appear in konqueror. Neither does it appear in Dolphin, wich is a default file browser in Kubuntu 7.10 as it seems.

laluz

I have removed Dolphin from my system, as it was crashing way too often anyways and now the convert script works as described by the Author. Thanks for the useful script!

laluz

It has produces incompartible mp4 for a 4:3 source and 16:9 was playable on PSP but sound was jumping. Why do you use the xvid and ffmpeg instead of x264 and mencoder anyway? Do you get better results? Look, here is a script that works for 16:9 for me all the time. It is simple and can use double core. Last string creates thumbnails for PSP. Could you integrate this one into your scripts? # $1 is a file or dvd://1 # $2 is a name to give to the result files echo "$1" CROP=$(mplayer -vf cropdetect -endpos 200 "$1" 2>/dev/null |grep "CROP"|tail -1|sed -e's/^.*(\(-vf.*\)).*$/\1/') mencoder -sws 9 $CROP,pullup,softskip,scale=480:-10,harddup,unsharp=l3x3:0.7,expand=480:272 -ofps 24000/1001 -oac faac -faacopts br=128:mpeg=4:object=2:raw -ovc x264 -x264encopts bitrate=650:global_header:partitions=all:trellis=1:vbv_maxrate=768:vbv_bufsize=2000:level_idc=30:threads=4 -of lavf -lavfopts format=psp -o $2.MP4 $1; mplayer -vo jpeg -ss 150 $2.MP4 -frames 2 ; convert -crop 362x272+60 00000002.jpg jpg:-| convert -resize 160x120 - jpg:$2.thm; rm 00000001.jpg 00000002.jpg;

454casull

>quote > by laluz >can you please just add a step by step >instruction on how to install your script? Dont take this the wrong way....But,...Did you even read the information provided on this web page let alone the README-FIRST file included in the download? I think it explains it very well.

laluz

thanks for your reply. This sentence is not exactly easy to understand "For the install script to execute correctly you must be in a terminal and in the dir that it is extracted to when you execute it." So when the script did not appear at first (before I have deinstalled Dolphin) I thought I may have done smth. wrong. As to the step by step I would just make in this way: 1. Extract the content of the archive to any directory 2. start shell and chdir to this directory 3. run "sh convert_install" 4. The install script will create a directory under your home directory called .convert_2_mp4 The scripts and icon files will be kept there. 5. The *.desktop file will be in the standard KDE konqueror service menu directory. $HOME/.kde/share/apps/konqueror/servicemenus To use the konqueror service menu right click on a video file and select Convert 2 MP4. The file will automatically be converted to the selected format in the same dir it was started in. The resulting file will have the original name along with the codec, format and an .mp4 extension. But before all, could you comment on your choice of ffmpeg? This is what I am most interested in.

Pling
0 Affiliates
Details
license
version 1.0
updated
added
downloads 24h 1
mediaviews 24h 0
pageviews 24h 1

Other Dolphin Service Menus:

burnWithGrowisofs
chunkylover
last update date: 20 years ago

Score 5.0

Firefox-bookmarks service menu
storyteller
last update date: 20 years ago

Score 5.0

Text Convert Service Menu
smp-penguin
last update date: 21 years ago

Score 5.0

Pdflatex servicemenu
bobuse
last update date: 20 years ago

Score 5.0

Send through Bluetooth
dmnet
last update date: 21 years ago

Score 5.0

Add to Bloglines
spookster
last update date: 21 years ago

Score 5.0



System Tags