![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Just Give Me the Beans!
![]() Join Date: Nov 2006
Location: Lithuania
Beans: 58
Ubuntu 8.10 Intrepid Ibex
|
HOWTO: Video Converter for Chinavasion mp4 players
Intro An acquaintance of mine needed a way to convert video for his Chinavasion Touch Screen MP4 Player (aka chinese ipod touch clone) so I wrote him a bash script for that. Most of the code is just copied from video-convertor script. Only some bugfixes & additions were made by me. Changes I made to the original script are described in the Changelog section. Features:
Installation
Change log Changes made to the original script:
Known issues It is reported that zenity auto-kill switch doesn't work in ubuntu 7.10 & 8.04, so the encoding of the file that is being encoded when Cancel is pressed will not stop. However, the good news is that encoding of the next file will not start. Bug report. If for some reason you are not willing to upgrade ubuntu, you can use dirty hack suggested by bodhi.zazen to deal with this issue. To do that replace the following line of code: Code:
mencoder "$movie" -o "$file" -ofps $fps -vf-add scale=$scale -vf-add expand=$resolution:-1:-1:1 -srate 44100 -ovc xvid -xvidencopts bitrate=$bitrate:max_bframes=0:quant_type=h263 -oac lavc -lavcopts acodec=mp2:abitrate=$abitrate 2>&1 | awk -vRS='\r' '$1 ~ /Pos/ {gsub(/f/," ");gsub(/%)/," ");gsub(/ \(/," ");if ($4>0)print $4; fflush();}' | zenity --progress --title="Converting video file..." --text="$Video_Count file. Filename: $movie " --auto-close --auto-kill
Code:
mencoder "$movie" -o "$file" -ofps $fps -vf-add scale=$scale -vf-add expand=$resolution:-1:-1:1 -srate 44100 -ovc xvid -xvidencopts bitrate=$bitrate:max_bframes=0:quant_type=h263 -oac lavc -lavcopts acodec=mp2:abitrate=$abitrate 2>&1 | awk -vRS='\r' '$1 ~ /Pos/ {gsub(/f/," ");gsub(/%)/," ");gsub(/ \(/," ");if ($4>0)print $4; fflush();}' | zenity --progress --title="Converting video file..." --text="$Video_Count file. Filename: $movie " --auto-close &
RUNNING=0
while [ $RUNNING -eq 0 ]
do
sleep 1
if [ -z "$(pidof zenity)" ]
then
pkill mencoder
RUNNING=1
fi
done
About Touch Screen Chinavasion MP4 Player I don't own the player myself, but anyway hare are few things you might want to know about it: The Good
Last edited by Hakimio; February 9th, 2009 at 06:05 PM.. Reason: translation fixes |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() Join Date: Jan 2009
Beans: 6
|
Re: [HOW TO] Video Converter for Chinavasion mp4 players
I am not only new to ubuntu, I'm new to PCs all together. I have a chinavision mp4 player and I can't convert videos. The convert disc I was given with it doesn't work. I want to do what you put on here but I don't know what you're saying exactly. Can you please explain how I can find a script? Or a file? Or a script folder? Also what and how would I use the codes you put up, like where do they go? Also what is nautilus and how can I find it? I found something that said nautilus on my pc but it didn't say what it is. Please help if you can Thank you..
|
|
|
|
|
|
#3 | |
|
Just Give Me the Beans!
![]() Join Date: Nov 2006
Location: Lithuania
Beans: 58
Ubuntu 8.10 Intrepid Ibex
|
Re: [HOW TO] Video Converter for Chinavasion mp4 players
Quote:
|
|
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: Jan 2009
Beans: 6
|
Oh wow thank you.... I've been trying for weeks now. Thank you so much for the extra detail
|
|
|
|
| Bookmarks |
| Tags |
| chinavasion, converter, mp4 player, video, video converter |
| Thread Tools | |
| Display Modes | |
|
|