Code: Select all
m = libvlc_media_new_location (inst, "dshow://");
CStringA opt_out_str;
opt_out_str.Format(":sout=#transcode{width=640,height=480,vcodec=h264,vb=800,scale=1,fps=25.1f,acodec=aac,ab=128,channels=2,samplerate=44100} :duplicate{dst=std{access=file,mux=ts,dst=c:\\out.ts}}",
libvlc_media_add_option(m,opt_out_str.GetString());
Code: Select all
:duplicate{dst=display,dst=std{access=file,mux=ts,dst=c:\\out.ts}}
how can i display the camera raw image while encoding it? how to write the option string?