TA的每日心情 | 奋斗 9 分钟前 |
---|
签到天数: 1150 天 [LV.10]以坛为家III
星辰大海
    
- 积分
- 1463382
|
本帖最后由 tmdtmdtmdqq 于 2022-6-14 15:51 编辑
看了一下sushi的源代码,发现可以设置一个参数变量 --temp-dirL784:
parser.add_argument('--temp-dir', default=None, dest='temp_dir', metavar='<string>',
help='Specify temporary folder to use when demuxing stream.')
==========================================
L516:
def format_full_path(temp_dir, base_path, postfix):
if temp_dir:
return os.path.join(temp_dir, os.path.basename(base_path) + postfix)
else:
return base_path + postfix
==========================================
L572:
if dst_demuxer.is_wav:
dst_audio_path = args.destination
else:
dst_audio_path = format_full_path(args.temp_dir, args.destination, '.sushi.wav')
dst_demuxer.set_audio(stream_idx=args.dst_audio_idx, output_path=dst_audio_path, sample_rate=args.sample_rate)
临时输出的时候应该就会在这个目录输出了
|
|