diff --git a/lib/flac2pod.py b/lib/flac2pod.py index 4ca091d..3998ba1 100755 --- a/lib/flac2pod.py +++ b/lib/flac2pod.py @@ -102,9 +102,13 @@ def scan_destination_convert(): _bake_args, _flac2pod_rg_tags = '', f"-metadata comment='FLAC2PODRG#{_rggain}#{_rgpeak}#'" else: _bake_args, _flac2pod_rg_tags = '', '' + if args.preserve: + _art_args = '-c:v copy -map_metadata 0:g' + else: + _art_args = '-vn' # generate the appropriate ffmpeg command - _cmd = f"screen -DmS flac2pod{_i} ffmpeg -i {_file_s} -c:a aac -ab 256k {_bake_args} -map_metadata 0 " \ - f"{_flac2pod_rg_tags} -aac_pns 0 -movflags +faststart -vn {_file_d}