Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old April 8th, 2007   #1
dcs3jah
First Cup of Ubuntu
 
Join Date: Nov 2005
Beans: 8
HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

I recently bought a Cowon iAudio D2. It's excellent player. It fits the bill very well for Ubuntu users as it's fully linux-compatible and has OGG support.

Anyway, the only issue is that the software that comes with the player (JetAudio) for converting videos to a format that's playable on the D2 is Windows-only.

Having spent a long time time experimenting with various settings, I've written a short script that should allow most users to simple right click on a file to transcode it into the right format.

Before you start, you'll need transcode,ffmpeg and mencoder installed. If you don't already have them, the easiest way to install them is to use Automatix.

To use the script, download it from here. Now drag the file into your ~/.gnome2/nautilus-scripts directory (you might need to show hidden files with Ctrl-H). Then right click on the file, go to Properties. In "Permissions" tab, make sure "Allow Executing File as Program" is ticked.

You should now be able to right-click a file, go to Scripts and select "d2-convert" (this may take a minute or so to appear - it's not immediate after installation). This will convert the file for you and save it as D2-<oldfilename>.avi

You can also select multiple files, and they will be queued. It's worth noting that I upgraded my firmware to 2.41 recently - so if you find it doesn't work for you, I'd try that.

This script is a bit rough, so feel free to suggest improvements! I'm hoping to create a DEB installer to simplify the process - if I find the time!

Enjoy.

James.

Last edited by dcs3jah; April 9th, 2007 at 06:07 AM..
dcs3jah is offline   Reply With Quote
Old April 8th, 2007   #2
bruenig
Dipped in Ubuntu
 
Join Date: May 2006
Location: Texas
Beans: 567
Re: HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

Those of you who don't want to add automatix and all the baggage that comes with that for such a simple task of adding three packages
Code:
sudo sed -e 's/# deb/deb/g' -e 's/universe$/universe multiverse/g' -i.backup /etc/apt/sources.list
sudo apt-get update
sudo apt-get install transcode mencoder ffmpeg
And a simplification of getting the script into the right directory with the right permissions.
Code:
wget http://www.mozmarks.com/james/---files/d2-convert -P ~/.gnome2/nautilus-scripts
chmod +x ~/.gnome2/nautilus-scripts/d2-convert

Last edited by bruenig; April 8th, 2007 at 08:48 PM..
bruenig is offline   Reply With Quote
Old April 8th, 2007   #3
edemark
Way Too Much Ubuntu
 
Join Date: Dec 2004
Beans: 267
Re: HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

Hi
I was happy to find this howto as I have a stormblue av-700 mp3 player that has the same disadvantage as your, the program for transforming videos is w in only. The retail box of the player states that is linux compatible and it actually plays ogg and works well with linux except videoo. So I was just thinkiing how to make yur script working for my player also. For this reason i would like to ask what is the output format oyur script produces and if you have any idea how to make with your script .mpx format.
thanks for your time
edemark is offline   Reply With Quote
Old April 9th, 2007   #4
dcs3jah
First Cup of Ubuntu
 
Join Date: Nov 2005
Beans: 8
Re: HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

The "d2-convert" script save video as a DivX AVI file, rescaled to fit into a 320x240 box but keep aspect ratio. Audio is MP3.

Sorry, I've never heard of the MPX format for video. I've had a quick look around on google and it seems other people are having the same problem trying to find a linux converter. I suspect MPX is quite an obscure format.

You could check to see if mencoder supports MPX - but having had a quick look at the list supported format in "libavcodec" it doesn't seem likely.

Sorry I can't be more helpful. Good luck though!

Last edited by dcs3jah; April 9th, 2007 at 06:09 AM..
dcs3jah is offline   Reply With Quote
Old April 9th, 2007   #5
edemark
Way Too Much Ubuntu
 
Join Date: Dec 2004
Beans: 267
Re: HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

thank you anyway i will keep trying
edemark is offline   Reply With Quote
Old May 6th, 2007   #6
tlwolf
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 6
Re: HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

Having just got my d2 I was expecting to have to figure out how to convert video and make a script. Thanks so much. My only problem is I use kde. I figured out how to add it to konquerors right click menu. How ever the script acts differently. Instead of opening just one file at a time it trys to do them all at once. When that happens with more then around five files some files get dropped. You can still run run it in konsole but the file path can't have any spaces in it or else it says it can't find the file.

I was wondering if anyone had a quick fix. If not I'll get in the script and figure out what needs to be changed to make it work in kde.


Spencer

Last edited by tlwolf; May 6th, 2007 at 01:26 AM..
tlwolf is offline   Reply With Quote
Old May 27th, 2007   #7
Ender Black
Just Give Me the Beans!
 
Ender Black's Avatar
 
Join Date: Mar 2007
Location: Long Beach, Mississippi
Beans: 64
Ubuntu 8.10 Intrepid Ibex
Send a message via Skype™ to Ender Black
Re: HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

It works just flawlessly! Thanks a million.. I was about to climb a wall I was getting so frustrated. Woot!
Ender Black is offline   Reply With Quote
Old June 19th, 2007   #8
yotama9
Just Give Me the Beans!
 
Join Date: Nov 2005
Beans: 45
Re: HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

I have a little bit of a problem there.

When I right click the file and choose the script nothing happen. If I run the script from terminal I get the timet, I'm running it now on a big file so later I'll be able to tell you if it worked.

I'm using Ubuntu Feisty and I'm tying yo convert an AVI file.
yotama9 is offline   Reply With Quote
Old July 6th, 2007   #9
Daveth
Has an Ubuntu Drip
 
Join Date: Jan 2007
Location: Ledbury, Herefordshire, U
Beans: 787
Ubuntu 8.04 Hardy Heron
Re: HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

this works a bit for me- I'm using the 2.5 beta firmware on my brand new D2. Script runs ok and coverts avi to playable avi, but is not too successful with other common file formats. Anybody say what file formats they have had success with?
An excellent player other wise.
Daveth is offline   Reply With Quote
Old July 12th, 2007   #10
akalias
First Cup of Ubuntu
 
Join Date: Jul 2007
Beans: 1
Re: HOWTO: Encode video for a Cowon iAudio D2 (MP3 player)

I can confirm that the following works for VOB files on my D2

transcode --export_par 1,1 -H 10 -a 0 -q 1 -i IN.VOB -w 800,50 -F mpeg4 -b 128,0,2 -s 1.311 --a52_drc_off -J smartyuv=threshold=10:Blend=1:diffmode=2:highq=1 -Z 320x240 -y ffmpeg -o OUT.AVI

Did not need mplayer for conversion. Worked on Xvid files as well.
akalias is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:46 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry