Ceci est une ancienne révision du document !
Faire une image iso d'un dvd
1)obtention des infos avec isoinfo (dans le paquet genisoimage)
$ isoinfo -d -i /dev/sr0
CD-ROM is in ISO 9660 format
System id:
Logical block size is: 2048
Volume size is: 3566195
2) copie du DVD au format ISO avec dd
$ dd if="chemin_nom_du_dvd" bs="Logical block size" count="Volume size" of="chemin_nom_du_fichier_iso"
Pour convertir un fichier .avi en .mp4 avec ffmpeg:
ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a aac -strict experimental -b:a 192k -ac 2 out.mp4
FreeBSD AUDIO:
Mixer: Gestion du son
liste des réglages en cours
mixer
réglage du volume:
mixer vol=110,110 mixer pcm=110,110
OpenBSD AUDIO:
Mixerctl: Gestion du son
liste des réglages en cours
mixerctl -v
pour modifier le volume
mixerctl outputs.master=110,110
pour switcher entre sortie analogique/numérique
mixerctl -t outputs.mode
Cdio: gestion du cd-rom (audio)
connaître le nombre de pistes d'un cd (avant de le copier sur MD)
cdio info
lire les pistes de x à y
cdio cdplay x-y
Convertir des ogg en mp3, de manière récurente, sans effacer les ogg,44100 Hz, 128 kb/s:
find /repertoire/ -type f -name '*.ogg' -exec sh -c 'for f do echo "Conversion : $f"; ffmpeg -stats -i "$f" -vn -ar 44100 -c:a libmp3lame -b:a 128k -abr 0 "${f%.*}.mp3"; done' sh {} +
Convertir les mp3 au format 44100 Hz, 128 kb/s, cbr:
find . -type f -iname '*.mp3' -exec sh -c 'for f do echo ">>> Conversion : $f"; ffmpeg -y -nostdin -hide_banner -stats -i "$f" -vn -ar 44100 -c:a libmp3lame -b:a 128k -abr 0 -map_metadata 0 "${f%.*}.tmp.mp3" && mv "${f%.*}.tmp.mp3" "$f"; echo ">>> Terminé : $f"; done' sh {} +
find . -type f -iname '*.mp3' -exec sh -c 'for f do info=$(ffprobe -v error -select_streams a:0 -show_entries stream=sample_rate,bit_rate -of default=noprint_wrappers=1 "$f" 2>/dev/null); freq=$(printf "%s\n" "$info" | awk -F= '\''$1=="sample_rate"{print $2;exit}'\''); bitrate=$(printf "%s\n" "$info" | awk -F= '\''$1=="bit_rate"{print $2;exit}'\''); if [ "$freq" = 44100 ] && [ "$bitrate" = 128000 ]; then echo "IGNORE : $f"; continue; fi; echo "CONVERSION : $f"; tmp="${f%.*}.tmp.mp3"; if ffmpeg -y -nostdin -hide_banner -stats -i "$f" -map 0:a:0 -map_metadata 0 -ar 44100 -c:a libmp3lame -b:a 128k -abr 0 "$tmp"; then mv "$tmp" "$f" && echo "TERMINE : $f"; else rm -f "$tmp"; echo "ERREUR : $f"; fi; done' sh {} +
Pour les caractéristiques d'un fichier son:
mpg123 -t -v fichier.mp3
—-
YT-DLP
Pour télécharger/installer (depuis Github):
wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
Rendre éxecutable:
chmod a+rx /usr/local/bin/yt-dlp
Mettre à jour:
yt-dlp -U
Installation de cryptodome pour Arte:
pkg_add py3-crypto