
Recherche avancée
Autres articles (83)
-
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 ;
-
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 (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)
Sur d’autres sites (8319)
-
VIDEO HLS (m3u8) - Simulate a local connection rate ?
13 octobre 2017, par kouakou alexyI am in local development, wampserver and laravel 5.3
I use ffmpeg to convert video files to HLS (video.m3u8).
The quality adapts according to the user’s connection speed. Youtube uses this technology.
I now want to test according to the bitrate but I am in local.
The video plays automatically in the best format.Is there a solution to simulate a local connection rate ?
-
Generating fragmented mp4 ffmpeg is causing the video to have a duration of 0ms in bento4
23 octobre 2020, par nobossIm using ffmpeg to generate a fragmented mp4 with the following command :


ffmpeg -re -i ./input.mp4 -g 52 \
-strict experimental -acodec aac -ab 64k -vcodec libx264 -vb 448k \
-f mp4 -movflags frag_keyframe+empty_moov \
./output.mp4



When I'm playing it in an HTMLMediaElement the
video.duration = Infinity
.
When I inspect the file withmp4info
from bento4 I get :

File:
 major brand: isom
 minor version: 200
 compatible brand: isom
 compatible brand: iso2
 compatible brand: avc1
 compatible brand: mp41
 fast start: yes

Movie:
 duration: 612961 ms
 time scale: 1000
 fragments: no

Found 2 Tracks
Track 1:
 flags: 3 ENABLED IN-MOVIE
 id: 1
 type: Video
 duration: 0 ms
 language: und
 media:
 sample count: 15322
 timescale: 12800
 duration: 7844864 (media timescale units)
 duration: 612880 (ms)
 bitrate (computed): 2587.007 Kbps
[...]
Track 2:
 flags: 3 ENABLED IN-MOVIE
 id: 2
 type: Audio
 duration: 0 ms
 language: eng
 media:
 sample count: 26398
 timescale: 44100
 duration: 27031552 (media timescale units)
 duration: 612960 (ms)
 bitrate (computed): 128.584 Kbps
[...]



Has someone any idea what I'm doing wrong ?


-
OpenFaas. Write python function with FFmpeg using
11 août 2021, par Валентин НикинI need to write OpenFaas function which can accept binary file as parameter. This function will extract some data from that binary file. Based on that data function will generate ffmpeg command. And finally function must be call ffmpeg to process generated command and return file as output.


Function language must be python, because I need to use some python modules to process input binary file.


The main questions :


- 

- Can I accept binary a file as function parameter (in python function) ?
- Can I call ffmpeg from python function, and return binary file as output ?






I have already met with alexellis official example (https://github.com/alexellis/openfaas-streaming-templates) but that example used bash language.


I have one idea, but I don't know is it correct.
Maybe I can use example with bash, to accept binary file as parameter, then I call python script, after that I call ffmpeg, and return file as output as described in the example.
But I need some python modules available with pip. So, I don't know how I can got this.


I'm newest in OpenFaas, so any idea would be appriciated