This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git tests/ffmpeg_encoder_test.go tests/ffmpeg_encoder_test.go | |
| index be85cec..e03e227 100644 | |
| --- tests/ffmpeg_encoder_test.go | |
| +++ tests/ffmpeg_encoder_test.go | |
| @@ -145,41 +145,19 @@ var _ = Describe("FFmpeg Encoder", func() { | |
| dbInstance.StoreJob(job) | |
| lib.FFMPEGEncode(job.ID) | |
| - out, _ := exec.Command("mediainfo", "--Inform=General;%Format%;", destinationFile).Output() | |
| + out, _ := exec.Command("mediainfo", "--Output=file://"+currentDir+"/mi_templ_mp4.txt", destinationFile).Output() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package service | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "net/http" | |
| "net/http/httptest" | |
| "reflect" | |
| "testing" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests, json, time | |
| #jobs_url = "http://internal-video-pipeline-dev-1193624058.us-east-1.elb.amazonaws.com/jobs/" | |
| jobs_url = "http://localhost:8080/jobs/" | |
| source_url = 'https://vp.nyt.com/video/2016/05/15/40007_1_retro-lsd_wg_240p.mp4' | |
| job_info = json.loads(requests.post(jobs_url, data=json.dumps({'productionId': '123'})).text) | |
| json_data = { | |
| 'provider': 'elementalconductor', | |
| 'source': source_url, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script saves the incoming RTMP traffic in mp4 files | |
| RTMP_SOURCE="rtmp://source" | |
| SAN_MOUNTPOINT="/tmp/output" | |
| mkdir $SAN_MOUNTPOINT | |
| while true; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests, json, time | |
| jobs_url = "http://internal-video-pipeline-dev-1193624058.us-east-1.elb.amazonaws.com/jobs/" | |
| source_url = 'https://vp.nyt.com/video/2016/05/15/40007_1_retro-lsd_wg_240p.mp4' | |
| job_info = json.loads(requests.post(jobs_url, data=json.dumps({'productionId': '123'})).text) | |
| response = requests.post(jobs_url + job_info['jobId'] + '/start', data=json.dumps({'source': source_url, 'presets': ['nyt_hls_720p_mid_uhd']})) | |
| while True: | |
| print requests.get(jobs_url + job_info['jobId']).text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| import time | |
| jobs_url = "http://internal-video-pipeline-dev-1193624058.us-east-1.elb.amazonaws.com/jobs/" | |
| source_url = 'https://vp.nyt.com/video/2016/05/15/40007_1_retro-lsd_wg_240p.mp4' | |
| response = requests.post(jobs_url, data=json.dumps({'productionId': '123'})) | |
| job_info = json.loads(response.text) | |
| response = requests.post(jobs_url + job_info['jobId'] + '/start', data=json.dumps({'source': source_url, 'presets': ['nyt_hls_720p_mid_uhd']})) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| import time | |
| jobs_url = "http://internal-video-pipeline-dev-1193624058.us-east-1.elb.amazonaws.com/jobs/" | |
| source_url = 'https://vp.nyt.com/video/2016/05/15/40007_1_retro-lsd_wg_240p.mp4' | |
| response = requests.post(jobs_url, data=json.dumps({'productionId': '123'})) | |
| job_info = json.loads(response.text) | |
| response = requests.post(jobs_url + job_info['jobId'] + '/start', data=json.dumps({'source': source_url, 'presets': ['nyt_hls_720p_mid_uhd']})) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit 77c63adfb9a0c989c3ede62bbff70c272cd36b42 | |
| Author: Flávio Ribeiro <flavio.ribeiro@nytimes.com> | |
| Date: Thu Jun 9 11:22:10 2016 -0400 | |
| app: remove config object | |
| diff --git app/static/scripts/main.js app/static/scripts/main.js | |
| index c6c3f5b..0159234 100644 | |
| --- app/static/scripts/main.js | |
| +++ app/static/scripts/main.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| General | |
| Complete name : part-40007_1_retro-lsd_wg_720.mp4 | |
| Format : MPEG-4 | |
| Format profile : Base Media | |
| Codec ID : isom | |
| File size : 5.51 MiB | |
| Duration : 20s 11ms | |
| Overall bit rate mode : Variable | |
| Overall bit rate : 2 311 Kbps | |
| Encoded date : UTC 1904-01-01 00:00:00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| General | |
| Complete name : part-40007_1_retro-lsd_wg_720-from-s3.mp4 | |
| Format : MPEG-4 | |
| Format profile : Base Media | |
| Codec ID : isom | |
| File size : 8.25 MiB | |