LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2017, 09:44 AM   #1
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04
Posts: 508

Rep: Reputation: 24
avidemux: crop and increase sound volume


This is my first use of avidemux. I have a .mp4 with 2 problems, video needs an irritating border cropped throughout, and the sound is barely audible at full volume setting.

Did the crop successfully with avidemux gui, but that seems to offer no way to increase sound volume (which I believe requires normalizing), so I cobbled together this command line from googling 'avidemux normalize'
Code:
avidemux3_cli --audio-process --audio-normalize --audio-resample 44100 --audio-codec MP3  --audio-bitrate 128 --video-codec X264  --output-format MP4 Muxer --force-alt-h264 --load WhiteDog_edit.mp4 --save WD.mp4 --quit
which produced a file that will not play, vlc having this to say about it
Quote:
[096be080] pulse audio output error: PulseAudio server connection failure: Connection refused
[09627930] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb562ad80] moov atom not found
[096ed0d0] skins2 interface error: no suitable dialogs provider found (hint: compile the qt4 plugin, and make sure it is loaded properly)
[096ed0d0] skins2 interface error: cannot instantiate qt4 dialogs provider
[096ed0d0] [cli] lua interface: Listening on host "*console".
VLC media player 2.2.4 Weatherwax
Command Line Interface initialized. Type `help' for help.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb412c860] moov atom not found
[b4124430] avformat demux error: Could not open /home/q/WD.mp4: Unknown error 1094995529
[b415eee0] core demux error: option sub-original-fps does not exist
[b1800510] core input error: no suitable demux module for `file/subtitle:///home/q//wd.txt'
[b415ee70] core demux error: option sub-original-fps does not exist
[b1800510] core input error: demux doesn't like DEMUX_GET_TIME
... 6000+ times
[b1800510] core input error: demux doesn't like DEMUX_GET_TIME
[096ed0d0] [cli] lua interface error: Error loading script /usr/lib/vlc/lua/intf/cli.luac: lua/intf/modules/host.lua:279: Interrupted.
Advice please
 
Old 07-19-2017, 05:45 AM   #2
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04
Posts: 508

Original Poster
Rep: Reputation: 24
Solved without using avidemux

Using the cropped file I earlier produced with avidemux as input, I did
Extract video only with (%f is mc code for the file-name)
Code:
ffmpeg -i %f -vcodec copy -an v.mp4
Extract audio to audiodump.wav
Code:
mplayer %f -benchmark -vc null -vo null -ao pcm:fast >& /dev/null
Increase the volume
Code:
sox -v 3.0 audiodump.wav a.wav
audiodump.wav is huge (as large, or more than the movie), so reencode a.wav
Code:
lame -V2 a.wav a.mp3
Merge video and audio back together
Code:
ffmpeg -i v.mp4 -i a.mp3 -c copy m.mp4
And, of course, one can always find a better solution, a single ffmpeg command does it all. Again %f is the cropped file out of avidemux.
Code:
ffmpeg -i %f -c:v copy -c:a copy -vol 256 m.mp4

Last edited by porphyry5; 07-19-2017 at 07:44 PM. Reason: Better solution
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to increase logical volume to match physical volume, after increasing size of virtualbox virtual drive mjl3434 Linux - General 4 02-10-2016 08:29 AM
I have spce in volume group but it can not increase the size of logical volume anis123 Linux - Newbie 14 04-16-2012 06:23 AM
[SOLVED] Mencoder yields 2GB output without crop, 2MB output with crop porphyry5 Linux - Software 2 01-11-2012 06:44 AM
avidemux not getting sound baronobeefdip Linux - Software 1 12-04-2010 05:10 AM
Adjusting the sound in avidemux ? memo007 Linux - Software 3 04-23-2007 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration