Okay…timeout.

September 10th, 2007 by heathenx

For the last couple of days I have been experimenting with video encoding again. Presently, the screencasters offer an H.264/MP3 AVI file for download. These files, so far, have been working out great for us. I hope they have for you too. Also, we rip that into an FLV file for those who wish to watch our tutorials on-line. For a lack of a better description, FLV has always been the retarded cousin of our AVI files. The quality is functional but know where near H.264.

Recently, Adobe had announced the new Flash Player with H.264 support (codenamed MovieStar). I was pretty excited when I read the news for the first time. However, it’s not going to be a cake walk for Richard and I. I’m fairly certain that we will have to change containers from AVI to MP4 to get our videos to play correctly with the Flash plug in.

So far I have been playing around with MP4Box. With it I can dump the audio and video track out of our AVI file and re-assemble it into an MP4 container. It literally takes about 10 seconds to convert the H.264 AVI to H.264 MP4. The problem though is that the audio and video get out of sync. Furthermore, I have not tailored the new MP4 file for a streaming download. I know how to hint the MP4 file but I do not know how to encode with a fast startup. Just when I get a handle on Mencoder, I am reminded that I don’t know jack about it. Perhaps FFMpeg has something in it’s toolbox that I could use.

So I am back to the basics again. I am trying to figure out if we can do away with Flash. What if we provided an embedded H.264 screencast that used the Quicktime plug in instead? (mplayer-plugin for the Linux folks) So far the Quicktime plug in woks great on Windows and Linux with a local file. Until I can figure out how to encode for streaming though, I’m dead in the water. For the next few days this is what I’ll be researching. I’ll be taking a break from screencasting while I do this. Stay tuned and we’ll keep you posted on our progress…if we make any. It’s a probability that I may come full circle right back to FLV’s.

4 Responses to “Okay…timeout.”

  1. Rob A Says:

    No suggestions from me, as I never use the embedded player. Every time I do (firefox or IE) it chews up all the machine memory until it is unusable.

    For fun, I tried to run one of your screencasts through ffmpeg to make an mp4, and found the audio was OK for the intro music but chipmunked when the narration started. Are these at two different rates in the source?

    -Rob A>

  2. heathenx Says:

    Hi Rob.

    No, there are not two different frame rates in the source. We cannot join our videos together if the frame rate is even slightly different.

    The ffmpeg command that I have tried to convert our avi’s to mp4′s reads this way:
    ffmpeg -i ep002.avi -qscale 2 -b 800 -vcodec mpeg4 ep002.mp4
    However, that pretty much triples the file size. :(

    I’m still toying around with things. No real progress yet but I have learned some things.

  3. Rob A Says:

    Thanks – That gives pretty good quality!

    On a similar topic, what are you using for capture on Linux?

  4. heathenx Says:

    I use recordmydesktop pretty much exclusively now. I think even Richard has switched over to it. Another great alternative (there are many on Linux) is xvidcap.

    http://recordmydesktop.iovar.org/about.php
    http://xvidcap.sourceforge.net/

Leave a Reply