Page 1 of 1

Showing a still image when the video stream is interrupted

Posted: 24 Sep 2009 10:44
by karol
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...

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

Posted: 24 Sep 2009 13:01
by Jean-Baptiste Kempf
maybe using a video_filter or hacking the interface.

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

Posted: 24 Sep 2009 14:16
by karol
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.

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

Posted: 07 Oct 2009 13:09
by karol
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.