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
722e8945
Unverified
Commit
722e8945
authored
Nov 08, 2017
by
Gregory Martin
Committed by
GitHub
Nov 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #65 from edx/revert-64-revert-55-yro/xuetang_migrations
Revert "Revert "Eliminate XuetangX, Add Migrations""
parents
c74c21da
e254e87c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
36 deletions
+31
-36
VEDA_OS01/fixtures/destinations.json
+0
-4
VEDA_OS01/migrations/0003_auto_20171024_2003.py
+31
-0
VEDA_OS01/models.py
+0
-4
VEDA_OS01/serializers.py
+0
-3
control/veda_deliver.py
+0
-11
control/veda_file_ingest.py
+0
-5
control/veda_utils.py
+0
-5
frontend/veda_models.yaml
+0
-2
instance_config.yaml
+0
-2
No files found.
VEDA_OS01/fixtures/destinations.json
View file @
722e8945
...
...
@@ -20,7 +20,6 @@
"encode_bitdepth"
:
"27"
,
"encode_resolution"
:
"720"
,
"product_spec"
:
"desktop_mp4"
,
"xuetang_proc"
:
true
}
},
{
...
...
@@ -35,7 +34,6 @@
"encode_bitdepth"
:
"0"
,
"encode_resolution"
:
"0"
,
"product_spec"
:
"hls"
,
"xuetang_proc"
:
false
}
},
{
...
...
@@ -50,7 +48,6 @@
"encode_bitdepth"
:
"27"
,
"encode_resolution"
:
"360"
,
"product_spec"
:
"mobile_low"
,
"xuetang_proc"
:
false
}
},
{
...
...
@@ -68,7 +65,6 @@
"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
0 → 100644
View file @
722e8945
# -*- 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 @
722e8945
...
...
@@ -378,7 +378,6 @@ 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'
,
...
...
@@ -578,7 +577,6 @@ 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
)
...
...
@@ -600,8 +598,6 @@ 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 @
722e8945
...
...
@@ -186,7 +186,6 @@ class EncodeSerializer(serializers.ModelSerializer):
'encode_bitdepth'
,
'encode_resolution'
,
'product_spec'
,
'xuetang_proc'
,
)
...
...
@@ -204,8 +203,6 @@ 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 @
722e8945
...
...
@@ -116,13 +116,10 @@ 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
...
...
@@ -611,11 +608,3 @@ 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 @
722e8945
...
...
@@ -81,7 +81,6 @@ class VideoProto():
self
.
bitrate
=
None
self
.
resolution
=
None
self
.
veda_id
=
None
self
.
hash_sum
=
None
class
VedaIngest
:
...
...
@@ -183,10 +182,6 @@ 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 @
722e8945
...
...
@@ -215,7 +215,6 @@ 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
():
...
...
@@ -245,10 +244,6 @@ 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 @
722e8945
...
...
@@ -26,7 +26,6 @@ bools:
-
c24_proc
-
s3_proc
-
xue
-
xuetang_proc
# dropdown boxes
dropdowns
:
...
...
@@ -56,7 +55,6 @@ organizational:
review_proc
:
encode
proc_loc
:
encode
xue
:
encode
xuetang_proc
:
encode
yt_logon
:
encode
tp_proc
:
transcribe
...
...
instance_config.yaml
View file @
722e8945
...
...
@@ -136,8 +136,6 @@ 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