
Recherche avancée
Autres articles (63)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (11248)
-
ffmpeg on Heroku : TypeError : Cannot read property 'on' of undefined , ffmpegProc.stdout.on('data', function(data) { ^
27 avril 2020, par Vikram SapateI'm using ffmpeg.exe to convert video to audio .
On local machine it works fine but when deployed on heroku server it throws error like....



/app/node_modules/fluent-ffmpeg/lib/processor.js:190
 ffmpegProc.stdout.on('data', function(data) {
^
TypeError: Cannot read property 'on' of undefined



Please help me ....!


-
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 ?