Recherche avancée

Médias (91)

Autres articles (67)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

Sur d’autres sites (6046)

  • Ffmpeg Showfreqs with Custom Frequency Ranges, Is It Possible ?

    17 février 2023, par lonewolvian

    I need to display showfreqs with 32 or 64 bands, but with custom frequency ranges, just like an old equalizer indicator.

    


    In this case, win_size is not what I want because the frequency distribution doesn't look balanced where the treble section is too wide and the bass section is to narrow.

    


    Is it possible ? If so then how to do it ?

    


    I've looked at showfreqs documentation but I didn't find any clue about this.

    


    Thank you.

    


  • Script error logging and filtering leads to truncated inputs [duplicate]

    11 septembre 2023, par Alex Ixeras

    I have a short script to log the output of an ffmpeg error output. I want to suppress logging a particular error message, but log any other.

    


    while IFS= read -r file; do
    if [[ "$file" == *.mov ]]; then
        error=$(ffmpeg -v error -i "$file" -f null - 2>&1)
        if [[ "$error" != *"Application provided invalid, non monotonically increasing dts"* ]]; then
            echo "File: $file" >> error.log
            echo "$error" >> error.log
            echo "\n" >> error.log
        fi
    fi
done < /dir/to/list_of_files.txt


    


    On running this I get some output working well, some other however, seems to be truncated or seemingly providing truncated input. Below is some sample output.

    


    There are two truncated inputs (mes/bar/media/040F4F7F-7555-42C0-A8BE-F00C2240B1E9.mov and olumes/bar/media/05DD1E0E-3AA6-4803-9FE3-95101CF69AC7.mov) and one .heic file, which is sitting in the same folder, seemingly causing an issue (r/media/06D46531-B088-46D6-AEEA-7192845D09E0.heic). None of the files and their paths listed in /dir/to/list_of_files.txt is listed incomplete, meaning list_of_files.txt shows

    


      

    • /Volmes/bar/media/040F4F7F-7555-42C0-A8BE-F00C2240B1E9.mov
    • 


    • /Volumes/bar/media/05DD1E0E-3AA6-4803-9FE3-95101CF69AC7.mov
    • 


    • /Volumes/bar/media/06D46531-B088-46D6-AEEA-7192845D09E0.heic
    • 


    


    Here is the sample output :

    


    File: /Volumes/bar/media/006BE123-DA3F-46AA-A7DB-4FB747ECE3A8.mov&#xA;[h264 @ 0x126f1acf0] cabac decode of qscale diff failed at 44 1&#xA;[h264 @ 0x126f1acf0] error while decoding MB 44 1, bytestream 74947&#xA;&#xA;&#xA;File: /Volumes/bar/media/026B2681-840E-4B5E-945B-3CD485C74DA4.mov&#xA;[h264 @ 0x150e46e10] cabac decode of qscale diff failed at 51 24&#xA;[h264 @ 0x150e46e10] error while decoding MB 51 24, bytestream 29149&#xA;[h264 @ 0x150e50220] cabac decode of qscale diff failed at 56 33&#xA;[h264 @ 0x150e50220] error while decoding MB 56 33, bytestream 26749&#xA;[h264 @ 0x150e3da00] cabac decode of qscale diff failed at 71 42&#xA;[h264 @ 0x150e3da00] error while decoding MB 71 42, bytestream 22012&#xA;[h264 @ 0x150e62a40] cabac decode of qscale diff failed at 64 52&#xA;[h264 @ 0x150e62a40] error while decoding MB 64 52, bytestream 15091&#xA;&#xA;&#xA;File: mes/bar/media/040F4F7F-7555-42C0-A8BE-F00C2240B1E9.mov&#xA;mes/bar/media/040F4F7F-7555-42C0-A8BE-F00C2240B1E9.mov: No such file or directory&#xA;&#xA;&#xA;File: olumes/bar/media/05DD1E0E-3AA6-4803-9FE3-95101CF69AC7.mov&#xA;olumes/bar/media/05DD1E0E-3AA6-4803-9FE3-95101CF69AC7.mov: No such file or directory&#xA;&#xA;&#xA;File: /Volumes/bar/media/06C7E26A-C494-498A-8B57-BBC6E6CB7848.mov&#xA;[NULL @ 0x1246059c0] Invalid NAL unit size (1206193094 > 73032).&#xA;[NULL @ 0x1246059c0] missing picture in access unit with size 73036&#xA;[h264 @ 0x124646d10] Invalid NAL unit size (1206193094 > 73032).&#xA;[h264 @ 0x124646d10] Error splitting the input into NAL units.&#xA;[h264 @ 0x12463d900] left block unavailable for requested intra4x4 mode -1&#xA;[h264 @ 0x12463d900] error while decoding MB 0 12, bytestream 49336&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[h264 @ 0x124659530] left block unavailable for requested intra4x4 mode -1&#xA;[h264 @ 0x124659530] error while decoding MB 0 4, bytestream 67241&#xA;[NULL @ 0x1246059c0] Invalid NAL unit size (385154995 > 70401).&#xA;[NULL @ 0x1246059c0] missing picture in access unit with size 70405&#xA;[h264 @ 0x124662940] cabac decode of qscale diff failed at 78 12&#xA;[h264 @ 0x124662940] error while decoding MB 78 12, bytestream 56219&#xA;[h264 @ 0x12466bd50] cabac decode of qscale diff failed at 86 9&#xA;[h264 @ 0x12466bd50] error while decoding MB 86 9, bytestream 61798&#xA;[h264 @ 0x124662940] Invalid NAL unit size (385154995 > 70401).&#xA;[h264 @ 0x124662940] Error splitting the input into NAL units.&#xA;[h264 @ 0x124621cd0] cabac decode of qscale diff failed at 107 5&#xA;[h264 @ 0x124621cd0] error while decoding MB 107 5, bytestream 60244&#xA;[h264 @ 0x1246188c0] top block unavailable for requested intra mode&#xA;[h264 @ 0x1246188c0] error while decoding MB 30 0, bytestream 70310&#xA;[h264 @ 0x124621cd0] cabac decode of qscale diff failed at 96 9&#xA;[h264 @ 0x124621cd0] error while decoding MB 96 9, bytestream 61611&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[h264 @ 0x12463d900] cabac decode of qscale diff failed at 35 6&#xA;[h264 @ 0x12463d900] error while decoding MB 35 6, bytestream 54803&#xA;[h264 @ 0x124646d10] cabac decode of qscale diff failed at 57 10&#xA;[h264 @ 0x124646d10] error while decoding MB 57 10, bytestream 58139&#xA;[h264 @ 0x12466bd50] cabac decode of qscale diff failed at 78 4&#xA;[h264 @ 0x12466bd50] error while decoding MB 78 4, bytestream 66779&#xA;[h264 @ 0x1246188c0] left block unavailable for requested intra4x4 mode -1&#xA;[h264 @ 0x1246188c0] error while decoding MB 0 2, bytestream 199872&#xA;[h264 @ 0x124650120] cabac decode of qscale diff failed at 111 1&#xA;[h264 @ 0x124650120] error while decoding MB 111 1, bytestream 59299&#xA;[h264 @ 0x124646d10] left block unavailable for requested intra4x4 mode -1&#xA;[h264 @ 0x124646d10] error while decoding MB 0 15, bytestream 60124&#xA;[h264 @ 0x124659530] cabac decode of qscale diff failed at 114 5&#xA;[h264 @ 0x124659530] error while decoding MB 114 5, bytestream 56033&#xA;[h264 @ 0x124621cd0] cabac decode of qscale diff failed at 40 11&#xA;[h264 @ 0x124621cd0] error while decoding MB 40 11, bytestream 60838&#xA;[h264 @ 0x12463d900] left block unavailable for requested intra mode&#xA;[h264 @ 0x12463d900] error while decoding MB 0 8, bytestream 53862&#xA;[h264 @ 0x124646d10] cabac decode of qscale diff failed at 37 10&#xA;[h264 @ 0x124646d10] error while decoding MB 37 10, bytestream 51872&#xA;[h264 @ 0x124650120] cabac decode of qscale diff failed at 116 13&#xA;[h264 @ 0x124650120] error while decoding MB 116 13, bytestream 48950&#xA;[h264 @ 0x124659530] top block unavailable for requested intra mode -1&#xA;[h264 @ 0x124659530] error while decoding MB 61 0, bytestream 59379&#xA;[h264 @ 0x124662940] cabac decode of qscale diff failed at 101 5&#xA;[h264 @ 0x124662940] error while decoding MB 101 5, bytestream 52129&#xA;[h264 @ 0x12466bd50] left block unavailable for requested intra4x4 mode -1&#xA;[h264 @ 0x12466bd50] error while decoding MB 0 12, bytestream 60271&#xA;[h264 @ 0x1246188c0] top block unavailable for requested intra mode&#xA;[h264 @ 0x1246188c0] error while decoding MB 95 0, bytestream 75286&#xA;[h264 @ 0x1246344f0] cabac decode of qscale diff failed at 43 11&#xA;[h264 @ 0x1246344f0] error while decoding MB 43 11, bytestream 52247&#xA;[NULL @ 0x1246059c0] Invalid NAL unit size (274069289 > 199826).&#xA;[NULL @ 0x1246059c0] missing picture in access unit with size 199830&#xA;[h264 @ 0x124662940] Invalid NAL unit size (274069289 > 199826).&#xA;[h264 @ 0x124662940] Error splitting the input into NAL units.&#xA;[h264 @ 0x124621cd0] left block unavailable for requested intra4x4 mode -1&#xA;[h264 @ 0x124621cd0] error while decoding MB 0 2, bytestream 69812&#xA;[h264 @ 0x124650120] left block unavailable for requested intra4x4 mode -1&#xA;[h264 @ 0x124650120] error while decoding MB 0 63, bytestream 5884&#xA;&#xA;Enter command: <target>|all <time>|-1 <command>[ <argument>]&#xA;&#xA;Parse error, at least 3 arguments were expected, only 1 given in string &#x27;r/media/06D46531-B088-46D6-AEEA-7192845D09E0.heic&#x27;&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[NULL @ 0x1246059c0] Invalid NAL unit size (-1948339868 > 63994).&#xA;[NULL @ 0x1246059c0] missing picture in access unit with size 63998&#xA;[h264 @ 0x12466bd50] Invalid NAL unit size (-1948339868 > 63994).&#xA;[h264 @ 0x12466bd50] Error splitting the input into NAL units.&#xA;[NULL @ 0x1246059c0] Invalid NAL unit size (-632247255 > 62292).&#xA;[NULL @ 0x1246059c0] missing picture in access unit with size 62296&#xA;[h264 @ 0x12460bc20] Invalid NAL unit size (-632247255 > 62292).&#xA;[h264 @ 0x12460bc20] Error splitting the input into NAL units.&#xA;[h264 @ 0x1246344f0] cabac decode of qscale diff failed at 46 2&#xA;[h264 @ 0x1246344f0] error while decoding MB 46 2, bytestream 63786&#xA;[h264 @ 0x12463d900] left block unavailable for requested intra mode&#xA;[h264 @ 0x12463d900] error while decoding MB 0 1, bytestream 62099&#xA;[h264 @ 0x124646d10] left block unavailable for requested intra4x4 mode -1&#xA;[h264 @ 0x124646d10] error while decoding MB 0 4, bytestream 56879&#xA;[h264 @ 0x1246188c0] cabac decode of qscale diff failed at 38 4&#xA;[h264 @ 0x1246188c0] error while decoding MB 38 4, bytestream 57286&#xA;[h264 @ 0x124621cd0] top block unavailable for requested intra mode&#xA;[h264 @ 0x124621cd0] error while decoding MB 24 0, bytestream 75479&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;    Last message repeated 1 times&#xA;[aac @ 0x1246081f0] Pulse data corrupt or invalid.&#xA;Error while decoding stream #0:1: Invalid data found when processing input&#xA;[aac @ 0x1246081f0] Reserved bit set.&#xA;[aac @ 0x1246081f0] Number of bands (48) exceeds limit (39).&#xA;Error while decoding stream #0:1: Invalid data found when processing input&#xA;[aac @ 0x1246081f0] Reserved bit set.&#xA;[aac @ 0x1246081f0] Number of bands (7) exceeds limit (4).&#xA;Error while decoding stream #0:1: Invalid data found when processing input&#xA;[aac @ 0x1246081f0] Reserved bit set.&#xA;[aac @ 0x1246081f0] Prediction is not allowed in AAC-LC.&#xA;Error while decoding stream #0:1: Invalid data found when processing input&#xA;[aac @ 0x1246081f0] Reserved bit set.&#xA;[aac @ 0x1246081f0] Number of bands (43) exceeds limit (40).&#xA;Error while decoding stream #0:1: Invalid data found when processing input&#xA;[aac @ 0x1246081f0] Reserved bit set.&#xA;[aac @ 0x1246081f0] ms_present = 3 is reserved.&#xA;Error while decoding stream #0:1: Invalid data found when processing input&#xA;[h264 @ 0x124646d10] top block unavailable for requested intra mode -1&#xA;[h264 @ 0x124646d10] error while decoding MB 83 0, bytestream 200857&#xA;[h264 @ 0x1246188c0] top block unavailable for requested intra mode -1&#xA;[h264 @ 0x1246188c0] error while decoding MB 74 0, bytestream 72661&#xA;[h264 @ 0x124621cd0] cabac decode of qscale diff failed at 63 8&#xA;[h264 @ 0x124621cd0] error while decoding MB 63 8, bytestream 62599&#xA;[h264 @ 0x1246344f0] left block unavailable for requested intra mode&#xA;[h264 @ 0x1246344f0] error while decoding MB 0 8, bytestream 64506&#xA;[h264 @ 0x12463d900] top block unavailable for requested intra mode&#xA;[h264 @ 0x12463d900] error while decoding MB 85 0, bytestream 73041&#xA;[h264 @ 0x124659530] top block unavailable for requested intra mode -1&#xA;[h264 @ 0x124659530] error while decoding MB 36 0, bytestream 64753&#xA;[h264 @ 0x124650120] left block unavailable for requested intra mode&#xA;[h264 @ 0x124650120] error while decoding MB 0 12, bytestream 63916&#xA;[h264 @ 0x12460bc20] cabac decode of qscale diff failed at 85 8&#xA;[h264 @ 0x12460bc20] error while decoding MB 85 8, bytestream 55869&#xA;[h264 @ 0x124621cd0] left block unavailable for requested intra mode&#xA;[h264 @ 0x124621cd0] error while decoding MB 0 9, bytestream 55282&#xA;[h264 @ 0x12463d900] left block unavailable for requested intra mode&#xA;[h264 @ 0x12463d900] error while decoding MB 0 12, bytestream 50989&#xA;[h264 @ 0x124650120] top block unavailable for requested intra mode&#xA;[h264 @ 0x124650120] error while decoding MB 38 0, bytestream 63979&#xA;[h264 @ 0x124659530] cabac decode of qscale diff failed at 77 1&#xA;[h264 @ 0x124659530] error while decoding MB 77 1, bytestream 60749&#xA;[h264 @ 0x124662940] left block unavailable for requested intra4x4 mode -1&#xA;[h264 @ 0x124662940] error while decoding MB 0 4, bytestream 58098&#xA;[h264 @ 0x12466bd50] top block unavailable for requested intra mode&#xA;[h264 @ 0x12466bd50] error while decoding MB 12 0, bytestream 63853&#xA;[h264 @ 0x12460bc20] left block unavailable for requested intra mode&#xA;[h264 @ 0x12460bc20] error while decoding MB 0 3, bytestream 55763&#xA;[h264 @ 0x1246188c0] cabac decode of qscale diff failed at 64 8&#xA;[h264 @ 0x1246188c0] error while decoding MB 64 8, bytestream 51798&#xA;[h264 @ 0x124646d10] left block unavailable for requested intra mode&#xA;[h264 @ 0x124646d10] error while decoding MB 0 20, bytestream 43042&#xA;[h264 @ 0x12460bc20] left block unavailable for requested intra mode&#xA;[h264 @ 0x12460bc20] error while decoding MB 0 33, bytestream 35359&#xA;</argument></command></time></target>

    &#xA;

    When I try running the commands individually line by line from the input file, they all work as expected, e.g.

    &#xA;

      &#xA;
    • ffmpeg -v error -i "/Volumes/bar/media/006BE123-DA3F-46AA-A7DB-4FB747ECE3A8.mov" -f null -
    • &#xA;

    • ffmpeg -v error -i "/Volumes/bar/media/026B2681-840E-4B5E-945B-3CD485C74DA4.mov" -f null -
    • &#xA;

    • ffmpeg -v error -i "/Volumes/bar/media/040C2C65-7643-4432-9C73-3B4A74861908.mov" -f null -
    • &#xA;

    • ffmpeg -v error -i "/Volumes/bar/media/040F4F7F-7555-42C0-A8BE-F00C2240B1E9.mov" -f null -
    • &#xA;

    • ffmpeg -v error -i "/Volumes/bar/media/042561B3-A732-457D-8ED4-A81A9EB3A5A7.mov" -f null -
    • &#xA;

    • ffmpeg -v error -i "/Volumes/bar/media/05DD1E0E-3AA6-4803-9FE3-95101CF69AC7.mov" -f null -
    • &#xA;

    &#xA;

    I've also tried initialising the error variable after every output, but without any success.

    &#xA;

    I'm running this under macOS 13.5 using ffmpeg version 6.0.

    &#xA;

    Why is the log output truncated or why does this script use truncated input ? Or, where does the script fail leading to these errors ?

    &#xA;

  • Is it possible to "stretch" audio in the frequency domain ?

    9 juillet 2024, par Christian Schmitz

    We would like to make quite similar frequencies better decernible for further AI-analysis. Because of that, we would like to stretch the audio in the frequency domain. This means that instead of having two frequency bands of 30Hz and 40Hz, is it possible to "stretch" them to have maybe 28Hz and 45Hz ?

    &#xA;

    Thanks a lot and if that wasn't clear enough, please don't hesitate to ask ! :)

    &#xA;

    We tried cleaning the data with ffmpeg, but it appears that for our task we need a clearer representation of the frequencies in the data

    &#xA;