home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
iPhone Live TV Streaming
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cheezey" data-source="post: 549872" data-attributes="member: 10350"><p>I thought I'd summarise my efforts to date to get live TV streamed to the iPhone as part of iPiMP, some background first......</p><p></p><p>The requirements are well known, Apple have documented the video/audio formats supported on the iPhone as well as building an easy solution to handle the transport (<a href="http://en.wikipedia.org/wiki/HTTP_Live_Streaming" target="_blank">HTTP Live Streaming</a>). HTTP Live Streaming is based on small video segments of a short duration (e.g. 10 secs) from a media source and an associated playlist file which details the duration of the segments, the order in which to play them, titles, etc. etc.</p><p></p><p>The way I saw this working with a TV server stream was:</p><p></p><p><strong>TV Server RTSP stream -> FFMpeg transcoding -> Stream Segmenter -> web server.</strong></p><p></p><p>Apple also provide a video stream segmenter (if you're a member of the Apple development program) which chops an input media stream into small chunks and creates the associated playlist file. There are also a couple of open source equivalents written in C <a href="http://svn.assembla.com/svn/legend/segmenter/" target="_blank">here</a> and <a href="http://github.com/carsonmcdonald/HTTP-Live-Video-Stream-Segmenter-and-Distributor" target="_blank">here</a>. These available segmenters run on MacOS or *nix. We however are running on windows and there are no equivalent segmenters for that platform. So in order to try to make use of HTTP Live Streaming I have tried the following:</p><ol> <li data-xf-list-type="ol">Write a stream segmenter in .Net using the stream object and output segments based on number of bytes read. This creates segments as required but due to the nature of video encoding the durations of each segment is different and therefore doesn't comply with the HTTP Live Streaming requirements.</li> <li data-xf-list-type="ol">Compile the existing open source segmenters in MinGW. I eventually managed to get them to compile but although the resulting executable runs on windows it outputs some empty segments and does not correctly create the playlist file.</li> <li data-xf-list-type="ol">Port the existing open source segmenters to C#. As the segmenters are linked to FFMpeg I had to find a FFMpeg .Net wrapper. There are a few of these out there but none are current or maintained. I tried to update the most promising of these but it was way over my development expertise.</li> <li data-xf-list-type="ol">Use FFMpeg to create the segments using the start time and duration parameters and manually create the playlist file. This also didn't work as the output segments do not comply with the HTTP Live Streaming requirements.</li> </ol><p></p><p>When I first started looking at live TV on the iPhone I tried VLC. That again though does not support streaming to the iPhone.</p><p></p><p>I have read about <a href="http://blogs.iis.net/chriskno/archive/2009/12/01/faqs-on-using-iis-smooth-streaming-with-the-apple-iphone.aspx" target="_blank">Microsofts plans to support HTTP Live Streaming to the iPhone</a> with the next release of IIS Media Services. This may provide an answer. If they just update their Silverlight encoding utility to output compliant segments and playlist and accept a stream as an input then we'd be good to go. If not, and you need to use IIS Media Services then that'd require IIS7+ which would mean it'd only work on Windows 7.</p><p></p><p>So here's an appeal for help! Does anyone have any ideas about any of the options above? Does anyone have any other ideas that I've not looked at? Does anyone have experience of coding with FFMpeg and could write a windows segmenter?</p><p></p><p>I've been concentrating on this feature for iPiMP since v4.0.0 was released but have not got any further forward. I need to start going back to iPiMP development to support the up coming MP 1.1 release and start work on the other features queued for iPiMP so any help/advice/divine intervention would be greatly appreciated.</p></blockquote><p></p>
[QUOTE="cheezey, post: 549872, member: 10350"] I thought I'd summarise my efforts to date to get live TV streamed to the iPhone as part of iPiMP, some background first...... The requirements are well known, Apple have documented the video/audio formats supported on the iPhone as well as building an easy solution to handle the transport ([URL="http://en.wikipedia.org/wiki/HTTP_Live_Streaming"]HTTP Live Streaming[/URL]). HTTP Live Streaming is based on small video segments of a short duration (e.g. 10 secs) from a media source and an associated playlist file which details the duration of the segments, the order in which to play them, titles, etc. etc. The way I saw this working with a TV server stream was: [B]TV Server RTSP stream -> FFMpeg transcoding -> Stream Segmenter -> web server.[/B] Apple also provide a video stream segmenter (if you're a member of the Apple development program) which chops an input media stream into small chunks and creates the associated playlist file. There are also a couple of open source equivalents written in C [URL="http://svn.assembla.com/svn/legend/segmenter/"]here[/URL] and [URL="http://github.com/carsonmcdonald/HTTP-Live-Video-Stream-Segmenter-and-Distributor"]here[/URL]. These available segmenters run on MacOS or *nix. We however are running on windows and there are no equivalent segmenters for that platform. So in order to try to make use of HTTP Live Streaming I have tried the following: [LIST=1] [*]Write a stream segmenter in .Net using the stream object and output segments based on number of bytes read. This creates segments as required but due to the nature of video encoding the durations of each segment is different and therefore doesn't comply with the HTTP Live Streaming requirements. [*]Compile the existing open source segmenters in MinGW. I eventually managed to get them to compile but although the resulting executable runs on windows it outputs some empty segments and does not correctly create the playlist file. [*]Port the existing open source segmenters to C#. As the segmenters are linked to FFMpeg I had to find a FFMpeg .Net wrapper. There are a few of these out there but none are current or maintained. I tried to update the most promising of these but it was way over my development expertise. [*]Use FFMpeg to create the segments using the start time and duration parameters and manually create the playlist file. This also didn't work as the output segments do not comply with the HTTP Live Streaming requirements. [/LIST] When I first started looking at live TV on the iPhone I tried VLC. That again though does not support streaming to the iPhone. I have read about [URL="http://blogs.iis.net/chriskno/archive/2009/12/01/faqs-on-using-iis-smooth-streaming-with-the-apple-iphone.aspx"]Microsofts plans to support HTTP Live Streaming to the iPhone[/URL] with the next release of IIS Media Services. This may provide an answer. If they just update their Silverlight encoding utility to output compliant segments and playlist and accept a stream as an input then we'd be good to go. If not, and you need to use IIS Media Services then that'd require IIS7+ which would mean it'd only work on Windows 7. So here's an appeal for help! Does anyone have any ideas about any of the options above? Does anyone have any other ideas that I've not looked at? Does anyone have experience of coding with FFMpeg and could write a windows segmenter? I've been concentrating on this feature for iPiMP since v4.0.0 was released but have not got any further forward. I need to start going back to iPiMP development to support the up coming MP 1.1 release and start work on the other features queued for iPiMP so any help/advice/divine intervention would be greatly appreciated. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
iPhone Live TV Streaming
Contact us
RSS
Top
Bottom