Ogg Theora streaming
Ogg Theora streaming
Hi Phil.
In this thread, you mentioned that it's possible to stream the video in the Ogg Theora codec, rather then in MPEG4: http://www.zoneminder.com/forums/viewto ... ght=theora
This came as a possible resolution to the delay present in the Windows Media Player. I checked around, and there is a good variety of Java/Activex Theora browser player plugins available.
It can be a good replace for the WMP, similar to the MediaFrame, but using another codec, which should give a better bandwidth/quality ratio, and resolve the lag issue.
Could you please list the instructions needed to set ZM to work with Theora?
Thanks.
In this thread, you mentioned that it's possible to stream the video in the Ogg Theora codec, rather then in MPEG4: http://www.zoneminder.com/forums/viewto ... ght=theora
This came as a possible resolution to the delay present in the Windows Media Player. I checked around, and there is a good variety of Java/Activex Theora browser player plugins available.
It can be a good replace for the WMP, similar to the MediaFrame, but using another codec, which should give a better bandwidth/quality ratio, and resolve the lag issue.
Could you please list the instructions needed to set ZM to work with Theora?
Thanks.
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
I have been looking ito ffmpeg a bit lately and im not sure they have finished this streaming type so it might need a bit of coaxing. I would assume that you change the asf extension in setting to whatever the ogg one is.
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
You do have to compile ffmpeg with extra options to support ogg. FYI the packages I have for both distros have it compiled in. I also reduced the dependancies for the x86_64 package by not compiling in some of the decoders since the conversion for now is only from jpeg. I also made sure that any packages that are normaly in a FC install (ogg, vorbis, etc.) were compiled in.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Oh, I agree and will be watching that thread closely till I have an opertunity to get in and play. But is it not useing ffmpeg to encode mpeg4?
I have just one issue stopping the x86_64 distro right now were Grub is not loading correctly once I get beyond that and finnish up the new code for zminit the release will follow and I can move on and play a bit.
I have just one issue stopping the x86_64 distro right now were Grub is not loading correctly once I get beyond that and finnish up the new code for zminit the release will follow and I can move on and play a bit.
Hi.
The Flash method is great, and allows new possibilities for the ZM, but it's still has it's problems, the main one is the large memory footprint. Also, the quality due to Flash Spark (H.263) compression is somewhat lower and quite blocky (which is especially visible on movements). This may change when the FFMPEG team implements Flash8 On2 VP6 codec, but until then....
Therefore, I still like to review other options, thus the Theora codec looks as a very promising alternative to WMP.
I will try Cordel's RMP's, and my main question is which format that should be set in the ZM options? OGG?
The Flash method is great, and allows new possibilities for the ZM, but it's still has it's problems, the main one is the large memory footprint. Also, the quality due to Flash Spark (H.263) compression is somewhat lower and quite blocky (which is especially visible on movements). This may change when the FFMPEG team implements Flash8 On2 VP6 codec, but until then....
Therefore, I still like to review other options, thus the Theora codec looks as a very promising alternative to WMP.
I will try Cordel's RMP's, and my main question is which format that should be set in the ZM options? OGG?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Hi.
I tried to compile the Theora support in the current version of ZM (1.21.4). FFMPEG compilation stage went fine, but unfortunately, I can't compile ZM, as it can't find the libtheora-devel library. (All the functions, like theora_init() can not be located).
The question is, if there any way to compile current ZM with Theora? Or only the latest 1.22 supports it via "extra libs"?
I tried to compile the Theora support in the current version of ZM (1.21.4). FFMPEG compilation stage went fine, but unfortunately, I can't compile ZM, as it can't find the libtheora-devel library. (All the functions, like theora_init() can not be located).
The question is, if there any way to compile current ZM with Theora? Or only the latest 1.22 supports it via "extra libs"?
Hi.
Phil, this one goes to you for sure .
I managed to compile the zms via external IDE. Unfotunately, when setting OGG as the output format, it segfaults. When stepping with a debugger, I noticed that guess_format() (located in zm_mpeg.cpp), fills the "of" structure with Vorbis audio settings only. Meaning, the of->mime_type has "audio/x-vorbis" set, and the of->video_codec equals to CODEC_ID_NONE.
Apparently, FFMPEG can't correctly guess that Theora video codec is used from the "ogg" extension? Or perhaps a diffrent extension should specify after all.
BTW, the command line FFMPEG is not working with Theora as well. It returns me the following message: "No audio or video streams available".
The only software that allowed me to encode into ogg, was ffmpeg2theora (www.v2v.cc/~j/ffmpeg2theora/). I checked the source code, and it seems it doesn't use the guess_format() function at all.
Perhaps the Theora support in CVS version of FFMPEG is broken?
Phil, this one goes to you for sure .
I managed to compile the zms via external IDE. Unfotunately, when setting OGG as the output format, it segfaults. When stepping with a debugger, I noticed that guess_format() (located in zm_mpeg.cpp), fills the "of" structure with Vorbis audio settings only. Meaning, the of->mime_type has "audio/x-vorbis" set, and the of->video_codec equals to CODEC_ID_NONE.
Apparently, FFMPEG can't correctly guess that Theora video codec is used from the "ogg" extension? Or perhaps a diffrent extension should specify after all.
BTW, the command line FFMPEG is not working with Theora as well. It returns me the following message: "No audio or video streams available".
The only software that allowed me to encode into ogg, was ffmpeg2theora (www.v2v.cc/~j/ffmpeg2theora/). I checked the source code, and it seems it doesn't use the guess_format() function at all.
Perhaps the Theora support in CVS version of FFMPEG is broken?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I think you have to build ffmpeg with additional options to use Theora. In 1.22.0 you will need to supply any additional libraries to configure when you build ZM, in earlier versions unfortauntely you will need to add them to the Makefile manually. I've not done a lot with ogg files other than seeing if I could generate them, which I could. However I couldn't find a player to view them on at the time
1.22.0 allso makes it a lot easier to manage mime types by the way.
1.22.0 allso makes it a lot easier to manage mime types by the way.
Phil
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: