Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (72)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

Sur d’autres sites (11666)

  • FFMPEG codec "Error opening filters" error on Windows server

    12 février 2019, par Frank Nicklin

    Im using NReco Videoconvertor on and asp.net web service but its failing with the error

    ****Error : Cannot convert media : Error opening filters !****

    When testing on my local development PC Windows 10 VS2017 it works fine. If I manually run ffmpeg as this too work fine

    ffmpeg -i c:\tempfolder\5239.hevc c:\tempfolder\5239.mp4.

    However if I try the same from my Windows 2016 Server I get a could not find codec parameters error :-

     D:\webservice\Bin>ffmpeg -i d:\video\1234.hevc d:\video\5225.mp4
    ffmpeg version N-56060-gbcd1c20 Copyright (c) 2000-2013 the FFmpeg developers
     built on Sep  6 2013 00:42:37 with gcc 4.7.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 43.100 / 52. 43.100
     libavcodec     55. 31.101 / 55. 31.101
     libavformat    55. 16.101 / 55. 16.101
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 83.104 /  3. 83.104
     libswscale      2.  5.100 /  2.  5.100
     libswresample   0. 17.103 /  0. 17.103
     libpostproc    52.  3.100 / 52.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 028fa380] Could not find codec parameters for stream 0 (Video: none (hvc1 / 0x31637668), 352x288, 937 kb/s): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'd:\video\1234.hevc':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       creation_time   : 2019-02-04 10:35:12
     Duration: 00:00:20.25, start: 0.000000, bitrate: 965 kb/s
       Stream #0:0(und): Video: none (hvc1 / 0x31637668), 352x288, 937 kb/s, 30.01 fps, 30 tbr, 600 tbn, 600 tbc (default)
       Metadata:
         rotate          : 90
         creation_time   : 2019-02-04 10:35:12
         handler_name    : Core Media Video
       Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 23 kb/s (default)
       Metadata:
         creation_time   : 2019-02-04 10:35:12
         handler_name    : Core Media Audio

    Any thoughts please.

  • Problems with timeout when there is no video source with RTP format in java openCV

    15 février 2019, par Javier Dalmau Fajardo

    I have problems with the timeout when there is no video source with RTP format.

    If I execute the code and there is no video, the program stays waiting in the grabber.Start () function all the time.

    FFmpegFrameGrabber grabber;
    try{
       Frame img;        
       grabber = new FFmpegFrameGrabber("rtp://" + ip + ":1234");
       grabber.setOption("stimeout", String.valueOf(5*1000000));
       grabber.Start ();
       img = grabber.grab();
       Java2DFrameConverter converter = new Java2DFrameConverter();
    BufferedImage bufferedImag;
    bufferedImag = converter.convert(img);
       grabber.stop();
    }catch (FrameGrabber.Exception ex) {
       throw new IOException("Could not open video file ", ex);
    }

    As I said before, when the video exists, everything works perfectly, but when there is no video source, the program stays in the grabber.start () and I can not get out of there.

    I would like that when 5 seconds pass, it generates an exception and leaves the grabber.satart () function. I use grabber.setOption("stimeout", String.valueOf(5*1000000)) ; to controlate it but don’t work in RTP.

    I have checked the operation with RTSP video source and the code works perfectly, that is, after 5 seconds it generates an exception ... but I need to control the RTP video source.

    Someone could help me, thanks.

  • Laravel FFMpeg encoding failed [on hold]

    18 février 2019, par Diego Fernández

    I’m using Laravel FFMpeg to encode videos and create thumbnails, but none of them are working. Whenever I try to create a thumbnail or encode a video I get following error :

    ffmpeg failed to execute command '/usr/local/bin/ffmpeg' '-y' '-i' '/home/diego/dynamic4/bg/storage/app/public/activity/4942/cLCbKyLiGqbOb0M5JDtvNXUdzSxFGj9ts6sDZb4D.mp4' '-threads' '12' '-vcodec' 'libx264' '-acodec' 'libfaac' '-b:v' '1000k' '-refs' '6' '-coder' '1' '-sc_threshold' '40' '-flags' '+loop' '-me_range' '16' '-subq' '7' '-i_qfactor' '0.71' '-qcomp' '0.6' '-qdiff' '4' '-trellis' '1' '-b:a' '128k' '-pass' '1' '-passlogfile' '/tmp/ffmpeg-passes5c6378517cace4u1cg/pass-5c6378517cb33' '/home/diego/dynamic4/bg/storage/app/public/1234.mp4'

    If I check that error on console I get this :

    ffmpeg failed to execute command '/usr/local/bin/ffmpeg' '-y' '-i' '/home/diego/dynamic4/bg/storage/app/public/activity/4942/cLCbKyLiGqbOb0M5JDtvNXUdzSxFGj9ts6sDZb4D.mp4' '-threads' '12' '-vcodec' 'libx264' '-acodec' 'libfaac' '-b:v' '1000k' '-refs' '6' '-coder' '1' '-sc_threshold' '40' '-flags' '+loop' '-me_range' '16' '-subq' '7' '-i_qfactor' '0.71' '-qcomp' '0.6' '-qdiff' '4' '-trellis' '1' '-b:a' '128k' '-pass' '1' '-passlogfile' '/tmp/ffmpeg-passes5c6377a214b41rk6ao/pass-5c6377a214b7b' '/tmp/laravel-ffmpegObuaI1.mp4'
    ffmpeg version 4.1-1~18.04.york1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
     configuration: --prefix=/usr --extra-version='1~18.04.york1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-nonfree --enable-libfdk-aac --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/diego/dynamic4/bg/storage/app/public/activity/4942/cLCbKyLiGqbOb0M5JDtvNXUdzSxFGj9ts6sDZb4D.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 1
       compatible_brands: mp41mp42isom
       creation_time   : 2018-10-22T15:38:46.000000Z
     Duration: 00:00:58.36, start: 0.000000, bitrate: 1400 kb/s
       Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 848x480, 1334 kb/s, 30.01 fps, 30 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2018-10-22T15:38:46.000000Z
         handler_name    : Core Media Video
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 62 kb/s (default)
       Metadata:
         creation_time   : 2018-10-22T15:38:46.000000Z
         handler_name    : Core Media Audio
    [NULL @ 0x55fecc7a0280] Unable to find a suitable output format for 'failed'
    failed: Invalid argument

    I have checked permissions and everything looks ok. I have also checked the video I’m trying to encode exists. It does, and apparently it get properly loaded. It seems to fail when trying to save encoded file.
    I spent one day doing research, I tried with different audio & video encoding, different routes and filesystems, but I couldn’t make it work.
    I have also tried to check that passlogfile (/tmp/ffmpeg-passes5c6377a214b41rk6ao/pass-5c6377a214b7b) but as it gets stored under /tmp I can’t gain access to it.

    This is the code I’m using to encode videos in my controller :

    $folder = 'activity/4942';
    $filename = 'cLCbKyLiGqbOb0M5JDtvNXUdzSxFGj9ts6sDZb4D.mp4';
    $new_filename = 'storage/activity/4942/1234.mp4';
    $format = new FFMpeg\Format\Video\X264();
    $video = FFMpeg::fromDisk('public')->open($folder . '/' . $filename);
    $video->export()->toDisk('public')->inFormat($format)->save($new_filename);

    I have debugged that piece of code and video seems to get loaded properly. It crashes when tries to save the final video, in last lane of code.

    This is the configuration in filesystems.php :

       'disks' => [

           'local' => [
               'driver' => 'local',
               'root' => storage_path('app'),
           ],

           'public' => [
               'driver' => 'local',
               'root' => storage_path('app/public'),
               'visibility' => 'public',
           ],

       ],

    Any help much appreciated, thanks !