Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (54)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (8930)

  • Error setting option pix_fmt to value -1 : Consider increasing the value for the 'analyzeduration' and 'probesize' options

    4 mars 2019, par Android Developer

    I am getting below error for some videos while using FFMpeg.

    ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n
    built with gcc 4.8 (GCC)\n configuration : —target-os=linux
    —cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
    —arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
    —enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
    -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
    -Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 /
    57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 /
    54. 0.100\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf41a4000] Could not find codec parameters for stream 0 (Video : h264 (avc1 / 0x31637661), none,
    1280x720, 1080 kb/s) : unspecified pixel format\nConsider increasing
    the value for the ’analyzeduration’ and ’probesize’ options
    \nInput #0,
    mov,mp4,m4a,3gp,3g2,mj2, from
    ’/storage/emulated/0/Movies/cut_video1.mp4’ :\n Metadata :\n
    major_brand : isom\n minor_version : 512\n
    compatible_brands : isomiso2avc1mp41\n encoder :
    Lavf57.25.100\n Duration : 00:04:25.01, start : 0.000000, bitrate : 1193
    kb/s\n Stream #0:0(und) : Video : h264 (avc1 / 0x31637661), none,
    1280x720, 1080 kb/s, 25 fps, 25 tbr, 12800 tbn, 25600 tbc (default)\n
    Metadata :\n handler_name : VideoHandler\n Stream #0:1(eng) :
    Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
    (default)\n Metadata :\n handler_name :
    SoundHandler\n[buffer @ 0xf3fe1060] Unable to parse option value
    \"-1\" as pixel format\n Last message repeated 1 times\n[buffer @
    0xf3fe1060] Error setting option pix_fmt to value -1.\n[graph 0 input
    from stream 0:0 @ 0xf41ae3d0] Error applying options to the
    filter.\nError opening filters !\n

    Sample command

    "-y", "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-i", yourRealPath, "-an", "-filter:v", "setpts=2.0*PTS", filePath

    What does the above error means ?And how can i resolve it ?

  • Error while trying to compress a 10 sec video on react-native

    10 novembre 2017, par Kamil Kamili

    I am currently using the library react-native-video-processing to compress a 10 sec video on android. But this is the error I get while trying to compress it.

    Any ideas suggestions ?

    Possible Unhandled Promise Rejection (id : 0) : Error : compress error :
    failed. ffmpeg version 3.3.5 Copyright (c) 2000-2017 the FFmpeg
    developers built with gcc 4.8 (GCC) configuration : —target-os=linux
    —cross-prefix=/Users/kesha/Projects/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
    —arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/Users/kesha/Projects/ffmpeg-android/toolchain-android/sysroot
    —enable-libx264 —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-yasm —disable-doc —disable-shared —enable-static —enable-nonfree —disable-network —enable-gpl —enable-ffmpeg —enable-small —disable-filters —enable-filter=copy —enable-filter=trim —enable-filter=crop —enable-filter=scale —enable-filter=format —pkg-config=/Users/kesha/Projects/ffmpeg-android/ffmpeg-3.3-pkg-config —prefix=/Users/kesha/Projects/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/Users/kesha/Projects/ffmpeg-android/toolchain-android/include
    -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/Users/kesha/Projects/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie’ —extra-cxxflags= —extra-libs=’-lx264 -lm’ libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 /
    6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
    ’file :///storage/emulated/0/Movies/VID_20171110_195700.mp4’ :
    Metadata : major_brand : mp42 minor_version : 0
    compatible_brands : isommp42 creation_time :
    2017-11-10T16:57:05.000000Z com.android.version : 7.1.1 Duration :
    00:00:03.10, start : 0.000000, bitrate : 2094 kb/s Stream #0:0(eng) :
    Video : h264 (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 720x480,
    1991 kb/s, SAR 1:1 DAR 3:2, 30 fps, 30 tbr, 90k tbn, 180k tbc
    (default) Metadata : rotate : 270 creation_time
     : 2017-11-10T16:57:05.000000Z handler_name : VideoHandle
    Side data : displaymatrix : rotation of 90.00 degrees Stream

    0:1(eng) : Audio : aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 95 kb/s (default) Metadata : creation_time :

    2017-11-10T16:57:05.000000Z handler_name : SoundHandleStream
    mapping : Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Stream #0:1 -> #0:1 (aac (native) -> aac (native))Press [q] to stop,
    [?] for helpError reinitializing filters !Failed to inject frame into
    filter network : Out of memoryError while processing the decoded data
    for stream #0:0[aac @ 0xf6f04c00] Qavg : 12036.106[aac @ 0xf6f04c00] 2
    frames left in the queue on closingConversion failed ! Error : compress
    error : failed. ffmpeg version 3.3.5 Copyright (c) 2000-2017 the FFmpeg
    developers built with gcc 4.8 (GCC) configuration : —target-os=linux
    —cross-prefix=/Users/kesha/Projects/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
    —arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/Users/kesha/Projects/ffmpeg-android/toolchain-android/sysroot
    —enable-libx264 —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-yasm —disable-doc —disable-shared —enable-static —enable-nonfree —disable-network —enable-gpl —enable-ffmpeg —enable-small —disable-filters —enable-filter=copy —enable-filter=trim —enable-filter=crop —enable-filter=scale —enable-filter=format —pkg-config=/Users/kesha/Projects/ffmpeg-android/ffmpeg-3.3-pkg-config —prefix=/Users/kesha/Projects/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/Users/kesha/Projects/ffmpeg-android/toolchain-android/include
    -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/Users/kesha/Projects/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie’ —extra-cxxflags= —extra-libs=’-lx264 -lm’ libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 /
    6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
    ’file :///storage/emulated/0/Movies/VID_20171110_195700.mp4’ :
    Metadata : major_brand : mp42 minor_version : 0
    compatible_brands : isommp42 creation_time :
    2017-11-10T16:57:05.000000Z com.android.version : 7.1.1 Duration :
    00:00:03.10, start : 0.000000, bitrate : 2094 kb/s Stream #0:0(eng) :
    Video : h264 (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 720x480,
    1991 kb/s, SAR 1:1 DAR 3:2, 30 fps, 30 tbr, 90k tbn, 180k tbc
    (default) Metadata : rotate : 270 creation_time
     : 2017-11-10T16:57:05.000000Z handler_name : VideoHandle
    Side data : displaymatrix : rotation of 90.00 degrees Stream

    0:1(eng) : Audio : aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 95 kb/s (default) Metadata : creation_time :

    2017-11-10T16:57:05.000000Z handler_name : SoundHandleStream
    mapping : Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Stream #0:1 -> #0:1 (aac (native) -> aac (native))Press [q] to stop,
    [?] for helpError reinitializing filters !Failed to inject frame into
    filter network : Out of memoryError while processing the decoded data
    for stream #0:0[aac @ 0xf6f04c00] Qavg : 12036.106[aac @ 0xf6f04c00] 2
    frames left in the queue on closingConversion failed !
    at createErrorFromErrorData (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:1807:15)
    at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:1760:25
    at MessageQueue.__invokeCallback (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2118:16)
    at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:1935:16
    at MessageQueue.__guard (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2053:9)
    at MessageQueue.invokeCallbackAndReturnFlushedQueue (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:1934:12)
    at http://localhost:8081/debugger-ui/debuggerWorker.js:72:58

  • constructing an ffmpeg script for use in Xcode/swift project

    21 octobre 2019, par NCrusher

    I’m going back to the drawing board with this post because I’ve been through so much trial and error over the last day with this issue that the information I posted earlier is no longer relevant.

    I’ve only been learning both Swift and FFmpeg for a few weeks, and I’ve just exhausted my ability to troubleshoot this.

    I’m maybe 90% certain this is a problem with my ffmpeg script, rather than with the Swift component. But I think it’s complicated by what characters need special formatting in Swift (particularly mathematical operatives.)

    I started off using a method in Xcode modeled after this post, which Xcode actually managed to guide me through updating for current versions of swift without breaking. Which left me with this :

    func ffmpegConvert(inputPath: String, filters: String, outputPath: String) {
       guard let launchPath = Bundle.main.path(forResource: "ffmpeg", ofType: "") else { return }
       do {
           let convertTask: Process = Process()
           convertTask.launchPath = launchPath
           convertTask.arguments = [
               "-i", inputPath,
               filters,
               outputPath
           ]
           convertTask.standardInput = FileHandle.nullDevice
           convertTask.launch()
           convertTask.waitUntilExit()
       }
    }

    I call this function when I click the "Start Conversion" button on my app. Like I said, that part seems to work fine. The problem is either in the way ffmpeg is being called by the app, or with the construction of the strings in my arguments array.

    The inputFilePath and outputFilePath strings are self-explanatory. Both of them are perfectly acceptably formatted filepath strings.

    The filters is a little tougher. My app has five conversion options and a different filter set for each one. One is as simple as -c copy and the most complex is -c:a libmp3lame -ac 1 -ar 22050 -q:a 9 (I’m working with audiobooks so I don’t need a lot of complexity in my arguments.

    The app appears to be launching ffmpeg perfectly. But the console keeps giving me errors. And the errors keep changing depending on what I try. Here’s what I’ve been through so far :

    var inputFilePath = "/Volumes/CSW External/ffmpeg/diamonds.aac"
    var ffmpegFilters = "-c copy"
    var outputFilePath = "/Volumes/CSW External/ffmpeg/diamonds.m4b"

    Result :

    Unrecognized option ’c copy’.
    Error splitting the argument list : Option not found

    Next attempt, I tried var ffmpegFilters = "--c copy". Result was the same error.

    Then I tried var ffmpegFilters = " -c copy" and it actually read the metadata from my file before throwing a different error at me :

    Unable to find a suitable output format for ’ -c copy’ -c copy :
    Invalid argument

    I’m assuming that the fact that it read the metadata before throwing a different error at me means I made...some form of progress ?

    I spent a few hours researching that particular error and why people might be getting it and couldn’t find a situation that was analogous to what I was trying to do. Mostly people were encountering it from the command line and/or other operating systems. So no help there.

    At that point, since I was just throwing things at the wall to see what might stick, I decided to throw the whole command, inputPath / ffMpegFilters / outputPath into a single string to see if I could make that work (under the logic that if it did, I could narrow the cause of my trouble down to the way the separate strings are being constructed by XCode.)

    I tried it both with the whitespace in the filepath and with the whitespace escaped out (using double \ as required by Swift.) The ffmpeg log came displayed a perfectly valid

    Doing so took me back to the first error I got :

    Unrecognized option ’-c copy’.
    Error splitting the argument list : Option not found

    So then I started researching THAT error. Some of the discussions I came across indicated that the problem was that the arguments couldn’t all be in a single string, they needed to be split up and put in an array. Which I could see for a longer argument, but -c copy shouldn’t need that.

    But I decided to give it a go. Formerly my method for constructing the string of arguments would have looked like this

    func conversionSelection() {
       if inputFileUrl != nil {
           let conversionChoice = conversionOptionsPopup.indexOfSelectedItem
           switch conversionChoice {
               case 1 :
                   outputExtension = ".mp3"
                   ffmpegFilters = "-c:a libmp3lame -ac 1 -ar 22050 -q:a 9"
               (...case 2, 3, 4, default, etc)
           }
       }
    }

    Now it looks more like this :

    func conversionSelection() {
       if inputFileUrl != nil {
           let conversionChoice = conversionOptionsPopup.indexOfSelectedItem
           switch conversionChoice {
               case 1 :
                   outputExtension = ".mp3"
                   ffmpegCodec = "-c:a libmp3lame"
                   ffmpegChannels = "-ac 1"
                   ffmpegSampling = "-ar 22050"
                   ffmpegBitrate = "-q:a 9"
               (case 2, case 3, case 4, default, etc)
           }
       }
    }

    Unfortunately, this just brought me full circle. If I try to use -c:a libmp3lame or --c:a libmp3lame I get the Error splitting the argument list: Option not found error. Interestingly, however, it gives the argument with relation to the ffmpegSampling argument, which is a slight difference.

    If I put a whitespace in front of it -c:a libmp3lame it will get far enough into the process to read the input file metadata, then I get this :

    Unable to find a suitable output format for ’ -c:a libmp3lame’ -c:a
    libmp3lame : Invalid argument

    I’m stumped. I thought this was going to be an easy fix, but I’ve been at it almost a full day with all the trial and error, and nothing is working, and I’ve exhausted my newbie understanding of both Swift and ffmpeg.