video upload aspect ratio
This commit is contained in:
@@ -60,8 +60,8 @@ def hls_videos(request):
|
||||
video = ffmpeg_streaming.input(media_location)
|
||||
|
||||
hls = video.hls(Formats.h264())
|
||||
_720p = Representation(Size(1280, 720), Bitrate(2048 * 1024, 320 * 1024))
|
||||
hls.representations(_720p)
|
||||
#_720p = Representation(Size(1280, 720), Bitrate(2048 * 1024, 320 * 1024))
|
||||
hls.auto_generate_representations()
|
||||
hls.output(end_location)
|
||||
# {{url}}/videos/hls_video?video_name=Spiderman_Stretch.mp4&video_type=exercise_videos
|
||||
# {{url}}/videos/hls_video?video_name=Recover_24.mp4&video_type=videos
|
||||
|
||||
Reference in New Issue
Block a user