Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (47)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (7744)

  • 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..