ffmpeg

Crop MP3 to first 30 seconds

Original Question I want to be able to generate a new (fully valid) MP3 file from an existing MP3 file to be used as a preview -- try-before-you-buy style. The new file should only contain the first n seconds of the track. Now, I know I could just "chop the stream" at n seconds (calculating from the bitrate and header size) when delive...

How Does gcc on Solaris Find Its Libraries?

I'm trying to install 'quadrupel', a library that relies on ffmpeg on Solaris x86. I managed to build ffmpeg and its libraries live in /opt/gnu/lib and the includes are in /opt/gnu/include but when I try to build quadrupel, it can't find the ffmpeg headers. What flags/configuration is required to include those two directories in the pr...

How to join webcam FLVs

I want my website to join some webcam recordings in FLV files (like this one). This needs to be done on Linux without user input. How do I do this? For simplicity's sake, I'll use the same flv as both inputs in hope of getting a flv that plays the same thing twice in a row. That should be easy enough, right? There's even a full code exa...

Why do some conversions from wmv to flv with ffmpeg fail?

Ive been smashing my head with this for a while. I have 2 completely identical .wmv files encoded with wmv3 codec. I put them both through ffmpeg with the following command: /usr/bin/ffmpeg -i file.wmv -ar 44100 -ab 64k -qscale 9 -s 512x384 -f flv file.flv One file converts just fine, and gives me the following output: FFmpeg versio...

Can the ffmpeg av libs return an accurate PTS?

I'm working with an mpeg stream that uses a IBBP... GOP sequence. The (DTS,PTS) values returned for the first 4 AVPackets are as follows: I=(0,3) B=(1,1) B=(2,2) P=(3,6) The PTS on the I frame looks like it is legit, but then the PTS on the B frames cannot be right, since the B frames shouldn't be displayed before the I frame as their P...

Thumbnail image from .3gp file

Does anybody know how to get thumbnail (still image) from 3gb video file? First frame or something like that. I'm using .net, but solution can be in any language (managed or native), or third-party product. ...

Simple way to grab thumbnail of FLV in ASP.NET without changing permissions on server?

I'm looking for a simple way to grab thumbnails of FLVs in ASP.NET, without having to change any permissions/settings on the server. Ideally, nothing is installed on the server machine, but if necessary, small tools such as FFmpeg are fine. I've tried FFmpeg using the command-line tool with Process.Start, but the same command that works...

Compiling FFMPEG on Windows using Wascana

Has anyone ever tried, or had any success at getting Wascana (Eclipse CDT + MinGW for Windows) to compile FFMPEG under Windows. Apparently it is possible, there is even a tutorial at Craig Shaw's website but I have not been able to make it work. I run ./configure on the FFMPEG source code then create a new project in Eclipse and point i...

Anyone know of a set of C# bindings for FFMPEG?

Does anyone know of a set of bindings for C# to drive the FFMpeg library directly ? I could shell to ffmpeg.exe directly but I found it hard to sync/control as a separate process. any help would be appreciated. ...

Understanding and using ffmpeg settings

Hi, Where is the best documentation of ffmpeg and libavcodec? It appears that ffmpeg supports many undocumented options that it is very hard to find a good reference. ...

FFMPEG Frame to DirectX Surface

Given a pointer to an AVFrame from FFMPEG's avcodec_decode_video() function how do I copy the image to a DirectX surface? (Assume I have a pointer to an appropriately sized DX X8R8G8B8 surface.) Thanks. John. ...

Encoding for JMF

I'm creating some videos from a collection of images, I subsequently wish to play this video back with java. I found JMF but I haven't been able to find an encoding which is actually playable by it. Does anybody have an ffmpeg or mencoder formulation which produces JMF playable output? I would also take alternatives to JMF if there is...

Programmatically transcode MPEG-2 videos

I need to be able to programmatically transcode mpeg-2 files to .mp4, .mp3, .wmv, .rm (optional), and .flv (optional), and hopefully generate a thumbnail as well. I found the Java Media Framework, but it frankly looks pretty crappy. This will be running a Linux server, so I could shell out to ffmpeg using Commons Exec - does ffmpeg do ev...

How to best convert Flash compatible mp4 files with FFMPEG

I am trying to convert different files to a flash compatible .mp4 file with ffmpeg, but i cant seem to succeed. Of cource the objective is to get the greatest quality with the smallest file size. So far I have this, which works, but it doesnt play in a flash player for some reason. The result isn't that great, how can I improve this co...

Ffmpeg and Xing header - iTunes issue and Duration issue

Hello all, I extract the audio from a bunch of flv files as an MP3. This works great: ffmpeg -i video.flv -vn -acodec copy audio.mp3 However, some audio that I extract have durations that are longer than they should be and some MP3 files keep looping the audio! Also in some audio players like WMP, the seekbar gets stuck at one point....

ffmpeg av_seek_frame

I am attempting to seek in a movie using ffmpeg's av_seek_frame method however I'm having the most trouble determining how to generate a time-stamp to seek to. Assuming I want to seek x amount of frames either forward or backward and I know what frame the movie is currently on, how would I go about doing this? ...

FFmpeg: A few errors including invalid frame size and incomplete frame

Hello all, I use this ffmpeg command to take clips from a large VOB files that is on a DVD: ffmpeg.exe -i E:\VTS_02_2.vob -ss 00:00:57 -t 00:16:15 vids\VTS_02_2.vob It worked first for a VOB file but then I got these errors: c:\ffmpeg>ffmpeg.exe -i E:\VTS_02_2.vob -ss 00:00:57 -t 00:16:15 vids\VTS_02_2.vob FFmpeg version SVN-r15625,...

Working way to make video from images in C#

Does anybody have a known reliable way to create a video from a series of image files? Before you mod me down for not searching for the answer before posting the question, and before you fire off a simple message like "use FFMPEG," read the rest of this message. I'm trying to create a video, it doesn't matter too much what format as lo...

Compile OpenCV on Mac with FFMPEG instead of Quicktime

...

FFMPEG - zero file size when sound enabled

I'm having a few problems converting video files from the command line using FFMPEG. I'm using a CentOS server, but unfortunately I don't have shell access. When I suppress sound using the following command, everything works perfectly (except of course, there's no sound!) ffmpeg -i $infile -an test.flv However, when I try to enable s...