logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

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 → ODT PDF Export

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
utilisateurs:slyfox:scripts:dvd-audio6clone [21/10/2015 22:20]
Slyfox
— (Version actuelle)
Ligne 1: Ligne 1:
-====== DVD-Audio6clone ====== 
- 
-===== Paquet à installer ===== 
- 
-==== YAD ==== 
-[[https://​packages.debian.org/​sid/​amd64/​yad/​download]] 
- 
-==== mplayer ==== 
-<code root>​apt-get install mplayer</​code>​ 
- 
-==== avconv ==== 
-<code root>​apt-get install avconv </​code>​ 
-===== Script ===== 
- 
-<code user>​[quote]#​! /bin/bash 
- 
-#​================================================================= 
-#​DVD-Audio6clone 
-#​================================================================= 
-# AUTEUR: Slyfox 
-# SIGNALER BUG : [url]https://​debian-facile.org/​viewtopic.php?​pid=143030#​p143030[/​url] 
-# LICENCE: GNU General Public License v3.0 /Copieright (C) 2012 Slyfox 
-# DESCRIPTION:​ Ripe les DVD et extrait l'​audio d'une piste en mp3 
-# REQUIERS: mplayer avconv yad 
- 
-device=$(yad --form --center --width=500 --title="​DVD-Audio6clone"​ --field="​Preset":​CBE $(df | awk '/​^\/​dev\/​sr/​ {printf "​%s!"​ ,​$1}'​)) 
- 
-device=$(awk '​BEGIN{FS="​|";​} {print $1;​}'<<<"​$device"​) 
- 
-title=$(mplayer -dvd-device "​$device"​ -nocache -identify dvd:// -vo null -ao null -frames 0 2>&1 | awk '​BEGIN{FS="​_";​} /​ID_DVD_TITLE/​ && /LENGTH/ {print $4}') 
- 
-nomDVD=$(mplayer -dvd-device "​$device"​ -nocache -identify dvd:// -vo null -ao null -frames 0 2>&1 | awk '​BEGIN{FS="​=";​} /​ID_DVD_VOLUME_ID/​ {print $NF}') 
- 
-infoDVD=$(for i in $title ; do 
- duree=$(mplayer -dvd-device "​$device"​ -nocache -identify dvd://$i -vo null -ao null -frames 0 2>&1 |  
- awk 'BEGIN {FS="​_|=";​} ​ 
- /​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 |  
- 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 |  
- 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}'​ 
-done) 
- 
-choix=$(yad --form--center --width=500 --title="​DVD-Audio6clone"​ \ 
---field="​Piste à extraire":​CBE "​$infoDVD"​ \ 
---field="​Débit du MP3":​CBE "​320k!192k!160k!128k!96k!64k!32k"​ \ 
---field="​Nom du fichier MP3" "​$nomDVD.mp3"​ \ 
---field="​Dossier destination":​DIR "/​home/​$USER"​) 
- 
-title=$(awk '​BEGIN{FS=":​| ";} {print $3}'<<<"​$choix"​) 
-aid=$(awk '​BEGIN{FS=":​| ";} {print $11}'<<<"​$choix"​) 
-debit=$(awk '​BEGIN{FS="​|";​} {print $2}'<<<"​$choix"​) 
-cheminOut=$(awk '​BEGIN{FS="​|";​} {printf "​%s/​%s"​ ,​$4,​$3}'<<<"​$choix"​ | awk '​BEGIN{FS="​.";​} {printf "​%s"​ ,​$(NF-1)}'​) 
- 
-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>​ 
- 
  
utilisateurs/slyfox/scripts/dvd-audio6clone.1445458841.txt.gz · Dernière modification: 21/10/2015 22:20 par Slyfox

Pied de page des forums

Propulsé par FluxBB