Convert flac to mp3 (with the mp3-file in the subdir “mp3”):
$ Get-ChildItem *.flac | %{ ffmpeg.exe -i $_ -codec:a libmp3lame -qscale:a 2 ("mp3\{0}.mp3" -f $_.BaseName) }
Convert flac to mp3 (with the mp3-file in the subdir “mp3”):
$ Get-ChildItem *.flac | %{ ffmpeg.exe -i $_ -codec:a libmp3lame -qscale:a 2 ("mp3\{0}.mp3" -f $_.BaseName) }
If you have a VMWare-Background, handling libvirt-snapshots is very counter-intuitive. With VMWare, you take a snapshot and make changes to the actual disk. So when you’re done and haven’t encountered any problems, you just delete the snapshot and be happy.
With libvirt it’s the other way around: You work with the snapshot! This means you have to commit the changes to the base image after making changes! If you just delete the snapshot you’re back where you started! To make things worse, there are internal and external snapshots, and the latter aren’t fully supported by libvirt, meaning you can’t delete external snapshots with virsh.
So, to “emulate” VMWare-Behavior you have to:
# snapshot-create-as <domain> <snapshot-name> --disk-only --atomic
# start <domain>
Don’t let you fool by the output of snapshot-list: even though it says that the domain is shutoff, you’re actually working with the snapshot!
# qemu-img commit <filename-of-external-snapshot>
Don’t worry about the destination. It’s in the metadata of the snapshot. Repeat for every disk of the VM and remove the (now very small) snapshot files.
# snapshot-delete <domain> --metadata <name-of-snapshot>
Well, maybe it’s easier with internal snapshots (it should, because the procedure above is quite a dance…), but it works.