View unanswered posts | View active topics It is currently Fri Dec 19, 2014 4:10 am



Reply to topic  [ 2 posts ] 
zoneminder and x264 h.264 h264 compression saa7134 ffmpeg 
Author Message

Joined: Sun Dec 16, 2007 11:45 pm
Posts: 7
Post zoneminder and x264 h.264 h264 compression saa7134 ffmpeg
hardware :
intel q6600 quad core , board Asus p5k-pro , 500gb samsung sata drive ,1gb ram , a china bord with 8 port and saa7134 chipset

soft: (this is the order to install them )
1. ubuntu 7.10 server x64 ,
2. Yasm 0.6.2
3. x264 svn
4. ffmpeg cvs



add this to /etc/modprobe.d/options
alias char-major-81 saa7134
options saa7134 card=33,33,33,33,33,33,33,33
(if u have a card whit 4 port u add only 4 of 33 )

u need to add this to /etc/sysctl.conf
kernel.shmall = 939524096
kernel.shmmax = 939524096
(i use zoneminder to capture with 640x480 for now, when i will add one more giga of ram i well use 700x525 resolution)

and add this script to cron (for me it's ok to run daily):


Quote:
X="%08d-capture.jpg"
options="-vcodec libx264 -b 160k -bt 160k -bf 3 -subq 6 -cmp 256 -refs 5 -qmin 10 \
-qmax 51 -qdiff 4 -coder 1 -loop 1 -me hex -me_range 16 -trellis 2 \
-flags +mv4 -flags2 +bpyramid+wpred+mixed_refs+brdo+8x8dct \
-partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -g 250 \
-keyint_min 25 -sc_threshold 40 -i_qfactor 0.71"

for j in `seq 1 8`;
do

cd $j
evita=0
for i in $( ls -t); do
echo $evita $i
pwd
if [ $evita -gt 1 ]; then

zi=`ls -Ald $i|cut -d' ' -f6`
ora=`ls -Ald $i|cut -d' ' -f7`
tmpfile=$j-$zi-$ora-$i.mp4
echo $tmpfile
if [ ! -e /var/cache/filme/$tmpfile -o ! -s /var/cache/filme/$tmpfile ]
then
cd $i
ffmpeg -y -r 6 -i "$X" -deinterlace -an -threads 8 $options /var/cache/filme/$tmpfile
cd ..
fi
else
echo a $evita $i
fi
let evita=evita+1
done;
cd ..

done


does anybody know if u can capture 800x600 whith saa7134 ?


Mon Dec 17, 2007 12:11 am
Profile

Joined: Tue Apr 21, 2009 8:46 pm
Posts: 4
Post 
hello, this scrip is to convert the events to H.264?
Once you run the script, the events can be viewed from ZM?
The use of disk space is reduced to this?

Is there any way to record directly in H.264?

Thank you very much
Regards


Wed Sep 15, 2010 2:34 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group