Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (9)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

Sur d’autres sites (3182)

  • Unable to probe

    8 mai 2017, par Etson

    I’m using php-ffmpeg on windows with cakephp3, and encountered an issue that says :

    Unable to probe /var/www/blogchild.dev/webroot/uploads/records//Танец довольного теннисиста.mp4

    MultimediaController

    <?php
    namespace App\Controller;

    use App\Controller\AppController;

    class MultimediaController extends AppController
    {

       public function initialize()
       {
           parent::initialize(); // TODO: Change the autogenerated stub
           $this->Auth->allow(['index', 'addvideo']);
           $this->loadModel('Posts');
           $this->loadComponent('File');
           $this->loadComponent('Flash');
           $this->loadComponent('Upload');
       }

       public function addvideo()
       {
           $this->viewBuilder()->template('addvideo');
           $posts = $this->Posts->newEntity();
    //        $posts = $this->MsPosts->find()->toArray();
    //        dump($posts);
    //        die();
           if ($this->request->is('post')) {
               $data = $this->request->data;
               $data['mentor_id'] = '1';
               $data['nbr_of_views'] = '0';
               $data['nbr_of_loves'] = '0';
               $data['nbr_of_smiles'] = '0';
               $data['mentor_id'] = '1';
               $data['child_id'] = '1';

               $post = $this->Posts->patchEntity($posts, $data);
    //            var_dump($data);
    //            die();
    //            debug($this->MsPosts->save($post));die();

    //                $upload = $this->File->uploadFile($this->request->data['file'], $post['id']);
    //                $post->file = $upload['url'];
               if (!empty($this->request->data['file']['name'])) {
                   $path = '/uploads' . DS . 'records' . DS . $post->id;
                   $this->uploadFile($_FILES['file'], $path, $post->id);
                   $post->file = $path . DS . $_FILES['file']['name'];
                   $this->Posts->save($post);
               } else {
                   $this->Posts->save($post);
               }
               $this->Flash->success(__('The post saved'));
               return $this->redirect(['action' => 'addvideo']);

    AppController

    <?php
    /**
    * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
    * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
    *
    * Licensed under The MIT License
    * For full copyright and license information, please see the LICENSE.txt
    * Redistributions of files must retain the above copyright notice.
    *
    * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
    * @link      http://cakephp.org CakePHP(tm) Project
    * @since     0.2.9
    * @license   http://www.opensource.org/licenses/mit-license.php MIT License
    */
    namespace App\Controller;

    use Cake\Controller\Controller;
    use Cake\Event\Event;
    use Cake\Filesystem\Folder;
    use FFMpeg\Coordinate\TimeCode;
    use FFMpeg\FFMpeg;
    use Cake\Controller\Component;
    use Cake\I18n\I18n;

    /**
    * Application Controller
    *
    * Add your application-wide methods in the class below, your controllers
    * will inherit them.
    *
    * @link http://book.cakephp.org/3.0/en/controllers.html#the-app-controller
    */
    class AppController extends Controller
    {


       /**
        * Initialization hook method.
        *
        * Use this method to add common initialization code like loading components.
        *
        * e.g. `$this->loadComponent('Security');`
        *
        * @return void
        */
       public function initialize()
       {

           parent::initialize();

           $this->loadComponent('Cookie');
           $this->loadComponent('RequestHandler');
           $this->loadComponent('Flash');
           $provider = $this->request->query('provider');
           //if ($provider === null) {
           $this->loadComponent('Auth', [
               'authenticate' => [
                   'Form' => [
                       'finder' => 'auth',
                       'fields' => [
                           'username' => 'email',
                           'password' => 'password'
                       ],
                       'loginAction' => [
                           'controller' => 'Auth',
                           'action' => 'login'
                       ],

                       'loginRedirect' => [
                           'controller' => 'Auth',
                           'action' => 'login'
                       ],

                       'logoutRedirect' => [
                           'controller' => 'Auth',
                           'action' => 'login'
                       ]
                   ],
                   'ADmad/HybridAuth.HybridAuth' => [
                       // All keys shown below are defaults
                       'fields' => [
                           'provider' => 'provider',
                           'openid_identifier' => 'openid_identifier',
                           'email' => 'email'

                       ],
                       'profileModel' => 'ADmad/HybridAuth.SocialProfiles',
                       'profileModelFkField' => 'user_id',

                       // The URL Hybridauth lib should redirect to after authentication.
                       // If no value is specified you are redirect to this plugin's
                       // HybridAuthController::authenticated() which handles persisting
                       // user info to AuthComponent and redirection.
                       'hauth_return_to' => null,

                       'loginRedirect' => [
                           'controller' => 'Auth',
                           'action' => 'login'
                       ],

                       'logoutRedirect' => [
                           'controller' => 'Auth',
                           'action' => 'login'
                       ]
                   ],
               ],



           ]);
    //        } else {
    //            $this->loadComponent('Auth', [
    //                'authenticate' => [
    //                    'Form',
    //
    //
    //                ]
    //
    //            ]);
    //        }

       }

       /**
        * Before render callback.
        *
        * @param \Cake\Event\Event $event The beforeRender event.
        * @return void
        */
       public function beforeRender(Event $event)
       {
           if (!array_key_exists('_serialize', $this->viewVars) &&
               in_array($this->response->type(), ['application/json', 'application/xml'])
           ) {
               $this->set('_serialize', true);
           }

           if ($this->request->session()->read('Auth.User')) {
               $this->set('loggedIn', true);
           } else {
               $this->set('loggedIn', false);
           }
       }

       protected function uploadFile(array $file, $path, $postId)
       {
           $objFile = $file;
           $path = $_SERVER['DOCUMENT_ROOT'] . $path;
           //@TODO check file size|Return error
           $folder = new Folder();
           $folder->create($path, 0755);

           move_uploaded_file($objFile['tmp_name'], $path . DS . $objFile['name']);

           $ffmpeg = FFMpeg::create(
               array(
                   'ffmpeg.binaries' => '/usr/bin/ffmpeg',
                   'ffprobe.binaries' => '/usr/bin/ffprobe',
                   'timeout' => 3600, // The timeout for the underlying process
                   'ffmpeg.threads' => 12,   // The number of threads that FFMpeg should use
               )
           );
           $temp = explode('.', $objFile['name']);
           $video = $ffmpeg->open(WWW_ROOT . 'uploads/records' . DS . $postId . DS . $objFile['name']);
           $frame = $video->frame(TimeCode::fromSeconds(1));
           $userPath = 'uploads/records' . DS . $postId . DS . $temp[0] . '.jpg';
           $frame->save(WWW_ROOT . $userPath);
       }

    WARNING !!!!! Help me......
    enter image description here

  • To all Matomo plugin developers : Matomo 4 is coming, make your plugin compatible now

    6 août 2020, par Matomo Core Team — Development

    We’re planning to release the first beta of Matomo 4 in a few weeks. For making it easy for Matomo users to be able to upgrade to this beta, it would be great if as many plugins on the Marketplace as possible would be already updated and compatible with Matomo 4. Then many users would be able to upgrade to the first beta without any issues.

    Presumably, as you put your plugin on our Marketplace, you want people to use it. Making your plugin compatible with Matomo 4 helps ensure that people will be able to find and keep using your plugin. If your plugin is not compatible with Matomo 4, your plugin will be automatically deactivated. We’ll be happy to help you achieve compatibility should there be any issue.

    How do I upgrade my Matomo to Matomo 4 ?

    If you have installed your Matomo development environment through git you can simply checkout the Matomo 4 branch “4.x-dev” by executing these commands :

    • git checkout 4.x-dev 
    • composer install

    Alternatively, you can also download the latest version directly from GitHub as a zip file and run composer install afterwards. 

    How do I upgrade my plugin to Matomo 4 ?

    While there were many breaking changes in Matomo 4, most of our Platform APIs remain unchanged, and almost all changes are for rarely used APIs. Often to make your plugin compatible it will just be a matter of adjusting the “plugin.json” file (as mentioned in the migration guide).

    You can find all developer documentation on our developer zone which has already been updated for Matomo 4.

    How do I know my plugin changes were released successfully ?

    If you have configured an email address within your “plugin.json” file, then you will receive a confirmation or an error email within a few minutes. Alternatively, you can also check out your plugin page on the Marketplace directly. If the plugin release was successful, you will see additional links below the download button showing which versions your plugin is compatible with.

    What it looks like when your plugin is compatible with multiple Matomo versions

    How can I downgrade to Matomo 3 or switch between Matomo 3 and Matomo 4 ?

    To downgrade from Matomo 4 to Matomo 3 :

    When will the final Matomo 4 release be available ?

    We estimate the final stable Matomo 4.0.0 release will be released in approx. 3 months.

    What’s new in Matomo 4 ?

    We don’t have a summary of the changes available just yet but you can see all closed issues within this release here.

    Any questions or need help ? 

    If you have any questions, or experience any problems during the migration don’t hesitate to get in touch with us. We’ll be happy to help get your plugin compatible and the update published. If you find any undocumented breaking change or find any step during the migration process not clear, please let us know as well.

    Thank you for contributing a plugin to the Marketplace and making Matomo better. We really appreciate your work !

  • ffmpeg use gpu to encode mpeg4 to ts/m3u8 [closed]

    14 novembre 2024, par danielRICADO

    using ffmpeg I want to trim and transcode a mpeg4 from ts / m3u8

    


    std::string ffmpeg_command = "ffmpeg -hwaccel drm -i " + output_dir + input_file +
                         " -ss 00:00:00.00 -t 31 -c:v " + codec + " -b:v " + std::to_string(bitrate) +
                         " -vf scale=" + std::to_string(width) + "x" + std::to_string(height) +
                         " -hls_time " + std::to_string(30) + " -hls_list_size 0 -hls_segment_filename " +
                         ts_file_pattern + " -f hls " + m3u8_file;


    


    I wanted to choose between codecs based on the system, if gpu is avaiable I'd like to opt to use it, right now I just check if the codec is available

    


    bool is_h264_v4l2m2m_available() {
    std::string result = exec_command("ffmpeg -encoders 2>&1");
    return result.find("h264_v4l2m2m") != std::string::npos;
}


    


    if it is a I wanted to move that process over to the gpu, not just use libx264. Here is the error log. Studying hard on the solution but wold super apperciate any expert advice.

    


    other considerations are - runs in a docker container on a pi5, pibian on the host apline on in the container, container runs in privledged mode

    


    2024-11-14 15:18:41 [INFO]: assigned codec: h264_v4l2m2m
2024-11-14 15:18:41 ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
2024-11-14 15:18:41   built with gcc 13.2.1 (Alpine 13.2.1_git20240309) 20240309
2024-11-14 15:18:41   configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto=auto --enable-lv2 --enable-openssl --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl
2024-11-14 15:18:41   libavutil      58. 29.100 / 58. 29.100
2024-11-14 15:18:41   libavcodec     60. 31.102 / 60. 31.102
2024-11-14 15:18:41   libavformat    60. 16.100 / 60. 16.100
2024-11-14 15:18:41   libavdevice    60.  3.100 / 60.  3.100
2024-11-14 15:18:41   libavfilter     9. 12.100 /  9. 12.100
2024-11-14 15:18:41   libswscale      7.  5.100 /  7.  5.100
2024-11-14 15:18:41   libswresample   4. 12.100 /  4. 12.100
2024-11-14 15:18:41   libpostproc    57.  3.100 / 57.  3.100
2024-11-14 15:18:42 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/app/client-data/camera-output/7ea3cbef-4da0-11ed-bdcc-baf70a43c072/1731550687270.mp4':
2024-11-14 15:18:42   Metadata:
2024-11-14 15:18:42     major_brand     : isom
2024-11-14 15:18:42     minor_version   : 512
2024-11-14 15:18:42     compatible_brands: isomiso2avc1mp41
2024-11-14 15:18:42     encoder         : Lavf60.16.100
2024-11-14 15:18:42   Duration: 00:00:31.33, start: 0.000000, bitrate: 678 kb/s
2024-11-14 15:18:42   Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1024x1024, 677 kb/s, 15 fps, 15 tbr, 15360 tbn (default)
2024-11-14 15:18:42     Metadata:
2024-11-14 15:18:42       handler_name    : VideoHandler
2024-11-14 15:18:42       vendor_id       : [0][0][0][0]
2024-11-14 15:18:42 [AVFormatContext @ 0x7f9254dcb4c0] Unable to choose an output format for '678000'; use a standard extension for the filename or specify the format manually.
2024-11-14 15:18:42 [out#0 @ 0x7f9254d70700] Error initializing the muxer for 678000: Invalid argument
2024-11-14 15:18:42 Error opening output file 678000.
2024-11-14 15:18:42 Error opening output files: Invalid argument
2024-11-14 15:18:42 [ERROR]: Failed to generate .ts file for: 1731550687270.mp4