
Recherche avancée
Autres articles (70)
-
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 ;
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
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 (12493)
-
ffmpeg setpts filter not applied to output
29 avril 2019, par joe5Learning to speed up and slow down video using the ffmpeg setpts filter, but I am struggling to get a simple expression to work.
ffmpeg -i .\F5-ff.mp4 -filter:v "setpts=0.25*PTS" ff-test3.mp4
I get the output file, but it is not any faster than the original.
I’m sorry if this has already been addressed. Most related post I’ve found were trouble shooting more complex operations past this step. Im working in a powershell terminal fyi.
-
Revision c7acd6db5e : Added unit test for vp8_post_proc_down_and_across This is a unit test for the p
19 juin 2012, par Adrian GrangeChanged Paths : Add /test/pp_filter_test.cc Modify /test/test.mk Added unit test for vp8_post_proc_down_and_across This is a unit test for the post-processing functions : - vp8_post_proc_down_and_across_c - vp8_post_proc_down_and_across_mmx - vp8_post_proc_down_and_across_xmm Change-Id : (...)
-
How to add new video files to HLS ?
3 décembre 2022, par NoriI'm having trouble live streaming a video file that is constantly updated using HLS.


Video files recorded by POST from the client are sent to the server.


The server converts the received video to HLS (.m3u8 .ts).


You can convert to .m3u8 and .ts with the following code.


def to_m3u8(movie_path: Path):
 """
 Convert mp4 to m3u8.
 :param movie_path:
 :return: m3u8 file path
 """
 m3u8_path = movie_path.parent/f"{movie_path.stem}.m3u8"
 command = f"ffmpeg -i {movie_path} " \
 f"-c copy " \
 f"-f segment -segment_time_delta 0 " \
 f"-segment_list_type hls " \
 f"-movflags +faststart " \
 f"-preset ultrafast " \
 f"-hls_playlist_type event " \
 f"-hls_flags append_list " \
 f"-hls_list_size 10 " \
 f"-segment_list_size 0 " \
 f"-segment_list {m3u8_path} " \
 f"-segment_format mpegts " \
 f"{movie_path.parent}/segment_%03d.ts"

 logger.info(f"command: {command}")
 subprocess.run(command, shell=True)
 return m3u8_path



I can see the .m3u8 .ts file being overwritten every time I receive POST data.


But when I open the .m3u8 in VLC it plays a few seconds of video and then stops.


.m3u8 file is like this.


#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:5
#EXTINF:4.660000,
segment_000.ts
#EXTINF:4.120000,
segment_001.ts
#EXTINF:0.160000,
segment_002.ts
#EXT-X-ENDLIST



I thought
#EXT-X-ENDLIST
is don't need. So I remove the line. Below code.

with open(m3u8_path, "r") as f:
 lines = f.readlines()
 with open(m3u8_path, "w") as f:
 for line in lines:
 if line.startswith("#EXT-X-ENDLIST") is False:
 f.write(line)



How ever it can't streaming. It's behave like a movie file.


How can I read the newly added files at any time ?


Can it be handled by changing FFmpege options ?