Simple code couse devision by 0 when transcode the screen

This forum is about all development around libVLC.
vlad-29
New Cone
New Cone
Posts: 7
Joined: 17 Nov 2016 11:40

Simple code couse devision by 0 when transcode the screen

Postby vlad-29 » 18 Nov 2016 12:51

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 18 Nov 2016 19:22

Known bug with screen:// on Windows. Try VLC 2.2.5 or later.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 17 guests