News:

--

Main Menu

Multiple audio : Merge started

Started by mean, March 17, 2012, 10:35:45 AM

Previous topic - Next topic

Jan Gruuthuse

Brief tests confirms this to work. copy 1 track, re-encode 2 tracks from mpeg audio to ac3.

zakk

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.

nibbles

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.

Jan Gruuthuse

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.

Agent_007

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.
I am away between 15th of May - 15th of June. (yes, I am playing D3)

Jan Gruuthuse

#20
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/

Jan Gruuthuse

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

Jan Gruuthuse

Now with trackinfo showing, just what is needed, thanks.

zakk

Just encoded dual audio mp3: works! Thanks a lot.

mean

external audio should work now
Only ac3/mp3 supported, only mp3 tested

Jan Gruuthuse

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?

styrol

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

Evil_Burrito

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.

zakk

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

mean

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