From cb600b920daf0e45c9acb1bddbe67e063bb2a449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tronel?= Date: Sat, 2 Dec 2023 21:17:16 +0100 Subject: [PATCH] Fix message display. --- removeads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/removeads.py b/removeads.py index 64f5884..91054b3 100755 --- a/removeads.py +++ b/removeads.py @@ -537,7 +537,6 @@ def extractAllStreams(inputFile, begin, end, streams, filesPrefix, nbFrames, wid '-color_trc:v:%d' % videoID, colorTransfer, '-color_range:v:%d' % videoID, colorRange]) videoID=videoID+1 elif stream['codec_type'] == 'audio': - logger.info("Extracting %d packets of audio stream: a:%d" % (audioID,nbPackets)) sampleRate = int(stream['sample_rate']) nbChannels = int(stream['channels']) bitRate = int(stream['bit_rate']) @@ -553,6 +552,7 @@ def extractAllStreams(inputFile, begin, end, streams, filesPrefix, nbFrames, wid if packetDuration == None: return None + logger.info("Extracting %d packets of audio stream: a:%d" % (nbPackets, audioID)) tmpname = '%s-%d.pcm' % (filesPrefix,audioID) soundBytes , memfd = extractSound(inputFile=inputFile, begin=begin, nbPackets=nbPackets, packetDuration=packetDuration, outputFileName=tmpname, sampleRate=sampleRate, nbChannels=nbChannels)