•  
      CommentAuthorSpode
    • CommentTimeJun 25th 2008 edited
     

    Nokia has done a pretty good job of helping users get videos from your PC to the phone - that is of course, if you use Windows. For us Linux users, we are expected to fend for ourselves. But I have created a rather simple right-click script to convert your videos directly into N95 format.

    The first issue I had was that the ffmpeg included with Ubuntu doesn't support H264 or AAC encoding - kind of essential. So the first thing to do is, is add the Medibuntu repository to my aptitude sources list. Then, a simple "apt-get update" and "apt-get install ffmpeg" and I was left with an ffmpeg version that supports H264/AAC. A few places also suggested installing the "libavcodec-dev" package. Frankly, the packages that need installing seems to vary from system to system, depending on what you already have installed.

    One of the nice things about Ubuntu Tweak is the inclusion of Power Scripts. As far as I can tell, these are just Nautilus scripts which live in ~/.gnome2/nautilus-scripts/ - so using Ubuntu Tweak is not mandatory and I imagine this would work with any Gnome based distribution.

    The script I created, had the following code:

    #!/bin/bash for filename in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS do /usr/bin/gnome-terminal -x /usr/bin/ffmpeg -i "$filename" -f mp4 -vcodec mpeg4 -b 250000 -r 15 -s 320x240 -acodec aac -ab 128000 "$filename.n95.mp4" done

    Please note that everything inbetween "do" and "done" should be on one line. Using this, you can select one or more files, and then from the scripts menu select "Encode with FFMPEG" (or whatever you named the script). It will loop through and encode each file, ready to be transferred to your N95!

    The only problem I've found so far, is that it doesn't cope with spaces in file names. If anyone wants to correct that, please post an amendment!

    •  
      CommentAuthorKrazyIvan
    • CommentTimeJun 25th 2008
     

    I still need to figure out how to rip DVD's in Ubuntu. I tried the other day and it failed. Not exactly sure why. I need to go search a guide. :D

    •  
      CommentAuthorSpode
    • CommentTimeJun 25th 2008
     

    I posted one!

    •  
      CommentAuthorKrazyIvan
    • CommentTimeJun 27th 2008
     

    Doh! I am getting old. :(

    • CommentAuthorColin
    • CommentTimeJun 28th 2008
     

    When I run the script on a file should I see some status box or something, so I know what percentage of encoding has been done. I am selecting a file to encode, something flashes on the screen, then nothing.

    •  
      CommentAuthorClubBarf
    • CommentTimeJun 28th 2008
     

    Run the script from the console - it may be an error message you're seeing flash up.

    •  
      CommentAuthorSpode
    • CommentTimeJun 29th 2008
     

    That could well be the incompatibility with spaces in filenames that I was talking about - you SHOULD see a terminal window.

 
Copyright Andrew Miller (Spode), 2008