ffmpeg - output multiple sdp files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ffmpeg - output multiple sdp files

Michael Bullock
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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg - output multiple sdp files

Carl Eugen Hoyos-2
2018-05-02 18:28 GMT+02:00, Michael Bullock <[hidden email]>:

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

No, only one sdp file per ffmpeg command.

I believe multiple streams in one sdp should be supported
but this may be buggy.

> 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.

Please remove this from mails sent to a public mailing
list.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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