QuickTime

Creating stream-able video

I spent much to much time trying to figure out the right combination of video/audio encodings that would would from an RTSP streaming server (went with a RealServer demo, for now) to a variety of clients (QuickTime Player, VLC, various phones, etceteras.)

First, VLC is a champ. Every time I tried a new streaming server, VLC could play the stream with video and audio. QuickTime Player was not so kind. Even the phone we were streaming to — the Nokia N95 (tech specs) — could play streams that QuickTime Player could not.

I tried a variety of tools, from the venerable ffmpeg to QuickTime Player’s export functionality to create stream-able videos (mainly for QuickTime, since it was being very picky). The tools I used were the following:

Here is a simple bash loop I made to iterate over .mov’s in the current directory and create MPEG4 video, MPEG4 audio (AAC LC), in an MPEG4 container that was hinted. You should set FRAMERATE and SIZE (as “WxH”) as environment variables. Note that the first line has -ac 1 which sets the audio to mono. Also, edit the -qscale to your liking (or remove it).

Code (bash)
  1. for i in `ls *mov –color=never`; do
  2.   ffmpeg -i $i -ac 1 -vn "$i.wav"
  3.   faac –mpeg-vers 4 –tns -o "$i.aac" "$i.wav"
  4.   ffmpeg -re -i "$i" -pass 1 -passlogfile "${i}pass" -vcodec mpeg4 -r $FRAMERATE -s $SIZE -qscale 8 -an "$i.m4v"
  5.   rm -f "$i.m4v"
  6.   ffmpeg -re -i "$i" -pass 2 -passlogfile "${i}pass" -vcodec mpeg4 -r $FRAMERATE -s $SIZE -qscale 8 -an "$i.m4v"
  7.   mp4creator -c "$i.m4v" -optimize -rate=$FRAMERATE "$i.mp4"
  8.   mp4creator -hint=1 "$i.mp4"
  9.   mp4creator -c "$i.aac" -interleave -optimize "$i.mp4"
  10.   mp4creator -hint=3 "$i.mp4"
  11.   mp4creator -list "$i.mp4"
  12. done

OBT
QuickTime
cli apps

Comments (0)

Permalink

MPEG4 Streaming whoas

I should right a whole post about the lack of robust video streaming servers, but I’ll save that for another day. For now, I’ve settled on RealServer (RS) (which is the commercialized version of Real’s open source Helix Server), and video actually streams to a plethora of apps, including: QuickTime Player (QT), VideoLan Client (VLC), various phones, etceteras.

So, what’s the deal with MPEG4 streaming?

Continue Reading »

Linux
QuickTime

Comments (0)

Permalink

built-in iSight on my MBP can’t record video

Somehow, my MBP’s install is messed up, and the built-in iSight camera cannot be read from in video mode — but yet, still pictures work. I discovered this, as I could not get QuickTime Broadcaster’s preview view to show any video (or for it to broadcast). Then, I discovered that iChat cannot initiate any video chats with anyone.

I have no clue how this problem started. Part of me wants to blame Darwin Streaming Server. I have it turned off, so I no it’s not a conflict with it running, but part of me wonders if just installing it messed something up.

I really don’t want to reinstall OSX. *sigh*

MacBook Pro
OSX
QuickTime

Comments (0)

Permalink