ffmpeg

How to encode a video using PHP?

I'm interested in installing ffmpeg or somesuch on my server so I can upload files, automatically encode them to FLV and then serve up a embedded player to use on my pages. The problem is that I don't know where to start. I don't want to have to spend days coding a web based encoding service, as I'm more interested in using an out of th...

FFmpeg: "[h264 @ <hexnumber>]AVC: Consumed only n bytes instead of n+6"

When I'm converting an HD video, I get messages saying, "[h264 @ ]AVC: Consumed only n bytes instead of n+6" Is there a way to fix the problem? Or is there an option to get rid of those messages? ~ $ ffmpeg -i original.mp4 -ar 22050 -qscale 7 -s 480x270 result.flv FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al. ...

Making Image Slideshows from Linux Graphic Tools

How do I make image slideshows as a video file via 4 small jpegs (128px x 128px) and Linux command-line graphic tools? I need to vary the slideshow transitions with: fade to/from black slide left/right while fading to next image If you're curious, we plan to make videos we can put into mobile phones for real estate listings. (We alr...

FFmpeg LGPL distribution

Hi I'm making an LGPL distribution of FFmpeg. I'm going to distribute the executable with a zip containing the full source code of FFmpeg that I used when compiling the executable. some files in the FFmpeg source code are under a GPL license, can and/or should I include these files in the zip? (just to be clear, my executable is not co...

FFMPEG and Pythons subprocess.

I'm trying to write a gui for FFMPEG. I'm using pythons subprocess to create a ffmpeg process for every conversion I want. This works fine, but I'd also like a way to get the progress of the conversion, whether it failed or not etc. I figured I could do this by accessing the process's stdout like so: Calling subprocess.Popen() # Conver...

Getting PIX_FMT_YUYV422 out of libswscale

Hi I'm trying to learn to use the different ffmpeg libs with Cocoa, and I'm trying to get frames to display with help of Core Video. It seems I have gotten the CV callbacks to work, and it gets frames which I try to put in a CVImageBufferRef that I later draw with Core Image. The problem is I'm trying to get PIX_FMT_YUYV422 to work wit...

My website is a Video BroadCasting Site. Whether I MUST host on ffmpeg hosting or can i use normal hosting?

Im Implementing a Video Broadcasting site, I need to generate thumbnail for every video when the video is uploaded. For that i had to install ffmpeg and modify php.ini. My doubt is whether can i host on normal hosting or I MUST select ffmpeg hosting?? ...

Identifying I-Frame in a video container

Hi, i'm developing a video server in C on GNU/Linux, and i'm using ffmpeg to manage data of each video file. So, i open the file, get all the information about its container, then do the same with its codec and start reading frames one by one. Unfortunately, ffmpeg and more precisely avcodec is not very well documented. I need to know w...

Compile OpenCV with ffMpeg support

I'm having problems compiling OpenCV with ffMpeg support under Debian. I downloaded new ffMpeg and installed it, downloaded opencv-1.1pre1.tar.gz and unpacked it. then ./configure --enable-apps --enable-shared --with-ffmpeg --with-gnu-ld --without-quicktime CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/loca...

Using Delphi or FFMpeg to create a movie from image sequence

Hi all My Delphi app has created a squence called frame_001.png to frame_100.png. I need that to be compiled into a movie clip. I think perhaps the easiest is to call ffmpeg from the command line, according to their documentation: For creating a video from many images: ffmpeg -f image2 -i foo-%03d.jpeg -r 12 -s WxH foo.avi ...

how do I use SonofMMM public AMI and BOTO to convert video in my existing PHP based web application

Hi all I have developed a web app that users can upload video to and have it converted. So far I have been using a LAMP based EC2 instance to upload videos to and then call a third party service to do the video conversion. The service is called using REST. The video is retrieved from the EC2 location and converted then output to an S3 b...

Best practices for developing scalable video transcoding server on Amazon Web Services?

What do people think are the most important issues when developing an application that is going to allow users to upload video and images to a server and have them transcoded by FFMPEG and stored in amazon S3? I have a couple of options; 1) install FFMPEG on the same server that handles file uploads, when a video is uploaded and stored ...

JMF replacement

JMF is old, and doesn't support a lot of codecs properly. I get by these days by using FFMPEG in the background, but I would like to switch to a native java solution if one exists, does anyone know of a current open source Java project that has media manipulation functionality? ...

Video length missing in FLV converted by ffmpeg-php

Hi, I'm converting MP4 videos to FLV using ffmpeg-php on my CentOS server (without intervention from flvtool2 because it's not installed). The FLV videos are created, but no player is capable of retrieving the video duration, this creates serious issues when trying to seek the video. I'm using the player created by Moyea's Flash Video M...

Can I call multiple FFMPEG processes on a multi-core LAMP machine from PHP?

I am using PHP to call an FFMPEG command using exec(). The script that initiates this command is called from another PHP script using proc_close(proc_open('php /phpdirectory/process.php &', array(), $foo)); This works great. The ffmpeg command is called and runs 'in the background' leaving the first script to return to the user and i...

Which frame does ffmpeg get when reducing the frame rate

I have some video that I would like to convert to images of frames every 2 sec. E.g. If the video is 7 seconds long at 15 fps I would like to get frames 1, 31, 61, 91. The command: ffmpeg -i foo.mp4 -r 0.5 -f image2 -vcodec mjpeg foo%d.jpg appears to do what I want, but which frame does it get? 1, 31, 61, 91 or 30, 60, 90 or 13, ...

ffmpeg watermark without vhook?

Since the vhook subsystem has been removed from the latest version of FFMPEG, how can I add a watermark to a video? I need to be able to overlay a PNG with background transparency. Thanks a lot, -- Felix Geisendörfer ...

Rails paperclip problem

I have uploaded the video into my rails application by using thoughtbot-paperclip then the video is converted into "flv" format by using ffmpeg. For your reference here I specified some of my model sample code: model.rb: has_attached_file :source,:styles => {:thumb => "137x85>" } If i specified :url or :path option it doesn't worke...

FFMPEG: Set output res and bitrate depending upon input video

I'm processing user videos with differing aspect ratios. It seems FFMPEG only allows you to specify a fixed resolution. I want the output res to be appropriate for the input res. Similarly, I'd like FFMPEG to intelligently set the output bitrate based on the input video: obviously it shouldn't be any bigger than the input. I can get the...

load libavcodec in Qt-Projekt

Hi. I want to include the libavcodec in my Qt-project. Should I do that with #include <ffmpeg/libavcodec.h> or with something more Qt, for example QLibrary mylib("libavcodec"); And also a question to understand if I really got it: To use libavcodec, do I need to import the source-files or the .dll? ...