LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2015, 02:48 PM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
howto play wav files in debian wheezy?


Hello,
I was taking few sound with my smartphone. After this, I sent the created file via mail to my pc. A "NoName.wav" file is there. Now, how to play that file on Debian Wheezy GNOME?
VLC seems not to work (no sound is coming out).
 
Old 06-29-2015, 03:51 PM   #2
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by floppy_stuttgart View Post
Hello,
I was taking few sound with my smartphone. After this, I sent the created file via mail to my pc. A "NoName.wav" file is there. Now, how to play that file on Debian Wheezy GNOME?
VLC seems not to work (no sound is coming out).
VLC should be able to play wave files. Are you sure this is a vlc issue? Do you have sound in e.g. youtube?

As silly as it may sound, the vast majority of sound problems I came a across were really only muted or zero-volumed speakers.

Run alsamixer and make sure that no bar is at zero and that no bar says MM (i.e. muted) at the bottom.
You can toggle mute / non-mute with M and move the volume up and down with the cursor keys.

Possibly try selecting a sound card by hitting F6. If you do not have alsamixer, get it by installing alsa-utils. (I think that's the package name).
 
Old 06-30-2015, 09:28 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Muted volume or the default audio output device is not the one you want. VLC, mplayer, mpv, aplay, play, and many others should be able to play the file. Unless the file is empty (0 bytes) or a wav of a silence track.

$ cat /proc/asound/cards

The one labeled 0 is the default. Baring per application configurations, pulseaudio, or an asoundrc to use the non-0 default. Most machines tend to have multiple audio device these days. Webcam, Video card, and soundcard all have audio capabilities. Any one of which could be the default depending on things.
 
1 members found this post helpful.
Old 06-30-2015, 09:30 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The user also needs to be in the audio group, and probably the pulse group if you have that type of configuration. Otherwise permissions get in the way.
 
1 members found this post helpful.
Old 06-30-2015, 01:42 PM   #5
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Youtube etc. works: the sound is definitively there for all applications.

Quote:
aplay OhneName4.wav
aplay: test_wavefile:898: kann WAVE-Datei-Format 0x7259 nicht abspielen; ist weder PCM noch FLOAT

Quote:
mplayer /home/family/Downloads/OhneName4.wav
MPlayer svn r34540 (Debian), built with gcc-4.7 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/family/Downloads/OhneName4.wav.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
Audio only file format detected.
Load subtitles in /home/family/Downloads/
==========================================================================
Cannot find codec for audio format 0x7259.
Audio: no sound
Video: no video


Exiting... (End of file)


How to play that file?

Last edited by floppy_stuttgart; 06-30-2015 at 01:54 PM.
 
Old 06-30-2015, 02:20 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Hi.

Not the same problem but useful info: http://www.linuxquestions.org/questi...da-4175504884/ ... e.g:
Quote:
... Output of lspci for this sound card: ...

VLC is by default configured to use the "default" sound device. If I change it, I can choose among pulseaudio server or the ALSA sound device. ...
etc... (and.)

http://forums.linuxmint.com/viewtopic.php?f=90&t=87435
http://www.debianhelp.co.uk/sound.htm

Best wishes and have fun!

Last edited by jamison20000e; 06-30-2015 at 03:40 PM.
 
Old 06-30-2015, 02:31 PM   #7
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Could you need non-free software; https://www.debian.org/doc/debian-po...h-archive.html:
Quote:
... Packages in the other archive areas (contrib, non-free) are not considered to be part of the Debian distribution, although we support their use and provide infrastructure for them (such as our bug-tracking system and mailing lists). This Debian Policy Manual applies to these packages as well. ...
https://wiki.debian.org/UnofficialRepositories ?

Last edited by jamison20000e; 06-30-2015 at 02:38 PM.
 
Old 06-30-2015, 03:32 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
Originally Posted by floppy_stuttgart View Post
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
Audio only file format detected.
Load subtitles in /home/family/Downloads/
==========================================================================
Cannot find codec for audio format 0x7259.
It looks like you might have multiple versions of avconv/ffmpeg installed. 53.21.1 53.19.0. Perhaps you installed something from source and didn't use the distros package management system?

Otherwise it looks like the file might not be WAV at all. And you don't have the codec you need to play whatever type it is.

$ avprobe FILE.wav
or
$ ffprobe FILE.wav

Which should give you some codec information.

$ file FILE.wav

Might also have some information about the file to help understand what it is, and is NOT. If it is a codec issue you might just be an apt-get install away from using it, or whatever package manager applies to your distro.
 
Old 06-30-2015, 03:39 PM   #9
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Do other files play-sound in VLC?
 
Old 07-01-2015, 12:31 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
my experience is that .wav can contain all sorts of codecs (compressed audio instead of uncompressed).
it just maybe that your phone uses some weird codec that doesn't get recognized even by vlc.
one thing you can try: simply remove the .wav extension and see what vlc makes from it.

but i think it's far more likely that something went wrong whilst transfering the file from your phone via email to your computer.

btw, can you listen to the file on your phone?
 
1 members found this post helpful.
Old 07-01-2015, 01:57 AM   #11
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Could try converting it?
 
Old 07-02-2015, 11:19 AM   #12
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by ondoho View Post
.
one thing you can try: simply remove the .wav extension and see what vlc makes from it.

but i think it's far more likely that something went wrong whilst transfering the file from your phone via email to your computer.

btw, can you listen to the file on your phone?
to 1.
vlc filewav
VLC media player 2.0.6 Twoflower (revision 2.0.6-0-gbe9623c)
[0x20df108] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
[0x24c64d8] wav demux error: unsupported codec (undf)
[0x24c64d8] wav demux error: An error occured during wav demuxing

to 2.
ok, I will resend.

to 3.
yes

---------- Post added 07-02-15 at 06:20 PM ----------

Quote:
Originally Posted by jamison20000e View Post
Do other files play-sound in VLC?
yes
 
Old 07-02-2015, 11:25 AM   #13
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Shadow_7 View Post
$ avprobe FILE.wav
$ file FILE.wav
Code:
avprobe OhneName4.wav
error..
Code:
avprobe version 0.8.17-6:0.8.17-1, Copyright (c) 2007-2014 the Libav developers
  built on Mar 15 2015 17:00:31 with gcc 4.7.2
[NULL @ 0x204f6e0] Value 4707126720094797824.000000 for parameter 'probesize' out of range
[NULL @ 0x204f6e0] Value 4707126720094797824.000000 for parameter 'analyzeduration' out of range
[NULL @ 0x204f6e0] Value 4697254411347427328.000000 for parameter 'indexmem' out of range
[NULL @ 0x204f6e0] Value 4703785510416416768.000000 for parameter 'rtbufsize' out of range
[NULL @ 0x204f6e0] Value -4616189618054758400.000000 for parameter 'fpsprobesize' out of range
[NULL @ 0x204f6e0] Value 4607182418800017408.000000 for parameter 'f_err_detect' out of range
[NULL @ 0x204f6e0] Value 4607182418800017408.000000 for parameter 'err_detect' out of range
[NULL @ 0x2051500] Value 4686111960511545344.000000 for parameter 'b' out of range
[NULL @ 0x2051500] Value 4686111960511545344.000000 for parameter 'ab' out of range
[NULL @ 0x2051500] Value 4705844345939427328.000000 for parameter 'bt' out of range
[NULL @ 0x2051500] Value 4617315517961601024.000000 for parameter 'me_method' out of range
[NULL @ 0x2051500] Value 4622945017495814144.000000 for parameter 'g' out of range
[NULL @ 0x2051500] Value 4611686018427387904.000000 for parameter 'qmin' out of range
[NULL @ 0x2051500] Value 4629418941960159232.000000 for parameter 'qmax' out of range
[NULL @ 0x2051500] Value 4613937818241073152.000000 for parameter 'qdiff' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'wpredp' out of range
[NULL @ 0x2051500] Value 4607182418800017408.000000 for parameter 'bug' out of range
[NULL @ 0x2051500] Value 4607182418800017408.000000 for parameter 'er' out of range
[NULL @ 0x2051500] Value 4607182418800017408.000000 for parameter 'err_detect' out of range
[NULL @ 0x2051500] Value 4613937818241073152.000000 for parameter 'ec' out of range
[NULL @ 0x2051500] Value 4620693217682128896.000000 for parameter 'ildctcmp' out of range
[NULL @ 0x2051500] Value 4620693217682128896.000000 for parameter 'subq' out of range
[NULL @ 0x2051500] Value 4696837138094751744.000000 for parameter 'ibias' out of range
[NULL @ 0x2051500] Value 4696837138094751744.000000 for parameter 'pbias' out of range
[NULL @ 0x2051500] Value 4642507528377204736.000000 for parameter 'lmin' out of range
[NULL @ 0x2051500] Value 4660262442142531584.000000 for parameter 'lmax' out of range
[NULL @ 0x2051500] Value 4696130710463840256.000000 for parameter 'flags2' out of range
[NULL @ 0x2051500] Value 4607182418800017408.000000 for parameter 'threads' out of range
[NULL @ 0x2051500] Value 4620693217682128896.000000 for parameter 'nssew' out of range
[NULL @ 0x2051500] Value -4586705114244317184.000000 for parameter 'profile' out of range
[NULL @ 0x2051500] Value -4586705114244317184.000000 for parameter 'level' out of range
[NULL @ 0x2051500] Value 4623507967449235456.000000 for parameter 'skipcmp' out of range
[NULL @ 0x2051500] Value 4642507528377204736.000000 for parameter 'mblmin' out of range
[NULL @ 0x2051500] Value 4660262442142531584.000000 for parameter 'mblmax' out of range
[NULL @ 0x2051500] Value 4643211215818981376.000000 for parameter 'mepc' out of range
[NULL @ 0x2051500] Value 4607182418800017408.000000 for parameter 'bidir_refine' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'cqp' out of range
[NULL @ 0x2051500] Value 4627730092099895296.000000 for parameter 'keyint_min' out of range
[NULL @ 0x2051500] Value 4607182418800017408.000000 for parameter 'refs' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'directpred' out of range
[NULL @ 0x2051500] Value 4618441417868443648.000000 for parameter 'sc_factor' out of range
[NULL @ 0x2051500] Value 4643211215818981376.000000 for parameter 'mv0_threshold' out of range
[NULL @ 0x2051500] Value 4630826316843712512.000000 for parameter 'b_sensitivity' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'compression_level' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'min_prediction_order' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'max_prediction_order' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'prediction_order_method' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'min_partition_order' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'max_partition_order' out of range
[NULL @ 0x2051500] Value 4607182418800017408.000000 for parameter 'ticks_per_frame' out of range
[NULL @ 0x2051500] Value 4611686018427387904.000000 for parameter 'color_primaries' out of range
[NULL @ 0x2051500] Value 4611686018427387904.000000 for parameter 'color_trc' out of range
[NULL @ 0x2051500] Value 4611686018427387904.000000 for parameter 'colorspace' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'aq_mode' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'rc_lookahead' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'lpc_type' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'lpc_passes' out of range
[NULL @ 0x2051500] Value 4613937818241073152.000000 for parameter 'thread_type' out of range
[NULL @ 0x2051500] Value -4616189618054758400.000000 for parameter 'request_sample_fmt' out of range
[wav @ 0x204f6e0] Estimating duration from bitrate, this may be inaccurate
Input #0, wav, from 'OhneName4.wav':
  Duration: 00:01:05.30, bitrate: 64 kb/s
    Stream #0.0: Audio: Yr[0][0] / 0x7259, 16000 Hz, 1 channels, 64 kb/s
Unsupported codec with id 0 for input stream 0
Code:
file OhneName4.wav
output..
Quote:
OhneName4.wav: RIFF (little-endian) data, WAVE audio, mono 16000 Hz
I started synaptic and it updated a lot of files. Same issues.
The sending by mail indicate
Quote:
Angehängt ist eine Sprachaufnahme des Philips Diktiergeräts für Smartphones.
Aufnahmebezeichnung: Ohne Name4.wav
Datum: 29.06.2015 21:03
Größe: 510.5 Kb
Audio-Codec:
Bei einigen Media Playern ist der WAV-Codec nicht vorinstalliert. Sie können den Codec von unserer Website herunterladen:
http://www.dictation.philips.com/adpcmcodec
The sound was taken with a philips app on a blackberry q10.
It says the codecs can be downloaded from the philips page.

Last edited by floppy_stuttgart; 07-02-2015 at 11:56 AM.
 
Old 07-02-2015, 11:57 AM   #14
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by jamison20000e View Post
Could try converting it?
how?
 
Old 07-02-2015, 12:01 PM   #15
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
after updating all programm files with synaptic and restart the PC, the output of avprobe is different:
Quote:
avprobe filewav.wav
.. error
Quote:
ffprobe version 1.0.10 Copyright (c) 2007-2014 the FFmpeg developers
built on Jul 25 2014 07:50:40 with gcc 4.7 (Debian 4.7.2-5)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-altivec --dis libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[wav @ 0x9c8cc0] Could not find codec parameters for stream 0 (Audio: none (Yr[0][0] / 0x7259), 16000 Hz, 1 channels, 64 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[wav @ 0x9c8cc0] Estimating duration from bitrate, this may be inaccurate
filewav.wav: Operation not permitted
 
  


Reply

Tags
debian7, player, sound, wav, wheezy



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot play WAV files with SDL audio smeezekitty Programming 0 11-03-2009 11:26 PM
how to play .wav files in evolution attachments smaudlin Linux - Software 1 11-04-2006 12:57 AM
Can't play .ogg or .wav files in KDE DaneM Linux - Software 3 11-12-2005 05:50 PM
email checker which play .wav files moeminhtun Linux - Software 1 07-13-2003 11:19 AM
wav files play ok but no CD music Rutnut Linux - Newbie 2 12-20-2000 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration