Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (35)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP 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 (...)

Sur d’autres sites (6469)

  • How do I cut the last 10 seconds from mpeg using ffmpeg (and applescript etc) [closed]

    10 décembre 2015, par EvGeniy Ilyin

    I have many different mpeg files. In every mpeg file are credits at the end of the video. I need to cut it. How I can do it for bath(list) ?
    for example :

    ffmpeg -i my.mp4 -vcodec copy -acodec copy -ss 00:10:10 my_cute.mp4

    but every mpeg file has different duration...
    Is there a way to specify the indent from the end ?

    my answer
    using applescript organizing logic
    main parameters : the length of the titles and file folder

    1. to draw up a list of specified path mp4 files
    2. cycles through each file
      1. using ffprobe obtain data in xml with a total length video
      2. parse xml, we obtain the duration of the
      3. using ffmpeg, knowing the total duration of the video and the length of the credits at the end - set the new duration

    -- settings
    set titresDuration to 54.0
    set folderPath to "/Users/-/Downloads/-.XviD.SATRip.Thunder"

    set filesList to my filesInFolder(folderPath, true, ".mp4")
    repeat with fileName in filesList
       set videoDuration to my videoDurationOfFile(fileName)
       set fileCutName to do shell script "echo '" & fileName & "' | sed 's/\\.mp4/c\\.mp4/g'"
       if videoDuration > titresDuration then
           set videoDurationWithoutTitres to videoDuration - titresDuration
           set videoDurationWithoutTitres to my numberToString(videoDurationWithoutTitres)
           set ffmpegScript to "/usr/local/bin/ffmpeg -y -i " & quoted form of fileName & " -t " & videoDurationWithoutTitres & " -c copy " & quoted form of fileCutName
           set info to do shell script ffmpegScript
       end if
    end repeat
    log "the end"



    -- helpers methods
    on videoDurationOfFile(fileName)
       set probeScript to "/usr/local/bin/ffprobe -v quiet -print_format xml -show_format " & quoted form of fileName
       set videoTags to do shell script probeScript --"/usr/local/bin/ffprobe -v quiet -print_format xml -show_format " & fileName
       set videoDuration to 0.0
       tell application "System Events"
           set xmlData to make new XML data with properties {name:"xmldata", text:videoTags}
           set xmlFFprobe to XML element "ffprobe" of xmlData
           set xmlFormat to XML element "format" of xmlFFprobe
           set attrs to value of XML attribute "duration" of xmlFormat
           set attrs to do shell script "echo '" & attrs & "' | sed 's/[0]*$//g'"
           set attrs to do shell script "echo '" & attrs & "' | sed 's/\\./,/g'"
           set videoDuration to attrs as real
       end tell
       return videoDuration
    end videoDurationOfFile

    on numberToString(this_number)
       set this_number to this_number as string
       set this_number to do shell script "echo '" & this_number & "' | sed 's/,/\\./g'"
       if this_number contains "E+" then
           set x to the offset of "." in this_number
           set y to the offset of "+" in this_number
           set z to the offset of "E" in this_number
           set the decimal_adjust to characters (y - (length of this_number)) thru ¬
               -1 of this_number as string as number
           if x is not 0 then
               set the first_part to characters 1 thru (x - 1) of this_number as string
           else
               set the first_part to ""
           end if
           set the second_part to characters (x + 1) thru (z - 1) of this_number as string
           set the converted_number to the first_part
           repeat with i from 1 to the decimal_adjust
               try
                   set the converted_number to ¬
                       the converted_number & character i of the second_part
               on error
                   set the converted_number to the converted_number & "0"
               end try
           end repeat
           return the converted_number
       else
           return this_number
       end if
    end numberToString

    on filesInFolder(folderPath, lookInSubfolders, filter)
       set filesList to {}
       tell application "System Events" to set filesList to POSIX path of (files of folder folderPath whose name contains filter)
       if lookInSubfolders then
           tell application "System Events" to set subfoldersList to POSIX path of (folders of folder folderPath)
           repeat with subfolderPath in subfoldersList
               set subfilesList to my filesInFolder(subfolderPath, true, filter)
               repeat with subfile in subfilesList
                   set end of filesList to subfile
               end repeat
           end repeat
       end if
       return filesList
    end filesInFolder
  • FFMPEG Cannot Open The Video File (C#)

    5 décembre 2016, par Landon Conway

    I want to make a software that can read a video file and extract all the frames to get them as bitmaps so I choose to use AForge FFMPEG. However, it does not seem to be working for me as it does for others ! When I try to use ’VideoFileReader.Open’ I get this exeption :

    "An unhanded exeption of type ’System.IO.IOExeption’ occurred in AForge.Video.FFMPEG.dll

    Additional Information : Cannot open the file."

    Regardless of which video file I try to open it does not work. I also tried to run as andministrator since it may not have access to that file.

    I’m using .NET Framework 4.6.1

    Here is my code :

    using AForge.Video.FFMPEG;
    using System;
    using System.Drawing;
    using System.IO;
    using System.Windows.Forms;
    namespace Test_Video_Software
    {
       public partial class
       {
           public Form1
           {
               InitializeComponent();
           }
           private void takeApartToolStripMenuItem_Click(object sender, EventArgs e)
           {
               VideoFileReader vfr = new VideoFileReader();
               vfr.Open(@"C:\Users\LC Creations\Videos\IMG_8722.MOV");
               Bitmap videoFrame = vfr.ReadVideoFrame();
           }
       }
    }

    I looked everywhere on the internet. Even here of coarse. Nobody seems to have had this issue in the past. Any help apreciated.

  • xcbgrab : Use the correct geometry for the region highlight

    4 février 2015, par Daniel Moran
    xcbgrab : Use the correct geometry for the region highlight
    

    The feature is implemented using a transparent window and drawing
    inside it a rectangle filling the whole window to highlight it.

    Signed-off-by : Luca Barbato <lu_zero@gentoo.org>

    • [DBH] libavdevice/xcbgrab.c