libvlc stream part of screen
问题 I want to stream a part of screen using vlc library. I wrote a small example: #include <iostream> #include <cstdlib> #include <vlc/vlc.h> int main(int argc, char**argv) { libvlc_instance_t * inst = libvlc_new(argc, argv); libvlc_vlm_add_broadcast(inst, "mybroad", "screen://", "#transcode{vcodec=h264, venc=x264,vb=0,scale=0, acodec=mpga,ab=128,channels=2, samplerate=44100}:http{mux=ffmpeg{mux=flv}, dst=:7777/}", 0, NULL, 1, 0); libvlc_vlm_play_media(inst, "mybroad"); std::cout << "ready" <<