Beispiel #1
0
        public static void Run()
        {
            /* Create BitcodinApi */
            const string apiKey = "YOUR_API_KEY";
            var          bitApi = new BitcodinApi(apiKey);

            var thumbnailConfig = new ThumbnailConfig
            {
                //insert your jobID
                JobId    = 312840,
                Height   = 320,
                Position = 5,
                Async    = true,
                FileName = "filename"
            };

            var thumbnail = bitApi.CreateThumbnail(thumbnailConfig);

            Debug.WriteLine("Thumbnail URL: " + thumbnail.ThumbnailUrl);
        }
Beispiel #2
0
        public static void Run()
        {
            /* Create BitcodinApi */
            const string apiKey = "YOUR_API_KEY";
            var          bitApi = new BitcodinApi(apiKey);

            var spriteConfig = new SpriteConfig
            {
                //insert your jobID
                JobId    = 312840,
                Height   = 90,
                Width    = 120,
                Distance = 10,
                Async    = true
            };

            var sprite = bitApi.CreateSprite(spriteConfig);

            Debug.WriteLine("Thumbnail URL: " + sprite.SpriteUrl);
            Debug.WriteLine("Thumbnail VTT URL: " + sprite.VttUrl);
        }
Beispiel #3
0
        public static void Run()
        {
            /* Create BitcodinApi */
            const string apiKey = "YOUR_API_KEY";
            var          bitApi = new BitcodinApi(apiKey);

            var inputConfig = new HttpInputConfig
            {
                Url = "http://bitbucketireland.s3.amazonaws.com/Sintel-two-audio-streams-short.mkv"
            };

            Input input;

            try
            {
                input = bitApi.CreateInput(inputConfig);
                Console.WriteLine("Could create input: " + input.Filename);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create input: " + e);
                return;
            }


            var encodingProfileConfig = new EncodingProfileConfig {
                Name = "MyApiTestEncodingProfile"
            };

            /* CREATE VIDEO STREAM CONFIGS */
            var videoStreamConfig1 = new VideoStreamConfig
            {
                Bitrate = 4800000,
                Height  = 1080,
                Width   = 1920
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig1);
            var videoStreamConfig2 = new VideoStreamConfig
            {
                Bitrate = 2400000,
                Height  = 720,
                Width   = 1280
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig2);
            var videoStreamConfig3 = new VideoStreamConfig
            {
                Bitrate = 1200000,
                Height  = 480,
                Width   = 854
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig3);

            /* CREATE AUDIO STREAM CONFIGS */
            var audioStreamConfig = new AudioStreamConfig {
                Bitrate = 128000
            };

            encodingProfileConfig.AudioStreamConfigs.Add(audioStreamConfig);

            /* CREATE ENCODING PROFILE */
            EncodingProfile encodingProfile;

            try
            {
                encodingProfile = bitApi.CreateEncodingProfile(encodingProfileConfig);
                Console.WriteLine("Could create encoding profile: " + encodingProfile.Name);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create encoding profile: " + e);
                return;
            }


            /* CREATE DRM WIDEVINE CONFIG */
            var widevineDrmConfig = new WidevineDrmConfig
            {
                RequestUrl = "http://license.uat.widevine.com/cenc/getcontentkey",
                SigningKey = "1ae8ccd0e7985cc0b6203a55855a1034afc252980e970ca90e5202689f947ab9",
                SigningIv  = "d58ce954203b7c9a9a9d467f59839249",
                ContentId  = "746573745f69645f4639465043304e4f",
                Provider   = "widevine_test",
                Method     = DrmMethod.MpegCenc
            };

            /* Create Job */
            Console.WriteLine("Create Job");
            var jobConfig = new JobConfig
            {
                EncodingProfileId = encodingProfile.EncodingProfileId,
                InputId           = input.InputId
            };

            jobConfig.ManifestTypes.Add(ManifestType.MpegDashMpd);
            jobConfig.ManifestTypes.Add(ManifestType.HlsM3U8);
            jobConfig.Speed     = Speed.Standard;
            jobConfig.DrmConfig = widevineDrmConfig;

            Job job;

            try
            {
                job = bitApi.CreateJob(jobConfig);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create job: " + e);
                return;
            }

            JobDetails jobDetails;

            do
            {
                try
                {
                    jobDetails = bitApi.GetJobDetails(job.JobId);
                    Console.WriteLine("Status: " + jobDetails.JobStatus +
                                      " - Enqueued Duration: " + jobDetails.EnqueueDuration + "s" +
                                      " - Realtime Factor: " + jobDetails.RealtimeFactor +
                                      " - Encoded Duration: " + jobDetails.EncodedDuration + "s" +
                                      " - Output: " + jobDetails.BytesWritten / (double)1024 / 1024 + "MB" +
                                      " - Duration: " + jobDetails.Duration +
                                      " - FrameRate: " + jobDetails.FrameRate +
                                      " - JobId: " + jobDetails.JobId +
                                      " - SegmentsSplitted: " + jobDetails.SegmentsSplitted);
                }
                catch (BitcodinApiException)
                {
                    Console.WriteLine("Could not get any job details");
                    return;
                }


                if (jobDetails.JobStatus.ToUpper().Equals(Enum.GetName(typeof(JobStatus), 4)))
                {
                    Console.WriteLine("Error during transcoding");
                    return;
                }

                Thread.Sleep(2000);
            } while (!jobDetails.JobStatus.ToUpper().Equals(Enum.GetName(typeof(JobStatus), 3)));

            Console.WriteLine("Job with ID " + job.JobId + " finished successfully!");

            var outputConfig = new FtpOutputConfig
            {
                Name     = "TestFtpOutput",
                Host     = "ftp.yourdomain.com/content",
                Username = "******",
                Password = "******"
            };

            Output output;

            try
            {
                output = bitApi.CreateOutput(outputConfig);
                Console.WriteLine("Output has been created: " + output.Name);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create Output: " + e);
                return;
            }

            var transferConfig = new TransferConfig
            {
                JobId    = job.JobId,
                OutputId = output.OutputId
            };

            try
            {
                bitApi.Transfer(transferConfig);
                Console.WriteLine("Output has been transfered");
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not transfer Output: " + e);
            }
        }
Beispiel #4
0
        public static void Run()
        {
            /* Create BitcodinApi */
            const string apiKey = "YOUR_API_KEY";
            var          bitApi = new BitcodinApi(apiKey);

            /* Create URL Input */
            var ftpInputConfig = new FtpInputConfig
            {
                Url      = "path/to/file.mkv",
                Username = "******",
                Password = "******"
            };

            Input input;

            try
            {
                input = bitApi.CreateInput(ftpInputConfig);
                Console.WriteLine("Created FTP Input: " + input.Filename);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create FTP input: " + e);
                return;
            }


            /* Create EncodingProfile */
            var videoConfig1 = new VideoStreamConfig
            {
                Bitrate = 4800000,
                Width   = 1920,
                Height  = 1080,
                Profile = Profile.Main,
                Preset  = Preset.Premium
            };

            var videoConfig2 = new VideoStreamConfig
            {
                Bitrate = 2400000,
                Width   = 1280,
                Height  = 720,
                Profile = Profile.Main,
                Preset  = Preset.Premium
            };

            var videoConfig3 = new VideoStreamConfig
            {
                Bitrate = 1200000,
                Width   = 854,
                Height  = 480,
                Profile = Profile.Main,
                Preset  = Preset.Premium
            };

            var encodingProfileConfig = new EncodingProfileConfig {
                Name = "FTPTestProfile"
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoConfig1);
            encodingProfileConfig.VideoStreamConfigs.Add(videoConfig2);
            encodingProfileConfig.VideoStreamConfigs.Add(videoConfig3);

            var audioStreamConfig = new AudioStreamConfig
            {
                DefaultStreamId = 0,
                Bitrate         = 192000
            };

            encodingProfileConfig.AudioStreamConfigs.Add(audioStreamConfig);

            EncodingProfile encodingProfile;

            try
            {
                encodingProfile = bitApi.CreateEncodingProfile(encodingProfileConfig);
                Console.WriteLine("Could  create profile: " + encodingProfile.Name);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create encoding profile: " + e);
                return;
            }

            /* Create Job */
            Console.WriteLine("Create Job");
            var jobConfig = new JobConfig
            {
                EncodingProfileId = encodingProfile.EncodingProfileId,
                InputId           = input.InputId
            };

            jobConfig.ManifestTypes.Add(ManifestType.MpegDashMpd);
            jobConfig.ManifestTypes.Add(ManifestType.HlsM3U8);

            Job job;

            try
            {
                job = bitApi.CreateJob(jobConfig);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create job: " + e);
                return;
            }

            JobDetails jobDetails;

            do
            {
                try
                {
                    jobDetails = bitApi.GetJobDetails(job.JobId);
                    Console.WriteLine("Status: " + jobDetails.JobStatus +
                                      " - Enqueued Duration: " + jobDetails.EnqueueDuration + "s" +
                                      " - Realtime Factor: " + jobDetails.RealtimeFactor +
                                      " - Encoded Duration: " + jobDetails.EncodedDuration + "s" +
                                      " - Output: " + jobDetails.BytesWritten / (double)1024 / 1024 + "MB" +
                                      " - Duration: " + jobDetails.Duration +
                                      " - FrameRate: " + jobDetails.FrameRate +
                                      " - JobId: " + jobDetails.JobId +
                                      " - SegmentsSplitted: " + jobDetails.SegmentsSplitted);
                }
                catch (BitcodinApiException)
                {
                    Console.WriteLine("Could not get any job details");
                    return;
                }


                if (jobDetails.JobStatus.ToUpper().Equals(Enum.GetName(typeof(JobStatus), 4)))
                {
                    Console.WriteLine("Error during transcoding");
                    return;
                }

                Thread.Sleep(2000);
            } while (!jobDetails.JobStatus.ToUpper().Equals(Enum.GetName(typeof(JobStatus), 3)));

            Console.WriteLine("Job with ID " + job.JobId + " finished successfully!");
        }
Beispiel #5
0
        public static void Run()
        {
            /* Create BitcodinApi */
            const string apiKey = "YOUR_API_KEY";
            var          bitApi = new BitcodinApi(apiKey);

            var inputConfig = new HttpInputConfig
            {
                Url = "http://bitbucketireland.s3.amazonaws.com/Sintel-two-audio-streams-short.mkv"
            };

            Input input;

            try
            {
                input = bitApi.CreateInput(inputConfig);
                Console.WriteLine("Could  create input: " + input.Filename);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create input: " + e);
                return;
            }

            var encodingProfileConfig = new EncodingProfileConfig {
                Name = "MyApiTestEncodingProfile"
            };

            /* CREATE VIDEO STREAM CONFIGS */
            var videoStreamConfig1 = new VideoStreamConfig
            {
                Bitrate = 4800000,
                Height  = 1080,
                Width   = 1920
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig1);
            var videoStreamConfig2 = new VideoStreamConfig
            {
                Bitrate = 2400000,
                Height  = 720,
                Width   = 1280
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig2);
            var videoStreamConfig3 = new VideoStreamConfig
            {
                Bitrate = 1200000,
                Height  = 480,
                Width   = 854
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig3);

            /* CREATE AUDIO STREAM CONFIGS */
            var audioStreamConfig = new AudioStreamConfig {
                Bitrate = 128000
            };

            encodingProfileConfig.AudioStreamConfigs.Add(audioStreamConfig);

            /* CREATE ENCODING PROFILE */
            EncodingProfile encodingProfile;

            try
            {
                encodingProfile = bitApi.CreateEncodingProfile(encodingProfileConfig);
                Console.WriteLine("Could  create profile: " + encodingProfile.Name);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create encoding profile: " + e);
                return;
            }

            /* Create Job */
            Console.WriteLine("Create Job");
            var jobConfig = new JobConfig
            {
                EncodingProfileId = encodingProfile.EncodingProfileId,
                InputId           = input.InputId
            };

            jobConfig.ManifestTypes.Add(ManifestType.MpegDashMpd);
            jobConfig.StartTime = 90; // Transcoded video will start at 01:30 (90 seconds)
            jobConfig.Speed     = Speed.Standard;

            Job job;

            try
            {
                job = bitApi.CreateJob(jobConfig);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create job: " + e);
                return;
            }

            JobDetails jobDetails;

            do
            {
                try
                {
                    jobDetails = bitApi.GetJobDetails(job.JobId);
                    Console.WriteLine("Status: " + jobDetails.JobStatus +
                                      " - Enqueued Duration: " + jobDetails.EnqueueDuration + "s" +
                                      " - Realtime Factor: " + jobDetails.RealtimeFactor +
                                      " - Encoded Duration: " + jobDetails.EncodedDuration + "s" +
                                      " - Output: " + jobDetails.BytesWritten / (double)1024 / 1024 + "MB" +
                                      " - Duration: " + jobDetails.Duration +
                                      " - FrameRate: " + jobDetails.FrameRate +
                                      " - JobId: " + jobDetails.JobId +
                                      " - SegmentsSplitted: " + jobDetails.SegmentsSplitted);
                }
                catch (BitcodinApiException)
                {
                    Console.WriteLine("Could not get any job details");
                    return;
                }


                if (jobDetails.JobStatus.ToUpper().Equals(Enum.GetName(typeof(JobStatus), 4)))
                {
                    Console.WriteLine("Error during transcoding");
                    return;
                }

                Thread.Sleep(2000);
            } while (!jobDetails.JobStatus.ToUpper().Equals(Enum.GetName(typeof(JobStatus), 3)));

            Console.WriteLine("Job with ID " + job.JobId + " finished successfully!");

            var outputConfig = new FtpOutputConfig
            {
                Name     = "TestFtpOutput",
                Host     = "ftp.yourdomain.com/content",
                Username = "******",
                Password = "******"
            };

            Output output;

            try
            {
                output = bitApi.CreateOutput(outputConfig);
                Console.WriteLine("Output has been created: " + output.Name);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create Output: " + e);
                return;
            }

            var transferConfig = new TransferConfig
            {
                JobId    = job.JobId,
                OutputId = output.OutputId
            };

            try
            {
                bitApi.Transfer(transferConfig);
                Console.WriteLine("Output has been transfered");
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not transfer Output: " + e);
            }
        }
Beispiel #6
0
 public static void ClassInit(TestContext context)
 {
     // TODO: Specifiy API Code here
     _api = new BitcodinApi("YOU_API_KEY");
 }
Beispiel #7
0
        public static void Run()
        {
            /* Create BitcodinApi */
            const string apiKey = "YOUR_API_KEY";
            var          bitApi = new BitcodinApi(apiKey);

            var inputConfig = new HttpInputConfig
            {
                Url = "http://bitbucketireland.s3.amazonaws.com/Sintel-two-audio-streams-short.mkv"
            };

            Input input;

            try
            {
                input = bitApi.CreateInput(inputConfig);
                Console.WriteLine("Could create input: " + input.Filename);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create input: " + e);
                return;
            }


            var encodingProfileConfig = new EncodingProfileConfig {
                Name = "MyApiTestEncodingProfile"
            };

            /* CREATE VIDEO STREAM CONFIGS */
            var videoStreamConfig1 = new VideoStreamConfig
            {
                Bitrate = 4800000,
                Height  = 1080,
                Width   = 1920
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig1);
            var videoStreamConfig2 = new VideoStreamConfig
            {
                Bitrate = 2400000,
                Height  = 720,
                Width   = 1280
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig2);
            var videoStreamConfig3 = new VideoStreamConfig
            {
                Bitrate = 1200000,
                Height  = 480,
                Width   = 854
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig3);

            /* CREATE AUDIO STREAM CONFIGS */
            var audioStreamConfig = new AudioStreamConfig {
                Bitrate = 128000
            };

            encodingProfileConfig.AudioStreamConfigs.Add(audioStreamConfig);

            /* CREATE ENCODING PROFILE */
            EncodingProfile encodingProfile;

            try
            {
                encodingProfile = bitApi.CreateEncodingProfile(encodingProfileConfig);
                Console.WriteLine("Could create encoding profile: " + encodingProfile.Name);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create encoding profile: " + e);
                return;
            }

            /* Create Job */
            Console.WriteLine("Create Job");
            var jobConfig = new JobConfig
            {
                EncodingProfileId = encodingProfile.EncodingProfileId,
                InputId           = input.InputId
            };

            jobConfig.ManifestTypes.Add(ManifestType.MpegDashMpd);
            jobConfig.ManifestTypes.Add(ManifestType.HlsM3U8);
            jobConfig.Speed = Speed.Standard;

            Job job;

            try
            {
                job = bitApi.CreateJob(jobConfig);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create job: " + e);
                return;
            }

            JobDetails jobDetails;

            do
            {
                try
                {
                    jobDetails = bitApi.GetJobDetails(job.JobId);
                    Console.WriteLine("Status: " + jobDetails.JobStatus +
                                      " - Enqueued Duration: " + jobDetails.EnqueueDuration + "s" +
                                      " - Realtime Factor: " + jobDetails.RealtimeFactor +
                                      " - Encoded Duration: " + jobDetails.EncodedDuration + "s" +
                                      " - Output: " + jobDetails.BytesWritten / (double)1024 / 1024 + "MB" +
                                      " - Duration: " + jobDetails.Duration +
                                      " - FrameRate: " + jobDetails.FrameRate +
                                      " - JobId: " + jobDetails.JobId +
                                      " - SegmentsSplitted: " + jobDetails.SegmentsSplitted);
                }
                catch (BitcodinApiException)
                {
                    Console.WriteLine("Could not get any job details");
                    return;
                }


                if (jobDetails.JobStatus.ToUpper().Equals(Enum.GetName(typeof(JobStatus), 4)))
                {
                    Console.WriteLine("Error during transcoding");
                    return;
                }

                Thread.Sleep(2000);
            } while (!jobDetails.JobStatus.ToUpper().Equals(Enum.GetName(typeof(JobStatus), 3)));

            Console.WriteLine("Job with ID " + job.JobId + " finished successfully!");

            /* CREATE MPD WITH YOUR VTT SUBTITLES */
            Console.WriteLine("Create SUBTITLES");
            var engSub = new VttSubtitle
            {
                LangLong  = "English",
                LangShort = "eng",
                Url       = "https://www.iandevlin.com/html5test/webvtt/upc-video-subtitles-en.vtt"
            };

            var deSub = new VttSubtitle
            {
                LangLong  = "German",
                LangShort = "de",
                Url       = "http://url.to/your/eng.vtt"
            };

            var subtitles = new VttSubtitle[2];

            subtitles[0] = engSub;
            subtitles[1] = deSub;

            var vttMpdConfig = new VttMpdConfig
            {
                OutputFileName = "test",
                JobId          = job.JobId,
                Subtitles      = subtitles
            };

            try
            {
                var vtt = bitApi.CreateVtt(vttMpdConfig);
                Console.WriteLine("Could create vtt: " + vtt.MpdUrl);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create vtt: " + e);
            }
        }
Beispiel #8
0
        public static void Run()
        {
            /* Create BitcodinApi */
            const string apiKey = "YOUR_API_KEY";
            var          bitApi = new BitcodinApi(apiKey);

            var inputConfig = new HttpInputConfig {
                Url = "http://eu-storage.bitcodin.com/inputs/Sintel.2010.720p.mkv"
            };

            Input input;

            try
            {
                input = bitApi.CreateInput(inputConfig);
                Console.WriteLine("Could create input: " + input.Filename);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create input: " + e);
                return;
            }


            var encodingProfileConfig = new EncodingProfileConfig {
                Name = "MyApiTestEncodingProfile"
            };

            /* CREATE VIDEO STREAM CONFIGS */
            var videoStreamConfig1 = new VideoStreamConfig
            {
                Bitrate = 4800000,
                Height  = 1080,
                Width   = 1920
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig1);
            var videoStreamConfig2 = new VideoStreamConfig
            {
                Bitrate = 2400000,
                Height  = 720,
                Width   = 1280
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig2);
            var videoStreamConfig3 = new VideoStreamConfig
            {
                Bitrate = 1200000,
                Height  = 480,
                Width   = 854
            };

            encodingProfileConfig.VideoStreamConfigs.Add(videoStreamConfig3);

            /* CREATE AUDIO STREAM CONFIGS */
            var audioStreamConfig = new AudioStreamConfig {
                Bitrate = 128000
            };

            encodingProfileConfig.AudioStreamConfigs.Add(audioStreamConfig);

            /* CREATE ENCODING PROFILE */
            EncodingProfile encodingProfile;

            try
            {
                encodingProfile = bitApi.CreateEncodingProfile(encodingProfileConfig);
                Console.WriteLine("Could create encoding profile: " + encodingProfile.Name);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create encoding profile: " + e);
                return;
            }


            /* CREATE OUTPUT */
            var outputConfig = new FtpOutputConfig
            {
                Name     = "TestFtpOutput",
                Host     = "ftp.yourdomain.com/content",
                Username = "******",
                Password = "******"
            };

            Output output;

            try
            {
                output = bitApi.CreateOutput(outputConfig);
                Console.WriteLine("Could create Output: " + output.Name);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create Output: " + e);
                return;
            }

            /* Create Job */
            var jobConfig = new JobConfig
            {
                EncodingProfileId = encodingProfile.EncodingProfileId,
                InputId           = input.InputId,
                OutputId          = output.OutputId,
                Speed             = Speed.Standard
            };

            jobConfig.ManifestTypes.Add(ManifestType.MpegDashMpd);
            jobConfig.ManifestTypes.Add(ManifestType.HlsM3U8);

            Job job;

            try
            {
                job = bitApi.CreateJob(jobConfig);
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not create job: " + e);
                return;
            }

            /* WAIT TIL JOB IS FINISHED */
            JobDetails jobDetails;

            do
            {
                try
                {
                    jobDetails = bitApi.GetJobDetails(job.JobId);
                    Console.WriteLine("Status: " + jobDetails.JobStatus +
                                      " - Enqueued Duration: " + jobDetails.EnqueueDuration + "s" +
                                      " - Realtime Factor: " + jobDetails.RealtimeFactor +
                                      " - Encoded Duration: " + jobDetails.EncodedDuration + "s" +
                                      " - Output: " + jobDetails.BytesWritten / (double)1024 / 1024 + "MB");
                }
                catch (BitcodinApiException)
                {
                    Console.WriteLine("Could not get any job details");
                    return;
                }


                if (jobDetails.JobStatus.Equals(Enum.GetName(typeof(JobStatus), 4)))
                {
                    Console.WriteLine("Error during transcoding");
                    return;
                }

                Thread.Sleep(2000);
            } while (!jobDetails.JobStatus.Equals(Enum.GetName(typeof(JobStatus), 3)));

            Console.WriteLine("Job with ID " + job.JobId + " finished successfully!");

            /*TRANSFER */
            Console.WriteLine("Transfering");
            var transferConfig = new TransferConfig
            {
                JobId    = job.JobId,
                OutputId = output.OutputId
            };

            try
            {
                bitApi.Transfer(transferConfig);
                Console.WriteLine("Transfer finished...");
            }
            catch (BitcodinApiException e)
            {
                Console.WriteLine("Could not transfer Output: " + e);
            }
        }