If I do something like this:
Code: Select all
vlc -vvv -L file:///path/to/file.extension --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:rtp{mux=ts,dst=239.255.12.42,port=7374,sdp=file:///path/to/file.sdp,name="TestStream"}'
In the other hand if I try to remove the mux field:
Code: Select all
vlc -vvv -L file:///path/to/file.extension --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:rtp{dst=239.255.12.42,port=7374,sdp=file:///path/to/file.sdp,name="TestStream"}'
09:42:14 Groupsock(-1: 239.255.12.42, 1232, 255): failed to join group: setsockopt(IP_ADD_MEMBERSHIP) error: Invalid file descriptor
The flow is also impossible to open from VLC as client, it is just stuck at prebuffering.
Can anybody help me? Is it possible to generate an SDP and a "proper" multicast flow at the same time? Why is the sdp unable to be opened?
By the way, the main idea of all this is generating the SDP to be accessed via RTSP as some devices (mobile phones) are unable to interact with udp://@ rtp://@ urls. Any alternative to this proposal will also be welcomed. I have read solutions based on generating an SDP file and serving it with Darwin Streaming but this is an unicast solution.
Thank you!
P.S. Sorry for my English.