image mpeg

Support and queries relating to all previous versions of ZoneMinder
nadir
Posts: 31
Joined: Sun Dec 03, 2006 11:47 pm

image mpeg

Post by nadir »

Hi all,
how i can't view image in mpeg after changing in option
image format mpeg >> swf>>in format of ffmpeg swf.
i have just a white screen.
nadir
Posts: 31
Joined: Sun Dec 03, 2006 11:47 pm

image mpeg

Post by nadir »

are there some packeges to install (libcodecs or...)
wilso027
Posts: 90
Joined: Wed Feb 21, 2007 10:38 pm

Post by wilso027 »

Are you trying to change the live view of a camera from mjpeg to mpg?

Allan
nadir
Posts: 31
Joined: Sun Dec 03, 2006 11:47 pm

re

Post by nadir »

Yes of course
wilso027
Posts: 90
Joined: Wed Feb 21, 2007 10:38 pm

Post by wilso027 »

All the following can be found under options and the images tab.

Make sure that you have ZM_STREAM_METHOD set to mpeg and that ZM_OPT_MPEG is set to something other than no. You also probably need to make sure the paths for ZM_PATH_MPEG_ENCODE and ZM_PATH_FFMPEG are correct.

Allan
nadir
Posts: 31
Joined: Sun Dec 03, 2006 11:47 pm

re

Post by nadir »

ZM_STREAM_METHOD set to mpeg
ZM_MPEG_LIVE_FORMAT swf
ZM_OPT_MPEG ffmpeg
ZM_PATH_FFMPEG /usr/bin dirc instalation
nadir
Posts: 31
Joined: Sun Dec 03, 2006 11:47 pm

re

Post by nadir »

What have you set in FFMPEG INPUT OPTION
wilso027
Posts: 90
Joined: Wed Feb 21, 2007 10:38 pm

Post by wilso027 »

I don't know what distro you have but my ZM_PATH_FFMPEG /usr/local/bin/ffmpeg on a Ubuntu system. You have to make sure that the path to ffmpeg correct. I don't have anything on the ZM_FFMPEG_INPUT_OPTIONS line. Can you generate videos of events. If that works then you know ffmpeg is working.

Allan
nadir
Posts: 31
Joined: Sun Dec 03, 2006 11:47 pm

RE

Post by nadir »

I am running debian and ffmpeg path is /usr/bin fmpeg generate video
wilso027
Posts: 90
Joined: Wed Feb 21, 2007 10:38 pm

Post by wilso027 »

I am running Ubuntu which is a flavor of Debian and I had to compile ffmpeg by hand to fix a bug that was in my version. I used the article from here:
http://po-ru.com/diary/fixing-ffmpeg-on-ubuntu-edgy/

See if you can create a video of an event. Also I think your path to ffmpeg is wrong. What is the output of the following command

Code: Select all

locate ffmpeg | grep bin
Allan
nadir
Posts: 31
Joined: Sun Dec 03, 2006 11:47 pm

re

Post by nadir »

[debian:/home/nadir# dlocate ffmpeg |grep bin
]

ffmpeg: /usr/bin
ffmpeg: /usr/bin/ffserver
ffmpeg: /usr/bin/ffmpeg
ffmpeg: /usr/bin/ffplay
[/code]
wilso027
Posts: 90
Joined: Wed Feb 21, 2007 10:38 pm

Post by wilso027 »

Can you generate videos?
nadir
Posts: 31
Joined: Sun Dec 03, 2006 11:47 pm

re

Post by nadir »

Yes, in avi, mpeg...
W.
Posts: 108
Joined: Tue Apr 10, 2007 5:06 pm
Location: Latvia

Post by W. »

live mpeg uses libavcodec, not the ffmpeg executable, so make sure you have libavcodec installed and zm compiled against it. besides that, check zms logs for any hints if you have zm compiled with live mpeg support or not.
if common sense is so uncommon, why is it called common then?
nadir
Posts: 31
Joined: Sun Dec 03, 2006 11:47 pm

Re

Post by nadir »

i have installed zm by APT from debian package it's a binary .deb not a source. You think it's nessecery to compil source than the binary.
for me i think binary is better,perhaps zm from source is better.
i have all libcodecs installed w32codecs.
Locked