fresh avidemux install makes no sound

Started by hanzf, March 26, 2016, 12:02:17 AM

Previous topic - Next topic

hanzf

Hello,

I just installed avidemux 2.5.4 on Precise Puppy Linux 5.7.1.but it makes no sound.
My first project was adding an mp3 audio file to a video, and it worked when I had saved the video and watched it with gnome-mplayer. When I played the video in avidemux there was no sound.
In "Edit->Preferences->Audio", I can choose "Local Playback downmixing" between "No downmixing", "stereo", "pro logic", and "pro logic II", but no matter what I choose, the only audio device avidemux shows me is "dummy".
What can I do?

Thank you

Hans

Jan Gruuthuse

You don't have an audio device selected:
In ubuntu you have these choices, if the relevant libraries are installed
Audiodevice:
- dummy (none)
- Esd
- AlsaDmix
- AlsaHw0
- Jack
- Oss
- PulseAudioS <- ubuntu prefered
- AlsaDefault

Check what audio hardware is installed in your Precise Puppy Linux
Upgrade 2.5.4 to 2.5.6 if package is available for your distribution
If you find package avidemux 2.6.# install this for newer codecs like h264 (current would be 2.6.12)

hanzf

Thank you Jan Gruuthuse,

I found and installed a package of Avidemux 2.6.4 (that's what my package manager says, the "about" function gives me no version number).
Now I have some audio devices to choose, and "Alsa default" works as far as video and audio run synchronously when I play the video in avidemux. I can also drag the cursor to a certain position and then cut and save the video, and the saved version is ok.

However, whenever a video plays and I click the "stop" button, avidemux will freeze and no longer react to anything, I can only kill the process. This only happens when some audio device is selected. When I set audio device to "dummy", I can stop and restart the video with no problems.
I also cannot choose any "audio output" in the left pane. I don't know yet if I really need this feature but something seems to be wrong here.

Do you have any idea what I could do?

thank you,

Hans

PS. is there a "show my own posts" function in this forum? It's sometimes not easy to find them...

mean

It's a bug when using alsa on debian styled distribution


Jan Gruuthuse

#4
Quote from: hanzf on March 28, 2016, 09:45:27 PM
>8 >8 PS. is there a "show my own posts" function in this forum? It's sometimes not easy to find them...
yes there is, click on: [Home]  Help  Search  Profile  My Message  Members  Logout
now in [Profile Info] on Left hand side, click on Show Posts

cancalbus

#5
I have the same problem with a fresh install of ADM 2.6.12 Qt4 on Ubuntu 14.04.4.
The Preferences - Audio - AudioDevice only shows Dummy and Oss.
Avidemux audio coding and system sound/speakers seem to be working fine. The processed mp4 works well on VLC player.
Any hint/help?
Thanks

mean


Jan Gruuthuse

#7
Please reply to previous question.

Otherwise, you do have sound on your Ubuntu 14.04.4?
Ubuntu info:echo "## Current used kernel ##" && uname -r && echo "Bit:            "$(getconf LONG_BIT) && echo "Desktop:        "$XDG_CURRENT_DESKTOP && [ -d /sys/firmware/efi ] && echo "Installed in:   UEFI mode" || echo "Installed in:   Legacy mode" && echo
should report back similar to this:
Quote## Current used kernel ##
3.19.0-56-generic
Bit:            64
Desktop:        Unity
Installed in:   Legacy mode

Available sound hardware:
aplay -l
Quote**** List of PLAYBACK Hardware Devices ****
...

Installed pulseaudio?
dpkg -l pulseaudio*
QuoteDesired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version            Architecture       Description
+++-===========================-==================-==================-===========================================================
ii  pulseaudio                  1:4.0-0ubuntu11.1  amd64              PulseAudio sound server
un  pulseaudio-esound-compat    <none>             <none>             (no description available)
ii  pulseaudio-module-bluetooth 1:4.0-0ubuntu11.1  amd64              Bluetooth module for PulseAudio sound server
un  pulseaudio-module-hal       <none>             <none>             (no description available)
un  pulseaudio-module-raop      <none>             <none>             (no description available)
un  pulseaudio-module-rygel-med <none>             <none>             (no description available)
un  pulseaudio-module-udev      <none>             <none>             (no description available)
ii  pulseaudio-module-x11       1:4.0-0ubuntu11.1  amd64              X11 module for PulseAudio sound server
ii  pulseaudio-utils            1:4.0-0ubuntu11.1  amd64              Command line tools for the PulseAudio sound server

If your Ubuntu 14.04.4 does match the kernel:
Linux 3.19.0-56-generic (x86_64) (linux-image-3.19.0-56-generic   3.19.0-56.62~14.04.1) (64-bit)
You could try this install:
avidemux Cli/Qt 2.6.12 64-bit deb download ubuntu 14.04.4 LTS

cancalbus

Thank you both for your quick replies.

@mean Yes, altough I don't know linux very much. I used the bash script included in the Ã,«avidemux_2.6.12.tar.gzÃ,» downloaded from FossHub and following guidance included in Ã,«Simple article: Installing Avidemux 2.6.x for LinuxÃ,».

@jan The output of three commands is:

Quote
## Current used kernel ##
4.2.0-34-generic
Bit:            64
Desktop:        Unity
Installed in:   Legacy mode


**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: 92HD71B7X Analog [92HD71B7X Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                        Version                                             Architecture Description
+++-===========================================================-===================================================-============-===============================================================================
ii  pulseaudio                                                  1:4.0-0ubuntu11.1                                   amd64        PulseAudio sound server
un  pulseaudio-esound-compat                                    <none>                                              <none>       (no description available)
ii  pulseaudio-module-bluetooth                                 1:4.0-0ubuntu11.1                                   amd64        Bluetooth module for PulseAudio sound server
un  pulseaudio-module-hal                                       <none>                                              <none>       (no description available)
un  pulseaudio-module-raop                                      <none>                                              <none>       (no description available)
un  pulseaudio-module-rygel-media-server                        <none>                                              <none>       (no description available)
un  pulseaudio-module-udev                                      <none>                                              <none>       (no description available)
ii  pulseaudio-module-x11                                       1:4.0-0ubuntu11.1                                   amd64        X11 module for PulseAudio sound server
ii  pulseaudio-utils                                            1:4.0-0ubuntu11.1                                   amd64        Command line tools for the PulseAudio sound server

Jan Gruuthuse

#9
You're on 14.04.4 LTS Wily, I'm still on 14.04.4 LTS Vivid, hope that's not the difference.

You're not on a virtual Ubuntu 14.04.4 (no access to some hardware?)

You did install the relevant debs after your build? If on Qt5, then replace the Qt4 debs by equivalent for Qt5.
    avidemux3-core-2.6.12--YYMMDD-runtime
    avidemux3-plugins-COMMON-2.6.12-YYMMDD-plugins
    avidemux3-qt4-2.6.12-YYMMDD-runtime
    avidemux3-plugins-QT4-2.6.12-YYMMDD-plugins
    avidemux3-cli-2.6.12-YYMMDD-runtime
    avidemux3-plugins-CLI-2.6.12-YYMMDD-plugins
    avidemux3-settings-2.6.12-YYMMDD-settings

when all debs installed: menu -> edit -> preferences ->

Jan Gruuthuse

#10
I'm not certain about this. Some may not even be used at all by avidemux. I have these additional installed too, over the years:
dpkg -l liba52-0.7.4-dev libasound2-dev libass-dev libdca-dev libdts-dev libfreetype6-dev libfribidi-dev libftgl-dev libftgl2 libglib2.0-dev libiconv-hook-dev libmad0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsamplerate0-dev libsdl-sound1.2-dev libtwolame-dev libva-dev libvdpau-dev libvorbis-dev libvpx-dev libxft-dev libxml2-dev libxv-dev libxvidcore-dev libzip-dev xsltproc
QuoteDesired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                     Version                   Architecture              Description
+++-========================================-=========================-=========================-======================================================================================
ii  liba52-0.7.4-dev                         0.7.4-17                  amd64                     library for decoding ATSC A/52 streams (development)
ii  libasound2-dev:amd64                     1.0.27.2-3ubuntu7         amd64                     shared library for ALSA applications -- development files
ii  libass-dev:amd64                         0.10.1-3ubuntu1           amd64                     development files for libass
ii  libdca-dev:amd64                         0.0.5-6ubuntu1            amd64                     decoding library for DTS Coherent Acoustics streams (development)
ii  libdts-dev:amd64                         0.0.5-6ubuntu1            amd64                     backward compatibility place-holder for libdca
ii  libfreetype6-dev                         2.5.2-1ubuntu2.5          amd64                     FreeType 2 font engine, development files
ii  libfribidi-dev                           0.19.6-1                  amd64                     Development files for FreeBidi library
ii  libftgl-dev                              2.1.3~rc5-4+nmu1          amd64                     development files for libftgl
ii  libftgl2:amd64                           2.1.3~rc5-4+nmu1          amd64                     library to render text in OpenGL using FreeType
ii  libglib2.0-dev                           2.40.2-0ubuntu1           amd64                     Development files for the GLib library
ii  libiconv-hook-dev                        0.0.20021209-10ubuntu2    amd64                     header files of libiconv-hook
ii  libmad0-dev                              0.15.1b-8ubuntu1          amd64                     MPEG audio decoder development library
ii  libmp3lame-dev:amd64                     3.99.5+repack1-3ubuntu1   amd64                     MP3 encoding library (development)
ii  libopencore-amrnb-dev:amd64              0.1.3-2ubuntu1            amd64                     Adaptive Multi Rate speech codec - development files
ii  libopencore-amrwb-dev:amd64              0.1.3-2ubuntu1            amd64                     Adaptive Multi-Rate - Wideband speech codec - development files
ii  libsamplerate0-dev:amd64                 0.1.8-7                   amd64                     Development files for audio sample rate conversion
ii  libsdl-sound1.2-dev:amd64                1.0.3-7                   amd64                     Sound library for Simple DirectMedia Layer 1.2, development files
ii  libtwolame-dev                           0.3.13-1ubuntu1           amd64                     MPEG Audio Layer 2 encoder (development files)
ii  libva-dev:amd64                          1.5.0-1~xedgers~trusty    amd64                     Video Acceleration (VA) API for Linux -- development files
ii  libvdpau-dev:amd64                       1.1-0ubuntu1~xedgers14.04 amd64                     Video Decode and Presentation API for Unix (development files)
ii  libvorbis-dev:amd64                      1.3.2-1.3ubuntu1          amd64                     The Vorbis General Audio Compression Codec (development files)
ii  libvpx-dev:amd64                         1.3.0-2                   amd64                     VP8 video codec (development files)
ii  libxft-dev                               2.3.1-2                   amd64                     FreeType-based font drawing library for X (development files)
ii  libxml2-dev:amd64                        2.9.1+dfsg1-3ubuntu4.7    amd64                     Development files for the GNOME XML library
ii  libxv-dev:amd64                          2:1.0.10-1                amd64                     X11 Video extension library (development headers)
ii  libxvidcore-dev:amd64                    2:1.3.2-9ubuntu1          amd64                     Open source MPEG-4 video codec (development)
ii  libzip-dev                               0.10.1-1.2                amd64                     library for reading, creating, and modifying zip archives (development)
ii  xsltproc                                 1.1.28-2build1            amd64                     XSLT 1.0 command line processor

cancalbus

I'm not on a virtual Ubuntu 14.04.4. It is also a fresh install on HD using the startup disk creator with the latest iso download.

I generated debs and installed core, plugins, Qt4 and settings (all of your list but the two related to CLI).

My output to your command shows only one lib, but VLC is working fine. Perhaps somebody could tell us if some of the others are used by current ADM.

Quote
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                        Version                                             Architecture Description
+++-===========================================================-===================================================-============-===============================================================================
un  libglib2.0-dev                                              <none>                                              <none>       (no description available)
ii  libmp3lame-dev:amd64                                        3.99.5+repack1-3ubuntu1                             amd64        MP3 encoding library (development)

Jan Gruuthuse

#12
My best guess is libasound2-dev (shared library for ALSA applications -- development files)
sudo apt-get update
sudo apt-get install libasound2-dev


I would not hurt if you installed audio and video codecs to.
- liba52-0.7.4-dev (AC3)
- libdca-dev (DTS)
- libdts-dev
- libmad0-dev (MPEG audio decoder)
- libopencore-amrnb-dev (Adaptive Multi Rate speech codec)
- libopencore-amrwb-dev (Development files for audio sample rate conversion)
- libsamplerate0-dev (Development files for audio sample rate conversion)
- libtwolame-dev (MPEG Audio Layer 2 encoder (development files))
- libvorbis-dev (The Vorbis General Audio Compression Codec)
- libvpx-dev (VP8 video codec)
- libxvidcore-dev (Open source MPEG-4 video codec (development))

sudo apt-get install liba52-0.7.4-dev libdca-dev libdts-dev libmad0-dev libopencore-amrnb-dev libopencore-amrwb-dev libsamplerate0-dev libtwolame-dev libvorbis-dev libvpx-dev libxvidcore-dev

subtitles related:
- libass-dev (development files for libass)
- libfreetype6-dev (FreeType 2 font engine, development files)
- libfribidi-dev (Development files for FreeBidi library) (Hebrew and/or Arabic languages)
- libxft-dev (FreeType-based font drawing library for X (development files)

sudo apt-get install libass-dev libfreetype6-dev libfribidi-dev libxft-dev

ps. you need to rebuild avidemux after installing any of above

cancalbus

Thank you, Jan. After installing all your suggestions (and enabling Qt5 in order to be up to date), I've got some ALSA options under Preferences→Audio. Although there are fewer than yours, I now can hear the audio playing from ADM with ALSAHw0.

Jan Gruuthuse

You could end up reinstalling the computer completely and loosing al what is on it.
If this is your production computer: you make your living with it: STOP READING

-------------
Possibly has something to do with audio chip on motherboard and the supported audio codec (either AC97 codec or HD Audio codec)
Check if you computer or motherboard manufacturer provide the linux drivers.

Find the audio device
lspci -nn | grep -i audio
QuoteAudio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition

Check if codec is there
cat /proc/asound/card0/codec#* | grep Codec
QuoteCodec: Realtek ALC892

In above case (Intel Corporation 7 Series/C210 Series Chipset), it involved building Realtek Linux audio System Driver Installation (v5.18)
http://airbornesurfer.com/2015/04/how-to-install-realtek-hd-audio-driver-in-linux/
-------------
There is no standard solution, google is your best friend.