Replace = bytes() by b''.
This commit is contained in:
+2
-2
@@ -2622,7 +2622,7 @@ def extract_pictures(ffmpeg_path:str, input_file:IO[bytes], begin:timedelta, nb_
|
|||||||
'-c:v', 'ppm','-f', 'image2pipe', f'/proc/self/fd/{outfd:d}']
|
'-c:v', 'ppm','-f', 'image2pipe', f'/proc/self/fd/{outfd:d}']
|
||||||
logger.debug('Executing: %s', command)
|
logger.debug('Executing: %s', command)
|
||||||
|
|
||||||
images = bytes()
|
images = b''
|
||||||
with Popen(command, stdout=PIPE, close_fds=False) as ffmpeg:
|
with Popen(command, stdout=PIPE, close_fds=False) as ffmpeg:
|
||||||
status = ffmpeg.wait()
|
status = ffmpeg.wait()
|
||||||
if status != 0:
|
if status != 0:
|
||||||
@@ -2650,7 +2650,7 @@ def extract_sound(ffmpeg_path:str, input_file: IO[bytes], begin:timedelta, outpu
|
|||||||
lseek(infd, 0, SEEK_SET)
|
lseek(infd, 0, SEEK_SET)
|
||||||
set_inheritable(infd, True)
|
set_inheritable(infd, True)
|
||||||
set_inheritable(outfd, True)
|
set_inheritable(outfd, True)
|
||||||
sound = bytes()
|
sound = b''
|
||||||
length = int(nb_channels*sample_rate*4*nb_packets*packet_duration/1000)
|
length = int(nb_channels*sample_rate*4*nb_packets*packet_duration/1000)
|
||||||
|
|
||||||
command = [ffmpeg_path, '-y', '-loglevel', 'quiet', '-ss', f'{begin}',
|
command = [ffmpeg_path, '-y', '-loglevel', 'quiet', '-ss', f'{begin}',
|
||||||
|
|||||||
Reference in New Issue
Block a user