Recherche avancée

Médias (91)

Autres articles (61)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

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

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

Sur d’autres sites (4235)

  • PHP FFMpeg error ffprobe failed to execute command "ffprobe.exe" "-help" "-loglevel" "quiet"

    5 mars 2017, par Michele

    I’m searching for a way to compress and convert uploaded videos on my site, I’m trying to use FFMpeg with this PHP basic code (on windows) :

    <?php
    ini_set('display_errors', 'On'); error_reporting(E_ALL);
    require("vendor/autoload.php");
    $ffmpeg = FFMpeg\FFMpeg::create(array(
       'ffmpeg.binaries'  => 'C:/inetpub/wwwroot/FFmpeg/ffmpeg.exe',
       'ffprobe.binaries' => 'C:/inetpub/wwwroot/FFmpeg/ffprobe.exe',
       'timeout'          => 3600, // The timeout for the underlying process
       'ffmpeg.threads'   => 12,   // The number of threads that FFMpeg should use
    ));
    $video = $ffmpeg->open('input.mp4');
    $video
       ->filters()
       ->resize(new FFMpeg\Coordinate\Dimension(320, 240))
       ->synchronize();
    $video
       ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10))
       ->save('frame.jpg');
    $video
       ->save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4')
       ->save(new FFMpeg\Format\Video\WMV(), 'export-wmv.wmv')
       ->save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');
    ?>

    but I’m getting this error :

    Fatal error: Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException: ffprobe failed to execute command "C:/inetpub/wwwroot/FFmpeg/ffprobe.exe" "-help" "-loglevel" "quiet" in C:\inetpub\wwwroot\site\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php:100 Stack trace: #0 C:\inetpub\wwwroot\site\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php(72): Alchemy\BinaryDriver\ProcessRunner->doExecutionFailure('"C:/inetpub/www...') #1 C:\inetpub\wwwroot\site\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php(209): Alchemy\BinaryDriver\ProcessRunner->run(Object(Symfony\Component\Process\Process), Object(SplObjectStorage), false) #2 C:\inetpub\wwwroot\site\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php(137): Alchemy\BinaryDriver\AbstractBinary->run(Object(Symfony\Component\Process\Process), false, NULL) #3 C:\inetpub\wwwroot\site\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe\OptionsTester.php(61): Alchemy\Binary in C:\inetpub\wwwroot\site\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe\OptionsTester.php on line 63

    what am I doing wrong ? there are better libraries ?

  • Playing audio file using libavcodec and libao

    21 août 2013, par sarah john

    Myself trying to play an audio file using libavcodec in qt5 .While trying to play i am unable to play the the file.
    while decoding the file using av_read_frame()
    audioStream->index=0
    and packet.stream_index is some higher nos .so avcodec_decode_audio4() is not getting executed.Why is it so ?
    I am getting output as
    My output


    File Opend

    Input #0, ogg, from '/home/tel/Downloads/desktop-login.ogg':
    Duration: 00:00:07.72, start: 0.000000, bitrate: 108 kb/s
    Stream #0:0: Audio: vorbis, 44100 Hz, stereo, fltp, 112 kb/s
    audioStream 0x88b3f20
    Stream id: 0
    Codec ptr: 0x88b4100
    Codec Opened
    DRIVER ID 1
    Sample format 3
    Sample format:AV_SAMPLE_FMT_FLT 32
    Sample format channels 0
    Sample format rate 0
    Sample format  4
    buffersize  192008

    This is my program. My output is also given below.Please help me in solving this.

    for(i=0; i < container->nb_streams; i++){

       if(container->streams[i]->codec->codec_type==AVMEDIA_TYPE_AUDIO){
            stream_id=i;
            audioStream=container->streams[i];

            qWarning() <<"audioStream"<streams[stream_id]->codec;
    qWarning() <<"Codec ptr:"<< ctx;
    AVCodec *codec=avcodec_find_decoder(ctx->codec_id);
    if(codec==NULL){
           die("cannot find codec!");
    }

    if(avcodec_open2(ctx,codec,NULL)<0){
           die("Codec cannot be opended!");
    }
    else
           qWarning()<<"Codec Opened";


           ao_initialize();
           driver = ao_default_driver_id();
           qWarning()<<"DRIVER ID" <sample_fmt;
           qWarning()<<"Sample format"<channels;
      qWarning()<<"Sample format channels"<sample_rate;
     qWarning()<<"Sample format rate"<codec;
     while(av_read_frame(container,&packet)>=0)
     {

           if(packet.stream_index==audioStream->index){
           len=avcodec_decode_audio4(ctx,frame,&frameFinished,&packet);
           qWarning()<<"Enterd if loop";

           if(frameFinished){
               qWarning()<<"PLAYING";
               ao_play(audio_device, (char*)frame->extended_data[0],frame->linesize[0] );
           }
     }
  • Using Intel QSV in WSL2

    26 janvier 2023, par heebin

    I want to use Intel QSV in WSL2.

    


    Based on the experience of using QSV on a native Ubuntu PC, I installed the same library, but it doesn't work.

    


    ex) ffmpeg, libva, vainfo, intel Media SDK, gmmlib, media-driver ...

    


    My CPU supports QSV, but I can't initialize it.

    


    In vainfo it works like this :

    


    $ ls /dev/dri
card0 renderD128

$ sudo vainfo
Trying display: wayland
error: XDG_RUNTIME_DIR not set in the environment.
Trying display: x11
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 18
vaInitialize failed with error code 18 (invalid parameter),exit


    


    I want WSL to be initialized properly so I can use it in C.