
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (107)
-
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 (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
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 (7247)
-
Basic to use FFMPEG in Python (Django Rest Framework)
31 juillet 2018, par Feed GitI’m writing a viewset in Django Rest Framework to convert images sequence into video by using FFMPEG but I don’t understand how I can do it. I tried but not success. Please help me with my code.
My code :
class VideoRenderSerializer(ModelSerializer):
imageSequence = ListField(required=False, child=FileField(max_length=100000, allow_empty_file=False, use_url=False))
class Meta:
model = Video
fields = [
'imageSequence',
]
class VideoRenderView(ModelViewSet):
queryset = Video.objects.all()
serializer_class = VideoRenderSerializer
def render_video(self, request):
imgSequences = request.FILES.getlist('imageSequence')
render_from_img_sequences_cmd = 'ffmpeg -loop 1 -i image.png -vf format=yuv420p -t 30 C:\output.mp4'
ffmpegresult = subprocess.call(render_from_img_sequences_cmd, shell=True, stdout=open(os.devnull, "w"), stderr=subprocess.STDOUT)
return Response(ffmpegresult, status=200)Output is : 1 and I cant find where is output file !
-
ffmpeg php video basic uses and types [theoritical]
15 mai 2014, par HackerManiacCan anyone give a code on how do i covert a video using ffmpeg.
As thought currently i have only uploading system.
vu.php(only a part is shown)
define('UPLOAD','../../videos/');
$fileName = time().$file['name'];
$target = UPLOAD.$fileName;
if(move_uploaded_file($file['tmp_name'],$target)){
exec("ffmpeg -i ".UPLOAD." ".UPLOAD.$filename.".flv");
}This pice of code block just uploads the video on video folder but does not converts it to
.flv
.
I am not sure how to use ffmpeg.My diretory looks like this
www[localhost]->videos[videos folder]
www[localhost]->pictures[pictures folder]
www[localhost]->resources[folder]->php[folder]->vu.phpI also want to return a
.jpg
image of any frame of video through json by converting via ffmpeg and uploading it topictures
folder.return json_encode(array("thumbnail"=>$image_src));
UPDATE 1
The above stuff was solved but now i have a question regarding video conversion.
Suppose i have a file.avi and i want to convert it in 3 sizes of.flv
format -> Low(320p) ,Medium (720p)and HD(1080p)what commands will i have to send to
shell_exec();
and will that be fast enough ?
CUrrently what i have is$vidSize = "640x480";
$ffmpeg -i $videoFile -ar 22050 -ab 32 -f flv -s $vidSize $vidFileAnd i am not sure what
-ar
and-ab
means and what value will be good for all those 3 sized videos ? -
Where i made mistake - FFMPEG (LINUX) PROBLEM - basic
22 mars 2019, par FejorI just start learing ffmpeg, i have code (like bellow), but it’s doing nothing. Where i make mistake ? What wrong with that ?
Sory for my language mistakes, i am not realy fluent in englishfmpeg -i videoplayback.mp4 -filter_complex "[1:v]trim=start=0:end=1,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[intro1];
[1:v]trim=start=1:end=123.39,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[main1];
[1:v]trim=start=123.39:end=124.39,setpts=PTS-STARTPTS,scale=480x360,setsar=sar=16/9[end1];
[intro1]format=pix_fmts=yuva420p, fade=t=in:st=0:d=1:alpha=1[intro1];
[end1]format=pix_fmts=yuva420p, fade=t=in:st=0:d=1:alpha=1[end1];
[intro1][main1][end1][output];
[a:1][audio]; -vcodec libx264 -map "[output]" -map"[audio]" "output.mp4"