
Recherche avancée
Autres articles (43)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
D’autres logiciels intéressants
12 avril 2011, parOn ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
Videopress
Site Internet : (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (11139)
-
Python and ffmpeg
7 septembre 2013, par Cory GwinI am attempting to call ffmpeg to create an image from a frame in a video, I am using python to do this with subprocess.Popen on a mac, eventually this will move to a unix server.
I can successfully create a video from the command line with this line
ffmpeg -i /Users/bimemployee/Movies/ski\ commute.m4v -r .5 -vframes 1 -ss 00:01:14 /Users/bimemployee/Movies/untitled\ folder/image-%d.jpeg
I then turn this into a python iterable and passed it Popen
s=["ffmpeg","-i","Users/bimemployee/Movies/ski\ commute.m4v","-r","1","-vframes","1","-ss","00:01:14","/Users/bimemployee/Movies/untitled\ folder/image-%d.jpeg"]
subprocess.Popen(s)When I do so I get the standard info screen from ffmpeg and an error that says Users/bimemployee/Movies/ski\ commute.m4v : No such file or directory
Why would this path work ok from the command line but not from python ?
Secondly is their a better library for handling this, the ones I could find don't seem to be active projects or don't work with straight python but require things like cython.
Thanks,
CG -
Short HLS MPEG2 Video Segments Do Not Play
24 août 2019, par Jon HI’ve been attempting to cut a video into small segments (words), to be rearranged. While I’ve been able to do it with FFMPEG, cutting into segments and using the fast concat demuxer to reassemble the segments, I am trying to speed it up.
I have been doing this by splitting the original video into short MPEG2 .ts segments for each word :
ffmpeg -ss 1 -to 1.5 -i "source.mp4" -c:v libx264 -b:v 1200k -c:a aac -b:a 192k -hls_flags single_file "word.ts"
I have then tried making a m3u8 playlist of these short video segments, but I found that only segments around 2 seconds or more, play at all.
I then tried using the ’cat’ command to join these segments into a single file, which I understand should be possible with MPEG2 streams. However, this did not play all the segments either.
To test if all the segments were present in this concatenated file, I used FFMPEG to convert it back into an MP4 file, and all the segments were present.
I would appreciate any suggestions on producing the segments, and concatenating individual segments simply without FFMEPG. My project isn’t viable if having to call FFMPEG each time, but would work great if I can simply concatenate words together.
-
FFmpeg crashing on drawtext filter (ffmpeg-python)
31 août 2023, par DeadSecHey guys so im trying to use ffmpeg-python to add text to a video but its crashing at


[Parsed_drawtext_0 @ 0000012ea115ee80] Setting 'text' to value 'hi'


and I'm not sure what I can do to fix this problem. I tried pure FFmpeg command-line style and still the same issue where it gets stuck at
Setting text to value
and it simply outputs a 0byte mp4 after crashing.

My code :


os.environ['FONTCONFIG_FILE'] = r'C:\Users\NOP\NOP\NOP\NOP\binaries\fonts\fonts.conf'
 os.environ['FONTCONFIG_PATH'] = r'C:\Users\NOP\NOP\NOP\NOP\binaries\fonts'
 os.environ['FC_CONFIG_DIR'] = r'C:\Users\NOP\NOP\NOP\NOP\binaries\fonts'
 in_ = ffmpeg.input(output_video_logo)
 in_ = in_.drawtext(text='hi')
 ffmpeg.output(in_, output_video).global_args('-loglevel', 'debug').run(cmd=FFMPEG_PATH)



Font config file :


<?xml version="1.0"?>


<fontconfig>





 <dir>WINDOWSFONTDIR</dir>
 <dir>~/fonts</dir>
 <dir prefix="cwd">.</dir>
 <dir>~/.fonts</dir>


 <match target="pattern">
 <test qual="any">
 <string>mono</string>
 </test>
 <edit mode="assign">
 <string>monospace</string>
 </edit>
 </match>


 <match target="pattern">
 <test qual="any">
 <string>sans serif</string>
 </test>
 <edit mode="assign">
 <string>sans-serif</string>
 </edit>
 </match>


 <match target="pattern">
 <test qual="any">
 <string>sans</string>
 </test>
 <edit mode="assign">
 <string>sans-serif</string>
 </edit>
 </match>


 <include>conf.d</include>



 <cachedir>WINDOWSTEMPDIR_FONTCONFIG_CACHE</cachedir>
 <cachedir>~/.fontconfig</cachedir>

 <config>


 <rescan>
 <int>30</int>
 </rescan>
 </config>

</fontconfig>



Is this a issue with any of my fontconfig or script ? I'm really lost on fixing this.


As requested by Rotem tried adding new input to drawtext and this was the output before crashing with no error message :
Successfully opened the file.


[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'box' to value '1'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'boxcolor' to value 'yellow'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'fontcolor' to value 'blue'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'fontsize' to value '72'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'text' to value 'hi'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'x' to value '10'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'y' to value '10'



Full log :
https://pastebin.com/E6sHvwUz