Page 1 of 1

Unable to add Quicktime Broadcaster stream

PostPosted: Sun Mar 25, 2012 11:50 pm
by csholmq
Hey.

I'm streaming a webcam using Quicktime Broadcaster and a manual unicast to 127.0.0.1. I have exported a .sdp file which I'm hosting on the local web server. I can successfully play this in VLC (via URL http://localhost/screen.sdp). The problem is that Serviio refuses to add it as a Live Stream despite my efforts...

Serviio log
  Code:
2012-03-26 00:16:27,478 INFO  [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
2012-03-26 00:16:50,369 WARN  [FeedUpdaterThread] Failed to retrieve online item information for http://127.0.0.1/screen.sdp. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:273)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:208)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:101)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:344)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:87)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:255)
   ... 2 more
2012-03-26 00:16:57,372 WARN  [EventDispatcher] Couldn't send event message for subscription b63daef2-b776-426c-abad-3af959b3eb12, will keep trying until subscription expires


ffmpeg log
  Code:
Honken-MBP:serviio-0.6.2-osx csholmq$ ./Serviio.app/Contents/MacOS/ffmpeg -i "http://localhost/screen.sdp"
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 14 2011 01:44:37 with gcc 4.0.1 (Apple Inc. build 5493)
  configuration: --enable-static --disable-shared --bindir=/tmp/ffmpeg --disable-ffplay --disable-ffserver --enable-libmp3lame --enable-librtmp --enable-pthreads --disable-mmx --extra-ldflags=-L/tmp/static/lib --extra-cflags=-I/tmp/static/include --extra-libs=-lpolarssl
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
[h264 @ 0x12aaa00] Missing reference picture
[h264 @ 0x12aaa00] decode_slice_header error
[h264 @ 0x12aaa00] Missing reference picture
[h264 @ 0x12aaa00] decode_slice_header error
[h264 @ 0x12aaa00] Missing reference picture
[h264 @ 0x12aaa00] decode_slice_header error
[h264 @ 0x12aaa00] Missing reference picture
[h264 @ 0x12aaa00] decode_slice_header error
[h264 @ 0x12aaa00] Missing reference picture
[h264 @ 0x12aaa00] decode_slice_header error
[h264 @ 0x12aaa00] AVC: nal size 4216839
[h264 @ 0x12aaa00] concealing 4000 DC, 4000 AC, 4000 MV errors
[h264 @ 0x12aaa00] AVC: nal size 1476397066
[h264 @ 0x12aaa00] no frame!
[h264 @ 0x12aaa00] AVC: nal size 53929
[h264 @ 0x12aaa00] concealing 2223 DC, 2223 AC, 2223 MV errors
[h264 @ 0x12aaa00] AVC: nal size 553662359
[h264 @ 0x12aaa00] no frame!
[h264 @ 0x12aaa00] mb_type 1810 in P slice too large at 43 24
[h264 @ 0x12aaa00] error while decoding MB 43 24
[h264 @ 0x12aaa00] AVC: nal size -1260369778
[h264 @ 0x12aaa00] concealing 2086 DC, 2086 AC, 2086 MV errors
[h264 @ 0x12aaa00] AVC: nal size -2010821197
[h264 @ 0x12aaa00] no frame!
[h264 @ 0x12aaa00] mb_type 314 in P slice too large at 0 22
[h264 @ 0x12aaa00] error while decoding MB 0 22
[h264 @ 0x12aaa00] AVC: nal size 67370496
[h264 @ 0x12aaa00] concealing 2289 DC, 2289 AC, 2289 MV errors
[h264 @ 0x12aaa00] AVC: nal size -1071856960
[h264 @ 0x12aaa00] no frame!
[sdp @ 0x12a6c00] multiple fourcc not supported
[h264 @ 0x12aaa00] AVC: nal size 24647
[h264 @ 0x12aaa00] concealing 2667 DC, 2667 AC, 2667 MV errors
[h264 @ 0x12aaa00] AVC: nal size 553658807
[h264 @ 0x12aaa00] no frame!
[h264 @ 0x12aaa00] AVC: nal size 11727
[h264 @ 0x12aaa00] concealing 2223 DC, 2223 AC, 2223 MV errors
[h264 @ 0x12aaa00] AVC: nal size 553662359
[h264 @ 0x12aaa00] no frame!
[h264 @ 0x12aaa00] AVC: nal size 20550
[h264 @ 0x12aaa00] concealing 1778 DC, 1778 AC, 1778 MV errors
[h264 @ 0x12aaa00] AVC: nal size 553652575
[h264 @ 0x12aaa00] no frame!
[h264 @ 0x12aaa00] AVC: nal size 21930
[h264 @ 0x12aaa00] concealing 1334 DC, 1334 AC, 1334 MV errors
[h264 @ 0x12aaa00] AVC: nal size 553653463
[h264 @ 0x12aaa00] no frame!
[sdp @ 0x12a6c00] Estimating duration from bitrate, this may be inaccurate

Seems stream 1 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 0.08 (1/12)
Input #0, sdp, from 'http://localhost/screen.sdp':
  Metadata:
    title           : QuickTime
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Audio: aac, 48000 Hz, mono, s16
    Stream #0:1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x800, 0.08 tbr, 90k tbn, 180k tbc


.sdp file
  Code:
v=0
o=- 52 2990506333 IN IP4 127.0.0.0
s=QuickTime
t=0 0
a=range:npt=now-
m=audio 4321 RTP/AVP 96
c=IN IP4 127.0.0.1
b=AS:79
a=rtpmap:96 mpeg4-generic/48000/1
a=fmtp:96 profile-level-id=15;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1188
a=mpeg4-esid:101
m=video 1234 RTP/AVP 97
c=IN IP4 127.0.0.1
a=rtpmap:97 X-QT/90000
a=cliprect:0,0,800,1280
a=framesize:97 1280-800


Any tips?

Re: Unable to add Quicktime Broadcaster stream

PostPosted: Mon Mar 26, 2012 12:03 pm
by zip
SDP file format is not supported. You'd have to stream it as rtp/rtsp/http streams

Re: Unable to add Quicktime Broadcaster stream

PostPosted: Mon Mar 26, 2012 1:04 pm
by csholmq
Ok, thanks for the heads up. However, how am I suppose to stream it as RTP without the .SDP? That would require some form of automatic unicast right? WIth a proper streaming server and all.

Trying to stream a webcam from my Mac. Any tips on software to use? Maybe FMLE would suffice? That would produce a .flv (or .f4v). Can I stream that with Serviio or do I need to stream to some online server and loop it back? Would be nice to keep this on the LAN.

Re: Unable to add Quicktime Broadcaster stream

PostPosted: Tue Mar 27, 2012 12:12 pm
by zip
NOt sure, I'm just basing it on this line

  Code:
Input #0, sdp, from 'http://localhost/screen.sdp':

The bit after Input.

Can you open the sdp file in a browser, it seems to be only descriptive format http://en.wikipedia.org/wiki/Session_De ... n_Protocol
It might internally point to a rtsp stream

Re: Unable to add Quicktime Broadcaster stream

PostPosted: Tue Mar 27, 2012 9:32 pm
by csholmq
I sort of cracked the nut. I installed Darwin Streaming Server and set up an automatic unicast from QT Broadcaster. Then I added the rtsp://mycomputer/stream.sdp in Serviio and voilá!

Well, it's not all peachy tbh. Streaming live really stresses my laptop so the stream isn't really stable. Guess I'll have to lower the resolution. I'm just curious over how Apple Airplay streams so nicely to the Apple TV. Any insight?

Re: Unable to add Quicktime Broadcaster stream

PostPosted: Wed Mar 28, 2012 12:52 pm
by zip
csholmq wrote: I'm just curious over how Apple Airplay streams so nicely to the Apple TV. Any insight?

Closed system... easy.

Re: Unable to add Quicktime Broadcaster stream

PostPosted: Wed Mar 28, 2012 4:55 pm
by csholmq
Yeah. I researched it a bit and it's not really pure streaming, more like mirroring. Would love to find an open source flash streaming server and stream to that.