ffmpegIt is developed under the Linux platform and can be used to record and convert numbers.Audioand convert it into an open source computer program. ffmpeg can also be performedscreen recording, and also supports safe downloading of live streaming applications. FFmpeg2024 free download.
7 tips for ffmeg:
1.Audio conversion
ffmpeg -i my_audio.wav my_audio.mp3 -i is the audio file to be converted, and my_audio.mp3 is the destination audio file.
2.video conversion
ffmpeg -i my_video.mpeg -s 500×500 my_video.flv -i is the source video file, -s means setting the resolution of the target video file and my_video.flv is the destination video file
3. From the videointerceptpicture
ffmpeg -i test.mpg image%d.jpg intercepts 25 pictures per second by default. You can set the number of pictures intercepted per second through -r.
-r fps sets the frame rate, which is the number of pictures captured per second (default 25)
ffmpeg -i test.mpg -r 1 image%d.jpg captures 1 picture every 1 second
You can also set the interception interval, starting and ending
-ss sets the time position, syntax: hh:mm:ss[.xxx]
-t duration: limit the time for transcoding/capturing video, syntax: hh:mm:ss[.xxx]
ffmpeg -i test.mpg -r 25 -ss 00:00:10 -t 00:00:05 images%05d.png starts at the 10th second and intercepts 5 seconds of pictures at a rate of 25 pictures per second.
4. Capture audio from video
ffmpeg -i video.avi -f mp3 audio.mp3-f force format selection
ffmpeg -i video.avi -vn audio.mp3-vn cancels video interception (that is, only outputs audio files)
5. Create screencasts
ffmpeg -f x11grab -r 25 -s wxga -i :0.0 /tmp/outputFile.mpg0.0 Is this the screen display number of your X11 server? It is the same as DISPLAY.
This command intercepts wxga screen video at a rate of 25 frames per second. Of course, you can use -s to set the video resolution. The output file is /tmp/outputFile.mpg
6. Make videos with pictures
ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg
Convert image files arranged in this order like `img001.jpg', `img002.jpg' into videos
7. Capture video from webcam
ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 out.mpg
Capture audio and video simultaneously:
ffmpeg -f oss -i /dev/dsp -f video4linux2 -s 320x240 -i /dev/video0 out.mpg
/dev/video0 is the video device /dev/dsp is the audio device
ffmpeg software features1.FFmpeg is a set of open source computer programs that can be used to record, convert digital audio and video, and convert them into streams. FFmpeg operates under the LGPL or GPL license. FFmpeg provides a complete solution for recording, converting and streaming audio and video. FFmpeg includes the very advanced audio/video codec library libavcodec. In order to ensure high portability and codec quality, many codes in libavcodec were developed from scratch.
2.FFmpeg is developed under the Linux platform, but FFmpeg can also be compiled and run in other operating system environments, including Windows, Mac OS X, etc. This project was first initiated by Fabrice Bellard and was mainly maintained by Michael Niedermayer from 2004 to 2015. Many FFmpeg developers come from the MPlayer project, and currently FFmpeg is also placed on the server of the MPlayer project team. The name of the project comes from the MPEG video coding standard, with the "FF" in front of it standing for "Fast Forward".
3.FFmpeg is an LGPL open source program under Linux, and compilation under Windows requires special tools. The version I provide here is compiled with MinGW and has only one executable file that can be run directly (command line program).
Convert FLV to other formats (avi (mpeg4), asf, mpeg)The easy way:
(Required within round brackets, optional within square brackets)
1.Convert to wmv/asf
ffmpeg -i (full path to the flv file to be converted) -f asf -vcodec (wmv1 or wmv2) [-b video bitrate] -acodec mp3 [-ab audio bitrate] (full path to the output asf/wmv file)
2.Convert to mpeg1
ffmpeg -i (full path to the flv file to be converted) -f mpeg -vcodec mpeg1video [-b video bitrate] -acodec mp2 [-ab audio bitrate] (full path to the output mpg file)
4.Convert to avi (msmpeg4)
ffmpeg -i (full path to the flv file to be converted) -f avi -vcodec (msmpeg4 or msmpeg4v1 or msmpeg4v2) [-b video bitrate] -acodec mp3 [-ab audio bitrate] (full path to the output avi file)
Features
The multimedia video processing tool FFmpeg has very powerful functions, including video capture, video format conversion, video capture, adding watermarks to videos, etc.
Video capture function
The ffmpeg video capture function is very powerful. It can not only capture images from a video capture card or USB camera, but also perform screen recording. It also supports streaming video in RTP mode to a streaming media server that supports RTSP, supporting live broadcast applications.
ffmpeg video collection under Linux
On the Linux platform, ffmpeg provides good support for V4L2 video devices, such as:
./ffmpeg -t 10 -f video4linux2 -s 176*144 -r 8 -i /dev/video0 -vcodec h263 -f rtp rtp://192.168.1.105:5060 > /tmp/ffmpeg.sdp
The above command means: capture 10 seconds of video, capture the video4linux2 video device, capture QCIF (176*144) video, 8 frames per second, the video device is /dev/video0, the video encoding is h263, and the output format is RTP. The IP address and port are defined later, the SDP file corresponding to the code stream is redirected to /tmp/ffmpeg.sdp, and the SDP file is uploaded to the streaming media server to achieve live broadcast.
ffmpeg video collection under windows
There is very little information about ffmpeg video capture under Windows, but ffmpeg still supports video capture under Windows. ffmpeg supports video capture with video for windows (VFW) devices under Windows. However, VFW devices are outdated and are being replaced by WDM video devices. However, ffmpeg has no plans to support WDM yet, but there seems to be a tool to convert WDM to VFW. Therefore, ffmpeg can still capture videos under windows.
1.SeeVideo format conversion function
ffmpeg video conversion function. Video format conversion, for example, can convert multiple video formats to flv format, but not video signal conversion.
ffmpeg can easily convert between multiple video formats (wma, rm, avi, mod, etc.). For example, it can convert recorded video avi to the flv format used by video websites.
2.SeeVideo screenshot function
For the selected video, capture a thumbnail at the specified time. Capture video to obtain static images and dynamic images. Capturing gif files is not recommended because the captured gif files are large and playback is not smooth.
3.Add watermark function to video
Add watermark (logo) to video using ffmpeg.
FAQ
1. Video format is incompatible
Problem description: The video format you are trying to process or splice is not supported by FFmpeg.
Solution:
Use FFmpeg for format conversion to convert all videos to FFmpeg supported formats, such as MP4, AVI, etc.
2. Codec mismatch
Problem description: The video uses a codec that is not supported by FFmpeg.
Solution:
Use FFmpeg for codec conversion to convert all videos to FFmpeg supported codec formats.
3. Resolution and frame rate are inconsistent
Problem description: The resolution and frame rate of the spliced video are inconsistent, which may cause black edges, deformation, or abnormal playback speed in the resulting video.
Solution:
Use FFmpeg to adjust the resolution and frame rate of the video to make it consistent before splicing.
4. Timestamps are not continuous
Problem description: The spliced video timestamps are discontinuous, which may cause frame skipping or freezing in the resulting video.
Solution:
Use FFmpeg to recalculate timestamps or use pts filter to adjust so that all video timestamps are continuous.
5. The screen flickers or trembles
Problem description: The processed video appears to flicker or shake.
Solution:
Re-encode using FFmpeg to unify all videos to the same encoding parameters.
ffmpeg software update logA new major version is now available! Some highlights:
AudioToolbox output device
MacCaption Splitter
PGX decoder
AV1 encoding supports SVT-AV1
Cineform HD Encoder
ADPCM Argonaut Game Encoder
Argonaut Games ASF Multiplexer
AV1 low-overhead demultiplexer
RPZA Video Encoder
Through librist’s RIST protocol
We strongly recommend users, resellers and system integrators to upgrade unless they are using current git master
Huajun editor recommends:
In addition to FFmpeg, a very convenient audio conversion tool, there are also related software such as Musify, text-to-speech assistant, QQ music cache extraction tool, etc. available for download. If you need it, please click to download and use it.