ciphor / ffmpeg4ios

ffmpeg library migrated onto iOS
Other
82 stars 27 forks source link

connecting to my RTSP stream #4

Open mannyvw opened 11 years ago

mannyvw commented 11 years ago

Hi

Am having trouble connecting to my RTSP stream from a digital camera I am working with, i call RtspParser::create, which makes all the right noises until it reaches SETUP, the server then returns RTSP/1.0 400 Bad Request, i would have liked to debug into RtspParser, but the iPlayer iOS app only supplies header & a library so i can't ? Any ideas ? Other rtsp seem to connect ok? and this rtsp feed connects ok using other iOS apps (like BUZZ Player) so i know feed is OK. Thanks

Connect to 192.168.42.1 on 554. Connect Succeeded. Set NonBlock. OPTIONS rtsp://192.168.42.1/AmbaStreamTest RTSP/1.0

CSeq: 0

User-Agent: RTSP-Player v20110920

RTSP/1.0 200 OK

CSeq: 0

Date: Thu, Jan 01 1970 00:05:13 GMT

Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

DESCRIBE rtsp://192.168.42.1/AmbaStreamTest RTSP/1.0

CSeq: 1

Accept: application/sdp

User-Agent: RTSP-Player v20110920

RTSP/1.0 200 OK

CSeq: 1

Date: Thu, Jan 01 1970 00:05:13 GMT

Content-Base: rtsp://192.168.42.1/AmbaStreamTest/

Content-Type: application/sdp

Content-Length: 509

v=0

o=- 63030000 1 IN IP4 192.168.42.1

s=Ambarella streaming

i=Ambarella streaming

t=0 0

a=tool:Ambarella streaming 2012.03.12

a=type:broadcast

a=control:*

a=range:npt=0-

a=x-qt-text-nam:Ambarella streaming

a=x-qt-text-inf:Ambarella streaming

m=video 0 RTP/AVP 96

c=IN IP4 0.0.0.0

b=AS:600

a=rtpmap:96 H264/90000

a=fmtp:96 packetization-mode=1;profile-level-id=4D4028;sprop-parameter-sets=AAAAASjuPIA=,AAAAASdNQCiaYoNj9gIgAAB9IAAdTByAAGmYAA0y9d5cZAADTMAAaZeu8uHcIhFBGAAAAA==

a=control:track1

RTSP/1.0 200 OK

CSeq: 1

Date: Thu, Jan 01 1970 00:05:13 GMT

Content-Base: rtsp://192.168.42.1/AmbaStreamTest/

Content-Type: application/sdp

Content-Length: 509

v=0

o=- 63030000 1 IN IP4 192.168.42.1

s=Ambarella streaming

i=Ambarella streaming

t=0 0

a=tool:Ambarella streaming 2012.03.12

a=type:broadcast

a=control:*

a=range:npt=0-

a=x-qt-text-nam:Ambarella streaming

a=x-qt-text-inf:Ambarella streaming

m=video 0 RTP/AVP 96

c=IN IP4 0.0.0.0

b=AS:600

a=rtpmap:96 H264/90000

a=fmtp:96 packetization-mode=1;profile-level-id=4D4028;sprop-parameter-sets=AAAAASjuPIA=,AAAAASdNQCiaYoNj9gIgAAB9IAAdTByAAGmYAA0y9d5cZAADTMAAaZeu8uHcIhFBGAAAAA==

a=control:track1

SETUP rtsp://192.168.42.1/AmbaStreamTest/ RTSP/1.0

CSeq: 2

Transport: RTP/AVP/TCP;unicast;interleaved=0-1

RTSP/1.0 400 Bad Request

Date: Thu, Jan 01 1970 00:05:13 GMT

Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

can not get session id or video ssrc.

jmmoody commented 11 years ago

HI mannyvw,

I am getting exactly the same error and the same error messages. Have you made in progress in figuring out what is causing this issue ?

Thanks

mannyvw commented 11 years ago

Hi

I gave up on this decoder in the end, found a better example with full code here https://github.com/dropcam/dropcam_for_iphone/blob/master/lib/DecoderWrapper/ , or could write your own using the ffmpeg examples. I had to modify this code slightly as the latest version of ffmpeg had slightly different function calls.

good luck.