Code: Select all
libvlc_instance_t * inst;
libvlc_media_player_t *mp;
libvlc_media_t *m;
inst = libvlc_new(0, NULL);
m = libvlc_media_new_location(inst, "screen://");
libvlc_vlm_add_broadcast(inst, "strm", "screen://", "#transcode{vcodec=mp1v,vb=800}:standard{access=http,mux=mpg,dst=127.0.0.1:8080}", 0, NULL, 1, 0);
libvlc_vlm_play_media(inst, "strm");
libvlc_release(inst);
Command line prints out:
I tryed to lunch the same screen transcode in VLC and it worked. What is the problem?[0250379c] access_output_http access out: Consider passing --http-host=IP on the command line instead.
[024a5f64] mux_ps mux: Open