Showing a still image when the video stream is interrupted

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
karol
New Cone
New Cone
Posts: 3
Joined: 24 Sep 2009 10:31

Showing a still image when the video stream is interrupted

Postby karol » 24 Sep 2009 10:44

Hello!

I need to show a "no signal" image when the video stream (from the network) is interrupted.
Both the image and video are 640x480. No blending or mixing is required (either video is shown or the image).

I tried to do this using mosaic filter in the following setting:
  • fake stream 1 from an image
  • configure stream 2 from the network
  • mix them with the 1x1 mosaic
This actually worked but it used 60-80% of my CPU (Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz).

As I need to put this solution on a small box, I'd like to decrease CPU usage. Perhaps there is another way to do it, more CPU-friendly?
I feel that using a full-blown mosaic might be a bit of an overkill...

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: Showing a still image when the video stream is interrupted

Postby Jean-Baptiste Kempf » 24 Sep 2009 13:01

maybe using a video_filter or hacking the interface.
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.

karol
New Cone
New Cone
Posts: 3
Joined: 24 Sep 2009 10:31

Re: Showing a still image when the video stream is interrupted

Postby karol » 24 Sep 2009 14:16

Could you be please more specific about the video filters?

I've read the list of the filters on Advanced_Use_of_VLC#Filters page and none seems right.
On wiki the phrase 'video_filter' matches only a VoutRework page.

karol
New Cone
New Cone
Posts: 3
Joined: 24 Sep 2009 10:31

Re: Showing a still image when the video stream is interrupted

Postby karol » 07 Oct 2009 13:09

Help is still needed :)

I even looked at the source code and tried to hack xcommon.c to show frames from the still image if needed but I don't know how to use codec/fake plugin there.

Can anyone please describe step by step how to show a still image when (networked) video stream is interrupted, without using too much CPU? I don't really care whether this is done on stream or GUI level.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 90 guests