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
e254e87c
Unverified
Commit
e254e87c
authored
Nov 08, 2017
by
Gregory Martin
Committed by
GitHub
Nov 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "Eliminate XuetangX, Add Migrations""
parent
c74c21da
Show 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 @
e254e87c
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
"encode_bitdepth"
:
"27"
,
"encode_bitdepth"
:
"27"
,
"encode_resolution"
:
"720"
,
"encode_resolution"
:
"720"
,
"product_spec"
:
"desktop_mp4"
,
"product_spec"
:
"desktop_mp4"
,
"xuetang_proc"
:
true
}
}
},
},
{
{
...
@@ -35,7 +34,6 @@
...
@@ -35,7 +34,6 @@
"encode_bitdepth"
:
"0"
,
"encode_bitdepth"
:
"0"
,
"encode_resolution"
:
"0"
,
"encode_resolution"
:
"0"
,
"product_spec"
:
"hls"
,
"product_spec"
:
"hls"
,
"xuetang_proc"
:
false
}
}
},
},
{
{
...
@@ -50,7 +48,6 @@
...
@@ -50,7 +48,6 @@
"encode_bitdepth"
:
"27"
,
"encode_bitdepth"
:
"27"
,
"encode_resolution"
:
"360"
,
"encode_resolution"
:
"360"
,
"product_spec"
:
"mobile_low"
,
"product_spec"
:
"mobile_low"
,
"xuetang_proc"
:
false
}
}
},
},
{
{
...
@@ -68,7 +65,6 @@
...
@@ -68,7 +65,6 @@
"s3_proc"
:
true
,
"s3_proc"
:
true
,
"xue"
:
true
,
"xue"
:
true
,
"local_storedir"
:
"course-v1:VEDA+VEDA201+2015_T1"
,
"local_storedir"
:
"course-v1:VEDA+VEDA201+2015_T1"
,
"xuetang_proc"
:
false
,
"studio_hex"
:
"xxxx"
"studio_hex"
:
"xxxx"
}
}
}
}
...
...
VEDA_OS01/migrations/0003_auto_20171024_2003.py
0 → 100644
View file @
e254e87c
# -*- 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 @
e254e87c
...
@@ -378,7 +378,6 @@ class Course(models.Model):
...
@@ -378,7 +378,6 @@ class Course(models.Model):
max_length
=
5000
,
max_length
=
5000
,
null
=
True
,
blank
=
True
null
=
True
,
blank
=
True
)
)
xuetang_proc
=
models
.
BooleanField
(
'Submit to XuetangX'
,
default
=
True
)
sg_projID
=
models
.
IntegerField
(
'Shotgun Project ID'
,
default
=
0
)
sg_projID
=
models
.
IntegerField
(
'Shotgun Project ID'
,
default
=
0
)
studio_hex
=
models
.
CharField
(
studio_hex
=
models
.
CharField
(
'Studio Hex ID'
,
'Studio Hex ID'
,
...
@@ -578,7 +577,6 @@ class Encode(models.Model):
...
@@ -578,7 +577,6 @@ class Encode(models.Model):
'VAL Profile Name'
,
'VAL Profile Name'
,
max_length
=
300
,
max_length
=
300
,
null
=
True
,
blank
=
True
)
null
=
True
,
blank
=
True
)
xuetang_proc
=
models
.
BooleanField
(
'Submit to XuetangX'
,
default
=
False
)
def
__unicode__
(
self
):
def
__unicode__
(
self
):
return
u'{encode_profile}'
.
format
(
encode_profile
=
self
.
encode_name
)
return
u'{encode_profile}'
.
format
(
encode_profile
=
self
.
encode_name
)
...
@@ -600,8 +598,6 @@ class URL(models.Model):
...
@@ -600,8 +598,6 @@ class URL(models.Model):
)
)
encode_size
=
models
.
IntegerField
(
'File Size (bytes)'
,
default
=
"0"
,
null
=
True
,
blank
=
True
)
encode_size
=
models
.
IntegerField
(
'File Size (bytes)'
,
default
=
"0"
,
null
=
True
,
blank
=
True
)
val_input
=
models
.
BooleanField
(
'Inputted to EDX-VAL?'
,
default
=
False
)
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
:
class
Meta
:
get_latest_by
=
'url_date'
get_latest_by
=
'url_date'
...
...
VEDA_OS01/serializers.py
View file @
e254e87c
...
@@ -186,7 +186,6 @@ class EncodeSerializer(serializers.ModelSerializer):
...
@@ -186,7 +186,6 @@ class EncodeSerializer(serializers.ModelSerializer):
'encode_bitdepth'
,
'encode_bitdepth'
,
'encode_resolution'
,
'encode_resolution'
,
'product_spec'
,
'product_spec'
,
'xuetang_proc'
,
)
)
...
@@ -204,8 +203,6 @@ class URLSerializer(serializers.ModelSerializer):
...
@@ -204,8 +203,6 @@ class URLSerializer(serializers.ModelSerializer):
'encode_bitdepth'
,
'encode_bitdepth'
,
'encode_size'
,
'encode_size'
,
'val_input'
,
'val_input'
,
'xuetang_input'
,
'md5_sum'
,
)
)
def
create
(
self
,
validated_data
):
def
create
(
self
,
validated_data
):
...
...
control/veda_deliver.py
View file @
e254e87c
...
@@ -116,13 +116,10 @@ class VedaDelivery:
...
@@ -116,13 +116,10 @@ class VedaDelivery:
u1
.
encode_duration
=
self
.
video_proto
.
duration
u1
.
encode_duration
=
self
.
video_proto
.
duration
u1
.
encode_bitdepth
=
self
.
video_proto
.
bitrate
u1
.
encode_bitdepth
=
self
.
video_proto
.
bitrate
u1
.
encode_size
=
self
.
video_proto
.
filesize
u1
.
encode_size
=
self
.
video_proto
.
filesize
u1
.
md5_sum
=
self
.
video_proto
.
hash_sum
u1
.
save
()
u1
.
save
()
self
.
status
=
self
.
_DETERMINE_STATUS
()
self
.
status
=
self
.
_DETERMINE_STATUS
()
self
.
_UPDATE_DATA
()
self
.
_UPDATE_DATA
()
self
.
_CLEANUP
()
self
.
_CLEANUP
()
# Transcription Process
# Transcription Process
...
@@ -611,11 +608,3 @@ class VedaDelivery:
...
@@ -611,11 +608,3 @@ class VedaDelivery:
encode_profile
=
self
.
encode_profile
encode_profile
=
self
.
encode_profile
)
)
DY
.
upload
()
DY
.
upload
()
def
main
():
pass
if
__name__
==
'__main__'
:
sys
.
exit
(
main
())
control/veda_file_ingest.py
View file @
e254e87c
...
@@ -81,7 +81,6 @@ class VideoProto():
...
@@ -81,7 +81,6 @@ class VideoProto():
self
.
bitrate
=
None
self
.
bitrate
=
None
self
.
resolution
=
None
self
.
resolution
=
None
self
.
veda_id
=
None
self
.
veda_id
=
None
self
.
hash_sum
=
None
class
VedaIngest
:
class
VedaIngest
:
...
@@ -183,10 +182,6 @@ class VedaIngest:
...
@@ -183,10 +182,6 @@ class VedaIngest:
"""
"""
self
.
video_proto
.
filesize
=
os
.
stat
(
self
.
full_filename
)
.
st_size
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
((
ff_command
=
' '
.
join
((
FFPROBE
,
FFPROBE
,
"
\'
"
+
self
.
full_filename
+
"
\'
"
"
\'
"
+
self
.
full_filename
+
"
\'
"
...
...
control/veda_utils.py
View file @
e254e87c
...
@@ -215,7 +215,6 @@ class VideoProto():
...
@@ -215,7 +215,6 @@ class VideoProto():
self
.
resolution
=
None
self
.
resolution
=
None
self
.
veda_id
=
kwargs
.
get
(
'veda_id'
,
None
)
self
.
veda_id
=
kwargs
.
get
(
'veda_id'
,
None
)
self
.
val_id
=
kwargs
.
get
(
'val_id'
,
None
)
self
.
val_id
=
kwargs
.
get
(
'val_id'
,
None
)
self
.
hash_sum
=
None
class
Metadata
():
class
Metadata
():
...
@@ -245,10 +244,6 @@ class Metadata():
...
@@ -245,10 +244,6 @@ class Metadata():
"""
"""
self
.
video_proto
.
filesize
=
os
.
stat
(
self
.
full_filename
)
.
st_size
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
((
ff_command
=
' '
.
join
((
FFPROBE
,
FFPROBE
,
"
\'
"
+
self
.
full_filename
+
"
\'
"
"
\'
"
+
self
.
full_filename
+
"
\'
"
...
...
frontend/veda_models.yaml
View file @
e254e87c
...
@@ -26,7 +26,6 @@ bools:
...
@@ -26,7 +26,6 @@ bools:
-
c24_proc
-
c24_proc
-
s3_proc
-
s3_proc
-
xue
-
xue
-
xuetang_proc
# dropdown boxes
# dropdown boxes
dropdowns
:
dropdowns
:
...
@@ -56,7 +55,6 @@ organizational:
...
@@ -56,7 +55,6 @@ organizational:
review_proc
:
encode
review_proc
:
encode
proc_loc
:
encode
proc_loc
:
encode
xue
:
encode
xue
:
encode
xuetang_proc
:
encode
yt_logon
:
encode
yt_logon
:
encode
tp_proc
:
transcribe
tp_proc
:
transcribe
...
...
instance_config.yaml
View file @
e254e87c
...
@@ -136,8 +136,6 @@ sg_script_key:
...
@@ -136,8 +136,6 @@ sg_script_key:
# Endpoints
# Endpoints
# ---
# ---
threeplay_ftphost
:
threeplay_ftphost
:
xuetang_api_url
:
xuetang_api_shared_secret
:
## Encoding Config
## Encoding Config
ffmpeg_compiled
:
"
ffmpeg"
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