Author Topic: Compilation and executing avidemux  (Read 427 times)

umamahesh

  • Newbie
  • *
  • Posts: 6
Compilation and executing avidemux
« on: February 11, 2019, 01:38:32 PM »
Hi

I started following below link,

https://www.avidemux.org/admWiki/doku.php?id=build:compiling_avidemux

I took latest git repo and started compiling on ubuntu 16.04, the compilation is success.

I see binaries in install/usr/bin, it contains

avidemux3_cli
avidemux3_jobs_qt5
avidemux3_qt5


How do I run a audio or video file using this.

According to document,

avidemux <file.avi> to be executed from command line. Where can I find avidemux

Please suggest. Is there any document to understand the usage of avidemux.

Please guide me.

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 2913
Re: Compilation and executing avidemux
« Reply #1 on: February 11, 2019, 05:17:22 PM »
First of all, you probably want to build Avidemux off the ffmpeg4x git branch instead of master (all recent fixes and improvements went into ffmpeg4x branch, not into master), i.e. execute

Code: [Select]
git checkout ffmpeg4x
in the avidemux2 folder and build Avidemux anew.

If you don't need the Jobs GUI, you could use the template script run_avidemux_template.sh to run Avidemux (avidemux3_qt5) without installation. Rename the script to "avidemux" if you like so, adjust paths in the script if necessary, copy it to a location included in $PATH (some distributions add ~/bin to PATH, this is the most suitable location IMHO) and make it executable.

Code: [Select]
avidemux
would launch the Avidemux GUI then.

You should be able to load a video either using the GUI (Ctrl+O or "File" --> "Open Video" or drag'n'drop) or running Avidemux on the command line as

Code: [Select]
avidemux --load /Path/to/Video
Actually, if /Path/to/Video is the first argument passed to avidemux as in this example, --load can be dropped, but otherwise it is required.

Please note that if ~/bin is in PATH but didn't exist until now or was empty, you will have to log out and log in again to enable it.


umamahesh

  • Newbie
  • *
  • Posts: 6
Re: Compilation and executing avidemux
« Reply #2 on: February 13, 2019, 07:35:55 AM »
Hi

As suggested I switched to ffmpeg4x branch and tried to build, but build is not started.


Please check the attached screen shot for reference, please suggest if anything to be referenced to get out of the error.


umamahesh

  • Newbie
  • *
  • Posts: 6
Re: Compilation and executing avidemux
« Reply #3 on: February 13, 2019, 10:25:23 AM »
Hi

I modified the script (run_avidemux_template.sh)and now the UI runs, but avidemux is missing when I run bash bootstrap.bash.

If I want to modify the avidemux code, I need to compile the code after my modifications. But when I compile bash bootstrap.bash --deb --without-qt, avidemux binary is missing. How do I get the compiled the binary.

Please suggest the exact procedure.
« Last Edit: February 13, 2019, 10:32:01 AM by umamahesh »

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 2913
Re: Compilation and executing avidemux
« Reply #4 on: February 13, 2019, 10:50:39 AM »
You explicitly disabled the build of Avidemux Qt GUI by passing the --without-qt option to bootStrap.bash. If you want to rebuild only parts of the software, you must add the --rebuild option, otherwise build directories and the install directory will be deleted.

By the way, why do you enable packaging as deb when you are not going to use it as far as I understand?

It is better to post text when what you want to communicate exists in textual form.
« Last Edit: February 13, 2019, 11:27:48 AM by eumagga0x2a »