
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (105)
-
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 (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (6931)
-
FFMPEG : Cut Video AND Include Ending Video/Image
7 novembre 2016, par user3273784I am using this command line to add a five second image on end of video :
ffmpeg -i "f:\output\input.mov" -loop 1 -t 5 -i "f:\output\taff.jpg" -f lavfi -t 5 -i anullsrc -filter_complex "[0:v] [0:a] [1:v] [2:a] concat=n=2:v=1:a=1 [v] [a]" -c:v libx264 -c:a aac -strict -2 -map "[v]" -map "[a]" f:\output\output.mp4
It works great, but sometimes I want to cut the video and then add the five seconds. So, make a 120 second video 110 seconds, then add the 5 second ending.
Possibly in one command line ? I’ve tried to break it into two, by starting with cutting the video, but then I get an "Unable to parse option value "-1" pixel format" error if I try to re-encode the video I cut with ffmpeg using this :
ffmpeg -i f:\output\input.mov -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:01:50.000 f:\output\output.mov
That output video will then give an error if I try to run the first command line against it.
All feedback appreciated on shortening a video, and then adding ending.
Cheers !
Ryan -
FFMPEG : Cut Video AND Include Ending Video/Image
10 février 2019, par user3273784I am using this command line to add a five second image on end of video :
ffmpeg -i "f:\output\input.mov" -loop 1 -t 5 -i "f:\output\taff.jpg" -f lavfi -t 5 -i anullsrc -filter_complex "[0:v] [0:a] [1:v] [2:a] concat=n=2:v=1:a=1 [v] [a]" -c:v libx264 -c:a aac -strict -2 -map "[v]" -map "[a]" f:\output\output.mp4
It works great, but sometimes I want to cut the video and then add the five seconds. So, make a 120 second video 110 seconds, then add the 5 second ending.
Possibly in one command line ? I’ve tried to break it into two, by starting with cutting the video, but then I get an "Unable to parse option value "-1" pixel format" error if I try to re-encode the video I cut with ffmpeg using this :
ffmpeg -i f:\output\input.mov -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:01:50.000 f:\output\output.mov
That output video will then give an error if I try to run the first command line against it.
All feedback appreciated on shortening a video, and then adding ending.
Cheers !
Ryan -
Creating mpd files of multiple video resolutions for a video streaming platform
19 novembre 2022, par WebDivaI am creating a video streaming platform. Users can upload videos and multiple resolutions of that video are created during upload. Finally an mpd file is generated using these resolutions. I want to find the most quick and efficient way to do this. Currently, I am using ffmpeg and MP4box for the task.


After hours of research, this is what I am doing currently :


- 

- Strip the audio from video using ffmpeg :




ffmpeg -i video.mp4 -c:a aac -ac 2 -ab 128k -vn video-audio.mp4



- 

- Create multiple resolutions of the vide using ffmpeg :




ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut -b:v 5300k -maxrate 5300k -bufsize 2650k -vf scale=trunc1080:(oh*a/2)*1 video-1080.mp4

ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut -b:v 2400k -maxrate 2400k -bufsize 1200k -vf scale=trunc(oh*a/2)*1:720 video-720.mp4

ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut -b:v 1060k -maxrate 1060k -bufsize 530k -vf scale=trunc(oh*a/2)*1:478 video-480.mp4

 ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut -b:v 600k -maxrate 600k -bufsize 300k -vf scale=trunc(oh*a/2)*1:360 video-360.mp4

ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut -b:v 260k -maxrate 260k -bufsize 130k -vf scale=trunc(oh*a/2)*1:242 video-240.mp4



- 

- Finally, generate the dash manifest using MP4Box :




MP4Box -dash 1000 -rap -frag-rap -profile onDemand -out video.mpd video-1080.mp4 video-720.mp4 video-480.mp4 video-360.mp4 video-240.mp4 video-audio.mp4



As you can see this is a lot of code and I am not really sure this would work well in production.
So, Is there are a more quick and optimal way of doing exactly the same thing that I am doing right now without this much code ? And will all this be possible just using ffmpeg and not mp4box ? And If multiple users are uploading video at a given time, will these cause any overhead on the server ? Regards.