Page 1 of 1

which application to be associated with wav files?

Posted: Fri May 20, 2016 3:36 pm
by davenull
hello,
which is the standard Raspbian application to be associated with wav files (sort of media player)?
It should be able to auto-detect the specific modes e.g., sampling rate, mono/stereo a.s.o.

associate by
x.wav -> file properties -> open with -> ...?

Re: which application to be associated with wav files?

Posted: Fri May 20, 2016 3:47 pm
by gkreidl
It depends on the software being installed and on the mimetype declarations in the application's desktop file. You can also set your preferred application for a certain file type.
omxplayerGUI, for example, includes the mimetype for wav files and also VLC.

Re: which application to be associated with wav files?

Posted: Fri May 20, 2016 3:55 pm
by davenull
I have just the standard Raspian Jessie 2016-05-10, installed by NOOBS.

Which one is the media player then?

Re: which application to be associated with wav files?

Posted: Fri May 20, 2016 4:00 pm
by gkreidl
davenull wrote:I have just the standard Raspian Jessie 2016-05-10, installed by NOOBS.

Which one is the media player then?
AFAIK there is only omxplayer and this is a command line program without any file type association. Install any kind of desktop audio or media player.

Re: which application to be associated with wav files?

Posted: Fri May 20, 2016 6:11 pm
by W. H. Heydt
gkreidl wrote:
davenull wrote:I have just the standard Raspian Jessie 2016-05-10, installed by NOOBS.

Which one is the media player then?
AFAIK there is only omxplayer and this is a command line program without any file type association. Install any kind of desktop audio or media player.
Mplayer works fine with wav files. I use it for ripped CDs.

Re: which application to be associated with wav files?

Posted: Fri May 20, 2016 6:54 pm
by davenull
how can I do that?

It should work like by windows:
double click on a wav file, and it plays the sound.

Re: which application to be associated with wav files?

Posted: Fri May 20, 2016 7:01 pm
by r3d4
davenull wrote:how can I do that?

It should work like by windows:
double click on a wav file, and it plays the sound.

"Those who do not understand Unix are condemned to reinvent it, poorly."


Not much help i know (sorry) just food for thought!

you can do this afaik but right now i have not time ,,. perhaps someones else can elaborate.

Re: which application to be associated with wav files?

Posted: Fri May 20, 2016 7:05 pm
by davenull
the user-unfriendly 30-40 years old DOS and Unix functionality based on terminals and command lines was the reason why Apple Macintosh and MS Windows had been invented by Steve Jobs and Bill Gates - and their tremendeous world-wide success further on ... :ugeek: :geek:

so again, I need a simple audio player which can be associated by either wav file - to JUST PLAY IT by a double click from the file manager or the desktop.

Re: which application to be associated with wav files?

Posted: Fri May 20, 2016 7:30 pm
by JimmyN
Navigate to a .wav file in Filemanager.
Right click on the file and choose "Open with.."
Click on the "Custom Command Line" tab
In the "Command Line to execute:" text box put

Code: Select all

omxplayer %f
In the "Application Name" text box put "Omxplayer", that will add "Omxplayer" to the right click menu.
Put a check to set it as the default, then "OK".

Once that is done right clicking on a wave file will include "Omxplayer" in the right click context menu, click on it to play the file.
If you double click it will either play or you'll get a command box pop up with 4 options ("Execute, Execute in Terminal, Open, Cancel"). Click on "Execute" to play it.

Re: which application to be associated with wav files?

Posted: Fri May 20, 2016 7:36 pm
by davenull
edit:

I got it!
It works! Thank you!

Re: which application to be associated with wav files?

Posted: Sun May 22, 2016 9:43 pm
by CleoQc
Any idea where this information is getting saved on the SD card? I'd like to have this in a script at some point (well not exactly this, but something similar)
thanks!
JimmyN wrote:Navigate to a .wav file in Filemanager.
Right click on the file and choose "Open with.."
Click on the "Custom Command Line" tab
In the "Command Line to execute:" text box put

Code: Select all

omxplayer %f
In the "Application Name" text box put "Omxplayer", that will add "Omxplayer" to the right click menu.
Put a check to set it as the default, then "OK".

Once that is done right clicking on a wave file will include "Omxplayer" in the right click context menu, click on it to play the file.
If you double click it will either play or you'll get a command box pop up with 4 options ("Execute, Execute in Terminal, Open, Cancel"). Click on "Execute" to play it.

Re: which application to be associated with wav files?

Posted: Sun May 22, 2016 11:07 pm
by JimmyN
The users right click menu is located at

Code: Select all

~/.local/share/applications
Any you add using Filemanager will begin with "userapp-" followed by the name you gave it. You can edit the file manually too, to change something after it's been created, it's a typical .desktop file. And sometimes you will end up with extra ones that didn't work, or are duplicates, you can just delete them.

Re: which application to be associated with wav files?

Posted: Mon May 23, 2016 1:55 pm
by CleoQc
Thank you!
For some reason, when I looked there yesterday, I didn't find it. But it's there this morning. I must have been distracted yesterday. :roll:

Re: which application to be associated with wav files?

Posted: Mon May 23, 2016 4:09 pm
by CaptSunset
Dave I can highly recommend VLC, it is available for Windows & Linux generally, including Raspian.

It will play just about any media file, not just audio .wav, it has a standard win-style GUI with scalable window, and a large number of features of interest to audiophiles. Best on the Pi 3.