
Recherche avancée
Autres articles (58)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (5394)
-
Chop video in parts
15 mai 2019, par Reckless VelociraptorI tried to use this command :
ffmpeg -i "in.mp4" -codec copy -map 0 -f segment -segment_list out.txt -segment_times 01:00:00,01:00:00,01:00:00 out%03d.mp4
and expected 1hour long parts. But this is not what I get. What is correct syntax for -segment_times ?
-
asp.net core live mp4 streaming
8 octobre 2020, par kdmaPrologue :


I have a hikvision ipcamera that streams raw h264 from a rtsp :// url, I need to play this live feed in the browser.


I managed to get a basic RTSP->ffmpeg-> (faststart) mp4 pipeline working and I can play the video when saved to a file.


I don't understand how to make my controller action "streamable".


I've tried various approaches like writing to Response.Body, Transfer-Encoding : chunked but nothing seems to work.
Here is the basic code :


public IActionResult Play5(){ 
 var ms = new MemoryStream();
 var muxer = new RTSPToMp4(ms);
 Task.Run(() => muxer.Stream());
 return new FileStreamResult(ms, "video/mp4");
}



The memory stream contains the live feed but the response is empty here is the request\response from chrome :


Request


method: GET
:path: /api/stream/play5
:scheme: https
accept: */*
accept-encoding: identity;q=1, *;q=0
accept-language: it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7
cache-control: no-cache
pragma: no-cache
range: bytes=0-
referer: https://localhost:5001/Stream
sec-fetch-dest: video
sec-fetch-mode: no-cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36



Response


content-length: 0
content-type: video/mp4
date: Thu, 08 Oct 2020 14:31:06 GMT
server: Kestrel
status: 200



Am I missing something ?


-
PHP-FFMpeg video output is truncated
25 juin 2019, par showdevI’m using the PHP-FFMpeg library found here and code from the "Basic Usage" section.
The outputted video seems to be truncated. I’m using a source video that’s 28 seconds long, but the output is only 9 seconds. What’s going wrong ?
Here, I’m checking the duration of the source video :
$ffprobe = FFMpeg\FFProbe::create();
$duration = $ffprobe
->format('test/source.mp4')
->get('duration');28.700000
Then generating an output video :
$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open('test/source.mp4');
$video->save(new FFMpeg\Format\Video\X264(), 'test/export.mp4');Then checking the duration of the output video :
$ffprobe = FFMpeg\FFProbe::create();
$duration = $ffprobe
->format('test/export.mp4')
->get('duration');9.234000