ffmpeg

FFMPEG/X264 how to use them together

Hey Guys Need a little help. I am trying to encode large videos using ffmpeg/x264. While x264 is totally unable to encode these videos to .mov, ffmpeg does a decent job. But I need to use one of the flags which x264 provides to encode my video. So is there a good way to encode large videos using x264 given that i only want .mov as out...

Encoding images to video with ffmpeg

Hi. I am trying to encode series of images to one video file. I am using code from api-example.c, its works, but it gives me weird green colors in video. I know, I need to convert my RGB images to YUV, I found some solution, but its doesn't works, the colors is not green but very strange, so thats the code: // Register all formats a...

ColdFusion: CFEXECUTE/FFMPEG Memory Issue?

So my application allows for users to upload video, convert it using FFMPEG and then transfer it over to the Flash Media Server. Lately, I've run into an issue. If ever there is an error when converting video, I automatically generate cfcatch report PDF. This time I came across a "Cannot allocate memory" error. This massively concerns m...

Ruby gem (FFMPEG) "uninitialized constant"

When trying to use the FFMPEG gem on Mac OS X 10.6, ruby throws a NameError exception like so: NameError: uninitialized constant FFMPEG My code is rather simple: class Parser def initialize(file) require 'ffmpeg'; @video = FFMPEG::InputFormat.new(file); end end I have ruby 1.9.1p378 (2010-01-10 revision 2627...

What are diferences between FFmpegs AVcodec, x264 and WebM VP8, for encoding N frames? (please provide code support.)

What are differences in C code that should be written in FFmpegs AVcodec, x264 and WebM VP8, for encoding some amount of generated frames? So Idea here is to collect simple array of video_encode functions containing: Encoder setup, Frames generation and frame by frame encoding. simple. just on codec level (no special containers involved...

How to get YCbCr or RGB from FLV video "Tag" using FFmpeg?

So I have some uint8_t buf or FILE buf with FLV Video tag. We know its a video tag but we do not know in what codeck it is. We know its with a Key frame. How using FFmpeg C librarys to decode that encoded frame into RGB or YCbCr? ...

ffmpeg -is it possible to increase a clip duration?

I currently have a jpeg file which I converted to an flv using the following command: ffmpeg -r 10 -b 180000 -i test.jpg test.mp4 Now, I want to increase the duration of this .mp4 clip, so the picture stays on the screen for more than a split second. Eventually, I hope to merge a stream of these files to create a slide show out of jpe...

How do I diagnose why a .so file won't load when executing a .mex file in MATLAB?

I'm trying to use a video library called VideoIO with MATLAB for a machine learning project. When I try to invoke the library in MATLAB, I get an error saying that it can't find libavutil.so.50, one of the ffmpeg libraries that VideoIO depends on. I've checked a few different things but can't find anything that looks wrong, other than th...

FFMpeg: Recording Video errors

I try to record video (with audio!) in this way: ffmpeg = "C:\bin\ffmpeg.exe" cmd = '%s -r 15 -f vfwcap -i 0 c:/output2.mpg' % (ffmpeg) os.system(cmd) And I have error: "The filename, directory name, or volume label syntax is incorrect." I think that is sth with vfwcap, but I don't know how to fixed thi problem. Any ideas? Maby sth el...

What are all codecs supported by FFMPEG?

Need a list of supported codecs by ffmpeg. where can i find it? Thanks in ADV. ...

Tip: How-to repackage youtube video for iPhone

Hi, I was wondering why youtube video saved locally were not accepted by iTunes even if most of them are effectively using h264 video codec and AAC sound codec. iPhone and iPad are able to read them natively in YouTube.app and MobileSafari as well. This is a matter of container. There are many way, out here, to re-encode such video but ...

what kind of video formats iPad can play ?

using command ffmpeg -i input.mpeg get following results, then I want to look for correct commands to convert this video to the one iPad can play. Anyone familiwar with ffmpeg can give some helps ? FFmpeg version 0.5.1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --prefix=/opt/local --disable-vhook -...

FFMpeg for iPhone

I am trying to create an app that will allow me to stream video FROM the iPhone TO a server. my current theory as to how to do this is to create a series of FFMpeg files and send them to the server. as far as i can tell i have compiled the FFMpeg library correctly for the iPhone. i followed these instructions here. a series of executable...

MP4 encoding problem

Hello all, I'm encoding a wmv file to MP4 (h264) but the bitrate of the file is shotting to much. if i'm giving 256k it goes around 1025k or even 411k. How can we solve this problem using ffmpeg? Here is the command line i'm using ffmpeg -i "18959.wmv" -vcodec libx264 -b 256kb -bt 100k -s 640x480 - r 25 -aspect 4:3 -acodec libf...

H.264 Video over MPEG-2 TS -- how to be sure my test data is "good"?

So I'm trying to build some code that uses the FFMPEG libraries to read and display video packaged in an MPEG-2 Transport Stream encoded with H.264. I often find myself with intermittent problems playing the video. However, I don't really know how to ensure that the source video is in fact free of problems. Does anyone know where one ...

Deciphering Xuggle/ffmpeg errors (newbie)

I've recently started working with Xuggle to convert video files of various formats into corresponding FLVs (to be played on our site via jwplayer). The code I'm using is trivially simple; essentially what they show for the basic video conversion tutorial: IMediaReader reader = ToolFactory.makeReader(file.getPath()); reader.addListene...

Extracting relevant information from a long string of ffmpeg data

Hello there, I'm aware later versions of ffmpeg seem to present this information in a more accessible form, but my application is running on an old version for many reasons right now. Is it possible to extract Format: flv (located after Input #0, ) Duration: 00:05:23.20 (located after Duration: ) Bitrate: N/A (located after bitrate: ...

Get right bitrate with FFmpeg in x264 MP4

Is there a way to get the requested bitrate when converting to the libx264 vcodec? It seems ffmpeg doesn't consider the -b parameter. I also tried -minrate, -maxrate, -bufsize, -bt, but none worked. ...

when adding mp3 to video the sound quality is low,why?

Hi i have mp3 encoded with 128 kbps in 44 khz very well sound quality when playing but when i try to add audio to video with ffmpeg the audio become in very low quality i mean very low this is the command im using : ffmpeg -ar 22050 -ab 32k -i Afterwards.mp3 -i video_finale.mpg video_finale_sound.mpg or ffmpeg -i Afterwards.mp3 -...

ffmpeg : how to i set the images sequence to be equal to the duration of the movie with

hello all i converted sequence of images to movie with this command : ffmpeg -f image2 -i %04d.jpg -r 12 finale1.avi then in the secound command i attached mp3 sound file to the created movie with this command ffmpeg -ab 128k -ac 2 -acodec copy -i Afterwards.mp3 -i finale1.avi finale1_sound.avi now im facing problem that ths ...