Moonglade

Modern Markdown blogging with AI-powered localization and search.

All Posts


FFmpeg Usage Overview ★

This article provides a systematic introduction to the core applications and best practices of FFmpeg in video processing. It first compares the pros and cons of encoding formats such as H264, HEVC, VP9, and AV1, recommending HEVC for local storage and suggesting AV1, VP9, or H264 for web distribution based on the target audience. It also provides reference data on the impact of different bitrates, ranging from 1M to 128M, on video quality. The article elaborates on the differences between two working modes: stream copying and stream encoding. The former is efficient but does not allow parameter modification, while the latter is flexible but time-consuming. Additionally, the text includes specific command examples for common operations, such as using FFmpeg to view video metadata, perform transcoding, utilize NVIDIA GPU hardware acceleration, push RTMP live streams (including stream copying and real-time encoding), merge audio and video, burn in subtitles, adjust resolution, change speed, regulate volume, extract segments, crop regions, and reverse videos. Finally, it recommends integrating the SRS open-source project to build low-latency FLV or HLS live streaming services, enabling a localized live streaming experience similar to that of Bilibili.

Views 1,268
FFmpeg Live Streaming SRS Video Editing bash flv.js









C# Rotate the square matrix

This is one of my questions from an interview. The interviewer asked me to rotate a square matrix in C . While it is not so hard for me and I have done it in 10 minutes, I'd share my solution to all developers who may need this. namespace Test { class Program { static void Main(s...

Views 378
Algorithm C# C# Implementation Math Matrix Matrix Rotation