ffmpeg

Turn image sequence into video with transparency

I've got what seems like it should be a really simple problem, but it's proving much harder than I expected. Here's the issue: I've got a fairly large image sequence consisting of numbered frames (output from Maya, for what its worth). The images are currently in Targa (.tga) format, but I could convert them to PNGs or other arbitrary...

How can I get the resolution (width and height) for a video file from a linux command line?

I've been digging through the mplayer/mencoder and ffmpeg documentation and I can't seem to come up with anything. I'm not especially picky as to the output format as I can use a regular expression to pull it out, I just can't seem to get the data in the first place. Thanks in advance! ...

FFmpeg Images to Video and Streaming

Hello guys, I've a C# program generating JPEG images in realtime, i need to (continuously) generate a video from the images and stream it (also in realtime). I've used ffmpeg to transcode an input video source and stream it, doesn't ffmpeg have an option to get the input as a set of images(always being generated) and make the video out ...

OpenCV with Network Cameras

I'm using openCV 1.1pre1 under Windows. I have a network camera and I need to grab frames from openCV. That camera can stream a standard mpeg4 stream over RTSP or mjpeg over http. I've seen many threads talking about using ffmpeg with openCV but I cannot make it work. How I can grab frames from an IP camera with openCV? Thanks Andrea ...

Creating a pipe between C# and Ffmpeg

Hi guys, I have a C# program that creates a video and saves it to the disk in real-time. Instead of doing that, I want it to write it directly in a pipe connected with ffmpeg... The function that keeps saving the video in the disk, which I can not control, receives an IntPtr with a reference to the file. So, I need to create a pipe or...

Can ffmpeg show a progress bar?

Hello all, I am converting a .avi file to .flv file using ffmpeg. As it takes a long time to convert a file I would like to display a progress bar. Can someone please guide me on how to go about the same. I know that ffmpeg somehow has to output the progress in a text file and I have to read it using ajax calls. But how do I get ffmpeg...

Can't run ffmpeg as subprocess in Ruby

I am trying following code to determine video resolution by running ffmpeg utility as subprocess and gain its output and parse it: IO.popen 'ffmpeg -i ' + path_to_file do |ffmpegIO| # my parse goes here end ...but ffmpeg output is still connected to stdout and ffmepgIO.readlines is empty. Are there some special treatment needed fo...

Can I use ffmpeg from inside a Perl script without a system call?

I'd like to convert mp3's to lower bitrates, as well as possibly convert video to mp3 using Perl. I looked at the ffmpeg module but it doesn't appear that it supports converting files, the only example I saw was grabbing pictures out of a video stream. Is there a way to do this in Perl with out using system() to call ffmpeg? ...

Streaming "proxy" converting video formats

This is related to my another question Here I'd like to ask if it is in theory (according to video file formats and codecs, etc) possible to have such scenario: 1) Client on iPhone has a reference to video in flv format. It sends http request to converting "proxy" like http://convproxy.com?source=url_of_original_video.flv by just click...

Detect FFMPEG?

I'm writing a PHP script that converts uploaded video files to FLV on the fly, but I only want it to run that part of the script if the user has FFMPEG installed on the server. Would there be a way to detect this ahead of time? Could I perhaps run an FFMPEG command and test whether it comes back "command not found?" ...

How to easily recognize whether stream is video or image [ffmpeg library]

Having an AVStream object how should I reliably distinguish whether this is video or image stream? I've tried to use duration. If it's 0 - we are having image (system constraints allows for such assumption). But it turns out that duration have special meaning for images - the number of images stored in file. Is there any tricks to dete...

How to link the ffmpeg transcoding process information into a vb6 GUI app?

hi guys, i'm playing with a vb6 gui frontend for ffmpeg and as of now all i can do is to call the ffmpeg via cmd.exe which will shows the command prompt while the whole process is still running. And i thought this was the norm seeing how WinFF, another pascal based frontend gui for ffmpeg works. But i was blown away when i saw this othe...

How do I use ffmpeg on a remote machine via ssh

I have three computers on my LAN, one running ubuntu, one running openSuse and my server running Archlinux. I've only managed to get ffmpeg to work properly on my server. I would like to write a script that would pretend to be an ffmpeg installation on the local machine, but would actually just be using the server's ffmpeg. Example...

split video stream MPEGTS(H264) into file chunks under unix

Q: How to split MPEGTS(H264) video stream into file chunks? Searching the way of splitting MPEGTS video stream encoded to H264 into accurate file chunks. The challenge is that the stream need to be saved 24/7 and no data should be lost. Thinking about split(1), but there is a problem with video frames. If video frame will be cut in the...

Inconsistent Video Conversion

I have a script calling a command to run an ffmpeg conversion on an uploaded video. It works only at random times however. Sometimes the form will finish submitting and the ffmpeg process will be running; at other times, the ffmpeg command fails to run at all. Here is the command that I'm running in an exec() function: ffmpeg -i "uploa...

cannot ffmpeg-php mac os x leopard

has anyone been able to install ffmpeg-php on osx? i was able to install ffmpeg via mac ports. ffmpeg-php wont install. problems: cannot find shared directory because macports installs it to /opt/local/include/ and /opt/local/lib. ffmpeg-php looks in /usr/local/include/ffmpeg phpize returns a whole bunch of warnings, not sure if thi...

How can I combine two mpeg2 clips into one output file using ffmpeg?

I have two movie clips encoded in mpeg2. Is it possible to use ffmpeg to combine them sequentially into one mpeg2 file? If so, what are the command line options? ...

Why does FFMPEG reports the wrong duration?

I have an oldish build of FFMPEG that I can't easily change. We use FFMPEG to find the duration of video and sound files. So far it has been working wonderfully. Recently on an uploaded file, FFMPEG has reported a 30 second file as being 5 minutes 30 seconds in length. Could it be something wrong with the file rather than FFMPEG? If ...

PHPMotion - Do I need ffmpeg etc if I just upload in .flv?

My shared host won't let me install ffmpeg and some similar libraries, will it work if I just upload in flv? ...

Securely using exec with PHP to run ffmpeg

I would like to run ffmpeg from PHP for video encoding purposes. I was thinking of using the exec or passthru commands. However, I have been warned that enabling these functions is a security risk. In the words of my support staff: The directive 'disable_functions' is used to disable any functions that allow the execution of system ...