Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-video-pipeline
Commits
acbb9219
Unverified
Commit
acbb9219
authored
Nov 08, 2017
by
Gregory Martin
Committed by
GitHub
Nov 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Eliminate XuetangX, Add Migrations"
parent
77d04caf
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
36 additions
and
31 deletions
+36
-31
VEDA_OS01/fixtures/destinations.json
+4
-0
VEDA_OS01/migrations/0003_auto_20171024_2003.py
+0
-31
VEDA_OS01/models.py
+4
-0
VEDA_OS01/serializers.py
+3
-0
control/veda_deliver.py
+11
-0
control/veda_file_ingest.py
+5
-0
control/veda_utils.py
+5
-0
frontend/veda_models.yaml
+2
-0
instance_config.yaml
+2
-0
No files found.
VEDA_OS01/fixtures/destinations.json
View file @
acbb9219
...
...
@@ -20,6 +20,7 @@
"encode_bitdepth"
:
"27"
,
"encode_resolution"
:
"720"
,
"product_spec"
:
"desktop_mp4"
,
"xuetang_proc"
:
true
}
},
{
...
...
@@ -34,6 +35,7 @@
"encode_bitdepth"
:
"0"
,
"encode_resolution"
:
"0"
,
"product_spec"
:
"hls"
,
"xuetang_proc"
:
false
}
},
{
...
...
@@ -48,6 +50,7 @@
"encode_bitdepth"
:
"27"
,
"encode_resolution"
:
"360"
,
"product_spec"
:
"mobile_low"
,
"xuetang_proc"
:
false
}
},
{
...
...
@@ -65,6 +68,7 @@
"s3_proc"
:
true
,
"xue"
:
true
,
"local_storedir"
:
"course-v1:VEDA+VEDA201+2015_T1"
,
"xuetang_proc"
:
false
,
"studio_hex"
:
"xxxx"
}
}
...
...
VEDA_OS01/migrations/0003_auto_20171024_2003.py
deleted
100644 → 0
View file @
77d04caf
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-10-24 20:03
from
__future__
import
unicode_literals
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'VEDA_OS01'
,
'0002_auto_20171016_1211'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'course'
,
name
=
'xuetang_proc'
,
),
migrations
.
RemoveField
(
model_name
=
'encode'
,
name
=
'xuetang_proc'
,
),
migrations
.
RemoveField
(
model_name
=
'url'
,
name
=
'md5_sum'
,
),
migrations
.
RemoveField
(
model_name
=
'url'
,
name
=
'xuetang_input'
,
),
]
VEDA_OS01/models.py
View file @
acbb9219
...
...
@@ -378,6 +378,7 @@ class Course(models.Model):
max_length
=
5000
,
null
=
True
,
blank
=
True
)
xuetang_proc
=
models
.
BooleanField
(
'Submit to XuetangX'
,
default
=
True
)
sg_projID
=
models
.
IntegerField
(
'Shotgun Project ID'
,
default
=
0
)
studio_hex
=
models
.
CharField
(
'Studio Hex ID'
,
...
...
@@ -577,6 +578,7 @@ class Encode(models.Model):
'VAL Profile Name'
,
max_length
=
300
,
null
=
True
,
blank
=
True
)
xuetang_proc
=
models
.
BooleanField
(
'Submit to XuetangX'
,
default
=
False
)
def
__unicode__
(
self
):
return
u'{encode_profile}'
.
format
(
encode_profile
=
self
.
encode_name
)
...
...
@@ -598,6 +600,8 @@ class URL(models.Model):
)
encode_size
=
models
.
IntegerField
(
'File Size (bytes)'
,
default
=
"0"
,
null
=
True
,
blank
=
True
)
val_input
=
models
.
BooleanField
(
'Inputted to EDX-VAL?'
,
default
=
False
)
xuetang_input
=
models
.
BooleanField
(
'Inputted to XuetangX?'
,
default
=
False
)
md5_sum
=
models
.
CharField
(
'MD5 Sum'
,
max_length
=
100
,
null
=
True
,
blank
=
True
)
class
Meta
:
get_latest_by
=
'url_date'
...
...
VEDA_OS01/serializers.py
View file @
acbb9219
...
...
@@ -186,6 +186,7 @@ class EncodeSerializer(serializers.ModelSerializer):
'encode_bitdepth'
,
'encode_resolution'
,
'product_spec'
,
'xuetang_proc'
,
)
...
...
@@ -203,6 +204,8 @@ class URLSerializer(serializers.ModelSerializer):
'encode_bitdepth'
,
'encode_size'
,
'val_input'
,
'xuetang_input'
,
'md5_sum'
,
)
def
create
(
self
,
validated_data
):
...
...
control/veda_deliver.py
View file @
acbb9219
...
...
@@ -116,10 +116,13 @@ class VedaDelivery:
u1
.
encode_duration
=
self
.
video_proto
.
duration
u1
.
encode_bitdepth
=
self
.
video_proto
.
bitrate
u1
.
encode_size
=
self
.
video_proto
.
filesize
u1
.
md5_sum
=
self
.
video_proto
.
hash_sum
u1
.
save
()
self
.
status
=
self
.
_DETERMINE_STATUS
()
self
.
_UPDATE_DATA
()
self
.
_CLEANUP
()
# Transcription Process
...
...
@@ -608,3 +611,11 @@ class VedaDelivery:
encode_profile
=
self
.
encode_profile
)
DY
.
upload
()
def
main
():
pass
if
__name__
==
'__main__'
:
sys
.
exit
(
main
())
control/veda_file_ingest.py
View file @
acbb9219
...
...
@@ -81,6 +81,7 @@ class VideoProto():
self
.
bitrate
=
None
self
.
resolution
=
None
self
.
veda_id
=
None
self
.
hash_sum
=
None
class
VedaIngest
:
...
...
@@ -182,6 +183,10 @@ class VedaIngest:
"""
self
.
video_proto
.
filesize
=
os
.
stat
(
self
.
full_filename
)
.
st_size
self
.
video_proto
.
hash_sum
=
hashlib
.
md5
(
open
(
self
.
full_filename
,
'rb'
)
.
read
()
)
.
hexdigest
()
ff_command
=
' '
.
join
((
FFPROBE
,
"
\'
"
+
self
.
full_filename
+
"
\'
"
...
...
control/veda_utils.py
View file @
acbb9219
...
...
@@ -215,6 +215,7 @@ class VideoProto():
self
.
resolution
=
None
self
.
veda_id
=
kwargs
.
get
(
'veda_id'
,
None
)
self
.
val_id
=
kwargs
.
get
(
'val_id'
,
None
)
self
.
hash_sum
=
None
class
Metadata
():
...
...
@@ -244,6 +245,10 @@ class Metadata():
"""
self
.
video_proto
.
filesize
=
os
.
stat
(
self
.
full_filename
)
.
st_size
self
.
video_proto
.
hash_sum
=
hashlib
.
md5
(
open
(
self
.
full_filename
,
'rb'
)
.
read
()
)
.
hexdigest
()
ff_command
=
' '
.
join
((
FFPROBE
,
"
\'
"
+
self
.
full_filename
+
"
\'
"
...
...
frontend/veda_models.yaml
View file @
acbb9219
...
...
@@ -26,6 +26,7 @@ bools:
-
c24_proc
-
s3_proc
-
xue
-
xuetang_proc
# dropdown boxes
dropdowns
:
...
...
@@ -55,6 +56,7 @@ organizational:
review_proc
:
encode
proc_loc
:
encode
xue
:
encode
xuetang_proc
:
encode
yt_logon
:
encode
tp_proc
:
transcribe
...
...
instance_config.yaml
View file @
acbb9219
...
...
@@ -136,6 +136,8 @@ sg_script_key:
# Endpoints
# ---
threeplay_ftphost
:
xuetang_api_url
:
xuetang_api_shared_secret
:
## Encoding Config
ffmpeg_compiled
:
"
ffmpeg"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment