
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (46)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (9410)
-
Nginx video streaming - ffmpeg convert to flv, but requsted is mp4
18 juin 2012, par abrahabI am converting videos from different sources with ffmpeg to mp4 with libx264 codec.
The following command (simplified) :
ffmpeg -i 1.mp4 -y -f mp4 -vcodec libx264 -crf 28 -threads 2 -strict experimental -acodec aac -ab 56k -ar 44100 -ac 2 temp.mp4
Then, I can not stream the output file (500 Internal Server Error) with nginx mp4-streaming solution (aka http pseudo streaming). My system administrator found, that if rename file to
flv
it stream well, so, seems the output file is notmp4
, butflv
? Why ? How to correctly convert ? Or, please, suggest how to stream video properly ? I think thatmp4
is much better thenflv
... therefore I choose mp4.In other words, the problem is to stream output file like
mp4
.ps i also need to be sure that this video will always work at ipad after convertation. thanks and sorry for my bad english.
EDIT : I found that if convert video with the same string but without
-vcodec libx264
- nginx can serve the output.mp4
file well. where may be the problem ? -
How do I resize my video ? in proportion (python)
23 septembre 2022, par ggn0*I am sorry for my poor English. It's a translator.


I used Python moviepy to resize it, but the pixels are broken. I want to make the video 9:16 ratio while maintaining the original image quality. (So that there are black frames on both sides)


from moviepy.editor import *
c = VideoFileClip('test.mp4')
f = c.resize(newsize=(1080,1920))
f.write_videofile('aa.mp4')



This code causes pixels to collapse.


Let me show you an example picture.








It doesn't have to be moviepy, so I'd appreciate it if you could tell me how to use Python. (PIL ? opencv ?)


Thank you so much. Have a nice day 🙏


-
Using FFMPEG and PHP to encode HLS video on the fly
21 avril 2024, par mrsmithI'm re-encoding a MP4 video to HLS using FFMPEG with PHP. I'm trying to then directly serve to the output to a HTML page's
<video></video>
tag. The following script (encode.php) encodes the video as I require and it works if I use the script url directly in VLC player for example but I'm struggling to get the gtml page to play it. The resulting video file should be compatible with most browsers. I usevideo.src = 'encode.php'
on my player html page.

Any help appreciated.


<?php

$input_video = 'whatever.mp4';

// video passthrough
// hls format
// audio (english strems only) to aac (6 channel)
// output to stdout

$ffmpeg_command = 'ffmpeg -i ' . escapeshellarg($input_video) . ' -map 0:v -c:v copy -map 0:a:m:language:eng -c:a aac -ac 6 -b:a 320k -f hls -hls_time 30 -hls_list_size 120 -start_number 0 -';

$handle = popen($ffmpeg_command, 'rb');

header('Content-Type: application/vnd.apple.mpegurl');
header('Content-Disposition: inline; filename="output.m3u8"');

// stream the output to the browser
fpassthru($handle);
pclose($handle);
?>