Input strema lost

This forum is about all development around libVLC.
Idsa
Blank Cone
Blank Cone
Posts: 78
Joined: 22 Oct 2009 10:59

Input strema lost

Postby Idsa » 10 Jan 2010 11:40

I need to handle the situation when LAN-camera signal is lost during the recording. I have found the following code at VLC sources (media_player.c):
else if( newval.i_int == INPUT_EVENT_ABORT )
{
libvlc_state_t libvlc_state = libvlc_Stopped;
event.type = libvlc_MediaPlayerStopped;

set_state( p_mi, libvlc_state );
libvlc_event_send( p_mi->p_event_manager, &event );
}
So I hoped MediaPlayerStopped would be raised. But it is not raised :( But VLC works correctly when I plug-out my LAN-camera cabel. Could you provide me a better way of handling this situation?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Input strema lost

Postby Jean-Baptiste Kempf » 11 Jan 2010 12:23

Well, the issue is that it isn't stopped, it just doesn't receive frames.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Idsa
Blank Cone
Blank Cone
Posts: 78
Joined: 22 Oct 2009 10:59

Re: Input strema lost

Postby Idsa » 12 Jan 2010 05:07

But there is surely some mechanism for such situations in VLC player.
I have just plugged out my camera cabel, VLC waited for about half a minute and then stopped. Could you tell me where I can find how it works in VLC?

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

Re: Input strema lost

Postby Rémi Denis-Courmont » 12 Jan 2010 17:19

The RTSP timeout was probably 30 seconds.
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 32 guests