FFMPEG Video generation quality options/setting?

Support and queries relating to all previous versions of ZoneMinder
Locked
andireinbrech
Posts: 4
Joined: Wed Jun 04, 2008 11:26 am

FFMPEG Video generation quality options/setting?

Post by andireinbrech »

Hi,

I am having a little trouble getting better resolution on video generation.

The mjpeg preview of the stream is pretty good, but generated video has "chunky" blocks.

I have set additional ffmpeg settings to -b 128000 -minrate 128000 but the generated video stays the same. I tried mpg, mpeg and wmv formats - the video is just not good enough :roll:

Any suggestions?

Thanks in advance!
Andi
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Thats the reason zoneminder used jpgs to begin with whey have minimal compressionso you get , more detail and no blocks almost all videos formates will compress the video by reducing qulity even if it is minimal smaller blocks

you might change how to exports with ffmpeg (basic understanding)
http://ffmpeg.mplayerhq.hu/

and read this post about better quality (blending might be helpfull dep on how blocky it is) add what eles helps to

http://www.linuxquestions.org/questions ... eg-648971/

this option under Image

ZM_FFMPEG_OUTPUT_OPTIONS Additional output options to ffmpeg (?)
river100
Posts: 145
Joined: Sun Oct 07, 2007 5:52 pm
Location: Louisiana

video generation

Post by river100 »

hi,

i've read the docs and tried a few options. so far i;'ve settled on this one which seems to make good videos. " -sameq "

btw i put the option in the ZM_FFMPEG_INPUT_OPTIONS

i tried the options below and the videos look good but has a much larger video file

-b 8000k -minrate 8000k -maxrate 8000k -bufsize 2835k

the above option doesn't look any better than the -sameq option

i have the alarm frame rate set @ 25 fps with the idle @ 5 or 10 depending on the cam

hope this helps
andireinbrech
Posts: 4
Joined: Wed Jun 04, 2008 11:26 am

ffmpeg options syntax error

Post by andireinbrech »

Thanks for the input - I did manage to get it working properly, however I haven't tried the -sameq option.

I realised later that I didn't use an ample bitrate, I only specified 128000 not knowing that I could use the "k" and then realizing that 128k was essentially too low in any case.

Thanks again,
Cheers,
Andi
Locked