EncodingProfile.vala 707 B

123456789101112131415161718192021222324
  1. namespace Publicate.Video {
  2. public abstract class EncodingProfile {
  3. public string size { get; protected set; }
  4. public string codec_names { get; protected set; }
  5. protected double get_low_framerate(double input_framerate) {
  6. if(input_framerate >= 50) {
  7. return input_framerate / 2;
  8. }
  9. return input_framerate;
  10. }
  11. public abstract string[] get_first_pass_command(string input_path, string output_path);
  12. public abstract string[] get_second_pass_command(string input_path, string output_path);
  13. public abstract string output_name();
  14. public abstract bool suitable_for(VideoInfo info);
  15. }
  16. }