Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:slyfox:scripts:dvd-audio6clone [21/10/2015 22:22] Slyfox [Paquet à installer] |
utilisateurs:slyfox:scripts:dvd-audio6clone [14/03/2017 20:00] Slyfox [Script] |
||
---|---|---|---|
Ligne 10: | Ligne 10: | ||
===== Script ===== | ===== Script ===== | ||
- | <code user>[quote]#! /bin/bash | + | <code user>#! /bin/bash |
- | #================================================================= | + | #============================================================================================================================================ |
#DVD-Audio6clone | #DVD-Audio6clone | ||
- | #================================================================= | + | #============================================================================================================================================ |
# AUTEUR: Slyfox | # AUTEUR: Slyfox | ||
- | # SIGNALER BUG : [url]https://debian-facile.org/viewtopic.php?pid=143030#p143030[/url] | + | # SIGNALER BUG : https://debian-facile.org/viewtopic.php?pid=143030#p143030 |
# LICENCE: GNU General Public License v3.0 /Copieright (C) 2012 Slyfox | # LICENCE: GNU General Public License v3.0 /Copieright (C) 2012 Slyfox | ||
# DESCRIPTION: Ripe les DVD et extrait l'audio d'une piste en mp3 | # DESCRIPTION: Ripe les DVD et extrait l'audio d'une piste en mp3 | ||
- | # REQUIERS: mplayer avconv yad | + | # REQUIERS: mplayer ffmpeg yad |
- | device=$(yad --form --center --width=500 --title="DVD-Audio6clone" --field="Preset":CBE $(df | awk '/^\/dev\/sr/ {printf "%s!" ,$1}')) | + | device=$(yad --form --center --width=500 --title="DVD-Audio6clone" --field="Chemin du lecteur DVD":CBE $(df | awk '/^\/dev\/sr/ {printf "%s!" ,$1}')) |
device=$(awk 'BEGIN{FS="|";} {print $1;}'<<<"$device") | device=$(awk 'BEGIN{FS="|";} {print $1;}'<<<"$device") | ||
Ligne 30: | Ligne 30: | ||
infoDVD=$(for i in $title ; do | infoDVD=$(for i in $title ; do | ||
- | duree=$(mplayer -dvd-device "$device" -nocache -identify dvd://$i -vo null -ao null -frames 0 2>&1 | | + | duree=$(mplayer -dvd-device "$device" -nocache -identify dvd://$i -vo null -ao null -frames 0 2>&1 | |
- | awk 'BEGIN {FS="_|=";} | + | awk 'BEGIN {FS="_|=";} |
- | /ID_LENGTH/ {printf "%02d:%02d:%02d\n" ,int($NF/3600), int($NF/60%60),$NF%60}') | + | /ID_LENGTH/ {printf "%02d:%02d:%02d\n" ,int($NF/3600), int($NF/60%60),$NF%60}') |
- | title=$(mplayer -dvd-device "$device" -nocache -identify dvd://$i -vo null -ao null -frames 0 2>&1 | | + | title=$(mplayer -dvd-device "$device" -nocache -identify dvd://$i -vo null -ao null -frames 0 2>&1 | |
- | awk 'BEGIN{FS="_|=.";} /ID_DVD_TITLE/ && /LENGTH/ {print $4}') | + | awk 'BEGIN{FS="_|=.";} /ID_DVD_TITLE/ && /LENGTH/ {print $4}') |
- | mplayer -dvd-device "$device" -nocache -identify dvd://$i -vo null -ao null -frames 0 2>&1 | | + | mplayer -dvd-device "$device" -nocache -identify dvd://$i -vo null -ao null -frames 0 2>&1 | |
- | awk -v i="$i" -v duree="$duree" 'BEGIN{FS="_|=";} | + | awk -v i="$i" -v duree="$duree" 'BEGIN{FS="_|=";} |
- | /ID_AID_/ {printf "Titre: %s Durée: %s AID: %s Langue: %s!" ,i,duree,$3,$5}' | + | /ID_AID_/ {printf "Titre: %s Durée: %s AID: %s Langue: %s!" ,i,duree,$3,$5}' |
done) | done) | ||
- | choix=$(yad --form--center --width=500 --title="DVD-Audio6clone" \ | + | choix=$(yad --form --center --width=500 --title="DVD-Audio6clone" \ |
--field="Piste à extraire":CBE "$infoDVD" \ | --field="Piste à extraire":CBE "$infoDVD" \ | ||
--field="Débit du MP3":CBE "320k!192k!160k!128k!96k!64k!32k" \ | --field="Débit du MP3":CBE "320k!192k!160k!128k!96k!64k!32k" \ | ||
Ligne 54: | Ligne 54: | ||
mplayer -dvd-device "$device" dvd://"$title" -aid "$aid" -dumpaudio -dumpfile "$cheminOut.wav" | mplayer -dvd-device "$device" dvd://"$title" -aid "$aid" -dumpaudio -dumpfile "$cheminOut.wav" | ||
- | avconv -y -i "$cheminOut.wav" -ar 44100 -ac 2 -ab "$debit" "$cheminOut.mp3"[/quote]</code> | + | ffmpeg -y -i "$cheminOut.wav" -ar 44100 -ac 2 -ab "$debit" "$cheminOut.mp3"</code> |