Recherche avancée

Médias (91)

Autres articles (60)

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

  • Laravel FFMpeg - Unable to load FFMpeg in file error

    13 juin 2022, par dtwoo

    I'm trying to integrate FFMpeg into a Laravel project but am getting the error when I call the end point :

    


    FFMpeg\Exception\ExecutableNotFoundException: Unable to load FFMpeg in file /Users/me/Desktop/video/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Driver/FFMpegDriver.php on line 55

    


    What I've done :

    


    brew install ffmpeg - installed FFMEG locally, can confirm that this works when using terminal

    


    Fresh Laravel install composer create-project laravel/laravel example-app

    


    Install php ffmpeg composer require php-ffmpeg/php-ffmpeg

    


    install Laravel ffmpeg composer require pbmedia/laravel-ffmpeg

    


    added FFMPEG to providers and aliases in app.php :

    


    'providers' => [
    ...
    ProtoneMedia\LaravelFFMpeg\Support\ServiceProvider::class,
    ...
];

'aliases' => [
    ...
    'FFMpeg' => ProtoneMedia\LaravelFFMpeg\Support\FFMpeg::class
    ...
];


    


    and then my controller is

    


    <?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use FFMpeg;

class VideoController extends Controller
{
    public function makeVideo()
    {

        FFMpeg::fromDisk('songs')
    ->open('yesterday.mp3')
    ->export()
    ->toDisk('converted_songs')
    ->inFormat(new \FFMpeg\Format\Audio\Aac)
    ->save('yesterday.aac');
        return "hello";
    }
}


    


    which is the example they give on git. if I call the end point I get the above error. Has anyone got any ideas what's wrong or how to debug ? The logs don't give me any more information !

    


  • How to open&save a video file in python ?

    27 août 2014, par AliGH

    I’ve just started to make a ubuntu application using PyGtk. My very first object is to open, convert and then save a video file. Ignoring convert phase, I’m going to implant open-save functions. But at the moment when I open a video file, and save it, I get non-video file with 11B size. I’ve just google this and found OpenCV for python. But I’m not sure if it’s the best way to do it. I also think I’m going to use ffmpeg libraries to do some manipulates on video files. Is it what I want or there might be other built-in libraries ?

    By the way, here’s my code to open and save the file :

       def on_openFile_clicked(self, widget):
           filename=None
           dialog = Gtk.FileChooserDialog("Please choose a file", self,
               Gtk.FileChooserAction.OPEN,
               (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
                Gtk.STOCK_OPEN, Gtk.ResponseType.OK))

           response = dialog.run()
           self.add_filters(dialog)

           if response == Gtk.ResponseType.OK:
               filename = dialog.get_filename()
           elif response == Gtk.ResponseType.CANCEL:
               print 'Cancel Clicked'
           dialog.destroy()

           print "File Choosen: ", filename

       def add_filters(self, dialog):

           filter_py = Gtk.FileFilter()
           filter_py.set_name("Video Files")
           filter_py.add_mime_type("video/mp4")
           filter_py.add_mime_type("video/x-flv")
           dialog.add_filter(filter_py)

           filter_any = Gtk.FileFilter()
           filter_any.set_name("Any files")
           filter_any.add_pattern("*")
           dialog.add_filter(filter_any)

       def on_saveFile_clicked(self, widget):
           filename=None
           dialog = Gtk.FileChooserDialog("Please choose a file", self,
               Gtk.FileChooserAction.SAVE,
               (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
                Gtk.STOCK_SAVE, Gtk.ResponseType.OK))

           response = dialog.run()
           self.add_filters(dialog)

           if response == Gtk.ResponseType.OK:
               filename = dialog.get_filename()
           elif response == Gtk.ResponseType.CANCEL:
               print 'Cancel Clicked'
           dialog.destroy()

           if filename != None:
               save_file=open(filename, 'w')
               save_file.write("Sample Data")
               save_file.close()
           print "File Saved: ", filename
  • avcodec/v4l2_context : send start decode command after dynamic resolution change event

    4 janvier 2022, par Ming Qian
    avcodec/v4l2_context : send start decode command after dynamic resolution change event
    

    Fixes decoding of sample https://streams.videolan.org/ffmpeg/incoming/720p60.mp4
    on RPi4 after kernel driver commit :
    staging : bcm2835-codec : Format changed should trigger drain

    Reference :
    linux/Documentation/userspace-api/media/v4l/dev-decoder.rst
    "A source change triggers an implicit decoder drain, similar to the
    explicit Drain sequence. The decoder is stopped after it completes.
    The decoding process must be resumed with either a pair of calls to
    VIDIOC_STREAMOFF and VIDIOC_STREAMON on the CAPTURE queue, or a call to
    VIDIOC_DECODER_CMD with the V4L2_DEC_CMD_START command."

    Reviewed-by : Andriy Gelman <andriy.gelman@gmail.com>
    Signed-off-by : Ming Qian <ming.qian@nxp.com>

    • [DH] libavcodec/v4l2_context.c