Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (54)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (5846)

  • Using Python script to cut long videos into chunks in FFMPEG

    23 février 2016, par Michael Hamilton

    Starting 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 Jenkinson

    Does 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 !

  • How to reduce execution time in long video using ffmpeg

    26 juin 2019, par vikram

    I am using ffmpeg for adding text over video and add overlay image over video in android everything works for me but it takes too long to execute command mostly in long video that more than or equals to 10 sec

    String  imgcmd[]=new String[]{"-i", inputpath ,"-i",imagepath ,"-filter_complex", "[0:v][1:v]overlay=main_w-overlay_w-10:main_h-overlay_h-10", "-codec:a", "copy",output};

                       String[] txtcmd = new String[]{"-i",""+inputpath, "-filter_complex", "drawtext=text=Vikram Dulagach:fontcolor=#000000:fontsize=54:x=533:y=503:fontfile="+"/sdcard/retro.ttf", "-y" ,""+output};

    I want reduce execution time in ffmpeg