Skip to content
Snippets Groups Projects
Commit b2617243 authored by Ali Can Demiralp's avatar Ali Can Demiralp
Browse files

Changed avi to ogg because Linux.

parent 945b5cb8
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,9 @@
#include <iostream>
#include <vtkActor.h>
#include <vtkAVIWriter.h>
#include <vtkCamera.h>
#include <vtkCameraInterpolator.h>
#include <vtkOggTheoraWriter.h>
#include <vtkOSPRayPass.h>
#include <vtkPolyDataMapper.h>
#include <vtkRenderer.h>
......@@ -60,11 +60,11 @@ std::int32_t main(std::int32_t argc, char** argv)
std::cout << "Setting up video writer.\n";
auto window_to_image = vtkSmartPointer<vtkWindowToImageFilter>::New();
auto video_writer = vtkSmartPointer<vtkAVIWriter> ::New();
auto video_writer = vtkSmartPointer<vtkOggTheoraWriter> ::New();
window_to_image->SetInput (window);
video_writer ->SetInputConnection(window_to_image->GetOutputPort());
video_writer ->SetFileName ("video.avi");
video_writer ->SetQuality (2);
video_writer ->SetFileName ("video.ogg");
video_writer ->SetQuality (1);
video_writer ->SetRate (1000.0 / settings.update_rate);
video_writer ->Start ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment