Raw stream viewer

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Ratax22
Posts: 2
Joined: Sat Nov 06, 2010 8:44 am

Post by Ratax22 »

Thanks Pada!

Works perfect for 6 days without interruption.

Has anyone tried to modify it to show, by a click, the camera in full screen? It may even include a window with ptz controls?
For now i'm looking for ways, if any did appreciate your help... :)

Sorry for my english, but some time ago that i do not practice... : P
JWonder
Posts: 2
Joined: Mon Nov 15, 2010 10:13 pm

Post by JWonder »

Hi Pada,

Quick question:

Should the feed take up the whole window? I'm accessing a network camera with a feed 640 x 480. When I launch the OpenGL version, I can view the feed but it only takes up a 640 x 480 in the top left corner of the window and the rest is all black. If I resize the window, the feed takes up a smaller/larger portion accordingly but never overtakes the black area.

Here are some screenshots that will hopefully help:

Here is what I get when I just use "sudo ./xlib_shm -m6"

Here is what I get when I use "sudo ./xlib_shm -m6 -w 640 -h 480"


And in an unrelated issue, this is what I get when I use the non-GL version. EDIT: This was addressed/fixed earlier in the thread:
Yes, i'm sure that all palettes are right.
It seem to be an issue with the video driver, the videocard it's a crappy nvidia with proprietary driver.

Using the non-gl version of xlib_shm with the -s option solve the problem and i can see good images on video.
Any thoughts?
JWonder
Posts: 2
Joined: Mon Nov 15, 2010 10:13 pm

Post by JWonder »

The "5" key fixed my problem. I get it now. Sorry!
muzyk10
Posts: 6
Joined: Mon Apr 10, 2006 2:46 pm
Location: Poland

Post by muzyk10 »

If under Ubuntu server LTSP 10.04 64bit (xlib_shm-0.6.5) someone will have error such like:

Code: Select all

Can't open linked memory map file /dev/shm/zm.mmap.1: No such file or directory
the patch should be applied (its just dot difference):

Code: Select all

--- xlib_shm.c.orig	2010-10-15 04:49:44.000000000 +0200
+++ xlib_shm.c	2011-03-09 15:35:40.000000000 +0100
@@ -641,7 +641,7 @@
         int id = monitor[cam]->mon_id;
         if (use_mmap) {
             char mem_file[255];
-            snprintf( mem_file, sizeof(mem_file), "%s/zm.mmap.%d", "/dev/shm", id );
+            snprintf( mem_file, sizeof(mem_file), "%s/.zm.mmap.%d", "/dev/shm", id );
 
             // Copied from zm_monitor.cpp
             int mem_size = sizeof(SharedData) + sizeof(TriggerData);
Thanks maciekc & pada for this useful code !

cheers :)
Post Reply