Results 1 to 4 of 4

Thread: TIP: wma audio preview in nautilus

  1. #1
    Join Date
    Oct 2005
    Location
    France
    Beans
    4
    Distro
    Ubuntu 7.04 Feisty Fawn

    TIP: wma audio preview in nautilus

    Hi,

    I found a useful trick to get a 'preview' of wma audio files under nautilus, using ffplay. (same as for mp3 and ogg when ogg123 and mpeg123 installed)

    1) FFmpeg install:
    Code:
    sudo apt-get install ffmpeg
    2) add the following bash script in /usr/local/bin/play: (sudo gedit /usr/local/bin/play)
    Code:
    #! /bin/sh
    ffplay -nodisp -
    3) make it runnable:
    Code:
    sudo chmod +x /usr/local/bin/play
    4) enjoy wma preview in nautilus!

  2. #2
    Join Date
    Mar 2007
    Location
    Canberra
    Beans
    9
    Distro
    Ubuntu 7.04 Feisty Fawn

    Question Re: TIP: wma audio preview in nautilus

    Quote Originally Posted by LinAsH View Post
    Hi,

    I found a useful trick to get a 'preview' of wma audio files under nautilus, using ffplay. (same as for mp3 and ogg when ogg123 and mpeg123 installed)

    1) FFmpeg install:
    Code:
    sudo apt-get install ffmpeg
    2) add the following bash script in /usr/local/bin/play: (sudo gedit /usr/local/bin/play)
    Code:
    #! /bin/sh
    ffplay -nodisp -
    3) make it runnable:
    Code:
    sudo chmod +x /usr/local/bin/play
    4) enjoy wma preview in nautilus!
    I tried this on Feisty 7.04 but it wouldn't work. If I executed the command and gave it a file name then I got a file read error ( so ffplay -nodisp somefile.wma --> read error ) if I changed it to mplayer instead then it worked like a charm except that any wav file now no longer plays in preview Win some loose some. Out of curiosity how did you find this method ??

  3. #3
    Join Date
    Oct 2005
    Location
    France
    Beans
    4
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: TIP: wma audio preview in nautilus

    Hi dommyOZ

    The trick still working on Feisty for me, though some particular files failed. (or maybe you've got a lot of this kind of files)

    How I find this method? I ran nautilus in a terminal in a non-gnome environment (xfce), I saw that nautilus was trying to run a command named 'play' to preview audio files with no known 'previewer' . Then I noticed that nautilus provides a raw stream of the previewed files instead of the path to it. Same as in "cat somefile.wma | ffplay -nodisp -".

    Just thought that I use the medibuntu version of ffmpeg, your problem may come from the regular version.
    To install medibuntu pachages: http://medibuntu.sos-sts.com/repository.php

  4. #4
    Join Date
    Jul 2005
    Location
    Queens
    Beans
    62
    Distro
    Ubuntu 6.10 Edgy

    Re: TIP: wma audio preview in nautilus

    also, for flac files use flac123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •