Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (70)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

Sur d’autres sites (13888)

  • How to detect if video file is pure static ?

    20 août 2024, par spuder

    I have a collection of analog video recordings. About 10% of the files are entirely static. How could I programmatically look at all files and delete the files that contain mostly static ?

    



    The following utilities have command line options to analyze video, however none have built in functionality to detect the absence of video content.

    



      

    1. ffmpeg

    2. 


    3. ffprobe

    4. 


    5. HandBrake

    6. 


    



    I've tried using ffmpeg to export still images and then use image magick to compare the difference between those images. Unfortunately, the difference between an image of static, and actual video content returns nearly the same difference percentage. (9% vs 7%)

    



    ffmpeg -ss 00:30 -i PICT0050.AVI -vframes 1 -q:v 2 output1.jpg

magick compare -metric PSNR output1.jpg output2.jpg diff.jpg
9.2191

magick compare -metric PSNR output1.jpg output3.jpg diff.jpg
7.70127


    



    Comparing sample 1 with sample 2 results in 9% difference
    
Comparing sample 1 with sample 3 results in 7% difference

    



    Sample 1
enter image description here

    



    Sample 2
enter image description here
Sample 3
enter image description here
Sample 4
enter image description here
Sample 5
enter image description here
Sample 6
enter image description here
Sample 7
enter image description here

    


  • Firefox says some files converted from mkv to mp4 in ffmpeg are corrupt

    14 janvier 2018, par EpicKnarvik97

    I have recently converted many videos for web playback, but all videos from one "series" all show up in firefox as "Video can’t be played because the file is corrupt." (They work for google chrome and VLC. Not for firefox or edge.) All files have been converted with this command :

    ffmpeg -i "file.mkv" -vcodec h264 -movflags +faststart -map 0 -vf subtitles="file.mkv" "file.mp4"

    ffmpeg output from one of the non-working files :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Episode_7.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.3.100
     Duration: 00:23:53.52, start: -0.001333, bitrate: 1900 kb/s
       Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 1920x1080 [SAR 1:1 DAR 16:9], 1763 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    ffmpeg output from a working file :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Episode_7.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.3.100
     Duration: 00:23:40.06, start: 0.000000, bitrate: 1848 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1710 kb/s, 23.81 fps, 23.81 tbr, 16k tbn, 47.62 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(jpn): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    Of a collection of over 100 files, only 12 episodes of a single series show up as corrupted in firefox. I see some differences in the information about the two files, but I don’t know why one file works and the other does not. What do I need to tell ffmpeg to make the videos playable in firefox ?

  • FFMPEG Error Handling Not Working

    23 mars 2017, par Waverunner

    I’m fairly new to batch files and trying to create a Windows script that automatically converts all files in the extensions list I provide to MP4 and log the successes and failures. The problem I’m running into is that some of the videos are failing with zero byte outputs and even though there’s two levels of error handling so the originals don’t get deleted, they aren’t working and the originals get deleted regardless if the conversions succeed or not.

    The two protections are :

    (1) FFMPEG - abort_on empty_output option

    (2) IF/ELSE loop that checks for zero-size files

    Any ideas for better error handling would be appreciated.

    :: Name:     MKV2MP4.cmd
    :: Purpose:  Automatically converts non-MP4 video files to MP4 either by stream copy or by reencoding.
    :: Revision: March 2017 - Initial version

    :: Variables
    :: %%L = List of Extensions
    :: %%F = Files to be converted
    :: %%N = New file

    @echo OFF
    CLS
    setlocal
    echo This script automatically converts non-MP4 video files to MP4 either by stream copy or by reencoding.
    echo.
    echo Changing to data directory...
    Z:
    cd Z:\Users\Todd\
    echo.

    FOR /F "delims=*" %%L IN (Z:\Logs\Extensions.txt) DO (
    echo Collecting %%L files...
    dir /b /s *.%%L > Z:\Logs\%%L.txt
    )
    echo.
    echo File collection complete.
    echo.

    FOR /F "delims=*" %%L in (Z:\Logs\Extensions.txt) DO (
    echo Working on %%L files...
    echo.

    FOR /F "delims=*" %%F in (Z:\Logs\%%L.txt) DO (
    echo Converting "%%F"
    echo.
    ffmpeg.exe -y -i "%%F" -abort_on empty_output -aspect 16:9 -c:v copy -c:a copy "%%~dpnF.mp4" || ffmpeg.exe -y -i "%%F" -abort_on empty_output -aspect 16:9 -c:v libx265 -c:a copy "%%~dpnF.mp4"
    echo.
    set N="%%~dpnF.mp4"

    IF %%~zN==0 (
    echo Conversion failed!  Skipping file.
    echo Adding log entry...
    echo %time% - Failed - "%%F" >> "Z:\Logs\%date:~-4,4%%date:~-10,2%%date:~-7,2% - %%L.txt"
    ) ELSE (
    echo Conversion successful!  Deleting old file.
    echo Deleting "%%F"
    del "%%F" /F
    echo Adding log entry...
    echo %time% - Successful - "%%F" >> "Z:\Logs\%date:~-4,4%%date:~-10,2%%date:~-7,2% - %%L.txt"  
    )

    echo.
    )

    echo %%L files completed.
    echo. Cleaning up...
    del %%L /F /S
    )

    echo Job completed.  Exiting..