View Full Version : Compatible with Linux?
flacattack
02-09-2007, 09:33
I know the D2 is UMS, so mostly you need no software and it will work fine with Mac and Linux.
How about encoding video? With my U3 you have to use Cowon's own software and I think this is only available for Windows. Is there a way to get hold of the right codecs on Linux?
The D2 works flawlessly on Linux.
People have successfully been able to convert videos to the correct format on Linux. I am still playing with it on my D2.
They use mencoder to convert the file to a small size, and it works.
I have gotten several files to play so far, but their sound is completely off, so I'm still trying.
Here is the thread that got me started in this endevour:
http://www.cowonamerica.com/forums/showthread.php?t=8629
Remember, the player discussed in that thread is not the D2, so the screen dimensions and fps will be different.
Hope this helps!
I bought the D2 with absolutely no expectation of playing movies on it. So, this effort is just for fun. For me, it's mainly a music player.
[smile]
flacattack
02-09-2007, 11:01
Thanks.
I have already ordered a D2 and I'm the same. I got it for the audio quality. Hope it sounds at least as good as my U3 [smile]
I was really asking on behalf of a friend, who is strictly Linux only, and won't let any other software into the house.
Guess I'll play about with it when it arrives. Just getting so impatient.
My D2 came in yesterday, so I decided to play around with video conversion, and have gotten it to work using menconder.
mencoder INPUT.avi -o OUTPUT.avi -ovc xvid -oac mp3lame -xvidencopts bitrate=512 -lameopts abr:br=128 -vf scale=320:240 -ofps FRAMERATE
Don't just set the framerate to 30 fps, as that causes the audio and video to be out of sync. Instead set the framerate to that of the original file if it's less than 30 fps. I don't have any movies with a higher framerate, so I don't know what you would do if it is higher than 30.
I also wrote up a python script that does the conversion. You input the file name and the output and the framerate.
Link here. (http://andy.rouge8.com/?p=686) If the server is not found, try again in a few hours, as the subdomain is new and may not be fully propagated yet.
Feel free to report any bugs.
Thank you so much, Rouge8! That mencoder setup works perfectly.
I had been making the exact mistake that you mentioned. I was using 30 for the fps value, and the sound was off. When I used the same fps as the original, it worked great! Thanks!
[laugh] [biggrin] [thumbsup]
remember, most movies distributed in the PAL and secam areas are 24FPS, not 30 like NTSC, Pal is most of europe, middle east and south america, secam is france, some ex soviet republics, and ex french colonies, NTSC is USA, some carribian and central american countries and japan,
Hmm...
I tried to download MEncoder, but the only thing I found was MPlayer...
Can someone post the actual dowload link for MEncoder?
Or is MEncoder in the MPlayer?
Yeeze, which Linux distribution are you using?
If it's a debian-based distro, or a Red Hat-based distro, then you can easily download and install it with apt or yum.[smile]
Instead set the framerate to that of the original file if it's less than 30 fps.
Maybe it makes more sense not to use -ofps option at all?
I am using Gentoo....
Have you tried to emerge it?
Funny, I was going to add Gentoo in the last post, but I figured that was a long shot... [biggrin]
EDIT:
Here (http://gentoo-wiki.com/HOWTO_Mencoder_Introduction_Guide) is Gentoo's wiki page on mencoder. I'm sure you can find some info on how to emerge it there. At the bottom is a short list of mencoder front-ends available in the portage tree.
Maybe it makes more sense not to use -ofps option at all?
I think I tried that and it didn't work. However, I'm not sure.
My D2 came in yesterday, so I decided to play around with video conversion, and have gotten it to work using menconder.
mencoder INPUT.avi -o OUTPUT.avi -ovc xvid -oac mp3lame -xvidencopts bitrate=512 -lameopts abr:br=128 -vf scale=320:240 -ofps FRAMERATE
Don't just set the framerate to 30 fps, as that causes the audio and video to be out of sync. Instead set the framerate to that of the original file if it's less than 30 fps. I don't have any movies with a higher framerate, so I don't know what you would do if it is higher than 30.
I also wrote up a python script that does the conversion. You input the file name and the output and the framerate.
Link here. (http://andy.rouge8.com/?p=686) If the server is not found, try again in a few hours, as the subdomain is new and may not be fully propagated yet.
Feel free to report any bugs.
Uhm, i got the video playing something like twice as fast as the sound :P
I'm trying other settings and we'll see what i can report...
Hmm...
I tried to download MEncoder, but the only thing I found was MPlayer...
Can someone post the actual dowload link for MEncoder?
Or is MEncoder in the MPlayer?
Should be a part of your MPlayer rpm... depends on your distro.
Uhm, i got the video playing something like twice as fast as the sound :P
I'm trying other settings and we'll see what i can report...
I have the EXACT same problem encoding with mencoder. video is approx 2x the speed of sound. (sound is playing at normal speed).
I have tried to mess with the -ofps switch, but that does not remedy the situation. [thumbdwn]
BTW: I'm using ubuntu 7.04 & FW 2.41
After doing some testing it seems as if the following works:
mencoder infile.avi -o outfile.avi -ovc lavc -oac lavc -lavcopts acodec=mp3 bitrate=512 -lameopts abr:br=128 -vf scale=320:240
the "bitrate=512 -lameopts abr:br=128" part is optional. I prefer to leave my encode at the highest quality, and thus I do not specify a bitrate.
Tell me if this works for you![thumbsup]
Here is what finally worked (got it from another thread somewhere, it removes the b-frames).
put this in a file and call it with for example for a 25FPS source at 4/3 ratio:
./file input.avi 25 320:240
and it will create a D2-input.avi result.
Cheers! :-)
P.S. (Yes i know, the script doesn't do any checking of any sort ;-)
#!/bin/bash
# $1 = bla.avi
# $2 = $FPS
# $3 = XXX:YYY 4/3: 320:240, 16/10: 320:200, 16/9: 320:180
BITRATE=512
mencoder $1 -oac mp3lame -lameopts cbr:preset=128 -ovc xvid -ofps $2 -vf scale=$3 -xvidencopts bitrate=${BITRATE}:vhq=4:me_quality=4:max_bframes= 0:max_key_interval=8 -audio-preload 0 -o D2-$1
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.