Page 1 of 1

Simple code couse devision by 0 when transcode the screen

Posted: 18 Nov 2016 12:51
by vlad-29
Hello, I'm trying to make frames broadcast from imem but i have several errors so i tryed to broadcast the screen and got division by 0 error with this code:

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);
The program starts but I got error "(libstream_out_transcode_plugin.dll) in FF_3DSeg_d.exe: 0xC0000094: Integer division by zero."
Command line prints out:
[0250379c] access_output_http access out: Consider passing --http-host=IP on the command line instead.
[024a5f64] mux_ps mux: Open
I tryed to lunch the same screen transcode in VLC and it worked. What is the problem?

Re: Simple code couse devision by 0 when transcode the screen

Posted: 18 Nov 2016 19:22
by RĂ©mi Denis-Courmont
Known bug with screen:// on Windows. Try VLC 2.2.5 or later.