VLCJ "Media Options"
Posted: 06 Jun 2011 23:43
I am experimenting with streaming to a file and wanted to know where I could find documentation on the "options." The source is video from a camera (see mediaUrl below). I tried copying the output string from the VLC player and setting that to my options, but it didn't work (1st String [] options). I made up the second String [] options, looking at an example.
Is there an explanation of the options (vcodec, vb, fps, mux, etc), possible values (h264, 0, 2, ts, ps, etc), and how to set them (what the final string looks like, where to put colons, braces, etc)? If so, where?
Thanks
String mediaUrl = "rtsp://@172.30.20.220";
(Created the file, but nothing played back):
String [] options = {":sout=#transcode{vcodec=h264,vb=0,fps=2,scale=0,acodec=none}:file{dst=U:\\user1\\cohustream2.mp4} "};
(Appears to work, but HOW?):
String [] options = {":sout=#standard{mux=ts,access=file,dst=U:\\user1\\cohustream3standard.mp4} "};
Is there an explanation of the options (vcodec, vb, fps, mux, etc), possible values (h264, 0, 2, ts, ps, etc), and how to set them (what the final string looks like, where to put colons, braces, etc)? If so, where?
Thanks
String mediaUrl = "rtsp://@172.30.20.220";
(Created the file, but nothing played back):
String [] options = {":sout=#transcode{vcodec=h264,vb=0,fps=2,scale=0,acodec=none}:file{dst=U:\\user1\\cohustream2.mp4} "};
(Appears to work, but HOW?):
String [] options = {":sout=#standard{mux=ts,access=file,dst=U:\\user1\\cohustream3standard.mp4} "};