Add some details to message about extraction of video pictures and audio packets.

This commit is contained in:
Frédéric Tronel
2023-12-02 21:15:39 +01:00
parent 1ed4bbf6df
commit bb5333ffca

View File

@@ -496,7 +496,7 @@ def extractAllStreams(inputFile, begin, end, streams, filesPrefix, nbFrames, wid
memfds = []
for stream in streams:
if stream['codec_type'] == 'video':
logger.info("Extracting video stream v:%d" % videoID)
logger.info("Extracting %d frames of video stream v:%d" % (nbFrames,videoID))
frameRate = stream['r_frame_rate']
pattern = re.compile('^(?P<numerator>[0-9]+)/(?P<denominator>[0-9]+)$')
m = pattern.match(frameRate)
@@ -537,7 +537,7 @@ 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 audio stream: a:%d" % audioID)
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'])