ogg_saver only works one time with my camera node without restarting [closed]
I'm trying to develop a web server that can stream the images from the theora transport. So far I have no issue with streaming from a ogg file, but I'm unable to do that from the live camera images yet.
Anyways, while working on this I've realized that the ogg_saver node doesn't quite work on my machine. It does seem to subscribe to the appropriate topic and it also does write something to a file.
- Resulting file is suspiciously small (~50kB for 1 minute of video).
- Resulting file doesn't play on any player I've tried.
Is anyone able to record a video with the ogg_saver node following the instructions here? Do you have any idea of what I might be doing wrong?
Update: I was running some more tests and it seems that the ogg_saver node is indeed working. The issue was caused by a node developed by me to publish images from a uEye camera. Details are:
- The ogg_saver produces a correct video only the first time I run it after spawning the camera node.
- Subsequent runs of the ogg_saver without restarting the camera node will produce a ogv file but this file will not play correctly.
- This doesn't happen with other camera nodes (i.e. with the openni_camera node): the ogg_saver node can be run several times to record as many videos without needing to restart the camera node.
I guess this must be related to how the images are published on my uEye camera node, and not the ogg_saver node itself. Any idea of why this might happen will be welcome.