ffmpeg

Merge two or more video files of any format using FFmpeg in iPhone

Is there any direct command in FFmpeg to merge videos in iPhone. I need to do this programmatically by setting the command line argument to the FFmpeg containing the input movie files to merge and the output file name. ...

ffmpeg and pipes via php on os x doesn't work as it does on linux?

Greetings! I've run into a strange issue with using php passthru() building a realtime transcoding proxy on os x, here's the command: passthru("/usr/bin/ffmpeg -i '/path/to/file.avi' -r 20 -ar 44100 -ab 196 -b 1500k -deinterlace -croptop 0 -cropbottom 0 -cropleft 0 -cropright 0 -f flv - 2>/dev/null"); On linux this works perfectly an...

How to convert .rm to .avi with ffmpeg in windows?

Anyone here knows the command? ...

Check if a rtmp-stream is running and start ffmpeg with PHP / Shell-Script / Ruby

Hi, I'm using ffmpeg to transcode a rtmp-stream and re-stream it with ffmpeg. I have 2 problems: how can I check if the remote rtmp-stream is running and then start ffmpeg sometimes ffmpeg brake up transcoding and it must be restartet automatically Any hints to do this with a shell-script, ruby or php? ...

Creating flash video (.flv) from images in C#

Does anyone know of any good resources describing how to create a flash video directly from a series of images that would make up the video in c#?. I'm guessing ffmpeg...any guides available? ...

How can I check whether an RTMP live stream is working on the server side?

I have a site where users can broadcast their own live streams. They are provided with a URL to push their stream to over RTMP. Viewers have an embedded flash player to watch each stream. I need to be able to determine whether a particular stream is broadcasting. It doesn't need to do any analysis, simply to check that there's an actu...

Is it reasonable for a programmer to create a C# wrapper for video transcoding?

What can a programmer (one person) get from providing the community with opensourse (more or less) video transcoding library\wrapper? (I know we have Tao but it is not good for 2010...) I think of video transcoder based on FFMpeg. simple wraper which would simplify FFmpeg bringing to C# such functions like ReadFrame(bytearray, framenum...

Copying audio stream from a source file to a trancoded video file using ffmpeg

I have built my own video-only transcoder using ffmpeg without audio. I do not want to transcode the audio. What will be best way to add the audio stream from the source file to the transcoded file using FFMPEG API? ...

How do I change the screen output from ffmpeg.exe in Perl?

I want to let the screen only show the output of the continually updating time information while system calling ffmpeg.exe. I've come up with the following script: use Capture::Tiny qw/capture/; use threads; use threads::shared; my $stderr :shared; my $thread1 = threads->create(\&ffmpeg); my $threads = threads->create(\&time_info,$th...

Retrieving stdout from subprocess in Windows.

I can call FFmpeg with subprocess.Popen and retrieve the data I need, as it occurs (to get progress), but only in console. I've looked around and seen that you can't get the data "live" when running with pythonw. Yet, waiting until the process finishes to retrieve the data is moot, since I'm trying to wrap a PyQT GUI around FFmpeg so I c...

FFmpeg: Jpeg file to AVFrame

Hi! I need to join several jpg files into video using FFmpeg library. But I have a problem with reading this files. Here is a function which reads image file and makes AVFrame: AVFrame* OpenImage(const char* imageFileName) { AVFormatContext *pFormatCtx; if(av_open_input_file(&pFormatCtx, imageFileName, NULL, 0, NULL)!=0) {...

phpvideotoolkit offset error

This is the error i'm receiving. Notice: Undefined offset: 1 in /Library/WebServer/site/phpvideotoolkit.php5.php on line 813 Notice: Undefined offset: 0 in /Library/WebServer/site/phpvideotoolkit.php5.php on line 814 This is the line code see commented line ERROR HERE $data & $fps_value line // match the video stream info pre...

how to fix ffmpeg make: *** [libavcodec/h264.o] Error 1?

Hi need assistants with a make: * [libavcodec/h264.o] Error 1 err. libavcodec/x86/h264_i386.h: In function 'decode_significance_x86': libavcodec/x86/h264_i386.h:41: warning: cast from pointer to integer of different size libavcodec/x86/h264_i386.h:42: warning: cast from pointer to integer of different size libavcodec/x86/h264_i386.h: In...

I have .H file, how to open its public methods to .Net library?

I have such .H file (from here) /* FFmpeg simple Encoder */ #ifndef __VIDEO_ENCODER_H__ #define __VIDEO_ENCODER_H__ #include "ffmpegInclude.h" #include <Windows.h> #include <string> class VideoEncoder { private: // output file name std::string outputFilename; // output format. AVOutputFormat *pOutFormat; // form...

How to monitor progress from ffmpeg?

I have this ffmpeg video encoder using Rails and I needed to report ffmpeg progress to the user. How can that be done provided that I am using Linux? ...

FFMPEG - Export a video with 3 images

Hello, I currently have a program to create a video using a user's inputted audio with an image the user chooses. However, I would like to use 2 images instead of just one. I want the first image to be displayed for 5 seconds at the beginning of the clip, then I would like the other image to be displayed for the remainder of the video...

Extract FLV Frame with FFmpeg - Supported Format

I've searched for many topics through stackoverflow and found many good solutions. For example, when trying to extract a single frame from a video, i use this code: ffmpeg -i video.mpg -f image2 -vframes 1 -ss 00:00:01 -y -s picture.png and this will give a picture.png with the first frame of the video. The problem is, when i try to d...

Using FFMPEG to join two MTS files together

I have two MTS video files, each one 2 minutes long. I need to be able to join the files together and convert the format to MPEG4. I have a suitable command line for converting MTS to MP4 but don't know how to join the files together in the first place. Some articles on the web suggest using the CAT command, like: cat video1.mts video2...

Using ffmpeg to encode a high quality video

I have a set of video frames saved as images in a directory, and I'm trying to encode these to a good quality video, however every setting and every format I try produces very noticeable artifacts. The basic command is this: ffmpeg -r 25 -i %4d.png myvideo.mpg and I've tried the minrate and maxrate flags. Any of {mpg, avi, mov, flv} ...

How to install FFMPEG in PHP to encode video

I want to know how this FFMPEG to integrate in php. I want to encode video. I got this link earlier to refer http://youtubeclone.wordpress.com/2007/05/26/how-to-convertencode-files-to-flv-using-ffmpeg-php/ but dont know where to point this $ffmpegPath = "/path/to/ffmpeg"; $flvtool2Path = "/path/to/flvtool2"; here we have to give the...