Avidemux Forum

Avidemux => Unix-Like (Linux/Bsd/...) => Topic started by: golinux on December 14, 2015, 08:29:41 PM

Title: Alsa causes lockup/freeze (link)
Post by: golinux on December 14, 2015, 08:29:41 PM
Thought I'd post this link here in case some Linux user has found a fix for this.  I will be seriously disgusted if I have to install pulseaudio:

http://avidemux.org/smif/index.php/topic,16510.msg73115.html#msg73115

golinux
Title: Re: Alsa causes lockup/freeze (link)
Post by: mean on December 15, 2015, 06:37:43 AM
It seems to be a bug in debian only
The call to drain will lock, commenting it out might help you
Line 325 in ADM_deviceALSA.cpp
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 15, 2015, 04:49:55 PM
Quote from: mean on December 15, 2015, 06:37:43 AM
It seems to be a bug in debian only
The call to drain will lock, commenting it out might help you
Line 325 in ADM_deviceALSA.cpp

Thanks for the suggestion.

I searched for that file and it is not to be found on devuan jessie or debian wheezy.  In fact, there is not one *.cpp file on either system.  What am I missing?
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 16, 2015, 06:47:21 AM
When you build from source:
~/avidemux2/avidemux_plugins/ADM_audioDevices/Alsa/ADM_deviceALSA.cpp
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 16, 2015, 04:28:57 PM
Quote from: Jan Gruuthuse on December 16, 2015, 06:47:21 AM
When you build from source:
~/avidemux2/avidemux_plugins/ADM_audioDevices/Alsa/ADM_deviceALSA.cpp

Thanks for the info.  I thought that was probably the case.  Unfortunately, that's beyond my skillset.  :(  Maybe I could try running avidemux in wine to get around pulseaudio.  But since the new version of avidemux isn't backwards compatible with my previous projects, I don't know how useful it will be to me anyway..  Regardless, I'll be keeping squeeze and wheezy around for any future media work for some time to come.  I've had a great ride with avidemux for years so thank you for that.

*edit* Then there's apulse which hopefully will be replacing pulseaudio in devuan.
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 17, 2015, 01:43:07 AM
Made some progress.  I downloaded the source and was able to find the file - I guess that whole section dealing with the drain lock needs to be commented out?  It also looks like I need to install dpkg-dev for it to download properly:

root@devuan:/home/xxxxxx/Desktop# apt-get source avidemux
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 17.4 MB of source archives.
Get:1 http://us.mirror.devuan.org/merged/ jessie/main avidemux 1:2.6.8-dmo8 (dsc) [2,563 B]
Get:2 http://us.mirror.devuan.org/merged/ jessie/main avidemux 1:2.6.8-dmo8 (tar) [17.4 MB]
Get:3 http://us.mirror.devuan.org/merged/ jessie/main avidemux 1:2.6.8-dmo8 (diff) [12.8 kB]
Fetched 17.4 MB in 32s (534 kB/s)                                             
sh: 1: dpkg-source: not found
Unpack command 'dpkg-source -x avidemux_2.6.8-dmo8.dsc' failed.
Check if the 'dpkg-dev' package is installed.
E: Child process failed


Am I on the right track?
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 17, 2015, 05:40:59 AM
perhaps you can find some more info here:
http://www.avidemux.org/admWiki/doku.php?id=build:install_2.6 see section Requirement list (debian/ubuntu)
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 17, 2015, 06:25:06 AM
Quote from: Jan Gruuthuse on December 17, 2015, 05:40:59 AM
perhaps you can find some more info here:
http://www.avidemux.org/admWiki/doku.php?id=build:install_2.6 see section Requirement list (debian/ubuntu)
That looks like it will be helpful.  Thanks.

Title: Re: Alsa causes lockup/freeze (link)
Post by: mean on December 17, 2015, 03:31:20 PM
Just comment one line
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 17, 2015, 03:56:53 PM
Quote from: mean on December 17, 2015, 03:31:20 PM
Just comment one line

Is this correct?  If so, I'll start figuring out how to repackage it.

{
       /* Stop PCM device and drop pending frames */
    snd_pcm_drop(pcm_handle);

    /* Stop PCM device after pending frames have been played */
   /* snd_pcm_drain(pcm_handle);
      if (snd_pcm_close(pcm_handle) < 0)
      {
printf("[Alsa] Troubles closing alsa\n");

      } */
     }
     _init=0;
     return true;
}


Thank you for your patience.
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 18, 2015, 05:53:10 AM
If deb package use 1st line, if rpm use 2nd line.
cd ~/avidemux2 && bash bootStrap.bash --deb --with-qt4 --without-gtk --with-cli
cd ~/avidemux2 && bash bootStrap.bash --rpm --with-qt4 --without-gtk --with-cli
Title: Re: Alsa causes lockup/freeze (link)
Post by: mean on December 18, 2015, 08:50:54 AM
just that one
snd_pcm_drain(pcm_handle);
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 18, 2015, 04:18:42 PM
TYVM.  Can't be clearer than that.  Will report when the deed is done.
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 22, 2015, 08:49:07 PM
Tried it.  No change.  Still locking up if pa isn't installed. 
Title: Re: Alsa causes lockup/freeze (link)
Post by: mean on December 22, 2015, 09:21:24 PM
Are you sure something else is not taking over the audio device ?
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 23, 2015, 05:20:52 AM
you do select an installed (Alsa) audio device in avidemux?
Avidemux Menu -> Edit -> Preferences -> [Audio] -> AudioDevice

Press OK, exit avidemux, then check in avidemux if selection is kept. Test if the issue is gone.
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 23, 2015, 03:09:42 PM
Quote from: Jan Gruuthuse on December 23, 2015, 05:20:52 AM
you do select an installed (Alsa) audio device in avidemux?
Avidemux Menu -> Edit -> Preferences -> [Audio] -> AudioDevice

Press OK, exit avidemux, then check in avidemux if selection is kept. Test if the issue is gone.

Yes, I have done all that several times.  I have it set to AlsaDefault.  AlsaHw0 and all the other options do not work.

Perhaps it has to do with this (http://avidemux.org/smif/index.php/topic,16271.msg71120.html#msg71120)?

And that I had to create an .asoundrc file (http://forums.debian.net/viewtopic.php?f=7&t=117835) to get the sound to work on this board?  Maybe that needs to be tweaked?
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 23, 2015, 05:02:26 PM
Quote from: golinux on December 23, 2015, 03:09:42 PM
Perhaps it has to do with this (http://avidemux.org/smif/index.php/topic,16271.msg71120.html#msg71120)?
probably: yes

Quote from: golinux on December 23, 2015, 03:09:42 PM
Maybe that needs to be tweaked?
I have no idea, sorry.
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 23, 2015, 09:33:06 PM
Quote from: Jan Gruuthuse on December 23, 2015, 05:02:26 PM
Quote from: golinux on December 23, 2015, 03:09:42 PM
Perhaps it has to do with this (http://avidemux.org/smif/index.php/topic,16271.msg71120.html#msg71120)?
probably: yes

But now that I think about it, avidemux2_gtk worked on wheezy with that same .asoundrc file so it must be something in the current qt version.

Any chance of bringing back the gtk interface?  The qt version is not a pretty sight . . .
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 24, 2015, 08:47:04 AM
you could try
cd ~/avidemux2 && bash bootStrap.bash --deb --without-qt4 --with-gtk --with-cli
cd ~/avidemux2 && bash bootStrap.bash --rpm --without-qt4 --with-gtk --with-cli

No idea what works or doesn't work

or if you have Qt5 on your system: Compiling Avidemux 2.6.x (http://www.avidemux.org/admWiki/doku.php?id=build:install_2.6)
- Build .deb for debian/ubuntu, core + Qt5 + plugins
- Requirement list (debian/ubuntu): For Qt 5

Alternative:
- install ubuntu on separate partition (4GB)
- install ubuntu alongside debian (on same partition). Check with google if this would cause any issue, before doing so.
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 28, 2015, 05:06:59 AM
Quote from: Jan Gruuthuse on December 24, 2015, 08:47:04 AM
you could try
cd ~/avidemux2 && bash bootStrap.bash --deb --without-qt4 --with-gtk --with-cli
No idea what works or doesn't work

I finally got around to trying this from my desktop with:

:~/Desktop$ cd avidemux-2.6.8 && bash bootStrap.bash --deb --without-qt4 --with-gtk --with-cli

After installing several packages that couldn't be found, It failed with the following message.  sqlite3 is installed so what am I missing?

-- Checking for sqlite
-- *******************
Could not find sqlite3.h
CMake Error at /home/xxxxxr/Desktop/avidemux-2.6.8/cmake/admConfigHelper.cmake:16 (MESSAGE):
  Could not find SQLite
Call Stack (most recent call first):
  CMakeLists.txt:57 (PRINT_LIBRARY_INFO)

-- Configuring incomplete, errors occurred!
See also "/home/xxxxx/Desktop/avidemux-2.6.8/buildCore/CMakeFiles/CMakeOutput.log".
See also "/home/xxxxx/Desktop/avidemux-2.6.8/buildCore/CMakeFiles/CMakeError.log".
** Failed at cmakeZ**


Those logs are rather incomprehensible.  Should I post them?  Any suggestions?
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 28, 2015, 10:38:52 AM
you installed: libsqlite3-dev to?
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 28, 2015, 04:03:22 PM
Quote from: Jan Gruuthuse on December 28, 2015, 10:38:52 AM
you installed: libsqlite3-dev to?

Ah, no I hadn't. I did that and then it needed yasm too.  Tried again. It's now failing at CPack but almost there, I hope:

Run CPack packaging tool...
/usr/bin/cpack --config ./CPackConfig.cmake
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: admCore
CPack: - Install project: admCore
CPack: Create package
CPack Error: Problem running tar command: /usr/bin/fakeroot "/usr/bin/cmake" -E tar cfz data.tar.gz  ./usr
Please check /home/xxxxxx/Desktop/avidemux-2.6.8/buildCore/_CPack_Packages/Linux/DEB/Deb.log for errors
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: avidemux3-core
Makefile:110: recipe for target 'package' failed
make: *** [package] Error 1
** Failed at package**


Appreciate your nursemaiding me through this process. :)
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 28, 2015, 06:42:41 PM
cmake --version
Quotecmake version 2.8.12.2
cpack --version
Quotecpack version 2.8.12.2

If you get more messages with reference to a log like (Please check /home/xxxxxx/Desktop/avidemux-2.6.8/buildCore/_CPack_Packages/Linux/DEB/Deb.log for errors). Get that log and compress to zip and and attach the zipped file to your message. Time permitting  developer(s) could have a peek at it and provide feedback.

Hope you getting there, running out of ideas here.

Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 28, 2015, 07:49:25 PM
Quote from: Jan Gruuthuse on December 28, 2015, 06:42:41 PM
cmake --version
Quotecmake version 2.8.12.2
cpack --version
Quotecpack version 2.8.12.2

If you get more messages with reference to a log like (Please check /home/xxxxxx/Desktop/avidemux-2.6.8/buildCore/_CPack_Packages/Linux/DEB/Deb.log for errors). Get that log and compress to zip and and attach the zipped file to your message. Time permitting  developer(s) could have a peek at it and provide feedback.

Hope you getting there, running out of ideas here.

I have newer versions installed.

cmake --version
cmake version 3.0.2


cpack --version
cpack version 3.0.2


Will now go search for logs but may get distracted so be patient.
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 28, 2015, 08:01:48 PM
Here's the complete log.  No need to zip since it is so brief:

# Run command: /usr/bin/fakeroot "/usr/bin/cmake" -E tar cfz data.tar.gz  ./usr
# Working directory: /home/xxxxxx/Desktop/avidemux-2.6.8/buildCore/_CPack_Packages/Linux/DEB/avidemux3-core-2.6.8-Linux
# Output:
fakeroot: FAKEROOTKEY set to 1691422654
fakeroot: nested operation not yet supported
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 28, 2015, 09:17:39 PM
Possible a path issue? You're not building from git? And from desktop?
Can you try from ~/avidemux2 (home/current user/avidemxu2)
cd ~
git clone https://github.com/mean00/avidemux2.git

you should now have a folder avidemux2
for next update:
cd ~/avidemux2 && git pull
build:
cd ~/avidemux2 && bash bootStrap.bash --deb --without-qt4 --with-gtk --with-cli

Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 28, 2015, 09:43:42 PM
I just downloaded the source from the devuan merged repos (not from git) to my desktop.

Well cd ~
git clone https://github.com/mean00/avidemux2.git


didn't work.  Git remains a mystery to me . . .

~$ git clone https://github.com/mean00/avidemux2.git
bash: git: command not found


I imagine I'd have to set up an account there with the key and all that before this will work.  I tried to set things up on Devuan git but never could quite figure it out . . .

*edit*  I went to https://github.com/mean00/avidemux2 and downloaded the zip.  Maybe that will work from my user directory.
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 28, 2015, 10:36:35 PM
I think I'm missing some GTK or other pkgs.  buildCli and buildCore succeeded but then failed at buildGtk:

-- Build files have been written to: /home/xxxxxx/avidemux2/buildGtk
** Failed at make, result in /tmp/logbuildGtk**


This is the end of the log:

make[2]: Leaving directory '/home/xxxxxx/avidemux2/buildGtk'
/usr/bin/cmake -E cmake_progress_report /home/xxxxxx/avidemux2/buildGtk/CMakeFiles  87 88 89 90
[ 57%] Built target ADM_videocodec6
make[1]: Leaving directory '/home/xxxxxx/avidemux2/buildGtk'
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2


At least I'm getting closer . . .
Title: Re: Alsa causes lockup/freeze (link)
Post by: mean on December 29, 2015, 05:14:23 AM
Build the Qt version, the Gtk one does not really work anymore
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 29, 2015, 05:29:58 AM
Quote from: mean on December 29, 2015, 05:14:23 AM
Build the Qt version, the Gtk one does not really work anymore

Well, that's a bummer!  I wish I'd known that before spending all that time today trying to build it. With the lockup I'm getting, the Qt version doesn't work either.  :(  There's no way to build the Gtk version?

Regardless, can the lockup glitch p-l-e-a-s-e be patched?
Title: Re: Alsa causes lockup/freeze (link)
Post by: mean on December 29, 2015, 06:35:05 AM
If the drain patch does not work, avidemux needs to be run under gdb to see where it is stuck
i.e.
gdb /usr/bin/avidemux3_qt5
** Do your stuff until it locks ***

CTRL+C
bt

And the please post the output
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 29, 2015, 05:40:28 PM
Quote from: mean on December 29, 2015, 06:35:05 AM
If the drain patch does not work, avidemux needs to be run under gdb to see where it is stuck
i.e.
gdb /usr/bin/avidemux3_qt5
** Do your stuff until it locks ***

CTRL+C
bt

And the please post the output

I have avidemux3_qt4 installed not qt5.  That's what's available in the Jessie/Devuan merged repos.  I had to install gdb.  This is the output.

$ gdb /usr/bin/avidemux3_qt4
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/avidemux3_qt4...(no debugging symbols found)...done.
(gdb) Quit
(gdb) bt
No stack.
(gdb)


But I might not have done something properly.

I'm going to try to recompile the zipped 'master' files I downloaded from your git for qt5 with that one line commented out.  Maybe something wasn't right the first time.
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 29, 2015, 07:02:27 PM
try this way:
gdb /usr/bin/avidemux3_qt4
on (gdb) prompt:
run
** Do your stuff until it locks ***
CTRL+C
bt
And the please post the output

Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 29, 2015, 08:24:32 PM
Thanks!  That worked.  Output is attached.
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 29, 2015, 09:17:56 PM
I have also tried to recompile from the "master" source that I downloaded from git. It wouldn't make so I installed libqt4-dev and crossed my fingers. For the first time it made the debs! But GDebi complained:

Error: Dependency is not satisfiable avidemux3-core-runtime (>=2.6.911)

*edit*  Since that attempt, I found the list of dependencies on this page (http://www.avidemux.org/admWiki/doku.php?id=build:install_2.6),  I was missing some -dev pkgs.  Tried again and it built the qt4 debs but still getting the same error above.  I also tried building for qt5 and nothing really happened.



Title: Re: Alsa causes lockup/freeze (link)
Post by: mean on December 30, 2015, 05:13:57 AM
it is stuck in snd_pcm_drain
Are you sure you commented it out ?
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 30, 2015, 06:38:05 AM
Quote from: mean on December 30, 2015, 05:13:57 AM
it is stuck in snd_pcm_drain
Are you sure you commented it out ?

Yes!

/* Stop PCM device after pending frames have been played */
   /* snd_pcm_drain(pcm_handle); */


First, a friend who is more savvy than I rebuilt the debs but with dpkg-buildpackage.  Didn't seem to make a difference but maybe that was because of the way it was built. The debs that I built are deficient.  Only audio options were dummy and oss.  And many icons missing from the nav bar.  I have tried working off of the 'master' zip file on your site and also the source from the Devuan merged repos.  No joy.  I really know very little about compiling from source so have no idea why it's not working.  I've been using avidemux for a very long time and never had a problem before now.  This is pretty depressing . . .
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 30, 2015, 06:55:09 AM
check if additional are missing:
dpkg -l build-essential cmake cmake-data cmake-dbg fakeroot fontconfig g++ gcc gettext git liba52-0.7.4-dev libaften-dev libasound2-dev libasound2-dbg libass-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libfreetype6-dev libfribidi-dev libftgl-dev libftgl2 libglib2.0-dev libglib2.0-0-dbg libiconv-hook-dev libmad0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrnb0-dbg libopencore-amrwb-dev libopencore-amrwb0-dbg libopenvg1-mesa libpng12-dev libqt4-dev libqt4-dbg libqt4-opengl-dev libqt4-script libqt4-script-dbg libsamplerate0-dev libsdl-sound1.2-dev libsqlite3-dev libsqlite3-0-dbg libtwolame-dev libva-dev libvdpau-dev libvorbis-dev libvpx-dev libvpx1-dbg libwxsqlite3-2.8-0 libx264-dev libxft-dev libxml2-dev libxml2-dbg libxslt1-dbg libxv-dev libxv1-dbg libxvidcore-dev libxvmc1-dbg libzip-dev mesa-vdpau-drivers mesa-vdpau-drivers-dbg mesa-common-dev pkg-config sqlite3 vdpauinfo vainfo xsltproc yasm

you can ignore vdpau stuff if you don't have nvidia display card

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  build-essential             11.6ubuntu6        amd64              Informational list of build-essential packages
ii  cmake                       2.8.12.2-0ubuntu3  amd64              cross-platform, open-source make system
ii  cmake-data                  2.8.12.2-0ubuntu3  all                CMake data files (modules, templates and documentation)
ii  cmake-dbg                   2.8.12.2-0ubuntu3  amd64              debugging symbols for CMake
ii  fakeroot                    1.20-3ubuntu2      amd64              tool for simulating superuser privileges
ii  fontconfig                  2.11.0-0ubuntu4.1  amd64              generic font configuration library - support binaries
ii  g++                         4:4.8.2-1ubuntu6   amd64              GNU C++ compiler
ii  gcc                         4:4.8.2-1ubuntu6   amd64              GNU C compiler
ii  gettext                     0.18.3.1-1ubuntu3  amd64              GNU Internationalization utilities
ii  git                         1:1.9.1-1ubuntu0.1 amd64              fast, scalable, distributed revision control system
ii  liba52-0.7.4-dev            0.7.4-17           amd64              library for decoding ATSC A/52 streams (development)
ii  libaften-dev                0.0.8+git20100105- amd64              audio AC3 encoder - development files
ii  libasound2-dbg:amd64        1.0.27.2-3ubuntu7  amd64              debugging symbols for libasound2
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 (develo
ii  libdts-dev:amd64            0.0.5-6ubuntu1     amd64              backward compatibility place-holder for libdca
ii  libfaac-dev:amd64           1.28-6             amd64              AAC audio encoder (development)
ii  libfaad-dev:amd64           2.7-8              amd64              freeware Advanced Audio Decoder - development files
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-0-dbg:amd64      2.40.2-0ubuntu1    amd64              Debugging symbols for the GLib libraries
ii  libglib2.0-dev              2.40.2-0ubuntu1    amd64              Development files for the GLib library
ii  libiconv-hook-dev           0.0.20021209-10ubu 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-3ub amd64              MP3 encoding library (development)
ii  libopencore-amrnb-dev:amd64 0.1.3-2ubuntu1     amd64              Adaptive Multi Rate speech codec - development files
ii  libopencore-amrnb0-dbg:amd6 0.1.3-2ubuntu1     amd64              Adaptive Multi Rate speech codec - debugging symbols
ii  libopencore-amrwb-dev:amd64 0.1.3-2ubuntu1     amd64              Adaptive Multi-Rate - Wideband speech codec - development f
ii  libopencore-amrwb0-dbg:amd6 0.1.3-2ubuntu1     amd64              Adaptive Multi-Rate - Wideband speech codec - debugging sym
ii  libopenvg1-mesa:amd64       10.4.0~git20141112 amd64              free implementation of the OpenVG API -- runtime
ii  libpng12-dev                1.2.50-1ubuntu2    amd64              PNG library - development
ii  libqt4-dbg:amd64            4:4.8.5+git192-g08 amd64              Qt 4 library debugging symbols
ii  libqt4-dev                  4:4.8.5+git192-g08 amd64              Qt 4 development files
ii  libqt4-opengl-dev           4:4.8.5+git192-g08 amd64              Qt 4 OpenGL library development files
ii  libqt4-script:amd64         4:4.8.5+git192-g08 amd64              Qt 4 script module
ii  libqt4-script:i386          4:4.8.5+git192-g08 i386               Qt 4 script module
ii  libqt4-script-dbg:amd64     4:4.8.5+git192-g08 amd64              Qt 4 script library debugging symbols
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
ii  libsqlite3-0-dbg            3.8.2-1ubuntu2.1   amd64              SQLite 3 debugging symbols
ii  libsqlite3-dev:amd64        3.8.2-1ubuntu2.1   amd64              SQLite 3 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~tr amd64              Video Acceleration (VA) API for Linux -- development files
ii  libvdpau-dev:amd64          1.1-0ubuntu1~xedge amd64              Video Decode and Presentation API for Unix (development fil
ii  libvorbis-dev:amd64         1.3.2-1.3ubuntu1   amd64              The Vorbis General Audio Compression Codec (development fil
ii  libvpx-dev:amd64            1.3.0-2            amd64              VP8 video codec (development files)
ii  libvpx1-dbg                 1.3.0-2            amd64              VP8 video codec (debugging symbols)
ii  libwxsqlite3-2.8-0:amd64    3.0.6.1~dfsg0-2    amd64              SQLite3 C++ wrapper for use in programs based on the wxWidg
ii  libx264-dev:amd64           2:0.142.2389+git95 amd64              development files for libx264
ii  libxft-dev                  2.3.1-2            amd64              FreeType-based font drawing library for X (development file
ii  libxml2-dbg:amd64           2.9.1+dfsg1-3ubunt amd64              Debugging symbols for the GNOME XML library
ii  libxml2-dev:amd64           2.9.1+dfsg1-3ubunt amd64              Development files for the GNOME XML library
ii  libxslt1-dbg:amd64          1.1.28-2build1     amd64              XSLT 1.0 processing library - debugging symbols
ii  libxv-dev:amd64             2:1.0.10-1         amd64              X11 Video extension library (development headers)
ii  libxv1-dbg:amd64            2:1.0.10-1         amd64              X11 Video extension library (debug package)
ii  libxvidcore-dev:amd64       2:1.3.2-9ubuntu1   amd64              Open source MPEG-4 video codec (development)
ii  libxvmc1-dbg                2:1.0.8-1ubuntu1   amd64              X11 Video extension library (debug package)
ii  libzip-dev                  0.10.1-1.2         amd64              library for reading, creating, and modifying zip archives (
ii  mesa-common-dev:amd64       11.0.4~git20151026 amd64              Developer documentation for Mesa
ii  mesa-vdpau-drivers:amd64    11.0.4~git20151026 amd64              Mesa VDPAU video acceleration drivers
ii  mesa-vdpau-drivers-dbg:amd6 11.0.4~git20151026 amd64              Debugging symbols for the Mesa VDPAU video acceleration dri
ii  pkg-config                  0.26-1ubuntu4      amd64              manage compile and link flags for libraries
ii  sqlite3                     3.8.2-1ubuntu2.1   amd64              Command line interface for SQLite 3
ii  vainfo                      1.5.0-1~xedgers~tr amd64              Video Acceleration (VA) API for Linux -- info program
ii  vdpauinfo                   0.1-1              amd64              Video Decode and Presentation API for Unix (vdpauinfo utili
ii  xsltproc                    1.1.28-2build1     amd64              XSLT 1.0 command line processor
ii  yasm                        1.2.0-1ubuntu1     amd64              modular assembler with multiple syntaxes support
Title: Re: Alsa causes lockup/freeze (link)
Post by: mean on December 30, 2015, 07:31:58 AM
Maybe it is installed at 2 difference places and you still load the old one
what is the output of
find / -name "libADM_av_alsa*.so"
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 30, 2015, 05:02:58 PM
Quote from: Jan Gruuthuse on December 30, 2015, 06:55:09 AM
check if additional are missing:
dpkg -l build-essential cmake cmake-data cmake-dbg fakeroot fontconfig g++ gcc gettext git liba52-0.7.4-dev libaften-dev libasound2-dev libasound2-dbg libass-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libfreetype6-dev libfribidi-dev libftgl-dev libftgl2 libglib2.0-dev libglib2.0-0-dbg libiconv-hook-dev libmad0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrnb0-dbg libopencore-amrwb-dev libopencore-amrwb0-dbg libopenvg1-mesa libpng12-dev libqt4-dev libqt4-dbg libqt4-opengl-dev libqt4-script libqt4-script-dbg libsamplerate0-dev libsdl-sound1.2-dev libsqlite3-dev libsqlite3-0-dbg libtwolame-dev libva-dev libvdpau-dev libvorbis-dev libvpx-dev libvpx1-dbg libwxsqlite3-2.8-0 libx264-dev libxft-dev libxml2-dev libxml2-dbg libxslt1-dbg libxv-dev libxv1-dbg libxvidcore-dev libxvmc1-dbg libzip-dev mesa-vdpau-drivers mesa-vdpau-drivers-dbg mesa-common-dev pkg-config sqlite3 vdpauinfo vainfo xsltproc yasm

you can ignore vdpau stuff if you don't have nvidia display card

This drive may be going on a machine with nVidia so probably need to have it.

Well, this explains a few things.  May not have a chance to get to this today though.

$ dpkg -l build-essential cmake cmake-data cmake-dbg fakeroot fontconfig g++ gcc gettext git liba52-0.7.4-dev libaften-dev libasound2-dev libasound2-dbg libass-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libfreetype6-dev libfribidi-dev libftgl-dev libftgl2 libglib2.0-dev libglib2.0-0-dbg libiconv-hook-dev libmad0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrnb0-dbg libopencore-amrwb-dev libopencore-amrwb0-dbg libopenvg1-mesa libpng12-dev libqt4-dev libqt4-dbg libqt4-opengl-dev libqt4-script libqt4-script-dbg libsamplerate0-dev libsdl-sound1.2-dev libsqlite3-dev libsqlite3-0-dbg libtwolame-dev libva-dev libvdpau-dev libvorbis-dev libvpx-dev libvpx1-dbg libwxsqlite3-2.8-0 libx264-dev libxft-dev libxml2-dev libxml2-dbg libxslt1-dbg libxv-dev libxv1-dbg libxvidcore-dev libxvmc1-dbg libzip-dev mesa-vdpau-drivers mesa-vdpau-drivers-dbg mesa-common-dev pkg-config sqlite3 vdpauinfo vainfo xsltproc yasm
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  build-essentia 11.7         i386         Informational list of build-essen
ii  cmake          3.0.2-1      i386         cross-platform, open-source make
ii  cmake-data     3.0.2-1      all          CMake data files (modules, templa
ii  fakeroot       1.20.2-1     i386         tool for simulating superuser pri
ii  fontconfig     2.11.0-6.3   i386         generic font configuration librar
ii  g++            4:4.9.2-2    i386         GNU C++ compiler
ii  gcc            4:4.9.2-2    i386         GNU C compiler
ii  gettext        0.19.3-2     i386         GNU Internationalization utilitie
ii  liba52-0.7.4-d 0.7.4-17     i386         library for decoding ATSC A/52 st
ii  libaften-dev:i 0.0.8svn2010 i386         audio AC3 encoder - development f
ii  libasound2-dev 1.0.28-1     i386         shared library for ALSA applicati
ii  libdca-dev:i38 0.0.5-dmo2   i386         decoding library for DTS Coherent
ii  libfaac-dev:i3 1:1.28-dmo3  i386         AAC audio encoder - devel files.
ii  libfaad-dev:i3 2.7-8        i386         freeware Advanced Audio Decoder -
ii  libfreetype6-d 2.5.2-3      i386         FreeType 2 font engine, developme
ii  libfribidi-dev 0.19.6-3     i386         Development files for FreeBidi li
ii  libglib2.0-dev 2.42.1-1     i386         Development files for the GLib li
ii  libmad0-dev    0.15.1b-8    i386         MPEG audio decoder development li
ii  libmp3lame-dev 1:3.99.5-dmo i386         Development files for LAME
ii  libopencore-am 0.1.3-2.1    i386         Adaptive Multi Rate speech codec
ii  libopencore-am 0.1.3-2.1    i386         Adaptive Multi-Rate - Wideband sp
ii  libopenvg1-mes 10.3.2-1+deb i386         free implementation of the OpenVG
ii  libpng12-dev:i 1.2.50-2+b2  i386         PNG library - development
ii  libqt4-dev     4:4.8.6+git6 i386         Qt 4 development files
ii  libqt4-opengl- 4:4.8.6+git6 i386         Qt 4 OpenGL library development f
ii  libqt4-script: 4:4.8.6+git6 i386         Qt 4 script module
ii  libsamplerate0 0.1.8-8      i386         Development files for audio sampl
ii  libsqlite3-dev 3.8.7.1-1+de i386         SQLite 3 development files
ii  libva-dev:i386 1.4.1-1      i386         Video Acceleration (VA) API for L
ii  libvdpau-dev:i 1.1.1-1~bpo8 i386         Video Decode and Presentation API
ii  libvorbis-dev: 1.3.4-2      i386         development files for Vorbis Gene
ii  libvpx-dev:i38 1.3.0-3      i386         VP8 and VP9 video codec (developm
ii  libx264-dev:i3 3:0.148.2579 i386         Development files for libx264
ii  libxml2-dev:i3 2.9.1+dfsg1- i386         Development files for the GNOME X
ii  libxv-dev:i386 2:1.0.10-1+b i386         X11 Video extension library (deve
ii  libxvidcore-de 3:1.3.3-dmo1 i386         High quality ISO MPEG4 codec libr
ii  mesa-common-de 10.3.2-1+deb i386         Developer documentation for Mesa
ii  mesa-vdpau-dri 10.3.2-1+deb i386         Mesa VDPAU video acceleration dri
ii  pkg-config     0.28-1       i386         manage compile and link flags for
ii  sqlite3        3.8.7.1-1+de i386         Command line interface for SQLite
ii  xsltproc       1.1.28-2+b2  i386         XSLT 1.0 command line processor
ii  yasm           1.3.0-dmo2   i386         Modular assembler with multiple s
dpkg-query: no packages found matching cmake-dbg
dpkg-query: no packages found matching git
dpkg-query: no packages found matching libasound2-dbg
dpkg-query: no packages found matching libass-dev
dpkg-query: no packages found matching libdts-dev
dpkg-query: no packages found matching libftgl-dev
dpkg-query: no packages found matching libftgl2
dpkg-query: no packages found matching libglib2.0-0-dbg
dpkg-query: no packages found matching libiconv-hook-dev
dpkg-query: no packages found matching libopencore-amrnb0-dbg
dpkg-query: no packages found matching libopencore-amrwb0-dbg
dpkg-query: no packages found matching libqt4-dbg
dpkg-query: no packages found matching libqt4-script-dbg
dpkg-query: no packages found matching libsdl-sound1.2-dev
dpkg-query: no packages found matching libsqlite3-0-dbg
dpkg-query: no packages found matching libtwolame-dev
dpkg-query: no packages found matching libvpx1-dbg
dpkg-query: no packages found matching libwxsqlite3-2.8-0
dpkg-query: no packages found matching libxft-dev
dpkg-query: no packages found matching libxml2-dbg
dpkg-query: no packages found matching libxslt1-dbg
dpkg-query: no packages found matching libxv1-dbg
dpkg-query: no packages found matching libxvmc1-dbg
dpkg-query: no packages found matching libzip-dev
dpkg-query: no packages found matching mesa-vdpau-drivers-dbg
dpkg-query: no packages found matching vdpauinfo
dpkg-query: no packages found matching vainfo
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 30, 2015, 05:32:34 PM
Quote from: mean on December 30, 2015, 07:31:58 AM
Maybe it is installed at 2 difference places and you still load the old one
what is the output of
find / -name "libADM_av_alsa*.so"

Nope.  All installed in /usr/lib/  Note that only libADM_av_alsa.so is found in my Wheezy avidemux install.

/usr/lib/ADM_plugins6/audioDevices/libADM_av_alsaDefault.so
/usr/lib/ADM_plugins6/audioDevices/libADM_av_alsaDMix.so
/usr/lib/ADM_plugins6/audioDevices/libADM_av_alsaHw.so
/wroot/usr/lib/ADM_plugins/audioDevices/libADM_av_alsa.so
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 30, 2015, 07:22:26 PM
Another friend just compiled 2.6.10 for Jessie.  It installed but unfortunately has the same lockup problem.  I wonder why no one else is experiencing it?  Guess they don't mind Lennart breaking everyone else's toys. There are also some missing icons (like input-output view).  The same thing happened to me when I compiled.

I will add the missing pkgs when I can find the time.  Hopefully, it will make a difference.
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 31, 2015, 03:40:27 AM
I tried to build it again (with that line commented out) after installing the 25 or so missing pkgs on Jan Gruuthuse's list.  It built rather quickly and installed without a hitch.  Version in 'About' is 2.6.911.

Then the moment of truth . . . THE GLITCH WAS GONE!  Also gone are all the 'Preview mode' options on the Main toolbar!! Is there anyway to get those back?  I use them quite a bit. Couldn't find them in any other menu.

Of course, I haven't actually tried to edit any video yet.  That is for another day.  :)

The list of deps should really be posted somewhere on your site.  If that had been available, it would have saved days of frustration.  And references to the Gtk version should probably be removed (though I may actually try to build it again just for giggles).

All your help has been very much appreciated!

So how about getting the Preview Modes back??
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 31, 2015, 06:28:40 AM
Mark @ Bottom right hand:
[ ] Play filtered
when ticked this is preview mode
Title: Re: Alsa causes lockup/freeze (link)
Post by: golinux on December 31, 2015, 07:03:10 AM
Quote from: Jan Gruuthuse on December 31, 2015, 06:28:40 AM
Mark @ Bottom right hand:
[ ] Play filtered
when ticked this is preview mode

Fantastic!  You have been very patient.  :)

One more question,  Do I need to lock the version?  Or will it be safe to upgrade if one pops up?
Title: Re: Alsa causes lockup/freeze (link)
Post by: Jan Gruuthuse on December 31, 2015, 07:24:26 AM
check the git if it does: https://github.com/mean00?tab=activity.
Don't think you will get a popup, unless your package provider would release a current one. Not 100% certain. If you check my postings, this would indicate the build was successful and was working.

the format of the posting would be like this     
Quoteavidemux Cli/Qt 2.6.911 64-bit deb download ubuntu 14.04.3 LTS
in in this sub forum:
Main version 2.6  (http://avidemux.org/smif/index.php/board,23.0.html)
Glad you could solve your issues and have recent avidemux up and running.

if you need or would have issues with x264 or x265. It could be possible you need to build those yourself.
x264: http://www.videolan.org/developers/x264.html
x265: https://www.videolan.org/developers/x265.html