LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   howto play wav files in debian wheezy? (https://www.linuxquestions.org/questions/linux-newbie-8/howto-play-wav-files-in-debian-wheezy-4175546750/)

floppy_stuttgart 06-29-2015 02:48 PM

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).

joe_2000 06-29-2015 03:51 PM

Quote:

Originally Posted by floppy_stuttgart (Post 5384635)
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).

Shadow_7 06-30-2015 09:28 AM

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.

Shadow_7 06-30-2015 09:30 AM

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.

floppy_stuttgart 06-30-2015 01:42 PM

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?

jamison20000e 06-30-2015 02:20 PM

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! :)

jamison20000e 06-30-2015 02:31 PM

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 ?

Shadow_7 06-30-2015 03:32 PM

Quote:

Originally Posted by floppy_stuttgart (Post 5385191)
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.

jamison20000e 06-30-2015 03:39 PM

Do other files play-sound in VLC?

ondoho 07-01-2015 12:31 AM

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?

jamison20000e 07-01-2015 01:57 AM

Could try converting it?

floppy_stuttgart 07-02-2015 11:19 AM

Quote:

Originally Posted by ondoho (Post 5385432)
.
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 (Post 5385251)
Do other files play-sound in VLC?

yes

floppy_stuttgart 07-02-2015 11:25 AM

Quote:

Originally Posted by Shadow_7 (Post 5385248)
$ 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.

floppy_stuttgart 07-02-2015 11:57 AM

Quote:

Originally Posted by jamison20000e (Post 5385466)
Could try converting it?

how?

floppy_stuttgart 07-02-2015 12:01 PM

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


All times are GMT -5. The time now is 01:15 PM.