diff options
Diffstat (limited to 'rotord/src')
| -rw-r--r-- | rotord/src/libavwrapper.cpp | 1 | ||||
| -rw-r--r-- | rotord/src/rotord.cpp | 2 | ||||
| -rw-r--r-- | rotord/src/rotord.h | 8 |
3 files changed, 6 insertions, 5 deletions
diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp index 6b07b62..5525c44 100644 --- a/rotord/src/libavwrapper.cpp +++ b/rotord/src/libavwrapper.cpp @@ -212,6 +212,7 @@ bool libav::exporter::record(std::string filename){ //THIS DOES SEEM TO SET CONTAINER OPTS= AS MOOV_SIZE MAKES THE MOVIE BANJAXED //av_dict_set(&opts, "moov_size", "20000", 0); + av_dict_set(&opts, "movflags","frag_keyframe", 0); // Write the stream header, if any. // diff --git a/rotord/src/rotord.cpp b/rotord/src/rotord.cpp index 94964eb..e7c68cf 100644 --- a/rotord/src/rotord.cpp +++ b/rotord/src/rotord.cpp @@ -358,7 +358,7 @@ int RotorServer::main(const std::vector<std::string>& args){ unsigned short port; - Logger& logger = Logger::get("Rotor"); + static Logger& logger = Logger::get("Rotor"); xmlIO xml; if(xml.loadFile("settings.xml") ){ diff --git a/rotord/src/rotord.h b/rotord/src/rotord.h index ecdfefc..0eb1eb3 100644 --- a/rotord/src/rotord.h +++ b/rotord/src/rotord.h @@ -126,14 +126,14 @@ int main(int argc, char** argv) AutoPtr<SplitterChannel> splitterChannel(new SplitterChannel()); AutoPtr<Channel> consoleChannel(new ConsoleChannel()); AutoPtr<Channel> fileChannel(new FileChannel("Rotord.log")); - AutoPtr<FileChannel> rotatedFileChannel(new FileChannel("Rotord_R.log")); + //AutoPtr<FileChannel> rotatedFileChannel(new FileChannel("Rotord_R.log")); - rotatedFileChannel->setProperty("rotation", "100"); - rotatedFileChannel->setProperty("archive", "timestamp"); + //rotatedFileChannel->setProperty("rotation", "100"); + //rotatedFileChannel->setProperty("archive", "timestamp"); splitterChannel->addChannel(consoleChannel); splitterChannel->addChannel(fileChannel); - splitterChannel->addChannel(rotatedFileChannel); + //splitterChannel->addChannel(rotatedFileChannel); AutoPtr<Formatter> formatter(new PatternFormatter("%d-%m-%Y %H:%M:%S %s: %t")); AutoPtr<Channel> formattingChannel(new FormattingChannel(formatter, splitterChannel)); |
