LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-13-2017, 10:30 AM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

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:

Code:
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
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
https://trac.ffmpeg.org/wiki/Null#anullsrc
 
Old 05-13-2017, 04:28 PM   #3
KennyIRC
LQ Newbie
 
Registered: May 2017
Posts: 4

Rep: Reputation: Disabled
Code:
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.
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:26 AM.

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