
Recherche avancée
Autres articles (98)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (9927)
-
Revision 118649 : un cache un peu long sur le js d’afficher_si (comme pour saisies.css.html)
16 novembre 2019, par maieul@… — Logun cache un peu long sur le js d’afficher_si (comme pour saisies.css.html)
-
Using Python script to cut long videos into chunks in FFMPEG
23 février 2016, par Michael HamiltonStarting off by saying I’m not a programmer, but I really need the application this Python script I found says it can do.
Auto-Splitting Script by Antarctic Nest of Icephoenix
Basically I have a directory of long .MP4s that need to be cut into equal parts based on a total running time of 3 hours 15 minutes. For example, I would have an 8 hour video that needs to be cut into smaller parts each under 3:15:00.
We’ve been manually crating FFMPEG codes to do this, but I found the Python script above that seems like it will do what we are needing. The issue is that I have no Python experience. I don’t know where in the script to enter in the folder path with the videos, or where to specify my codecs, or where to tell the program that the max time for each video chunk is 3:15:00.
I’m on a 64-bit windows system working in command prompt
Here’s what I have done :
- Installed python 3
- downloaded the script
- I can click on the script to see the cmd window flash to indicate it’s running
- I enter "C :\Python34\python.exe V :\ffmpeg\ffmpeg-split.py" into cmd
-
output is
File "V :\ffmpeg\ffmpeg-split.py", line 16
print "Split length can’t be 0"SyntaxError: Missing parentheses in call to 'print'
I have no idea where to go from here. It seems like the script is loading properly, but I haven’t entered my variables. Any help with where to put the information would be appreciated.
Here is the FFMPEG code we usually use :
ffmpeg -i V :\ffmpeg\88518_63c392af.mp4 -vcodec libx264 -acodec copy -vf fps=fps=30000/1001 -ss 00:05:01.000 -t 02:43:49.000 V :\events\88518.mp4
The ffmpeg codes we use :
-i is a .mp4
-vcodec h.264 codec
-acodec should be “copy” or can be “libvo_aacenc”
-vf fps=30000/1000 a forced fps of 29.97
-ss is start time (we would use this to manually cut into parts along with -t)
-t is duration (we would calculate the duration for each part as the total run time divided by the equal time under 3:15:00 be it two, three, or four parts)
Thank you a million dollars
-
Why is long video taking long time before VideoJS player gets metadata to start playing ?
7 mars 2015, par Tom JenkinsonDoes anyone know why it is taking so long before the
loadedmetadata
event is fired for longer videos ?Here is an example : https://www.la1tv.co.uk/player/124/260
I can see in developer tools that the file is still downloading when the event is fired, so it’s not like it’s having to download the whole file, it’s just having to get quite far though before the event is fired.
The ffmpeg command I am using to encode the video from java is :
RuntimeHelper.executeProgram(new String[] {config.getString("ffmpeg.location"), "-y", "-nostdin", "-timelimit", ""+config.getInt("ffmpeg.videoEncodeTimeLimit"), "-progress", ""+f.progressFile.getAbsolutePath(), "-i", source.getAbsolutePath(), "-vf", "scale=trunc(("+f.h+"*a)/2)*2:"+f.h, "-strict", "experimental", "-acodec", "aac", "-b:a", f.aBitrate+"k", "-ac", "2", "-ar", "48000", "-vcodec", "libx264", "-vprofile", "main", "-g", "48", "-b:v", f.vBitrate+"k", "-maxrate", f.vBitrate+"k", "-bufsize", f.vBitrate*2+"k", "-preset", "medium", "-crf", "16", "-vsync", "vfr", "-af", "aresample=async=1000", "-movflags", "+faststart", "-r", f.fr+"", "-f", "mp4", f.outputFile.getAbsolutePath()}, workingDir, null, null);
which can be found here.
It has the
faststart
flag set and I thought this meant the metadata would be inserted right at the beginning of the file ?Could it be an issue with the encode settings ?
Thanks !