
Recherche avancée
Autres articles (105)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
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 ;
Sur d’autres sites (15701)
-
Save on disk h264 packages received using PyAV
29 février 2020, par Vítor CézarI’m using PyAV to read packets from H.264 stream during 5 minutes. I need to save the packets encoded on disk and load and decode them later. I tried to use pickle to save the packets, but it cannot serialize them. What can I do ? Here is part of my code (an exception is thrown when I try to save the packets using pickle, so the code doesn’t work) :
import av
import time
import pickle
# open container
container = av.open(url) # url from a h264 stream
# read packages from stream during 5 minutes and add them to a list
packets = []
initialTime = time.time()
for packet in container.demux(video = 0):
packets.append(packet)
if time.time() - initialTime > 300:
break
# save packets
pickle.dump(packets, open("packets.obj", "wb"))
# load packets, get the frames they contain and saves them as files
load_packets = pickle.load(open("packets.obj", "rb"))
for idx, packet in enumerate(load_packets):
frame = packet.decode_one()
if frame is not None:
frame.to_image().save('frame-%04d-%04d.jpg' % (frame.index, idx)) -
libde265 decode hevc and save to .jpg file
31 octobre 2017, par aj3423I need to decode some hevc file to jpg, I can do this with ffmpeg :
ffmpeg -i test.hevc test.jpg
I want to integrate ffmpeg with my program, but the ffmpeg library seems to be large and not that easy to build on Win32. So I found another small and independent library libde265. Its sample demonstrates how to get every pixel of the hevc image, but it seems not able to save to a .jpg file.
What’s the simplest way to save a
de265_image
to a jpg file ? -
FFmpeg : how to produce MP4 CENC (Common Encryption) videos
2 novembre 2022, par Roland Le FrancWhat is the correct syntax to do CENC encryption with ffmpeg ?



The ffmpeg 3.0 release notes include "Common Encryption (CENC) MP4 encoding and decoding support", and the files libavformat/movenccenc.h and libavformat/movenccenc.c seem to include everything needed to encrypt MP4 files according to the Common Encryption standard.



However, I can't find any documentation on this topic in the ffmpeg manual pages.



Regards