Quantcast

rtp streaming: audio and video combined, gives bad request

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

rtp streaming: audio and video combined, gives bad request

cozzn
Hi all,

I'm trying to stream rtp from ffmpeg to DSS. Audio and video work  
separately but not when combined. I get a 'bad request' error.  So my  
guess is a bad SDP file is generated. Below you find the RTSP reply  
and the ffmpeg command line. I already changes the rtpmap for audio  
from 96 to 97 in the DSDP file.
thanks for all help,

Philippe.



FFMPEG:
/ffmpeg -fflags +genpts  -re -i /data/samples/streaming_2.mp4  -vcodec  
copy -an -f rtp rtp://10.100.4.4:20000  -vn -acodec copy -f rtp rtp://
10.100.4.4:30000 -newaudio
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-libfaac --enable-libfaad --enable-gpl
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on May 13 2009 20:34:02, gcc: 4.1.2 20061115 (prerelease)  
(Debian 4.1.1-21)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/data/samples/streaming_2.mp4':
  Duration: 00:02:21.80, start: 0.000000, bitrate: 334 kb/s
    Stream #0.0(und): Video: mpeg4, yuv420p, 320x240 [PAR 9:8 DAR  
3:2], 15 tbr, 15 tbn, 15 tbc
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16
    Stream #0.2(und): Data: rtp  / 0x20707472
    Stream #0.3(und): Data: rtp  / 0x20707472
Output #0, rtp, to 'rtp://10.100.4.4:20000':
    Stream #0.0(und): Video: mpeg4, yuv420p, 320x240 [PAR 9:8 DAR  
3:2], q=2-31, 90k tbn, 15 tbc
Output #1, rtp, to 'rtp://10.100.4.4:30000':
    Stream #1.0(und): Audio: libfaac, 44100 Hz, stereo, s16
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #1.0
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
t=0 0
s=No Name
a=tool:libavformat 52.31.0
m=video 20000 RTP/AVP 96
c=IN IP4 10.100.4.4
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=1;  
config
=
000001B001000001B58913000001000000012000C4F8484588007D0A041E1463000001B24C61766335312E34302E34
m=audio 30000 RTP/AVP 96
c=IN IP4 10.100.4.4
a=rtpmap:96 MPEG4-GENERIC/44100/2
a=fmtp:96 profile-level-id=1;mode=AAC-
hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=1210

Press [q] to stop encoding
frame=  201 fps= 15 q=-1.0 size=     435kB time=13.10 bitrate=  
272.0kbits/s


RTSP communication:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 0.0.0.0
t=0 0
a=tool:libavformat 52.31.0
a=control:*
m=video 0 RTP/AVP 96
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=1;  
config
=
000001B001000001B58913000001000000012000C4F8484588007D0A041E1463000001B24C61766335312E34302E34
a=control:trackID=1
m=audio 0 RTP/AVP 97
a=rtpmap:97 MPEG4-GENERIC/44100/2
a=fmtp:97 profile-level-id=1;mode=AAC-
hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=1210
a=control:trackID=2

SETUP rtsp://10.100.4.4/test2.sdp/trackID=1 RTSP/1.0
x-wap-profile: "http://nds1.nds.nokia.com/uaprof/NN95-1r100.xml"
Transport: RTP/AVP;unicast;client_port=25122-25123;mode=play
User-Agent: RealMedia Player/mc.30.45.01 (s60; epoc_av30_armv5)
CSeq: 3

RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/
beta; )
Cseq: 3
Cache-Control: no-cache
Session: 5734140412409108308
Date: Fri, 12 Jun 2009 14:38:27 GMT
Expires: Fri, 12 Jun 2009 14:38:27 GMT
Transport: RTP/
AVP
;unicast
;mode
=play;source=10.100.4.4;client_port=25122-25123;server_port=6970-6971

SETUP rtsp://10.100.4.4/test2.sdp/trackID=2 RTSP/1.0
x-wap-profile: "http://nds1.nds.nokia.com/uaprof/NN95-1r100.xml"
Transport: RTP/AVP;unicast;client_port=9458-9459;mode=play
Session: 5734140412409108308
User-Agent: RealMedia Player/mc.30.45.01 (s60; epoc_av30_armv5)
CSeq: 4

RTSP/1.0 400 Bad Request
Server: DSS/5.5.5 (Build/489.16; Platform/Linux; Release/Darwin; state/
beta; )
Cseq: 4
Session: 5734140412409108308
Connection: Close
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Loading...