Para convertir el fichero m4a usaremos ffmpeg y desde la terminal escribiremos:
ffmpeg -i audio.m4a -acodec libmp3lame -ab 192k archivo.mp3
Página web sobre: REDES, CISCO, ENSEÑANZA, LINUX, INFORMÁTICA, AFICIONES, LECTURA, LEARN ENGLISH, BASES DE DATOS. Si te ha servido de ayuda esta web, haz un comentario. paco.aldarias [ arRoba ] gmail. com
Para convertir el fichero m4a usaremos ffmpeg y desde la terminal escribiremos:
ffmpeg -i audio.m4a -acodec libmp3lame -ab 192k archivo.mp3

Playlist ID: 105932mtp-getplaylist id
Name: rosa
Parent ID: 100
Tracks:
69564: RosaVientosPodcast.com - RVP #409 (13 Julio 2009)
70752: RosaVientosPodcast.com - RVP #408 (12 Julio 2009)
...
Ejemplo:mtp-getplaylist -n playlistid
mtp-getplaylist 105932
libmtp version: 0.3.0
Device 0 (VID=041e and PID=4161) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
PTP: Opening session
Number of items: 28
69564: RosaVientosPodcast.com - RVP #409 (13 Julio 2009)
70752: RosaVientosPodcast.com - RVP #408 (12 Julio 2009)
Ejemplo:
File ID: 110740
Filename: 20090209.mp3
File size 38723605 (0x00000000024EE015) bytes
Parent ID: 96
Storage ID: 0x00010001
Filetype: ISO MPEG-1 Audio Layer 3
File ID: 111925
Filename: 20090208.mp3
File size 38629147 (0x00000000024D6F1B) bytes
Parent ID: 96
Storage ID: 0x00010001
Filetype: ISO MPEG-1 Audio Layer 3
GESTION DE CARPETAS
Ejemplo:
mtp-sendfile 20090706.mp3 20090706.mp3
Your system does not appear to have UTF-8 enabled ($LANG="es_ES.UTF-8")
If you want to have support for diacritics and Unicode characters,
please switch your locale to an UTF-8 locale, e.g. "en_US.UTF-8".
libmtp version: 0.3.0
Device 0 (VID=041e and PID=4161) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
PTP: Opening session
Sending 20090706.mp3 to 20090706.mp3
type:mp3,1
Sending file...
Progress: 39621060 of 39621060 (100%)
New file ID: 45632
PTP: Closing session
mtp-sendfile audio.mp3 -f U2
Envia un el fichero f.mp3 a la carpeta U2
mtp-tracks
Muestra las pistas grabadas.
Grabar todos los mp3 nuevos de una carpeta
ls -la | grep mp3 | awk '{print $8}' > temp.txt
for i in $(cat temp.txt);do
echo $i
existe=0
for j in $(mtp-tracks | awk '/Origfilename/ {print $2}');do
if [ $i = $j ];then
existe=1
echo "existe"
fi
done
if [ $existe -eq 0 ];then
echo "Grabando $i"
mtp-sendfile $i Music/$i
fi
done