
Recherche avancée
Autres articles (28)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (3669)
-
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 ?