
Recherche avancée
Autres articles (69)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (10375)
-
Play playlist of audio on website using node to create a jukebox / radio app
1er juillet 2022, par neffSo I have some time on my hands and thought I would make myself a little jukebox / radio type app.



It would be fairly simple, just a collection of MP3's on the server, one is chosen at random, it plays, on completion, the next one is chosen and plays. The front of this would just be a super simple page that has a player and displays the metadata.



I don't really have any experience with server programming but I'm going to look in to Node, seems like it would be good for this. I've already written a little script in Python that chooses a song from a selection and plays it (using VLC at the moment) so it should be simple to port it to Node / js.



Just wondering if someone could point me in the right direction for how to link the "player" with the "playlist".



Looking in to it, I can only find solutions involving a client and server using shoutCast or ICEcast or similar - so the playlist streams audio to a shoutcast server, and the website is just a player looking at the shoutCast URL - that seems unnecessary for me, as the streaming and the site would be the same thing.



New to a lot of this :) but I have time at the moment so happy to get stuck in !



Thanks in advance


-
How to create TS segment on demand if M3U8 playlist is given
18 juin 2020, par Dinesh KumarWhile transcoding I have to create m3u8 playlist manually and now on-demand I want to create .ts files. I have used FFmpeg's cut option from start to end but .ts files have audio problems while getting played.



I have a command which creates ts files as well as m3u8.



ffmpeg -i input -g 10 -hls_time 3 -hls_list_size 0 out.m3u8




But as I said out.m3u8 I already have and the above command takes time to generate all ts files. Is there any other command in which I can generate one ts file when the start and end are given ?



I have tried commands below :



ffmpeg -i input -acodec aac -vcodec h264 -ss 0 -to 3 chunk1.ts
ffmpeg -i input -acodec aac -vcodec h264 -ss 3 -to 6 chunk2.ts
...



-
Decrypt .m3u8 playlist and merge it into single .mp4 file with ffmpeg
19 juillet 2020, par kekundelI have a folder which contains
.key
file,.m3u8
file and a bunch of.ts
files.

My
.m3u8
looks like this :

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:5
#EXT-X-KEY:METHOD=AES-128,URI="mykey.key"
#EXTINF:4.004000,
000000.ts
#EXTINF:4.004011,
000001.ts
#EXTINF:4.004000,
000002.ts
#EXTINF:4.004000,
000003.ts

...

#EXT-X-ENDLIST



What I want to do is to decrypt it and merge this playlist into a single .mp4 file


I tried this ffmpeg command on my Windows machine :


ffmpeg -i "myvid.m3u8" -codec copy output.mp4



But I get a following error :


[hls @ 000002780f0a8dc0] Skip ('#EXT-X-VERSION:3')
[hls @ 000002780f0a8dc0] Filename extension of 'mykey.key' is not a common multimedia extension, blocked for security reasons.
If you wish to override this adjust allowed_extensions, you can set it to 'ALL' to allow all
[hls @ 000002780f0a8dc0] Unable to open key file mykey.key
[hls @ 000002780f0a8dc0] Opening 'crypto:000000.ts' for reading
[hls @ 000002780f0a8dc0] Opening 'crypto:000001.ts' for reading
[hls @ 000002780f0a8dc0] Error when loading first segment '000000.ts'
myvid.m3u8: Invalid data found when processing input



I changed my command to following :


ffmpeg -allowed_extensions ALL -i "myvid.m3u8" -codec copy output.mp4



Then I got this error :


[hls @ 000001a079cf8f80] Skip ('#EXT-X-VERSION:3')
[hls @ 000001a079cf8f80] Opening 'mykey.key' for reading
[hls @ 000001a079cf8f80] Opening 'crypto:000000.ts' for reading
[hls @ 000001a079cf8f80] Opening 'crypto:000001.ts' for reading
[hls @ 000001a079cf8f80] Error when loading first segment '000000.ts'
myvid.m3u8: Invalid data found when processing input



At this point I don't really understand what the problem is.
Any idea how can I fix this ?


I'm open to use any other software if this can't be done with ffmpeg or smth


Thanks !