Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to Flip a Video With FFmpeg (hflip and vflip Are Mirrors, Not Rotates, and -c copy Cannot Do Them)

Short answer: to flip a video with FFmpeg, re-encode through hflip or vflip : ffmpeg -i input.mp4 -vf hflip -c:v libx264 -pix_fmt yuv420p -c:a copy flipped.mp4 hflip is a left–right mirror. vflip is a top–bottom mirror. The frame size stays the same (here, 720×1280). That is not a rotate: transpose=1 would turn this clip into 1280×720. And despite what autocomplete offers for "ffmpeg flip video…

To flip a video with FFmpeg, you must re-encode the video through the hflip or vflip filters. The -c copy option cannot be used for flipping because filtering and streamcopy cannot be used together. A flip is a video filter that re-encodes the video, whereas the -c copy option copies the audio stream without re-encoding. A 90-degree rotate would change the axes of the video, while a flip would not.

Therefore, to flip a video, you should use ffmpeg -i input.mp4 -vf hflip -c:v libx264 -pix_fmt yuv420p -c:a copy flipped.mp4, where hflip is a left-to-right mirror and vflip is a top-to-bottom mirror.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Every outlet that reported this, and when →

Read the original at dev.to →

More in Tech

My most-read page has 1,322,170 reads. My site has had 4 outbound clicks.

My daily writing queue is a list of the "most-read" pages on my AI tools directory. Today it put Deevid AI at #1 with 1,322,170 reads, Text to Video AI: Deevid at #2 with 983,454, and Deevid AI Image…

  • My most-read page has 1,322,170 reads
  • Site has had 4 outbound clicks total
  • Counter inherited from scraped directory

Part 3: Building the App & Caching for Data Latency

Part 3: Building the App & Caching for Data Latency Navigation: ← Part 2: Optimizing Dockerfiles with Multi-Stage Builds | Part 4: Full-Cycle CI/CD — From Local Hooks to AWS ECR → 📦 Companion…

  • Python Flask REST API aggregates Rick & Morty data
  • CacheMiddleware with Redis reduces data latency
  • Soft TTL and LRU eviction manage cache memory

More from Monday 16 November →