
Recherche avancée
Autres articles (6)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...)
Sur d’autres sites (1880)
-
concat string within ffmpeg subprocess check_call
6 juillet 2012, par knishuaneed to replace filename in subprocess command i.e. filename
filename = '\'D\:/imagesequence/thumbnail.jpg\''
task = '\"movie= ' + filename + '[watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]\"'c = subprocess.check_call(["ffmpeg", "-i", "D :/imagesequence/background222.jpg", "-vf", task, "D :/imagesequence/fwtm108.jpg"],shell=True)
this gives error
# Error: CalledProcessError: Command '['ffmpeg', '-i', 'D:/imagesequence/background222.jpg', '-vf', '"movie= \'D\\:/imagesequence/thumbnail.jpg\'[watermark];[in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]"', 'D:/imagesequence/fwtm107.jpg']' returned non-zero exit status 1 #
when put altogether it works well
c = subprocess.check_call(["ffmpeg", "-i", "D:/imagesequence/background222.jpg", "-vf", "movie= 'D\:/imagesequence/thumbnail.jpg'[watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]", "D:/imagesequence/fwtm101.jpg"],shell=True)
even this works
task = "movie= 'D\:/imagesequence/thumbnail.jpg'[watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]"
c = subprocess.check_call(["ffmpeg", "-i", "D:/imagesequence/background222.jpg", "-vf", task, "D:/imagesequence/fwtm102.jpg"],shell=True)any different view. I am not able to see it.
-
Does ffmpeg violate the SAT>IP specification (DESCRIBE syntax) ? [closed]
26 février, par Eric WoltermannI am trying to play a SAT>IP stream using
ffmpeg -i rtsp://sat.ip/?src=1&freq=11493&pol=h&sr=22000&msys=dvbs&pids=0,5100,5101,5101,8191
, which returnsmethod DESCRIBE failed: 404 Not Found
. For reference, VLC plays the stream just fine.


When
tcpflow
ing the ffmpeg traffic, I get the following :


192.168.002.104.34018-192.168.002.222.00554: OPTIONS rtsp://sat.ip:554/?src=1&freq=11493&pol=h&sr=22000&msys=dvbs&pids=0,5100,5101,5101,8191 RTSP/1.0
CSeq: 1
User-Agent: Lavf58.29.100


192.168.002.222.00554-192.168.002.104.34018: RTSP/1.0 200 OK
CSeq: 1
Public: OPTIONS, SETUP, PLAY, TEARDOWN, DESCRIBE


192.168.002.104.34018-192.168.002.222.00554: DESCRIBE rtsp://sat.ip:554/?src=1&freq=11493&pol=h&sr=22000&msys=dvbs&pids=0,5100,5101,5101,8191 RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Lavf58.29.100


192.168.002.222.00554-192.168.002.104.34018: RTSP/1.0 404 Not Found
CSeq: 2




ffmpeg first issues an OPTION command, then a DESCRIBE, asking for the specified stream. The SAT>IP spec (http://www.satip.info/sites/satip/files/resource/satip_specification_version_1_2_2.pdf) however says in chap. 3.5.7 :





If no session has been previously setup on the SAT>IP server (and thus no stream has been created), the response to the DESCRIBE request will be error message 404 (stream not found). 
 So in my opinion ffmpeg violates the spec when issuing a URI-specfic DESCRIBE without a SETUP, and thus the 404 response is correct.





Am I missing something here ?



(By the way, of course I tried to open an issue in the ffmpeg bug tracker, but registration does not work).


-
PNG with Alpha to HEVC (H.265)
22 juin 2022, par nicholasI'm trying to encode a png sequence to videos with transparency for the web. I can encode a webm video with :


ffmpeg -i ./renders/full/frame-%04d.png -c:v libvpx-vp9 movie-webm.webm


But to get an mp4, I'm trying :


ffmpeg -i ./renders/full/frame-%04d.png -vcodec png tmp.mov


to get a MOV, then :


avconvert --preset PresetHEVC1920x1080WithAlpha --source tmp.mov --output movie-265.m4v


to make the mp4.


But I get




avconvert : invalid configuration (preset name
PresetHEVC1920x1080WithAlpha) with tmp.mov




How do I encode the frames into something that
avconvert
will recognize ?