@ -95,7 +95,7 @@ class FFmpegPostProcessor(PostProcessor):
if self . _downloader . params . get ( ' verbose ' , False ) :
if self . _downloader . params . get ( ' verbose ' , False ) :
self . _downloader . to_screen ( ' [debug] ffmpeg command line: %s ' % shell_quote ( cmd ) )
self . _downloader . to_screen ( ' [debug] ffmpeg command line: %s ' % shell_quote ( cmd ) )
p = subprocess . Popen ( cmd , stdout = subprocess . PIPE , stderr = subprocess . PIPE )
p = subprocess . Popen ( cmd , stdout = subprocess . PIPE , stderr = subprocess . PIPE , stdin = subprocess . PIPE )
stdout , stderr = p . communicate ( )
stdout , stderr = p . communicate ( )
if p . returncode != 0 :
if p . returncode != 0 :
stderr = stderr . decode ( ' utf-8 ' , ' replace ' )
stderr = stderr . decode ( ' utf-8 ' , ' replace ' )
@ -134,7 +134,7 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
encodeFilename ( self . _probe_executable , True ) ,
encodeFilename ( self . _probe_executable , True ) ,
encodeArgument ( ' -show_streams ' ) ,
encodeArgument ( ' -show_streams ' ) ,
encodeFilename ( self . _ffmpeg_filename_argument ( path ) , True ) ]
encodeFilename ( self . _ffmpeg_filename_argument ( path ) , True ) ]
handle = subprocess . Popen ( cmd , stderr = compat_subprocess_get_DEVNULL ( ) , stdout = subprocess . PIPE )
handle = subprocess . Popen ( cmd , stderr = compat_subprocess_get_DEVNULL ( ) , stdout = subprocess . PIPE , stdin = subprocess . PIPE )
output = handle . communicate ( ) [ 0 ]
output = handle . communicate ( ) [ 0 ]
if handle . wait ( ) != 0 :
if handle . wait ( ) != 0 :
return None
return None