Author Topic: no sound playing video files on mplayer and kaffiene  (Read 2139 times)

playland

  • Guest
no sound playing video files on mplayer and kaffiene
« on: February 16, 2011, 12:48:50 PM »
I have a strange bug the sound does not work when playing flash videos in kaffeine and mplayer. The sound did initially work then suddenly died whilst playing files in mplayer. The media players will play audio ok, the system sounds work and video works in firefox ok. I tried alsa config and reloaded alsa mixer to no avail.

Any help greatly  appreciated thanks in advance

Pete

Offline hal8000

  • Sr. Member
  • ****
  • Posts: 346
Re: no sound playing video files on mplayer and kaffiene
« Reply #1 on: February 16, 2011, 02:16:14 PM »
I'm going to post a new thread because the same thing happened to me but on PC hardware with Intel sound hardware.
My problem was sound was ok with KDE system sounds and KDE apps, but no sound on any app that did not use the KDE
sound server e.g. VLC, firefox, mplayer etc.

This was my solution, go to the PCL control centre, hardware then sound.
See if Pulse Audio is enabled, if not enable it and reboot, post back if this works.

playland

  • Guest
Re: no sound playing video files on mplayer and kaffiene
« Reply #2 on: February 16, 2011, 02:36:17 PM »
Hi I tried enabling Pulse Audio still the same. Firefox works OK this bug appears to be some sort of system bug as it occurs on E17 and LXDE as well as KDE.  ???.

regards
Pete

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: no sound playing video files on mplayer and kaffiene
« Reply #3 on: February 16, 2011, 02:42:48 PM »
What the message from the terminal/konsole?
Start mplayer in a terminal/konsole
Code: [Select]
mplayer $HOME/<VIDEO>change <VIDEO> in the name of your video.
If your video in a folder called downloads so add
mplayer $HOME/downloads/<VIDEO>

Post results

playland

  • Guest
Re: no sound playing video files on mplayer and kaffiene
« Reply #4 on: February 16, 2011, 03:54:18 PM »
Hooray

Hi the video file played when using command line here is the mplayer output below:

Playing Disorders-1.mp4.
libavformat file format detected.
[lavf] Audio stream found, -aid 0
[lavf] Video stream found, -vid 1
VIDEO:  [H264]  480x270  24bpp  29.965 fps  410.9 kbps (50.2 kbyte/s)
Clip info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: isomavc1mp42
============================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
============================================================
============================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 119.6 kbit/8.47% (ratio: 14944->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
============================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 480x270 => 480x270 Planar YV12  [zoom]
A: 214.8 V: 214.9 A-V: -0.072 ct: -0.011   0/  0  7%  1%  0.9% 2 0

Exiting... (End of file)
[peter@localhost Desktop]$
sound working must have reset the audio
mplayer is now working properly and also works through gui.

Tried the same thing with kaffeine still no sound here is the terminal output below

[peter@localhost Desktop]$ kaffeine  Disorders-1.mp4
QMetaObject::invokeMethod: No such method KUniqueApplication::loadCommandLineOptionsForNewInstance()
[peter@localhost Desktop]$

hope this helps

Pete




Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: no sound playing video files on mplayer and kaffiene
« Reply #5 on: February 17, 2011, 03:07:27 AM »
Other files will played with kaffeine?

Your video file should played without any errors under pclos, means "video file is correctly"