|
#1
|
|||
|
|||
|
Here are some initial thoughts on using the Creative Zen in Linux to add to some of the very useful information elsewhere in this forum.
I am using Suse 11.0. I used the udev (hotplug) rules described on this site http://www.mossroot.com/worlds/2008/...x-fi-to-linux/. Having followed the guidance on that site, I found I could easily mount the Zen X-fi as part of the Linux filesystem. I created the directory $HOME/zen and then from $HOME issued the command mtpfs zen which meant I could browse the filesystem from the command line or using a file manager (Konqueror). Not all file operations are available: you can create directories and add files but you can't seem to be able to use mv or overwrite a file (not a major issue). Having spent a while experimenting with ffmpeg and mencoder I have had success with the following scripts. This is using mencoder for two-pass encoding of a 16:9 video to divx with no change to the audio: mencoder [infile] -vf scale=320:180,harddup -of avi -ffourcc DIVX -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null mencoder [infile] -vf scale=320:180,harddup -of avi -ffourcc DIVX -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:mbd=2:trell -oac copy -o [outfile] One of the essential elements of this script is the -ffourc option. I couldn't get the transcoding to work with the libavcodec codecs (i.e. -ovc lavc) without that option. The mencoder -ffourcc option in ffmpeg is -vtag. The following also worked for me (this time on a 4:3 video): ffmpeg -i [infile] -f avi -vtag DIVX -r 30 -s 320x240 -vcodec mpeg4 -b 1000K -acodec libmp3lame -ab 320K [outfile].avi For those interested in downloading and transcoding Youtube videos there is an excellent command-line utility called clive which I installed using the Suse installation utility zypper. Further details are available here The clive utility has a command-line re-encoding option, meaning you can have a single command line for downloading a Youtube video, transcoding it, and outputting the result onto your Zen mounted in Linux. Last edited by zen_in_linux; 01-03-2009 at 09:23 AM. |
| Advertisement | [Remove Advertisement] |
|
|
|
|
#2
|
|||
|
|||
|
Linux (Fedora 10 tested)
Install mencoder (sudo apt-get mencoder or su -c 'yum install mencoder') these are bash scripts. Save the text to a file, then make it executable in it's properties. Rip a DVD straight to Zen compatibleWindows (XP and Server 2003 tested) To install mencoder, you just download the mplayer zip file and extract it somewhere (c:\mplayer in this example). It contains both mplayer and mencoder. If you want to use the exact scripts below, move your input files to c:\mplayer\input. Open notepad and paste each of the below scripts in. One at a time, save them as c:\mplayer\script1.bat and c:\mplayer\script2.bat, then run script1.bat to start the batch process. Script1.batKnown issues: Linux - Every time I transfer a video using gnomad2 it fails to copy the index, preventing you from seeking through the video. To fix this, I can either copy it to an SD card and use that, or use windows to copy the video off, then back on to the zen. Either solution will allow you to seek properly. This is not a problem with mencoder, but gnomad2. Please inform me of any imperfections or improvements. There may be a typo or two, nobody is perfect =P Last edited by anthony.phipps; 02-20-2009 at 11:12 AM. Reason: added vbs for renaming input files |
|
#3
|
|||
|
|||
|
I've found a very simple GUI way to convert videos for my Zen in Ubuntu.
ZenCoder: http://www.cimitan.com/blog/2008/08/...-creative-zen/ Very few configuration options (but maybe that's a good thing) just drag videos into ZenCoder and it creates a Zen compatible file in the source folder. |
|
#5
|
|||
|
|||
|
I just posted this link for a script I created in the 'Zen' forum (didn't know about the 'Zen Video' forum until I just searched on 'linux' a few minutes ago).
http://www.woodjoiner.com/encoding/ If someone would check it out and let me know if it works on their Linux system that would be cool. I included a zoom feature that allows you to selectively go from widescreen to 4:3 or anything inbetween so you get to pick the cropping plan for fitting widescreen movies to the Zen's 4:3 aspect ratio. Thanks, Chris |
|
#6
|
|||
|
|||
|
Hi guys! I tried to convert one DVD I own to MPEG-4 so I can watch it on my trip next week. So far, I've tried 5 times to no avail - I always get sync problems with A/V. The audio is way behind.
When playing on my PC, everything runs fine. The conversation was made with K9Copy. This is how mplayer output it: Quote:
I did another try with 480x320 aspect ratio: Quote:
What is funny is that every video is having the same sync audio delay. Not faster, nor slower. Any ideas? This is how I configured the codec: Audio: -oac mp3lame -lameopts br=128:cbr -af resample=44100 -srate 44100 Video: 1st pass: -ovc xvid -xvidencopts bitrate=$VIDBR:turbo ass=$PASS:aspect=$ASPECT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,sca le=$WIDTH:$HEIGHT,dsize=$ASPECT -ofps 302nd pass: -ovc xvid -xvidencopts bitrate=$VIDBR:turbo ass=$PASS:aspect=$ASPECT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,sca le=$WIDTH:$HEIGHT,dsize=$ASPECT -ofps 30Using 800kbps for the video. Cheers all! EDIT: source details: Quote:
Last edited by rcpp; 09-07-2011 at 04:40 PM. |
![]() |
| Tags |
| creative zen, ffmpeg, linux, mencoder, video, zen, zen video, zen x-fi |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 05:46 AM.











ass=$PASS:aspect=$ASPECT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,sca le=$WIDTH:$HEIGHT,dsize=$ASPECT -ofps 30

Linear Mode
