HTTP Proxy when your URL access is blocked with FFmpeg

CK CK 3788 
Created at  
1,902 0 0

You can use an HTTP proxy with ffmpeg by specifying the http_proxy environment variable or by passing it directly as an option in the command.

1. Using http_proxy Environment Variable:

This method sets the proxy globally for ffmpeg:

export http_proxy="http://your-proxy-server:port"
ffmpeg -i "http://example.com/video.mp4" -c copy output.mp4

If you are using authentication, use:

export http_proxy="http://username:password@your-proxy-server:port"

2. Using -http_proxy Option:

You can specify the proxy directly in the ffmpeg command:

ffmpeg -http_proxy "http://your-proxy-server:port" -i "http://example.com/video.mp4" -c copy output.mp4

For authenticated proxies:

ffmpeg -http_proxy "http://username:password@your-proxy-server:port" -i "http://example.com/video.mp4" -c copy output.mp4

3. Using SOCKS Proxy:

If you're using a SOCKS proxy (e.g., Tor or Shadowsocks), you can use socks_proxy:

ffmpeg -socks_proxy "socks5://your-socks-proxy:port" -i "http://example.com/video.mp4" -c copy output.mp4

4. Using Proxy for HTTPS Requests:

For HTTPS requests through an HTTP proxy, use:

ffmpeg -http_proxy "http://your-proxy-server:port" -i "https://example.com/video.mp4" -c copy output.mp4

If the proxy supports HTTPS tunneling, it should work without additional configuration.

Tags FFmpeg HTTP Proxy HTTP Proxy http_proxy Facebook X
Comments 0
  1. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    195
  2. From SDI to MXL: Inside the Cloud-Native Infrastructure Powering Next-Gen Live Broadcast
    570
  3. Smooth switching with EXT-X-DISCONTINUITY in HLS
    433
  4. Disabling Audio Tracks in HLS.js
    376
  5. A Deep Dive Into Internet Advertising Ecosystem on Video Streaming Industry
    647
  6. When to use #EXT-X-DISCONTINUITY in HLS?
    1,428
  7. A prefect Apache server settings to avoid CORS error for HLS
    605
  8. CloudFront Settings for Dynamic HLS Streaming
    651
  9. SafeFrame is a web standard developed by IAB
    510
  10. CSAI vs SSAI
    578
  11. Ad Marker: SCTE-35 Message Encoder based in Python
    799
  12. Ad marker: SCTE-35 enhanced
    575
  13. FFmpeg compile options based on configure
    1,112
  14. Script checking internet restriction with FFmpeg
    684
  15. FFmpeg compile option to support SCTE-35
    840
  16. Limit Maximum Resolution in HLS.js
    664
  17. Magic line when HLS video manifest is mixed with encrypted / unencrypted video chunks
    1,463
  18. Recovering a crashed HLS.js player
    1,281
  19. How do I create animated background for Google Meet?
    21,007
  20. Secure HLS encoding using AES-128 encryption with FFmpeg
    1,138
  21. Machine Learning Models for Ad Detection from a Video Stream
    189
  22. Unlock Flawless HLS Audio Sync: The Power of #EXT-X-INDEPENDENT-SEGMENTS
    377
  23. NVIDIA CUDA library which can be integrated with C/C++
    376
  24. Approaches to Scene Detection in Video Processing
    646
  25. FFmpeg CLI to remove audio track from MP4
    543
  26. Building GPU as a Service aka Dockerized GPU
    1,579
  27. IAB Categories (a.k.a. OpenRTB Code)
    1,014
  28. FFmpeg library that can be directly integrated into C/C++/Rust/Python without CLI
    2,073
  29. 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
  30. Progressive MP4 is an application of streaming techniques using the standardized MP4 container invented by MPEG LA consortium
    1,078
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
    251
  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
    70
  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
    231
  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. Designing a Data Curation System Around a Vector Database
    221
  24. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    256
  25. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    656
  26. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    196
  27. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    219
  28. Understanding Data Lineage
    262
  29. System Requirements and Architecture: Intelligent Priority-Based Scheduler
    167
  30. GPU & LLM Cluster Infrastructure & Task Scheduling Architecture
    245