Blog

Présentation

Blog03Bonjour,
Je me présente Didier Castellacci Je suis développeur C++ depuis 5 ans dont 15 ans en tant que DBA en base de données Oracle, PostgreSql, et Mysql. J'ai pu récupérer toutes mes connaissances SQL pour le mettre à profit dans le développement C++, pour ce qui est du développement C++ en base de données, comme System-Caisse (base de données SQLite).

Je présente dans ce blog mes projets développés en C++.

System-Caisse qui est développé en C++ avec les Frameworks QT/GTK et C# en .NET.

J' ai développé un projet un lecteur mp3 (Player) qui lit les fichiers mp3 et les URLs (WebRadios) mp3. La particularité pour les WebRadios c'est la lecture des "StreamTitles" (metadatas) fournit dans le flux WebRadio mp3; et pour la lecture des fichiers mp3 ce sont les metadatas enregistrer dans le fichier mp3 (metadata comme: nom de l'artiste, titre de la musique etc...).

Et aussi un mini projet (ReadTagId3v2) lecture de TAG dans le fichier mp3 permet, la lecture des metadatas enregistrés dans le fichier mp3, dans son ensemble uniquement pour les TAG de la version 2.4 (TAG Id3 v2 (2.4)) que je vais présenter dans le blog, ainsi que le lecteur mp3 (Player).

Tous mes développements sont en Anglais s'est devenu un standard aujourd'hui.

Voilà passons à plus technique.

Player et ReadTagId3v2 fonctionnent en mode ligne de commande, sous Linux (Ubuntu) et Microsoft (Windows). Je vais faire une version Windows en mode graphique plus tard pour Player, et un projet Android par la suite. Quant à ReadTagId3v2, ReadTagId3v2 restera en ligne de commande aussi bien sous Linux (Ubuntu) que sous (Microsoft) Windows.

Player et ReadTagId3v2 sont des projets Freeware et ne sont pas en version d'évaluation comme System-Caisse.

Player et ReadTagId3v2 sont développés en langage C++ (GNU GCC C++) avec les librairies standard de C++ et pour Player l'ajout des librairies (libmpg123-dev, libao-dev, libcurl4-gnutls-dev), Install client (Depends: libmpg123-0, libcurl4, libao4)

Vous pouvez m'envoyer vos commentaires à @ contact.caisse@gmail.com

En vous remerciant.

Présentation de Player et ReadTagId3v2 (Installation, Fonctionnement et Suppression sous Linux (Ubuntu)).

1) Installation Player

>sudo dpkg -i player-1.0_amd64.deb

Sortie / Output : 

PLAYER

Selecting previously unselected package player.
(Reading database ... 184303 files and directories currently installed.)
Preparing to unpack player-1.0_amd64.deb ...
Unpacking player (1.0) ...
Setting up player (1.0) ...


Si les librairies ne sont pas installées faire après install:
>sudo apt-get install -f


Install ce fait dans le répertoire : /usr/local/bin

>pwd
/usr/local/bin

/usr/local/bin$ ls -l
total 120
drwxrwxr-x  2 root root  4096 déc.  12 09:07 ./
drwxr-xr-x 10 root root  4096 déc.  12 09:05 ../
-rwxr-xr-x  1 root root 70656 déc.  11 16:14 Player*
	

2) Installation ReadTagId3v2

>sudo dpkg -i readTagId3v2-1.0_amd64.deb

Sortie / Output : 

READTAGID3V2

Selecting previously unselected package readtagid3v2.
(Reading database ... 184300 files and directories currently installed.)
Preparing to unpack readTagId3v2-1.0_amd64.deb ...
Unpacking readtagid3v2 (1.0) ...
Setting up readtagid3v2 (1.0) ...


Si les librairies ne sont pas installées faire après install:
>sudo apt-get install -f


Install ce fait dans le répertoire : /usr/local/bin

>pwd
/usr/local/bin

/usr/local/bin$ ls -l
total 120
drwxrwxr-x  2 root root  4096 déc.  12 09:07 ./
drwxr-xr-x 10 root root  4096 déc.  12 09:05 ../
-rwxr-xr-x  1 root root 37216 déc.  11 16:20 ReadTagId3v2*
	

3) Exécuter Player

>Player + fichier.mp3

Blog04

Player
Usage: Player 
Options:
         -h,--help              Show this help message and exit
         -v,--version           Display version information and exit
         EXIT : Ctrl + c

         For example:
         Player FILE(s):
         Player *.mp3
         Player File.mp3
         Player File1.mp3 File2.mp3 ...

         Player URL:
         Player http://stream.xx.fr/xx.mp3
	

>Player + WebRadio.mp3 (Toutes les WebRadios MP3 Winamp...)

Blog05

Player
Usage: Player 
Options:
         -h,--help              Show this help message and exit
         -v,--version           Display version information and exit
         EXIT : Ctrl + c

         For example:
         Player FILE(s):
         Player *.mp3
         Player File.mp3
         Player File1.mp3 File2.mp3 ...

         Player URL:
         Player http://stream.xx.fr/xx.mp3
	

4) Exécuter ReadTagId3v2

>ReadTagId3v2 + fichier.mp3

Blog06

ReadTagId3v2 
Usage: ReadTagId3v2 
Options:
         -h,--help              Show this help message and exit
         -v,--version           Display version information and exit

         For example:
         ReadTagId3v2 File.mp3
	

5) Supprimer Player / ReadTagId3v2
PLAYER

Exécuter
>dpkg -l | grep player

Sortie / Output : 
    
ii  player                       1.0                          amd64        Player
	

Exécuter
>sudo dpkg -P player

Sortie / Output : 
    
(Reading database ... 184303 files and directories currently installed.)
Removing player (1.0) ...
	

ReadTagId3v2

Exécuter
>dpkg -l | grep readtagid3v2

Sortie / Output : 
    
ii  readtagid3v2                  1.0                         amd64        ReadTagId3v2
	

Exécuter
>sudo dpkg -P readtagid3v2

Sortie / Output : 
    
(Reading database ... 184302 files and directories currently installed.)
Removing readtagid3v2 (1.0) ...
	


Télécharger / Download



Présentation de Player et ReadTagId3v2 (Installation, Fonctionnement sous Microsoft (Windows)).

1) Installation Player

>Extract All... player-1.0_Setup.zip

Sortie / Output : 

PLAYER

 Directory of C:\Users\Wi\Downloads\player-1.0_Setup

>libao-4.dll
>libcrypto-1_1-x64.dll
>libcurl-x64.dll
>libmpg123-0.dll
>libssl-1_1-x64.dll
>libwinpthread-1.dll
>Player.exe
	

2) Installation ReadTagId3v2

>Extract All... readTagId3v2-1.0_Setup.zip

Sortie / Output : 

READTAGID3V2

 Directory of C:\Users\Wi\Downloads\readTagId3v2-1.0_Setup

>libwinpthread-1.dll
>ReadTagId3v2.exe
	

3) Exécuter Player

>Player + fichier.mp3

Blog05

Player
Usage: Player 
Options:
         -h,--help              Show this help message and exit
         -v,--version           Display version information and exit
         EXIT : Ctrl + c

         For example:
         Player FILE(s):
         Player *.mp3
         Player File.mp3
         Player File1.mp3 File2.mp3 ...

         Player URL:
         Player http://stream.xx.fr/xx.mp3
	

>Player + WebRadio.mp3 (Toutes les WebRadios MP3 Winamp...)

Blog06

Player
Usage: Player 
Options:
         -h,--help              Show this help message and exit
         -v,--version           Display version information and exit
         EXIT : Ctrl + c

         For example:
         Player FILE(s):
         Player *.mp3
         Player File.mp3
         Player File1.mp3 File2.mp3 ...

         Player URL:
         Player http://stream.xx.fr/xx.mp3
	

4) Exécuter ReadTagId3v2

>ReadTagId3v2 + fichier.mp3

Blog07

ReadTagId3v2 
Usage: ReadTagId3v2 
Options:
         -h,--help              Show this help message and exit
         -v,--version           Display version information and exit

         For example:
         ReadTagId3v2 File.mp3
	

5) Problème Time
Si vous avez le compteur de Time qui se bloque, suivre l'exemple (Property/Propriété cmd, et Properties/Propriétés)

Property/Propriété cmd

Blog08Click Property/Propriété dans le menu.

Properties/Propriétés

Blog09Check Use legacy console/Check Utiliser l'ancienne console et Click OK.
Il faut relancer cmd, pour que les changements soient prix en compte.



Télécharger / Download