Skip to content

Commit 55c19b3

Browse files
bug fixes
1 parent 417add9 commit 55c19b3

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/dash-from_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def create_dash_files(_input, _output, __progress=None):
3232
name = os.path.basename(__file__).split('.')[0]
3333
current_dir = os.path.dirname(os.path.abspath(__file__))
3434

35-
url = 'https://www.sample-videos.com/video123/mp4/720/big_buck_bunny_720p_30mb.mp4'
35+
url = 'https://www.aminyazdanpanah.com/my_sweetie.mp4'
3636
_input = from_url(url, progress=download_progress)
3737
_output = os.path.join(current_dir, name, 'output')
3838

examples/hls-from_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def create_hls_files(_input, _output, __progress=None):
3232
name = os.path.basename(__file__).split('.')[0]
3333
current_dir = os.path.dirname(os.path.abspath(__file__))
3434

35-
url = 'https://www.sample-videos.com/video123/mp4/720/big_buck_bunny_720p_30mb.mp4'
35+
url = 'https://www.aminyazdanpanah.com/my_sweetie.mp4'
3636
_input = from_url(url, progress=download_progress)
3737
_output = os.path.join(current_dir, name, 'output')
3838

ffmpeg_streaming/rep.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ def __init__(self, **kwargs):
66
self.audio_kilo_bitrate = kwargs.pop('audio_k_bitrate', None)
77

88
@property
9-
def size(self):
9+
def size(self) -> str:
1010
if self.width is None or self.height is None:
1111
raise ValueError("You must set the width and the height of video")
1212
return str(self.width) + "x" + str(self.height)
1313

1414
@property
15-
def bit_rate(self):
15+
def bit_rate(self) -> str:
1616
if self.kilo_bitrate is None:
1717
raise ValueError("You must set the bitrate of video")
1818
return str(self.kilo_bitrate) + "k"

0 commit comments

Comments
 (0)