One of the biggest challenges with making a video in LibAV/FFmpeg is the lack of title cards. Using the GIMP (or ImageMagick) you can make some very awesome title cards and convert them into a static video clip to be mixed in with your other clips.
If you rememeber the camera shot clips at 1080p 24fps h264. We encoded the clips to 720p 24fps with Mpeg2Video. An older video format, but gives us the advantage of using the “cat” command.
In the GIMP all you have to remember is to match the resolution. Everything else will be done with LibAV. Here is the image I made for this blog:
When we make this clip there are two things to keep in mind. First, if there is no audio in this clip the following video clips’ audio will be offset. Second, if the AV sync is off on this clip it was also effect the following clips. This clip will be exactly 4 seconds. Let’s make some noise… er silence:
This will convert solid zeros to pcm making a blank (quiet) track of 4 seconds with the same bitrate of the other clips.
The “loop” command is what duplicates the single frame into 24 fps. Also note the “-t 4″ again. We now how a video and audio clip of the same length. I think you can see where we go from here.
Now when you cat this clip with the others it will merge perfectly.
If you have ImageMagick installed you can build a simple title image with this command:
It doesn’t look as good as the GIMP and I haven’t figured out a good way to center the text yet, but it works in a pinch. Perhaps someone better at ImageMagick can help out with that.