FFmpeg is a video plug-in, we can use the call FFmpeg interface to get information about the video, including video playback time, video code rate, video thumbnail and video creation time, this article to you how to use the FFmpeg interface to get video information, A friend in Need can refer to it.
FFmpeg get thumbna
Copy codeThe Code is as follows:// Obtain the thumbnail of the video fileFunction getVideoCover ($ file, $ time, $ name ){If (empty ($ time) $ time = '1'; // the first frame of the first second is intercepted by default.$ Strlen = strlen ($ file );// $ VideoCover = substr ($ file, 0, $ strlen-4 );// $ VideoCoverName = $videoCover.'.jpg '; // name the thumbnail.// Exec ("ffmpeg-I ". $ file. "-y-f mjpeg-ss ". $ time. "-t 0.001-s 320x240 ". $ name. "", $
Please note that PassThru is used in this article and may be partially disabled by a virtual master.
The code is as follows:
Php
Summarize
This is the full content of this article, I hope to learn or use PHP when you can help. If you have any questions, you can exchange messages.
FFmpeg is an open source, free cross-platform video and audio streaming project that provides a complete solution for recording, converting, and streaming audio and video. The author will attempt to use the library to implement a complex network environment,A streaming media server that supports the standard RTSP protocol. Due to the incompatibility of the C + + compiler provided by Visual Studio with the C99 standard, it cannot be compiled directly u
Transferred from: http://www.cnblogs.com/dwdxdy/p/3625766.htmlSince FFmpeg is an open source project based on Linux, the source code is incompatible with the C + + compiler provided by the most common Visual Studio under Windows, so it cannot be compiled with msvc++ and requires a Linux-like build environment under Windows. This article mainly records the process of FFmpeg compilation under Windows.1. Resou
FFmpeg user manual-FFmpeg encoding support and customization3.1 FFmpeg supports some encoding, encapsulation, and protocols, but its support is still limited. Some are licence, and some are relatively large. FFmpeg provides a basic framework, these encoding, encapsulation, and protocols can be attached to
FFmpeg user manual-compilation and installation of FFmpegFFMpeg provides compiled executable files on the official website. Many people use FFmpeg, because FFmpeg is open-source and can be DIY and powerful, another advantage of FFmpeg is open source. When using Linux, whether it is ubuntu or redhat, if you use the sour
Original article address:FFmpeg Quick Start SDK download and FFMPEG Library Development in Windows
-- Handle 264
FFmpeg
Author:Getting started with FFMPEG in Namu Amitabha windows
Author:
A. TNG
Email:
[Url = mailto: jiyucn@163.com] jiyucn@163.com [/url]
Refer:
Http://www.ffmpeg.com.cn/
What is
no need to install any plug-ins only need to install FFMEPG, installation FFMEPG There are two ways: ① source package Installation, this does not know how the problem is always error ②yum command installation, CentOS This yum is the best command, hehe
Here is the installation step:
㈠ Installation Compilation Environment
#yum install-y automake autoconf libtool gcc gcc-c++
㈡ install the required libraries of RPM packages to CentOS
RPM-UHV http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rp
, you do not need to install any plug-ins, you only need to install FFMEPG. There are two ways to install FFMEPG: ① install the source code package, I don't know what's going on. I always reported an error. ② the yum command is installed, and centos yum is the best command.
The installation steps are as follows:
(I) install the compiling environment
# Yum install-y automake autoconf libtool gcc-c ++
(Ii) install the RPM package of the required library to centos
Rpm-Uhv http://apt.sw.be/redhat/el
Reprinted from: http://hi.baidu.com/y11022053/item/6d4c34ba87c7b5f362388e9a
After installing the FFmpeg, if you use the FFmpeg tool to turn a video file into H264 video encoding, MP3 audio encoding or other ffmpeg itself without the XXX encoding type, you will see the error message, unknown encoder ' xxx '. Now all you need is to install the other encoder on the
The simplest example of memory read/write based on FFmpeg: Memory Transcoder and ffmpeg read/writeThe previous article recorded a memory Player Based on FFmpeg, which can be used to read and play data in the memory. This article records a memory Transcoder Based on FFmpeg. The Transcoder can use
FFmpeg installing a third-party encoder (encoder) Library
Keywords: ffmpeg, code H264, third party encoder
After installing the FFmpeg, if you use the FFmpeg tool to turn a video file into H264 video encoding, MP3 audio encoding or other ffmpeg itself without the XXX encodin
Android audio and video goes deep into 21 FFmpeg video cutting, androidffmpeg
Video cutting I accidentally found that the code of the last video compression can run the FFmpeg video cutting command, but it cannot be used to merge videos, because you cannot read txt files that record the paths of several videos.
Here I will talk about the video cutting process, not the code, but the log. After all, I don't k
Recently work busy has not time to write, but look at the network on this aspect of resources really few, many are Linux (I love unix, haha), and many are directly introduced in the previous article compiled results to do. For the use of OpenCV but always be ffmpeg library entrap friends, may also love and hate, after all, with it processing and analysis of video is the first choice, not only because the two are easy to use, but also
Video of the course "production of video players based on FFmpeg + SDL" and ffmpeg Video PlayerIn the past two days, the course was designed for the summer vacation and short term with the broadcasting and television project sophomore year. This course is about how to create a video player based on FFmpeg + SDL. It focuses on the development of video and audio. I
need to install FFMEPG, install FFMEPG There are two ways: ① source package Installation, this does not know how to always error ②yum command installation, CentOS This yum is the best command, hehe
Here are the installation steps:
㈠ Installing the Build environment
#yum install-y automake autoconf libtool gcc gcc-c++
㈡ Installing the required library RPM package to CentOS
RPM-UHV http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Installing modules such a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.