示例#1
0
 static extern bool gst_video_encoder_set_encoding_format(IntPtr raw,
                                                          VideoEncoderType video_codec,
                                                          AudioEncoderType audio_codec,
                                                          VideoMuxerType muxer,
                                                          uint video_quality,
                                                          uint audio_quality,
                                                          uint width,
                                                          uint height,
                                                          uint fps_n,
                                                          uint fps_d);
示例#2
0
 public EncodingProfile(string name, string extension,
                        VideoEncoderType videoEncoder,
                        AudioEncoderType audioEncoder,
                        VideoMuxerType muxer)
 {
     Name         = name;
     Extension    = extension;
     VideoEncoder = videoEncoder;
     AudioEncoder = audioEncoder;
     Muxer        = muxer;
 }
        public EncodingProfile(string name, string extension,
		                       VideoEncoderType videoEncoder,
		                       AudioEncoderType audioEncoder,
		                       VideoMuxerType muxer)
        {
            Name = name;
            Extension = extension;
            VideoEncoder = videoEncoder;
            AudioEncoder = audioEncoder;
            Muxer = muxer;
        }
示例#4
0
 static extern bool gst_video_editor_set_encoding_format(IntPtr raw,
                                                         string output_file,
                                                         VideoEncoderType video_codec,
                                                         AudioEncoderType audio_codec,
                                                         VideoMuxerType muxer,
                                                         uint video_quality,
                                                         uint audio_quality,
                                                         uint width,
                                                         uint height,
                                                         uint fps_n,
                                                         uint fps_d,
                                                         bool enable_audio,
                                                         bool enable_video);
示例#5
0
        public bool SetVideoEncoder(VideoEncoderType type)
        {
            IntPtr error   = IntPtr.Zero;
            bool   raw_ret = gst_camera_capturer_set_video_encoder(Handle, (int)type, out error);

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            bool ret = raw_ret;

            return(ret);
        }
示例#6
0
        public void SetVideoEncoder(out string error, VideoEncoderType codec)
        {
            IntPtr error_ptr = IntPtr.Zero;

            gst_video_editor_set_video_encoder(Handle, out error_ptr, (int)codec);
            if (error_ptr != IntPtr.Zero)
            {
                error = GLib.Marshaller.Utf8PtrToString(error_ptr);
            }
            else
            {
                error = null;
            }
        }
		public bool SetVideoEncoder(VideoEncoderType type) {
			IntPtr error = IntPtr.Zero;
			bool raw_ret = gst_camera_capturer_set_video_encoder(Handle, (int) type, out error);
			if (error != IntPtr.Zero) throw new GLib.GException (error);
			bool ret = raw_ret;
			return ret;
		}
		public void SetVideoEncoder(out string error, VideoEncoderType codec) {
			IntPtr error_ptr = IntPtr.Zero;
			gst_video_editor_set_video_encoder(Handle,out error_ptr,(int)codec);
			if(error_ptr != IntPtr.Zero)
				error = GLib.Marshaller.Utf8PtrToString(error_ptr);
			else
				error = null;
		}
示例#9
0
 public bool SetVideoEncoder(VideoEncoderType type)
 {
     return true;
 }
示例#10
0
 public bool SetVideoEncoder(VideoEncoderType type)
 {
     return(true);
 }
示例#11
0
		static extern bool gst_video_editor_set_encoding_format (IntPtr raw,
		                                                         string output_file,
		                                                         VideoEncoderType video_codec,
		                                                         AudioEncoderType audio_codec,
		                                                         VideoMuxerType muxer,
		                                                         uint video_quality,
		                                                         uint audio_quality,
		                                                         uint width,
		                                                         uint height,
		                                                         uint fps_n,
		                                                         uint fps_d,
		                                                         bool enable_audio,
		                                                         bool enable_video);
示例#12
0
		static extern bool gst_video_encoder_set_encoding_format (IntPtr raw,
		                                                          VideoEncoderType video_codec,
		                                                          AudioEncoderType audio_codec,
		                                                          VideoMuxerType muxer,
		                                                          uint video_quality,
		                                                          uint audio_quality,
		                                                          uint width,
		                                                          uint height,
		                                                          uint fps_n,
		                                                          uint fps_d);