Hi

Is it possible to output multiple sdp files from ffmpeg command?

I'm trying to use ffmpeg to trancode multiple outputs at

.\ffmpeg -protocol_whitelist file,udp,rtp,tcp -i  
"rtsp://IpCamera4k/media/video1"

-c:v libx264 -vf scale=1280:720 -r 5 -maxrate 500000 -bufsize 300000 -minrate 
500000 -b:v 500000  -muxdelay 0.1 -threads 4 -sc_threshold 0 -f rtp 
rtp://172.16.250.156:4321/camera1.mp4 -sdp_file c:\test\camera1.sdp

-c:v libx264 -vf scale=540:360  -r 5 -maxrate 500000 -bufsize 300000 -minrate 
500000 -b:v 500000  -muxdelay 0.1 -threads 4 -sc_threshold 0 -f rtp rtp:
//172.16.250.156:4322/camera2.mp4 -sdp_file c:\test\camera2.sdp

When I run this  Camera1.sdp file is never generated, instead I get one sdp 
file 'camera2.sdp' but it contains 2 video streams in it:

SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=Sony RTSP Server
t=0 0
a=tool:libavformat 57.56.100
m=video 4321 RTP/AVP 96
c=IN IP4 172.16.250.156
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
m=video 4322 RTP/AVP 96
c=IN IP4 172.16.250.156
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1

If I host this sdp on Wowza and playback the rtsp stream in vlc it will only 
play the last output from the above code (camera2), it doesn't recognise 
(camera1)..

Is there a way for rtsp clients to decode both video streams from this file 
above ? OR Could someone please help as to how I can get my ffmpeg command 
above to output 2 sdp files?

Thanks




________________________________
Michael Bullock | Senior Software Developer | NEC Europe Ltd. | Athene, Odyssey 
Business Park, West End Road, South Ruislip, Middlesex, HA4 6QE, GB | t: 
+442088362330 | m: +447966933438 | w: www.nec.com

The contents of this email are intended for the use of the individual(s) or 
entity named above and may contain information that is privileged and/or 
confidential. If you are not the intended recipient, you are not authorised to 
make any use of it. In such case, please notify the sender and immediately 
delete the message from your system. The message content may contain personal 
views which are not the views of the company unless specifically stated. All 
liability for loss or damage caused by viruses is excluded. NEC Europe Ltd. | 
Registered Office: Athene, Odyssey Business Park, West End Road, South Ruislip, 
Middlesex HA4 6QE | Registered in England 2832014
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to