Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (65)

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

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (8007)

  • FFMpeg\Exception\RuntimeException Encoding failed - Laravel 4 PHP-FFMPEG

    10 avril 2014, par Woogygun

    I'm using PHP-FFMPEG and the latest version of FFPMEG this is the same for my localhost and production server. Im encoding a .wav file(1.5 meg 44.1khz) to .mp3 128k bit rate.

    On localhost it runs without issues but, on the production server it gives the following error.

    FFMpeg \ Exception \ RuntimeException
    Encoding failed

    My binaries are located in the public folder right now for dev purposes.

    My code is as follows :

       Route::get('/audio', function() {
    $ffmpeg = FFMpeg\FFMpeg::create([
                                    'ffmpeg.binaries' => 'ffmpeg',
                                    'ffprobe.binaries' => 'ffprobe',
                                    'timeout'          => 3600]);
    $audio = $ffmpeg->open(public_path('track.wav'));
    $format = new FFMpeg\Format\Audio\Mp3();
    $format->on('progress', function ($audio, $format, $percentage) {
       echo "$percentage % transcoded";
    });
    $format-> setAudioKiloBitrate(128);

    $audio->save($format, 'track.mp3');

    }) ;

    I can also confirm that FFMPEG is running via shell access :

    myuser@mydomain.com [~/public_html/hidden/public]# ffmpeg -i track.wav file.mp3
    FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
    built on Jan 29 2012 23:55:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --
    mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -
    pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
    size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-
    libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-
    libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --
    enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-
    swscale --enable-vdpau --enable-version3 --enable-x11grab
    libavutil     50.15. 1 / 50.15. 1
    libavcodec    52.72. 2 / 52.72. 2
    libavformat   52.64. 2 / 52.64. 2
    libavdevice   52. 2. 0 / 52. 2. 0
    libavfilter    1.19. 0 /  1.19. 0
    libswscale     0.11. 0 /  0.11. 0
    libpostproc   51. 2. 0 / 51. 2. 0
    [wav @ 0x8434b0]max_analyze_duration reached
    [wav @ 0x8434b0]Estimating duration from bitrate, this may be inaccurate
    Input #0, wav, from 'track.wav':
    Duration: 00:00:08.98, bitrate: 1411 kb/s
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
    Output #0, mp3, to 'file.mp3':
    Metadata:
    TSSE            : Lavf52.64.2
    Stream #0.0: Audio: libmp3lame, 44100 Hz, 2 channels, s16, 64 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Press [q] to stop encoding
    size=      70kB time=9.01 bitrate=  64.0kbits/s    
    video:0kB audio:70kB global headers:0kB muxing overhead 0.045772%
  • FFMPEG replace audio with new mp3 audio gives error Unrecognized option 'codec'

    15 février 2016, par Waqleh

    I am trying to replace an audio in a video with another audio like so :

    ffmpeg -i \/home\/test\/public_html\/ted\/videos\/c812e2423b6b5da2f4e00c62bf70d2f3.mp4 -i \/home\/test\/public_html\/ted\/app\/templates\/default\/sounds\/taj-express-30sec.mp3 -codec copy -shortest \/home\/test\/public_html\/ted\/videos\/55e5a21e111af1cc0bdb3637b601f64d_with_audio.mp4
    FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
     built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
     libavutil     50.15. 1 / 50.15. 1
     libavcodec    52.72. 2 / 52.72. 2
     libavformat   52.64. 2 / 52.64. 2
     libavdevice   52. 2. 0 / 52. 2. 0
     libavfilter    1.19. 0 /  1.19. 0
     libswscale     0.11. 0 /  0.11. 0
     libpostproc   51. 2. 0 / 51. 2. 0

    Seems stream 0 codec frame rate differs from container frame rate: 20.00 (20/1) -> 10.00 (20/2)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/test/public_html/ted/videos/c812e2423b6b5da2f4e00c62bf70d2f3.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp41isom
     Duration: 00:00:23.44, start: 0.000000, bitrate: 273 kb/s
       Stream #0.0(und): Video: h264, yuv420p, 1364x698 [PAR 1:1 DAR 682:349], 268 kb/s, 9.98 fps, 10 tbr, 10k tbn, 20 tbc
       Stream #0.1(und): Audio: aac, 44100 Hz, mono, s16, 1 kb/s
    [mp3 @ 0x1c648a0]max_analyze_duration reached
    Input #1, mp3, from '/home/test/public_html/ted/app/templates/default/sounds/taj-express-30sec.mp3':
     Metadata:
       comment         : Description
       TENC            : BLUE PRODUCTION
       originator_reference: CCOOONNNNNNNNNNNNHHMMSSRRRRRRRRR
       TDRC            : 2012:05:03
       coding_history  : A=PCM,F=44100,W=16,M=stereo,T=Nuendo

       time_reference  : 1601731
       umid            : 0x24FF296F2093409DA42CA66529FF7FA800000000000000000000000000000000
       TSSE            : Lavf57.23.101
     Duration: 00:00:30.04, start: 0.000000, bitrate: 128 kb/s
       Stream #1.0: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
    Unrecognized option 'codec'

    but I keep getting Unrecognized option ’codec’

    It work local fine on ubuntu, but on the server centos 6 with WHM cPanel it is not ! why ?

  • Playing With File

    8 septembre 2011, par Multimedia Mike — General

    I played with the ‘file’ utility a long time ago because I wanted to make it recognize a large number of multimedia formats. I had trouble getting my changes to take. But I’m prepared to try again after many years.

    Aiming at the Corpus
    In my local mirror of the MPlayerHQ samples archive, I find 9853 unique files. So I run all of them through the ‘file’ command :

      ’find /path/to/samples -type f -print0 | xargs -0 file —no-pad’
    

    My Ubuntu installation has file v5.04. I also tested against 5.07 and the latest, 5.08. Here is the number of files each version was unable to identify (generically marking as ‘data’) :

    5.04  1521
    5.07  1405
    5.08  1501
    

    That seems like a regression for v5.08 until I dug into the details and saw quite a few items like this, indicating that the MPEG detection could use some work :


    - mov/mov-demux-infinite-loop.mpg : DOS-executable ( +mov/mg-‹demux-infinite-loop.mpg : data
    - image-samples/UNeedQT4.pntg : DOS-executable ( +imY- samples/UNeedQT4.pntg : data

    Workflow
    These are just notes to myself and perhaps anyone else who wants to add new file formats to be identified by the ‘file’ command.

    First, download either the latest release from the FTP or clone from Github. Do the usual unpack, ‘./configure’, ‘make’ routine. To use this newly-built version and its associated magic file :

      ./src/file —magic-file magic/magic.mgc <file>
    

    To add a new format for ID, first, run the foregoing command to ensure that it’s not already identified. Then, check over the files in magic/Magdir and see which one might pertain to what you’re doing (it’s unlikely that your format will merit a new file in this directory). For example, for this round, I modified animation, audio, iff, and riff. Add or modify existing specs based on the copious examples in the directory and by consulting the appropriate man page (‘man 5 magic’).

    Finally, run ‘make’ again which will regenerate the magic file. Invoke the above command again to use the modified magic file.

    Before and After
    On a selection of formats taken from the samples archive (renamed and cut down to a kilobyte because detection typically only relies on the first few bytes), here is the “before” :

    amv :            RIFF (little-endian) data
    armovie :        data
    bbc-dirac :      data
    interplay-mve :  data
    mtv :            data
    nintendo-thp :   data
    nullsoft-video : data
    redcode :        data
    sega-film :      data
    smacker :        data
    trueaudio :      data
    vqa :            IFF data
    wavpack :        data
    wc3-mve :        IFF data
    wtv :            data
    

    And the “after” :

    amv :            RIFF (little-endian) data, AMV
    armovie :        ARMovie
    bbc-dirac :      BBC Dirac Video
    interplay-mve :  Interplay MVE Movie
    mtv :            MTV Multimedia File
    nintendo-thp :   Nintendo THP Multimedia
    nullsoft-video : Nullsoft Video
    redcode :        REDCode Video
    sega-film :      Sega FILM/CPK Multimedia, 320 x 224
    smacker :        RAD Game Tools Smacker Multimedia version 2, 320 x 200, 100 frames
    trueaudio :      True Audio Lossless Audio
    vqa :            IFF data, Westwood Studios VQA Multimedia, 418 video frames, 320 x 200
    wavpack :        WavPack Lossless Audio
    wc3-mve :        IFF data, Wing Commander III Video, PC version
    wtv :            Windows Television DVR Media
    

    After rerunning ‘file’ on the mphq corpus using the modified magic file, only 1329 files remain unidentified (down from 1501).

    Going Forward
    As mentioned, MPEG detection could probably be strengthened. However, a major weakness is QuickTime/MP4. Many files are not detected, probably owing to the many ways that QuickTime files can begin.