Hi Phil.
Could you please list the parameters which are used by ZM to produce the streaming MPEG, on a default format (asf) setting? I mean the ones that are feeded to libavcodec, rather then these that are used by zmvideo.pl.
I need them in order to verify how much ZM stream format is compatible to alternative browser players out there, and perhaps modify it a little, so they can be used.
Thanks.
Parameters to FFMPEG used by ZM while encoding stream
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
From zm_monitor.cpp the following line
defines the inputs in the ffmpeg libraries. The format and bitrate are passed in from the web pages and are configured in options. The effective_fps is the fps calculated to fit under any maximum defined. The colours and scale etc are self explanatory.
Other than this everything else is pretty much left at whatever the library defaults are. It's all in zm_mpeg.cpp and should be relatively easy to read as it follows the ffmpeg api examples.
Phil
Code: Select all
VideoStream vid_stream( "pipe:", format, bitrate, effective_fps, camera->Colours(), (width*scale)/ZM_SCALE_SCALE, (height*scale)/ZM_SCALE_SCALE );
Other than this everything else is pretty much left at whatever the library defaults are. It's all in zm_mpeg.cpp and should be relatively easy to read as it follows the ffmpeg api examples.
Phil
Hi Phil.
Thanks, it helps me to understand the code structure.
According to my post at http://www.zoneminder.com/forums/viewto ... 3329#13329, the new FFMPEG 0.4.9 breaks backwards computability, so I will await for the new version to come up before starting the change anything in the code.
Thanks, it helps me to understand the code structure.
According to my post at http://www.zoneminder.com/forums/viewto ... 3329#13329, the new FFMPEG 0.4.9 breaks backwards computability, so I will await for the new version to come up before starting the change anything in the code.