FFmpeg CLI to remove audio track from MP4

CK CK 3788 
Created at  
544 0 0

FFmpeg uses a flexible structure for video files, not a rigid format. It handles various containers like AVI, MP4, MKV, and others. The container holds streams of data for video, audio, subtitles, and more. Each stream has its own codec, specifying how the data is compressed. FFmpeg's strength lies in its versatility, allowing you to manipulate and convert between different containers and codecs, enabling cross-platform compatibility and efficient file management. 

 

Below FFmpeg CLI(Command Line Interface) code is to remove audio tracks from the input video stream.

ffmpeg -i input.mp4 -an -c:v copy output.mp4

Explanation:

  • -i input.mp4: Specifies the input file.
  • -an: Tells FFmpeg to remove all audio streams.
  • -c:v copy: Copies the video stream without re-encoding.
  • output.mp4: Specifies the output file with no audio.
     
Tags FFmpeg FFmpeg encoding Removing Audio Track Facebook X
Comments 0
Similar posts
  1. Secure HLS encoding using AES-128 encryption with FFmpeg
    1,139
  2. FFmpeg CLI to mix two different audios in a single audio file such as mp3
    604
  3. FFmpeg CLI to merge a video only mp4 and mp3 audio file
    335
  4. FFmpeg CLI to convert a video file to an MP3 audio file
    349
  5. How do I create animated background for Google Meet?
    21,044
  6. FFmpeg compile option to support SCTE-35
    840
  7. Script checking internet restriction with FFmpeg
    684
  8. FFmpeg compile options based on configure
    1,113
  9. Smooth switching with EXT-X-DISCONTINUITY in HLS
    433
  1. When to use #EXT-X-DISCONTINUITY in HLS?
    1,428
  2. A prefect Apache server settings to avoid CORS error for HLS
    605
  3. CloudFront Settings for Dynamic HLS Streaming
    651
  4. SafeFrame is a web standard developed by IAB
    510
  5. CSAI vs SSAI
    578
  6. Ad Marker: SCTE-35 Message Encoder based in Python
    800
  7. Ad marker: SCTE-35 enhanced
    576
  8. HTTP Proxy when your URL access is blocked with FFmpeg
    1,902
  9. Limit Maximum Resolution in HLS.js
    665
  10. Magic line when HLS video manifest is mixed with encrypted / unencrypted video chunks
    1,464
  11. Recovering a crashed HLS.js player
    1,282
  12. Machine Learning Models for Ad Detection from a Video Stream
    189
  13. Unlock Flawless HLS Audio Sync: The Power of #EXT-X-INDEPENDENT-SEGMENTS
    377
  14. NVIDIA CUDA library which can be integrated with C/C++
    376
  15. Approaches to Scene Detection in Video Processing
    646
  16. Building GPU as a Service aka Dockerized GPU
    1,580
  17. IAB Categories (a.k.a. OpenRTB Code)
    1,014
  18. FFmpeg library that can be directly integrated into C/C++/Rust/Python without CLI
    2,073
  19. HTTP Live Streaming (HLS) was developed by Apple as part of QuickTime X in iOS3.0, and became an official standard (RFC 8126) in 2017
    596
  20. Progressive MP4 is an application of streaming techniques using the standardized MP4 container invented by MPEG LA consortium
    1,078
  21. HLS.js options to support subtitle
    516
  22. When HLS.js need to load m3u8 URL redirecting to the different URL (302 Redirection)
    664
  23. HLS.js code to reload when user face bufferfull error
    705
  24. HLS.js code to reload video when levelLoadTimeOut occurs
    707
  25. Change the manifest loading timeout in HLS.js
    1,039
  26. HLS.js Custom Error Handler to load Main Manifest from unstable HLS Live Stream
    1,433
  27. Mastering Audio Sync: Keyframes, GOP, FFmpeg, and HLS Explained
    539
  28. How do I display trickplay images with hls.js that elaborated at EXT-X-IMAGE-STREAM-INF in m3u8
    806
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    42
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    36
  3. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    252
  4. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    94
  5. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    157
  6. Array of arguments passed to script in PHP
    90
  7. Invalid Auction Storms in Ad Tech
    98
  8. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    202
  9. The Two Clocks of Ad Server Architecture
    71
  10. Frequency Cap Architecture Overview
    515
  11. Collecting Proof-of-Play from 100,000 Screens
    146
  12. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    288
  13. What is RedisVL?
    109
  14. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    232
  15. TPU & GPU Cluster Management Tools
    245
  16. The Concept of Scaffolding in AI Agents
    234
  17. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    583
  18. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    259
  19. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    339
  20. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    202
  21. Machine Learning: Training vs. Ranking
    222
  22. The Continuous Learning Machine: Designing a Loop That Actually Turns
    222
  23. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    195
  24. Designing a Data Curation System Around a Vector Database
    221
  25. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    257
  26. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    656
  27. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    196
  28. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    219
  29. Understanding Data Lineage
    263
  30. System Requirements and Architecture: Intelligent Priority-Based Scheduler
    167