Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-13-2017, 10:30 AM   #1
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 7, SH4, Debian
Posts: 343

Rep: Reputation: 8
ffmpeg convert MKV to MP4 with silent audio track

I collect video clips from surveillance system. Such clip is in MKV format but IP cameras are not equipped with microphone so strange noise is recorded too. I want to remove original audio track, replacing it by totally silent track (aac, mp4a).
My current ffmpeg command looks like this:

ffmpeg -loglevel error -i $i -y -vcodec copy -acodec copy $i.mp4
$i - name of file

How can I modify the command above to temove unwanted noise ?
Old 05-13-2017, 12:07 PM   #2
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Old 05-13-2017, 04:28 PM   #3
LQ Newbie
Registered: May 2017
Posts: 4

Rep: Reputation: Disabled
ffmpeg -loglevel error -i $i -y -vcodec copy -an $i.mp4
use -an it means audio none

Last edited by KennyIRC; 05-13-2017 at 04:44 PM.
1 members found this post helpful.


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] No sound when converting MP4 to WebM while using libvorbis for the audio track in FFmpeg version 2.8.6 MurderousMincePie Linux - Software 6 03-05-2016 11:29 AM
Convert .mkv or .mp4 to .VOB and write via K3b. hack3rcon Linux - Software 11 02-07-2016 10:53 PM
[SOLVED] Convert mkv to mp4 in terminal - how? gael33 Linux - Newbie 13 11-30-2015 03:42 PM
Convert mkv to mp4 to play on PS3 ? robertpolson Linux - General 1 09-11-2007 03:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:42 AM.

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