It has always been that with ffmpeg, if you want to watermark a video, you needed vhook. vhook as we all know is old and not very useful to windows users and in the newer ffmpeg builds has been replaced with video filters, or –vf.
One of the filters in the new –vf format is a watermark filter, allowing you to watermark your videos during the transcoding procedure.
An example would be: –vf “overlay:10:10” which would tell the overlay to position 10 pixels from the top of the main video, and 10 pixels from the left.
But what if we want to position from the right? Or from the bottom? Or centre the overlay? This is where main_w (main video width), main_h (main video height), overlay_w (overlay video width) and overlay_h (overlay video height) comes in. You can use these variables to represent the certain set sizes of the video and the overlay.
So what if we wanted to position 10 pixels from the right and 10 pixels from the bottom? We would the use: –vf “overlay:main_w-overlay_w-10:main_h-overlay_h-10”.
So how do we specify the overlay? What we do is use the “movie” video filter which would take our png or jpg and convert that into a movie which is then overlaid on top of our existing movie.
See example below:
ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]" outputvideo.flv
Or if you are planing to use your video with a newer version of flash that supports h264 encoded videos, you could use:
ffmpeg.exe -i input.avi -sameq -vcodec libx264 -acodec libfaac -vf "movie=logo.png [watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:main_h-overlay_h-10 [out]" -threads 0 "output-slow.mp4"
qt-faststart.exe output-slow.mp4 output-fast.mp4
Thus giving you a watermarked MPEG4 h264 + AAC file capable of streaming with a flash player.
I am sorry to say that my hosting provider did not like me using the dedicated host i paid for, so that i could run build processes on the server, running build processes on the server.
They killed my entire build environment, and all the builds.
Until i am able to find a new host that is willing to let me create these builds, the ffmpeg builds will remain down.
Anyone looking to get ffmpeg builds for windows for now should look at http://ffmpeg.zeranoe.com/
Sorry, and thank you to everyone who used my builds.
Hi,
sorry for the delay in getting this back up but we have had some server issues over the past few weeks and i have only just got round to getting this sorted.
FFmpeg win32 builds are now being generated nightly again from the ffmpeg git repository.
Some of you may have noticed that some builds have been repeating over the past 2 weeks, this is down to git not being able to recognise that i have manually applied some patches that now made it into the main ffmpeg branch. i have had to undo these packages and i have now created a seperate experimental clone to test experimental patches.
this should now stop any future messups.
ffmpeg windows builds
Most HD is distributed in either WMV-HD or mkv x264. WMV-HD plays by default on the Xbox360 but mkv’s do not and transcoding 1080p can take a long time.
The thing is, you dont need to transcode the entire file, usually just the audio (360 cant play AC3 from within a mp4 container). The x264 that exists within the mkv works perfectly on an Xbox 360 and it takes nothing more than copying the video from one container to another, and re-code the audio.
You simply need:
ffmpeg -i input.mkv -vcodec copy -acodec aac -ab 192k -ac 2 -threads 0 -strict experimental output.mp4
Depending on your version of ffmpeg, you need to replace aac with libfaac.
You can also create a batch script that converts an entire directory of mkv’s to mp4′s for you.
FOR /R “in” %%D in (*.mkv) DO ffmpeg -i “%%D” -vcodec copy -acodec libfaac -ab 192k -ac 2 -threads 0 -strict experimental “out\%%~nD.mp4″
Create a text file called convert-mkv-mp4.bat and paste this line inside, when you run it the script will look inside a directory “in” and outputs the mp4′s in a directory called “out”. You will need to create the two directories yourself before running the script or errors will ensue
If you need recent win32 ffmpeg builds, you need to check my ffmpeg win32 autobuilds page.
I have decided to begin releasing intermittent ffmpeg win32 builds built on my ubuntu virtual machine with mingw32. Releases will be made if and when any features or fixes are added into the ffmpeg code base that make it worth doing a new build.
For now, all builds will be “shared” builds, meaning they will come with all the dll’s and wont just be huge exe’s.
This build includes:
- libmp3lame
- libx264
libfaac (due to licencing issues, libfaac is nonfree and cannot be distributed)
- libvpx (encoder)
- all the standard stuff
[EDIT]Removed direct link[/EDIT]
New location for bookmarking, all builds and build information will appear at http://www.bizzeh.com/ffmpeg/free/