Dans le monde des serveurs de streaming audio on trouve beaucoup d'acteurs. Les plus connus sont bien sur shoutcast et icecast, tous deux robustes et riches en fonctionnalités. Cependant ils sont également très demandeurs en ressources, et nombre de ces fonctionnalités ne sont pas indispensables pour l'usage de base. D'un autre coté je voulais écrire moi-même un serveur de streaming en perl, et c'était en soi une raison suffisante pour me lancer :) Au final TinyCast (c'est son nom) est un serveur petit (du point de vue du nombre de lignes de code, il faut tout de même l'interpréteur perl en RAM), et très modulaire.
Remarque : ce programme comme tout ce qui se trouve ici est expérimental, cependant je suis satisfait du code et la stabilité est pour le moment très bonne.
Le programme est organisé en 3 parties :
Le serveur lui même n'est donc constitué que de deux modules perl, le travail de décodage et de réencodage en un format streamable est fait par des programmes externes, ce qui explique en partie la légèreté du code. (L'autre explication est la puissance du perl ;) )
L'installation est on ne peut plus simple, Assurez vous d'abord de disposer des modules perl suivants :
Avant de pouvoir utiliser le serveur, il y a quelques paramètres à configurer. Editez streamer.pl et modifiez les paramètres suivants à votre guise :
my $PORT = 8888; # Port d'écoute du serveur my $MAXCLIENTS = 10; # Nombre maximal de clients simultanés my $BUFSIZE = 4096; # Taille des buffers, ne pas changer my $CLIENTBUF = 128000; # Buffer client autorisé avant déconnexion my $SOURCEBUF = 65536; # Données à conserver pour une mise en buffer rapide coté client my $SERVERNAME = "vic development server"; # Message envoyé au client lorsqu'il se connecte my $VERSION = "0.1"; # Plutot inutile :) my $debug = 0; # Affiche des infos de debug si 1, va en background si 0
Vous pouvez tout de suite lancer le serveur de streaming en tapant :
Ensuite paramétrez le fichier types.conf qui définit les commandes de décodage/encodage audio. Le fichier doit contenir au moins une ligne "Bitrate N" qui détermine le débit du flix audio. Ce débit est constant pour une source donnée. On trouve également dans ce fichier un nombre quelconque de lignes "FileLike" qui indiquent les traitement à appliquer à chaque type de fichier audio. Cette commande prend deux arguments, le premier est une expression rationnelle qui permet d'identifier le fichier (par son extension en général), et le second donne la commande d'encodage. L'exemple ci-dessous prend en compte les fichiers sid (musique C64), les fichiers mp3, les fichiers ogg, les fichiers SPC (Musiques SNES) et différents types de modules. La chaîne "%F" est substituée par le nom du fichier à jouer.
Bitrate 128000 FileLike "\.sid$" "./sid_source.pl %F |lame -S -r -s 44.1 -m s -x - -" FileLike "\.mp3$" "lame %F --resample 44.1 -b 128 -" FileLike "\.ogg$" "ogg123 %F -q -d raw -f - |lame -S -r -s 44.1 -m s -x - -" FileLike "\.(669|mod|xm|s3m|it)$" "mikmod -d pipe,pipe=cat -q -f 44100 -o 16s --hqmixer --surround --noloops -X %F |lame -S -r -s 44.1 -m s-x - -" FileLike "\.spc$" "./spcsource %F | lame -S -r -s 32 -b 128 -m s -x --resample 44.1 - -"
Bien sur il faut installer séparément les programmes de décodage/encodage, voire les coder vous-mêmes pour les formats les plus baroques (comme j'ai du le faire pour les fichiers SID et SPC).
Lancez maintenant la source, par exemple :
$ ./source.pl /home/coincoin/extremia.mod
Voilà, vous pouvez maintenant écouter le serveur à l'aide de votre lecteur préféré, en vous connectant sur le port configuré précédement.
Comments
lollollollollollollollollollollollollollol hahaha
Economics Assignment Help
By: [url=https://economicsassignmentshelp.com/]Economics Assignment[/url]
Predicated around the concepts of this completely free Market System, the Economy Economic System is that our government doesn't intervene with a lot of the market's mattes however, also the personal entities require a whole good deal of financial power particularly inside the invaluable resources.
By: Economics Assignment
Ben la fille, comment elle regardait...
Check over here: บาคาร่า บาคาร่า
approved pharmacies in canada
https://www.fda.gov/consumers/consumer-updates/how-buy-medicines-safely-online-pharmacy
canadian pharmacy
https://www.ama-assn.org/system/files/2018-12/i18-cms-report1.pdf
https://www.pharmacy.texas.gov/SB410.asp
https://napra.ca/online-pharmacies
online pharmacies in canada
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC359423/
https://www.pharmacist.com/sites/default/files/audience/Joint Statement APhA and CPhA Importation .pdf
http://dhhs.nv.gov/Programs/CHA/RX/CanRX/Canadian_Pharmacy_Pgm/
https://www.statnews.com/pharmalot/2019/08/14/canada-importation-drug-prices/
https://nabp.pharmacy/wp-content/uploads/2019/03/NABP-Drug-Importation-Statement-2019.pdf
https://www.safemedicines.org/2015/10/5-secrets-canadian-pharmacies-dont-want-you-to-know.html
Bitdefender Antivirus Support
Bellen Avast nederland
John of
Dumpster rental dayton Ohio
Duct cleaning Cincinnati Oh
Mold Inspection Dayton
Duct Cleaning Dayton OH
Septic Pumping Houston
Junk Removal Dayton Oh
Landscaping Dayton OH
Septic Pumping Corpus Christi TX
this will very helpful
assignment help experts
thanx for sharing this thread
amazing article
myassignmenthelp refund
thanx for sharing this thread
amazing article
https://assignmenthelp.com.sg/myassignmenthelp-com-review/
One Funnel Away Challenge 2021
giant brand solutions
this is good knowledge you share with us
we know eduction is very important so you should know more about myassignmenthelp legit
لعبة من سيربح المليون
لعبة جاتا
صب واي سيرفرس
زوما
العاب كلاش
www.pharmacychecker.com
www.cipa.com
www.pharmacists.ca
Learn More
Tags: Canada Online
Vancouver
Canadian Services
Approved Pharmacy
Burnaby
Surrey
Langley
North Vancouver
Maple Ridge
Delta
Richmond
Abbotsford
Chilliwack
Coquitlam
Port Coquitlam
New Westminster
Mission
Vernon
Victoria BC
Nanaimo
Kelowna
Kamloops
Prince George
British Columbia
Bad Credit Car Loans
Moving Companies
Best Movers
Relocation Services
Shipping
Towing Companies
Tow Truck
Railings
Staircases
Designers
Interior Design
Psychic
Office Moving
Fortune Tellers
Custom Design
Pharmacy
Prescriptions
Skin Care
Products
Organic
Beauty Care
Natural
Pest Control
Canada Drives
Stanford
Website
Website
Tourism
Service Canada
Cryptocurrency Exchange
Pardon Services
Carpet Cleaning
House Cleaning
Pressure Washing
Gutter Cleaning
Roof Cleaning
Landscaping
Kitchens
SEO Agency
Trading
Finance
Automobile
Bicyles
E Bikes
Motorcycles
Canadian
Scrap Car Removal
Cash For Junk Cars
Recycle
Edmonton
Calgary
Red Deer
Alberta
Toronto
Ontario
USA
New York
Search Engine Optimization
Companies in BC
In Your Area
Prescriptions Online
electric bikes
quickappliancerepair.ca/langley-appliance-repair
movers in burnaby
custom railings
tow truck surrey
cash for cars
psychic reader
langley appliance repair
Stanford Pharmacy Forum
yelp.ca/search?cflt=homeappliancerepair&find_loc=Langley+City,+BC
Sell Your Junk Car To Your Local Junk Yard In Vancouver How We Became Vancouver's Most Popular Car Removal Professionals.
Natural and organic skincare products combine essential vitamins, botanicals, and minerals to heal and restore our skin—without the toxins.
Trust our Burnaby, BC movers with full-service packing and storage services. If you need to move your home or business within or out of BC. Choose the best affordable movers in Burnaby. Reliable moving services. We make your move easy.
Surrey Towing Service Near Me. Our Services - Best Surrey Tow Trucks | Flatbed Towing Services Delta & Langley & New West | EMERGENCY SERVICE TRUCKS, 24/7 365 DAYS PER YEAR! Getting in an accident is never a good thing!
The Auto finance department offers all types of car loans, including bad credit car loans to Vancouver, Richmond, Burnaby, Westminster, Surrey and Delta. Get a Bad Credit Car Loan in Vancouver, BC - Auto Financing for all types of situations in British Columbia. Greater Vancouver No Credit Vehicles Online.
Very aesthetically beautiful. A trackless system. View. Driveway Sliding Gates. Sliding Gates. A beautiful entrance. We custom build driveway gates in North Vancouver BC based on the dimensions, design and square footage of your residential property.
scrap car removal
bitcoin
canada pharmacy
coquitlam car removal
Supporters
enquiries
about
visit website
learn more
USA Pharmacies
Research Online
buy prescription drugs
Meds Canada
About Canada
business in Canada
Pharmacist in Canada
If you are looking for HP printer tech support you are in right place. Here you can find how can you get connected to HP printer tech support. As we all know about HP is a reputed tech and gadget company manufacturing Laptops, computers, Printer, Softwares, and other gadgets as well. HP has billions of customers across the world. So it is not too easy to get support easily from them but you can reach to hp printer tech support and contact hp printer support easily online.
hp-printer-tech-support-phone
Tiles Visualizer
A suivre...