Sunday 27 February 2011

Streaming audio to iPhone

Spent a bit of time trying to find an easy way to stream audio (in my case the "stereo mix"/"what you hear" of my onboard sound) to iPhone, and found it surprisingly unstraightforward.

Long story short, got a solution working with the following components:

  • Icecast2
  • edcast (used to be called oddcast)
  • nscrt.dll and enc_aaplus.dll copied from WinAmp installation into edcast installation for HE-AAC support
  • FStream iPhone App (although the streams can be played directly in Safari on iPhone)
I have edcast pumping four different streams - mono and stereo at various bitrates, to give me options depending on listening and network conditions.

DVBViewer, EVR, Handbrake-Encoded AVC

Odd behaviour using DVBViewer to play back AAC/h.264 videos encoded using Handbrake. Container format doesn't seem to matter - tried m4v and remuxed to mkv, same result. Doesn't happen on all videos.

Setup:
XP SP3, DVBViewer 4.6.0.1, Haali media splitter, MainConcept AVC decoder, Enhanced Video Rendered (EVR)

Symptoms:
DVBViewer takes about 30 seconds to start playing the file.
Resizing the DVBViewer window results in aspect ratio changing in video frame, hard to tell what the relationship is, but not correct. Can easily get a long narrow strip of video.

Observations:
Video plays fine in Graphedit using the same filter chain - no delay, aspect ratio correct.
Video plays fine on Windows 7 machine.
Changing AVC decoder makes no difference.
Changing to Overlay mixer instead of EVR fixes the issue.

Workaround:
Set Video B option in DVBViewer to use Overlay mixer and set "Auto B" condition to ".m4v"
- not ideal, but works for now