input sdp information from file with VLCJ
Posted: 20 Aug 2014 14:22
Hey there
Looking around here got me to try several things.
It is my first time trying to input options into the mediaplayer so i do not know the correct syntax here.
Plz help withe the following:
Im using libstreamer together with android to send a rtp stream to vlc and a PC. If im saving the sdp in a file.sdp and opens it with vlc it works. Video and audio.
The first thing i tried were to open the same file like:
did not work. So the next thing were to look into the options and ended up with:
mediaPlayer.playMedia(mrl, option);
2 questions: how to define the mrl? video port 5006 and audio port 5010.
How do i load in the sdp file or are there a third option to just like "click" the file.sdp?
.sdp informations
Looking around here got me to try several things.
It is my first time trying to input options into the mediaplayer so i do not know the correct syntax here.
Plz help withe the following:
Im using libstreamer together with android to send a rtp stream to vlc and a PC. If im saving the sdp in a file.sdp and opens it with vlc it works. Video and audio.
The first thing i tried were to open the same file like:
Code: Select all
String mrl = "C:\\folder\\ws.sdp";
p.playMedia( mrl );
mediaPlayer.playMedia(mrl, option);
2 questions: how to define the mrl? video port 5006 and audio port 5010.
How do i load in the sdp file or are there a third option to just like "click" the file.sdp?
Code: Select all
mediaPlayer.playMedia("rtp://@:5006/",
"sout=#transcode{vcodec=h264}",
":sout=#rtp{sdp=file:C:\\folder\\ws.sdp}",
":no-sout-rtp-sap",
":no-sout-standard-sap",
":sout-all",
":rtp-caching=100",
":sout-keep");
Code: Select all
v=0
o=- 0 0 IN IP4 null
s=Unnamed
i=N/A
c=IN IP4 10.251.1.125
t=0 0
a=recvonly
m=audio 5010 RTP/AVP 96
a=rtpmap:96 AMR/8000
a=fmtp:96 octet-align=1;
a=control:trackID=0
m=video 5006 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=428014;sprop-parameter-sets=Z0KAFNoFB+gG0KE1,aM4G4g==;
a=control:trackID=1