
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (40)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (6757)
-
Extract number of frames without using shell-True
26 mars 2022, par petrushI have the following code that extract number of frames from video :


filename = "test.mp4"
video_path = os.path.join(os.getcwd(), filename)
with open(video_path, "rb") as file:
 cmd = f'ffmpeg -i {video_path} -r 10 -q:v 3 -s 1x1 -f image2 -update 1 - >/dev/null'
 proc = sp.Popen(cmd, stdout=sp.PIPE, stderr=sp.PIPE, shell=True)
 (stdout, stderr) = proc.communicate()

 # i.e: 'frame= 2062 fps=966 q=3.0 Lsize=N/A time=00:10:34.46 bitrate=N/A dup=1049 drop=3563 speed= 297x'
 decoded = stderr.decode('utf-8')
 frame_count_line = decoded.splitlines()[-2]
 m = FRAME_COUNT_REGEX.search(frame_count_line)
 if m:
 print(int(m.groups()[0]))



but because of security reasons I want to remove
shell=True
parameter.
Unfortunately after that the code above throws :

FileNotFoundError: [Errno 2] No such file or directory



Please help to fix it


-
avcodec/mpegvideo_enc : Remove always-true check
23 mars 2022, par Andreas Rheinhardt -
Is there a way to use ffmpeg for RGB to true YUV (not YCbCr) conversion ?
16 avril 2022, par haidahaidaAs far as I can see in the documentation, all conversions involving YUV actually use YCbCr. There are slight differences though, and I would like to convert to the actual YUV format. Is there any way at all using ffmpeg ? As an afterthought, is there any other way that is as fast as ffmpeg ?




Image source