Add some details to message about extraction of video pictures and audio packets.
This commit is contained in:
		| @@ -496,7 +496,7 @@ def extractAllStreams(inputFile, begin, end, streams, filesPrefix, nbFrames, wid | |||||||
|         memfds = [] |         memfds = [] | ||||||
|         for stream in streams: |         for stream in streams: | ||||||
|             if stream['codec_type'] == 'video': |             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'] |                 frameRate = stream['r_frame_rate'] | ||||||
|                 pattern = re.compile('^(?P<numerator>[0-9]+)/(?P<denominator>[0-9]+)$')  |                 pattern = re.compile('^(?P<numerator>[0-9]+)/(?P<denominator>[0-9]+)$')  | ||||||
|                 m = pattern.match(frameRate) |                 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]) |                                      '-color_trc:v:%d' % videoID, colorTransfer,  '-color_range:v:%d' % videoID, colorRange]) | ||||||
|                 videoID=videoID+1 |                 videoID=videoID+1 | ||||||
|             elif stream['codec_type'] == 'audio': |             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']) |                 sampleRate = int(stream['sample_rate']) | ||||||
|                 nbChannels = int(stream['channels']) |                 nbChannels = int(stream['channels']) | ||||||
|                 bitRate = int(stream['bit_rate']) |                 bitRate = int(stream['bit_rate']) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user