Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: mean on March 17, 2012, 10:35:45 AM

Title: Multiple audio : Merge started
Post by: mean on March 17, 2012, 10:35:45 AM
The merge of the multiple audio branch has started
Expect issues
Title: avidemux 2.6 r7784 ** Failed at make**
Post by: Jan Gruuthuse on March 17, 2012, 11:08:09 AM
Quote** Failed at make**
Solved in r7795 ** Failed at make** FIXED (http://www.avidemux.org/smf/index.php?topic=10443.msg56104#msg56104)
Title: Re: Multiple audio : Merge started
Post by: nibbles on March 18, 2012, 09:07:12 AM
@Mean congrats.  I was reading the commit a little bit and notice the nifty LU's...

printf("Adding Filter %s -> %"LU"... \n", filter, filterTag);

No more PRIu32's I guess is the reason so it reads easier?  Or are there still 16bit operating systems with a 16bit integer where you have to specifically write that as long int to get all 32bits?

Title: Re: Multiple audio : Merge started
Post by: mean on March 18, 2012, 11:31:45 AM
It only works for 32 & 64 bits
16 bits wont work as it is assumed an int is at least 32 bits
Title: Re: Multiple audio : Merge started
Post by: Jan Gruuthuse on March 19, 2012, 12:32:09 PM
Preliminary test shows the existing multiple audio tracks are kept when saving MPEG-TS .TRP to .TS. The Audio Track Configuration looks promising. Nothing functional yet?
Anything else that should be given attention? You gonna like this one zakk.
Title: Re: Multiple audio : Merge started
Post by: mean on March 19, 2012, 01:18:36 PM
The UI is not finished
I'm updating the python part to have working save/load project and will finish the UI just after that
Title: Re: Multiple audio : Merge started
Post by: zakk on March 22, 2012, 09:51:32 AM
Wow! Just great!
I've done only one try so far (in copy mode): h.264/mp2/mp2.ts to mkv: perfectly synchronized.
This saves a lot of disk usage, Thanks very much!
Title: Re: Multiple audio : Merge started
Post by: zakk on March 26, 2012, 05:42:15 PM
Mean, any approximative delay before we can encode audio and/or select tracks with this new version? Thx.
Title: Re: Multiple audio : Merge started
Post by: mean on March 26, 2012, 06:05:29 PM
A few days, i just need to bind the UI .
It contains some logic so it takes some times

Title: Re: Multiple audio : Merge started
Post by: Jan Gruuthuse on March 28, 2012, 10:51:47 AM
Detection of tracks works. Audio Tracks Configuration still not functioning, I guess? Don't know how far things are already implemented? Just in case, my findings/remarks:
Can we have some indication what each found track is? MP1, MP2, AC3 and possible channel indication 2.0 2.1, 5.1 and whatever you did come across. Still looking promising and nice job done. Some audio tracks have labels or flag telling if this certain language or an descriptive audio language, would be nice if these would be implemented at a future date.

gruntster and mean, sorry to trouble you with this
Title: Re: Multiple audio : Merge started
Post by: mean on March 28, 2012, 05:37:42 PM
still work in progress
Title: Re: Multiple audio : Merge started
Post by: zakk on March 28, 2012, 05:46:05 PM
Thanks a lot.
Title: Re: Multiple audio : Merge started
Post by: mean on March 31, 2012, 01:52:01 PM
The UI should be ok
BUT:

What works  :
* Copying several tracks
* Encoding one track

What does not work
* Encoding several tracks. There's a bug somewhere
Title: Multiple audio : Merge started
Post by: Jan Gruuthuse on March 31, 2012, 03:41:10 PM
Nice work maestro. Did test arte HD .TS (satellite), was easy to move tracks from position. Lot of users going to like this feature. Moving dolby track to track zero 0 or away.
Title: Re: Multiple audio : Merge started
Post by: mean on April 01, 2012, 07:30:07 AM
should be okay now (encoding several tracks)
Title: Re: Multiple audio : Merge started
Post by: Jan Gruuthuse on April 01, 2012, 08:40:03 AM
Brief tests confirms this to work. copy 1 track, re-encode 2 tracks from mpeg audio to ac3.
Title: Re: Multiple audio : Merge started
Post by: zakk on April 01, 2012, 09:51:19 AM
Did 2 small tests with mp2 to mp3 and eac3 copy (1 or 2 tracks). Seems to work great!
At the moment, is mp3 encoder set to stereo, joint stereo or mono?
Congratulations and thanks.
Title: Re: Multiple audio : Merge started
Post by: nibbles on April 01, 2012, 11:48:13 PM
I'm stoked you guys are getting good results.  I still have a build error in Qt, but I was going to let it stew for a bit to see if they patch it.
Title: Re: Multiple audio : Merge started
Post by: Jan Gruuthuse on April 02, 2012, 05:35:45 AM
You loaded the other libraries to? libqt4-dev libqt4-opengl-dev
and the new ones: libopencore-amrwb-dev libopencore-amrnb-dev For the wiki maybe? Agent_007
could be this one is not needed:  libdts-dev
sudo apt-get install build-essential cmake fakeroot g++ gcc gettext liba52-0.7.4-dev libaften-dev libasound2-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libglib2.0-dev libgtk-3-dev libgtk2.0-dev libmad0-dev libmp3lame-dev libpng12-dev libqt4-dev libqt4-opengl-dev libsdl-sound1.2-dev libvdpau-dev libvorbis-dev libx264-dev libxml2-dev libxv-dev libxvidcore-dev libopencore-amrwb-dev libopencore-amrnb-dev libvpx-dev make pkg-config subversion yasm

If you know of still missing/needed libraries, please let me know.
Title: Re: Multiple audio : Merge started
Post by: Agent_007 on April 02, 2012, 04:36:12 PM
I can test the build process during Easter with Ubuntu if someone provides me the commands. I can also add the to wiki after that.
Title: Re: Multiple audio : Merge started
Post by: Jan Gruuthuse on April 02, 2012, 06:00:40 PM
Most is already present for 2.6 http://www.avidemux.org/admWiki/doku.php?id=build:install_2.6
on Ubuntu 11.10
Install required tools and libraries, open terminal and issue this command
sudo apt-get install build-essential cmake fakeroot g++ gcc gettext liba52-0.7.4-dev libaften-dev libasound2-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libglib2.0-dev libgtk-3-dev libgtk2.0-dev libmad0-dev libmp3lame-dev libpng12-dev libqt4-dev libqt4-opengl libqt4-opengl-dev libsdl-sound1.2-dev libvdpau-dev libvorbis-dev libx264-dev libxml2-dev libxv-dev libxvidcore-dev make libopencore-amrwb-dev libopencore-amrnb-dev libvpx-dev pkg-config subversion yasm

Get the source code 1st time: checkout from terminal:
svn co svn://svn.berlios.de/avidemux/branches/avidemux_2.6_branch_mean/
compile all:
cd avidemux_2.6_branch_mean
bash bootStrap.bash --deb --with-qt4 --with-gtk --with-cli

Quote** ALL DONE **
** The installable packages are in the debs folder **
browse to avidemux_2.6_branch_mean/debs and install what you want.

update source code following times: update: from terminal
svn up svn://svn.berlios.de/avidemux/branches/avidemux_2.6_branch_mean/
Title: Re: Multiple audio : Merge started
Post by: Jan Gruuthuse on April 02, 2012, 06:06:41 PM
currently installed:
dpkg -l build-essential cmake fakeroot g++ gcc gettext liba52-0.7.4-dev libaften-dev libasound2-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libglib2.0-dev libgtk-3-dev libgtk2.0-dev libmad0-dev libmp3lame-dev libpng12-dev libqt4-dev libqt4-opengl libqt4-opengl-dev libsdl-sound1.2-dev libvdpau-dev libvorbis-dev libx264-dev libxml2-dev libxv-dev libxvidcore-dev make libopencore-amrwb-dev libopencore-amrnb-dev libvpx-dev pkg-config subversion 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                     Description
+++-===========================-===========================-======================================================================
ii  build-essential             11.5ubuntu1                 Informational list of build-essential packages
ii  cmake                       2.8.5-1ubuntu1              cross-platform, open-source make system
ii  fakeroot                    1.17-1                      tool for simulating superuser privileges
ii  g++                         4:4.6.1-2ubuntu5            GNU C++ compiler
ii  gcc                         4:4.6.1-2ubuntu5            GNU C compiler
ii  gettext                     0.18.1.1-3ubuntu1           GNU Internationalization utilities
ii  liba52-0.7.4-dev            0.7.4-16                    library for decoding ATSC A/52 streams (development)
ii  libaften-dev                0.0.8+git20100105-0ubuntu1  audio AC3 encoder - development files
ii  libasound2-dev              1.0.24.1-0ubuntu10          shared library for ALSA applications -- development files
ii  libdca-dev                  0.0.5-4                     decoding library for DTS Coherent Acoustics streams (development)
ii  libdts-dev                  0.0.5-4                     backward compatibility place-holder for libdca
ii  libfaac-dev                 1.28-0ubuntu1               AAC audio encoder (development)
ii  libfaad-dev                 2.7-6ubuntu1                freeware Advanced Audio Decoder - development files
ii  libglib2.0-dev              2.30.0-0ubuntu4             Development files for the GLib library
ii  libgtk-3-dev                3.2.0-0ubuntu6              development files for the GTK+ library
ii  libgtk2.0-dev               2.24.6-0ubuntu5             Development files for the GTK+ library
ii  libmad0-dev                 0.15.1b-5ubuntu1            MPEG audio decoder development library
ii  libmp3lame-dev              3.98.4-0ubuntu1             An MP3 encoding library (development)
ii  libopencore-amrnb-dev       0.1.2-1                     Adaptive Multi Rate speech codec - development files
ii  libopencore-amrwb-dev       0.1.2-1                     Adaptive Multi-Rate - Wideband speech codec - development files
ii  libpng12-dev                1.2.46-3ubuntu1.2           PNG library - development
ii  libqt4-dev                  4:4.7.4-0ubuntu8.1          Qt 4 development files
ii  libqt4-opengl               4:4.7.4-0ubuntu8.1          Qt 4 OpenGL module
ii  libqt4-opengl-dev           4:4.7.4-0ubuntu8.1          Qt 4 OpenGL library development files
ii  libsdl-sound1.2-dev         1.0.3-3.1                   Development files for SDL_sound
ii  libvdpau-dev                0.4.1-2ubuntu1              Video Decode and Presentation API for Unix (development files)
ii  libvorbis-dev               1.3.2-1ubuntu2.1            The Vorbis General Audio Compression Codec (development files)
ii  libvpx-dev                  0.9.6-1                     VP8 video codec (development files)
ii  libx264-dev                 2:0.116.2042+git178455c-1ub development files for libx264
ii  libxml2-dev                 2.7.8.dfsg-4ubuntu0.2       Development files for the GNOME XML library
ii  libxv-dev                   2:1.0.6-2                   X11 Video extension library (development headers)
ii  libxvidcore-dev             2:1.3.2-3                   Open source MPEG-4 video codec (development)
ii  make                        3.81-8.1ubuntu1             An utility for Directing compilation.
ii  pkg-config                  0.26-1ubuntu1               manage compile and link flags for libraries
ii  subversion                  1.6.12dfsg-4ubuntu5         Advanced version control system
ii  yasm                        1.1.0-1                     modular assembler with multiple syntaxes support
Title: Re: Multiple audio : Merge started
Post by: Jan Gruuthuse on April 03, 2012, 06:12:29 AM
Now with trackinfo showing, just what is needed, thanks.
Title: Re: Multiple audio : Merge started
Post by: zakk on April 16, 2012, 08:22:38 AM
Just encoded dual audio mp3: works! Thanks a lot.
Title: Re: Multiple audio : Merge started
Post by: mean on April 18, 2012, 04:56:30 AM
external audio should work now
Only ac3/mp3 supported, only mp3 tested
Title: Re: Multiple audio : Merge started
Post by: Jan Gruuthuse on April 18, 2012, 10:43:12 AM
More testing required:
With .ts as source adding external .mp3 does nothing, it only set unmarked channels back to marked and keeps original audio tracks.
With avi to mp4 adding second audio track from mp3 works.
Had a quick look around and could not find directly a summary with what audio codecs support multiple audio tracks with what video codecs in what media containers (format).
If someone has a list or matrix with this info?
Title: Re: Multiple audio : Merge started
Post by: styrol on April 18, 2012, 11:19:24 AM
QuoteHad a quick look around and could not find directly a summary with what audio codecs support multiple audio tracks with what video codecs in what media containers (format).

What compliance to standards and compatibility to players is concerned:

MP4: 2 AAC tracks  (usually in combination with MPEG-4 ASP or MPEG-4 AVC)
AVI: 2 MP3 tracks (usually in combination with MPEG-4 ASP)
MKV: multiple audio tracks and if you wanna use non standard audio track format
Title: Re: Multiple audio : Merge started
Post by: Evil_Burrito on April 19, 2012, 09:53:30 PM
Quote from: mean on April 01, 2012, 07:30:07 AM
should be okay now (encoding several tracks)

Most excellent. You can check that major feature off the to-do list.
Title: Re: Multiple audio : Merge started
Post by: zakk on April 24, 2012, 08:21:18 AM
Warning: At least r7895 displays "Frame type: P-TFF" for I frames also (bottom of Avidemux window), which can make clean cutting difficult. (my last version r7745 does show I-frame correctly).
Title: Re: Multiple audio : Merge started
Post by: mean on April 27, 2012, 06:35:02 AM
The audio parsers are not hooked, the files generated might be a bit borked (it depends on the muxer)
That also explains why local playback is not working properly

Title: Re: Multiple audio : Merge started
Post by: zakk on May 14, 2012, 11:28:29 AM
While copy mode is OK, reencoded audio is still unsynchronized (200ms shift at the beginning, 400 at the end of video).
Any idea why reencoding audio would ADD audio frames and increase delay ? (same result with mkvextraction and audacity reencoding).
Title: Re: Multiple audio : Merge started
Post by: mean on May 15, 2012, 05:48:44 AM
with a specific audio codec or any of them ?
Title: Re: Multiple audio : Merge started
Post by: zakk on May 15, 2012, 10:43:58 AM
I tried every audio codec accepted with mkv or mp4v2 containers.
Result is always audio 400ms too early.

Funny thing, I put the A-Marker a few P-Frame later (instead of 0:00:00, by the way no more I-frames ?) and this time I got 600ms too late in my copy/mp3/mkv.

(all tests with first 5mn of video)
Title: Re: Multiple audio : Merge started
Post by: mean on May 15, 2012, 11:53:28 AM
Sample please
Title: Re: Multiple audio : Merge started
Post by: zakk on May 15, 2012, 07:33:03 PM
20Mo ts Sample: http://dl.free.fr/leD0KBgmB (http://dl.free.fr/leD0KBgmB)
mkv Result:http://dl.free.fr/kxXvquCFG (http://dl.free.fr/kxXvquCFG)

Thanks
Title: Re: Multiple audio : Merge started
Post by: mean on May 16, 2012, 06:27:22 AM
Confirmed
Title: Re: Multiple audio : Merge started
Post by: zakk on May 17, 2012, 02:59:45 PM
Any workaround ?
Title: Re: Multiple audio : Merge started
Post by: mean on May 18, 2012, 09:33:44 AM
Maybe better with last patch, win32 build in progress
Title: Re: Multiple audio : Merge started
Post by: zakk on May 18, 2012, 06:49:51 PM
Just encodeda 8GB file: result OK!  ;)
Looks like Avidemux 2.6 has become my ultimate tool! Thanks!
Title: unexplained shutdown saving container *.avi multi audio track
Post by: Jan Gruuthuse on July 03, 2012, 10:57:59 AM
Can we have some kind of safeguard of copying/saving more then two audio tracks into avi container.
When saving MPEG-TS with more then 2 audio streams in to avi container.Avidemux shuts down unexpected without leaving crash file or anything.
Perhaps check if more then 2 audio streams when saving in to avi container: warning pop-up saying so and preventing avidemux to process (saving this video) and opening the Audio  tracks configuration window?
Title: Re: Multiple audio : Merge started
Post by: mean on July 03, 2012, 12:22:39 PM
I'm cleaning up the avi muxer
Title: Re: Multiple audio : Merge started
Post by: Jan Gruuthuse on July 03, 2012, 01:13:54 PM
thank you as always, looking forward.
Title: Re: Multiple audio : Merge started
Post by: zakk on January 14, 2013, 03:07:00 PM
Again, does someone know if the mp3 encoder is set to "stereo" or "joint stereo" ? Thanks.