
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (41)
-
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (7042)
-
How to play video files (mov, mp4, ts etc etc) in a web page
5 juillet 2021, par DierreI have a question about playing several video files in an intranet page.


The page is really simple, there is a list with videos ordered by name and clicking one of them, it starts in the page inside video tag using JS to replace the source.


It works with MP4 files but for example mov and other files do not work or play only audio.
I understood this is a normal problem of browsers that does not support all video types, so the question is :
Is there a way to play them without convert all files to mp4 ?


I have access to the linux server with apache web server, ffmpeg is installed I can install other software if necessary (streaming server ? file streaming ? I'm not an expert) I am not interested to live events.


Does anyone have any idea if it is possible to solve it ?


Thanks in advance


Roy


-
Discord.py rewrite play audio from youtube into voice chat
23 avril 2021, par John Henry 5I'm trying to get a bot that can join a voice chat on command and then play some audio extracted from a youtube video. I don't know how to do this and all the code that I've gotten does not seem to work. Does anyone know how to do this ?


@client.command() async def play(ctx):
 channel = ctx.message.author.voice.channel
 voice_client = await channel.connect()

 opts = {'format': 'bestaudio'}
 FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 - 
 reconnect_delay_max 5', 'options': '-vn'}

 with youtube_dl.YoutubeDL(opts) as ydl:
 song_info = ydl.extract_info('video', download=False)
 URL = song_info['formats'][0]['url']
 
 voice_client.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))



-
controlling the speed of the hls play list, generated by ffmpeg
27 mars 2024, par tamirgI have a ffmpeg process which the input is an rtsp stream, and the output is a m3u8 play list.


when i simply watches the rtsp input stream, the play speed is correct and everything works fine.
but when i play the created HLS playlist, it seems to play in a much faster speed.


The way i create the ffmpeg process :


_SEGMENT_FILE_FORMAT = 'output%d.ts'
output_dir_path = "C:\\Tempdir"


source = ffmpeg.input(
 'rtsp://myrtspserveraddress',
 rtsp_transport='tcp',
 fflags='nobuffer', 
 flags='low_delay' 
)

pipe = source.output(
 os.path.join(output_dir_path, _SEGMENT_FILE_FORMAT),
 **dict(vcodec='copy', video_bitrate='1000k'),
 copyts=None,
 f='segment', 
 segment_list_flags='live',
 segment_time=10,
 segment_list_size=20, 
 segment_wrap=20,

 segment_format='mpegts',
 segment_list=os.path.join(output_dir_path, "test_file"),
 segment_list_type='m3u8',
)



Which seems to create a list of "10 seconds" files, but the actual data in those files, is pretty much a 30 seconds video which simply plays much faster.


What exactly controls the "play speed" of the video, and how can i know why it plays faster, and control it so the play speed would be the actual speed matching the RTSP stream ?