Recherche avancée

Médias (91)

Autres articles (3)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (1720)

  • Yesterdays date in "MMdd", and specific output folder selection depending on date

    17 mai 2016, par AudioTroubler

    so im trying to manage CCTV footage,
    and so far i’ve come up with this code in powershell :

    Gets yesterdays date in MMdd (todays version will be 0516), -> selects all files that begin with that -> compresses them using ffmpeg -> moves to another folder -> deletes source fules

    $a = get-date -format "MMdd"
    $b = 1
    $c = $a - $b
    $d = $c.ToString("0000")
    $inProcessPath = "sourcepath"
    $oldVideos = Get-ChildItem -Include @("$d *") -Path $inProcessPath -Recurse;

    Set-Location -Path 'D:\ffmpeg\bin';

    foreach ($oldVideo in $oldVideos) {
       $newVideo = [io.path]::ChangeExtension($oldVideo.FullName, '.avi')


       $ArgumentList = '-i "{0}" -b 200000 "{1}"' -f $oldVideo, $newVideo;


       Start-Process -FilePath "D:\ffmpeg\bin\ffmpeg.exe" -ArgumentList $ArgumentList -Wait -NoNewWindow;
    }

    Robocopy D:\ffmpeg\bin\ntv D:\newpaths "$d *.avi" /mov

    get-childitem "sourcepath" -include "$d *.mp4" -recurse | foreach ($_) {remove-item $_.fullname}

    But, during the testing stage I realised that my implementation wont work when there is a month switch, since from lets say 0601 it wont produce 0531, but 0600.

    Also I need the converted files to be moved to a directory according to current Months, so if i have folder May,June, etc. And i need files that start with 05 go to May folder, and so on.

    Can someone help my accomplish my task, in code or in advice

    My programming knowledge is not enough to solve this issue.

    The main goal is automation


    For the first part courtesy to @dotnetom
    This worked :

    $d = (get-date).AddDays(-1).ToString("MMdd")

    For the second part i’ve comeup with this

       $a = (get-date).AddDays(-1).ToString("MMMM")

    Robocopy D:\Main\AdWords\ffmpeg\bin\ntv "D:\path\$a" "$d *.avi" /mov
  • Powershell and FFMPEG - FFMPEG not executing

    8 août 2016, par The Slayer

    So I wrote a powershell script that recursively searches all video files above a certain size and then resizes them.

    I feel like I’m missing something obvious here...because my script doesn’t actually run FFMPEG, it just displays the command to run it on the screen. I’m sure I’ll facepalm at the solution.

    $SearchPath = "N:\baseball"

    $oldVideos = Get-ChildItem -Include @("*.mkv", "*.mov", "*.mpg", "*.wmv", "*.avi") -Path $SearchPath -Recurse | where-object {$_.length -gt 500MB};

    Set-Location -Path 'C:\Program Files\ffmpeg\bin';

    foreach ($OldVideo in $oldVideos)
    {
       $outputfolder = "O:\resized"
       $oldname = Get-Item $oldvideo | Select-Object -ExpandProperty BaseName
       $suffix = "_resized.mp4"
       $newname = "$($oldname)_$($suffix)"
       $ffmpeg = ".'C:\Program Files\ffmpeg\bin\ffmpeg.exe'"
       $arguments = " -i `"$($OldVideo)`" -vf scale=720:trunc(ow/a/2)*2 -c:v libx264 -f mp4 `"$outputfolder\$newname`" -y"
       $ffmpeg + $arguments}

    Here’s the actual output to the screen when I run the script
    .’C :\Program Files\ffmpeg\bin\ffmpeg.exe’ -i "N :\baseball\hitting\067.MOV" -vf scale=720:trunc(ow/a/2)*2 -c:v libx264 -f mp4 "O :\resized\067__resized.mp4" -y

    That command should execute (it runs in a command window).

  • Is there a way to scale an avi using ffmpeg while keeping the videos alpha channel ?

    25 septembre 2016, par Megumiaraki

    I have been trying to change the scale of an avi but also keep the alpha channel. Also the video needs to open in after effects but when I try to open it I get the error below. I have this running in a for loop to work for all the videos in the folder.

    ffmpeg -i %%X -vf scale=!newWidth!:!newHeight! -pix_fmt bgra -r 24 -c:v rawvideo "resized\%%X"

    It seems to work but when I try to test the alpha channel in After Effects I get the error below :

    The item has an `unlabeled alpha Channel`....

    If I select the Straight-Unmatted (option).....

    I get the error :

    After Effects error :(error(4) reading frame from file (86::2)

    Any help would be great !