
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (87)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...)
Sur d’autres sites (9555)
-
ffmpeg save hls to m3u8 with mp4 segments
9 juin 2018, par J. OmenI am looking for a command ffmpeg, which saving live input (rtmp or hls) to hls m3u8 with mp4 segments files. I know that it is possible to do, i.e. there is infohttps://bitmovin.com/hls-news-wwdc-2016/ but every command I tries - makes ts files. Anyone know solution ?
-
Revision a1f15814be : Clamp decoded feature data Not all segment feature data elements are full-range
27 novembre 2012, par John KoleszarChanged Paths : Modify /vp9/common/vp9_seg_common.c Modify /vp9/common/vp9_seg_common.h Modify /vp9/decoder/vp9_dboolhuff.c Modify /vp9/decoder/vp9_dboolhuff.h Modify /vp9/decoder/vp9_decodframe.c Modify /vp9/encoder/vp9_bitstream.c Modify /vp9/encoder/vp9_boolhuff.c (...)
-
FFMPEG save last 10 sec before a movement and next 30secs
2 novembre 2020, par Set1ishI have a surveillance camera that process frame by frame live video. In case of movement, I want to save a video containing the last 10 seconds before the movement and next 30 seconds after the movement.
I beleve (may be I'm wrong), that last 10 second + next 30seconds task, should be obtained without decoding-rencoding process.


I try to use python with fmmpeg pipes, creating a reader and a writer, but the reader seams too slow for the stream and I loose some packets (= loose on video quality for saved file).


Here my code


import ffmpeg
import numpy as np

width = 1280
height = 720


process1 = (
 ffmpeg
 .input('rtsp://.....',rtsp_transport='udp', r='10', t="00:00:30")
 .output('pipe:', format='rawvideo', pix_fmt='yuv420p')
 .run_async(pipe_stdout=True)
)

process2 = (
 ffmpeg
 .input('pipe:', format='rawvideo', pix_fmt='yuv420p', s='{}x{}'.format(width, height))
 .output("prova-02-11-2020.avi", pix_fmt='yuv420p',r='10')
 .overwrite_output()
 .run_async(pipe_stdin=True)
)
while True:
 in_bytes = process1.stdout.read(width * height * 3)
 if not in_bytes:
 break
 in_frame = (
 np
 .frombuffer(in_bytes, np.uint8)
 )

 #In future I will save in_frame in a queue
 out_frame = in_frame
 
 process2.stdin.write(
 out_frame
 .astype(np.uint8)
 .tobytes()
 )

process2.stdin.close()
process1.wait()
process2.wait()



If I run


ffmpeg -i rtsp://... -acodec copy -vcodec copy -t "00:00:30" out.avi



It look that decode-rencode process is done in quick/smart way without loosing any packet.
My dream is to make the same on python for the surveillance camera but intergrating with code that analyse the stream.


I would like that the flow for creating the file, does not requires decoding + enconding. The last 10secs frames are in a queue and, at specific event, the contenet of queue plus next 30secs frames are saved into a avi file


I have the constraints to have realtime motion detection on live streaming


Did you have any comments or suggestion ?