Mpeg Streaming at 640x480 not work, 320x240 work

Forum for questions and support relating to the 1.24.x releases only.
Locked
bumann
Posts: 31
Joined: Mon Sep 13, 2010 12:50 am
Location: Germany

Mpeg Streaming at 640x480 not work, 320x240 work

Post by bumann »

Hi!
I have got a zm 1.24.2 with a saa 7134 card(4x)!
settings:
options saa7134 card=33,33,33,33
kernel.shmall = 134217728
kernel.shmmax = 134217728
MMap enable

The jpeg stream with 640x480 is working good.
The mpeg stream with 320x240 (RGB24) too, but mpeg 640x480 don´t work!

logfile:

10/03/10 03:08:40.095154 zmdc[2833].INF ['zmc -d /dev/video2' starting at 10/10/03 03:08:40, pid = 2884]
10/03/10 03:08:40.109569 zmdc[2833].ERR ['zmc -d /dev/video2' exited abnormally, exit status 255]
10/03/10 03:09:20.008852 zmdc[2833].INF [Starting pending process, zmc -d /dev/video2]
10/03/10 03:09:20.009565 zmdc[2833].INF ['zmc -d /dev/video2' starting at 10/10/03 03:09:20, pid = 2896]
10/03/10 03:09:20.025279 zmdc[2833].ERR ['zmc -d /dev/video2' exited abnormally, exit status 255]
10/03/10 03:10:40.025364 zmdc[2833].INF [Starting pending process, zmc -d /dev/video2]
10/03/10 03:10:40.026055 zmdc[2833].INF ['zmc -d /dev/video2' starting at 10/10/03 03:10:40, pid = 3056]

any ideas ?
sorry for my bad english
Greetings from Germany!
bumann
Posts: 31
Joined: Mon Sep 13, 2010 12:50 am
Location: Germany

Post by bumann »

The grayscale swf streaming at 640x480 is working good, too!
But wehen i cange to rgb24 no picure is showing.
The Monitor link is still orange, so i think there are no memory issues!
any suggestions?
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

I think your going to find that your issue is with shared memory; you've got a lot of the symptoms: works at a lower resolution, works with gray scale but not color, and works with one standard but not the other... Bump shared memory up 50% just to be sure. If you compiled mapped memory (MMap enable) into your build then I'm wrong.
bumann
Posts: 31
Joined: Mon Sep 13, 2010 12:50 am
Location: Germany

Post by bumann »

I have build MMap enable.
bumann
Posts: 31
Joined: Mon Sep 13, 2010 12:50 am
Location: Germany

Post by bumann »

I did a new build with mmap=no an set the

kernel.shmall = 2048000
kernel.shmmax = 4194304000

but the mpeg swf streaming with 640x480 25fps don't work.
I use debian lenny (i386)on celeron e3500 dualcore with 2gb and a PV-9404 saa 7134 card. I have got some warnings by building ffmpeg.
bumann
Posts: 31
Joined: Mon Sep 13, 2010 12:50 am
Location: Germany

Post by bumann »

I have played with the shmall and shmmax a few days but it didn't work with 720x576 rgb24 25fps! I have read all post on forum but nothing help.Please anybody help me or give me a tip what it is?! Do i need more RAM? I have only 2GB!
allanE
Posts: 44
Joined: Mon Feb 09, 2009 1:19 pm
Location: Sharps Chapel,TN

Post by allanE »

My understanding of memory management is that if you are using MMap then you would not want to set shmmax or shmall. It is one or the other. Easy to check,simply comment out the settings and reboot.
bumann
Posts: 31
Joined: Mon Sep 13, 2010 12:50 am
Location: Germany

Post by bumann »

thx. I have solved the problem a few days ago. I have compiled it with mmap enable and it is fine with the high resolution!
Classic
Posts: 16
Joined: Mon Aug 02, 2010 10:48 pm

Re: Mpeg Streaming at 640x480 not work, 320x240 work

Post by Classic »

I have the same issue, but the mmap not work properly, only can see the stream swf in low resolution, really i don't know wich it s the problem.
please, can you tellme more about your configuration?
thanks from Argentina.
marty505
Posts: 16
Joined: Thu Apr 05, 2012 1:19 am

Re: Mpeg Streaming at 640x480 not work, 320x240 work

Post by marty505 »

This post: http://www.zoneminder.com/forums/viewto ... ory#p72552 contains a nice script that calculates the shared memory values to use on your system. The script is in the 6th post of the thread.
Classic
Posts: 16
Joined: Mon Aug 02, 2010 10:48 pm

Re: Mpeg Streaming at 640x480 not work, 320x240 work

Post by Classic »

thanks, i use the script but the problem persist...keep looking the solution..
kloger
Posts: 6
Joined: Tue Aug 23, 2011 2:16 am

Re: Mpeg Streaming at 640x480 not work, 320x240 work

Post by kloger »

My knowing of remembrance supervision is the reality that if you arrive going to are implementing MMap then you won't prefer to placed shmmax or shmall. it are ordinarily one or even the other. straightforward to check,simply comment out the options and reboot.
Classic
Posts: 16
Joined: Mon Aug 02, 2010 10:48 pm

Re: Mpeg Streaming at 640x480 not work, 320x240 work

Post by Classic »

Yes, I read de faq and say that. mmap or edit sysctl.conf. But I try with all posibilities and no luck. The problem is the ffmpeg encoder i think because i read t in the log:removing commo factor in frame rate....when work in low resolution.
I dont set limit fps and try with diferenet buffer image and fps direct from de cameras.
well thanks for your help. If anybody know another way for keep looking the solution
pleas Do not hesitate in posting.
Classic
Posts: 16
Joined: Mon Aug 02, 2010 10:48 pm

Re: Mpeg Streaming at 640x480 not work, 320x240 work

Post by Classic »

Well, I installed the version of the mastertheknife, and it`s really incredible the performance...I hope this will inclued in the new version of zoneminder.
Locked