Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (90)

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (8971)

  • Making use of -w option in pyinstaller does not start/create the subprocess in python

    15 novembre 2018, par User

    I am making use of python to invoke ffmpeg to start and stop video capturing. I do not want to the console window appear when my python exe starts. The code I have currently to start and stop video recording is below,

    cmd = '\\ffmpeg\\bin\\ffmpeg.exe -loglevel quiet -f gdigrab -framerate 30 -i desktop -vcodec libx264 -pix_fmt yuv420p -preset slow -crf 0 -threads 0 ' + '"' + final_file_for_video_processing + '"'

    def stop_screen_recording():
       sub_process.stdin.write("q".encode())
       stdOutput, stdError = sub_process.communicate()


    def stop_screen_recording(cmd):
       startupinfo = subprocess.STARTUPINFO()
       startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
       global sub_process
       sub_process = subprocess.Popen(cmd, startupinfo=startupinfo,
       stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None)
       sub_process.wait()

    The challenge faced is, when I build the exe using
    pyinstaller -w —onefile python_file_name.py the recording does not begin. Note : The -w is to not show the console window.

    If I were to make use of pyinstaller and build the exe in the following way,
    pyinstaller —onefile python_file_name.py then recording of the video begins.
    Note : Without the -w command it works perfectly fine.

    I want to make use of the -w command since I do not want to show the console window of my python exe. Any insights will help.

  • Web camera Logitech and Linux

    8 novembre 2019, par Nick Saw

    I have Logitech C310 camera with the declared characteristics of 720p 30fps.

    If you connect the camera to windows, the recording is fully consistent with the stated 720p 30fps - the picture is clear.

    The challenge is to connect the same camera to OrangePI (server Armbian) and to save video files on it.

    The camera appears as /dev/video0.

    sudo ffmpeg -f v4l2 -s 1280x720 -i /dev/video0 output.wmv

    As a result, I get a crumbly picture with a frequency of 5 fps.

    Maybe I’m using ffmpeg incorrectly ? Please help me who has experience with Web cameras on Linux ...
    Thanks in advance.

    USB-camera configuration :

    v4l2-ctl --all --device=/dev/video0


    Driver Info (not using libv4l2):
           Driver name   : uvcvideo
           Card type     : UVC Camera (046d:081b)
           Bus info      : usb-1c1c000.usb-1
           Driver version: 4.14.18
           Capabilities  : 0x84200001
                   Video Capture
                   Streaming
                   Extended Pix Format
                   Device Capabilities
           Device Caps   : 0x04200001
                   Video Capture
                   Streaming
                   Extended Pix Format
    Priority: 2
    Video input : 0 (Camera 1: ok)
    Format Video Capture:
           Width/Height      : 1280/720
           Pixel Format      : 'YUYV'
           Field             : None
           Bytes per Line    : 2560
           Size Image        : 1843200
           Colorspace        : sRGB
           Transfer Function : Default
           YCbCr/HSV Encoding: Default
           Quantization      : Default
           Flags             :
    Crop Capability Video Capture:
           Bounds      : Left 0, Top 0, Width 1280, Height 720
           Default     : Left 0, Top 0, Width 1280, Height 720
           Pixel Aspect: 1/1
    Selection: crop_default, Left 0, Top 0, Width 1280, Height 720
    Selection: crop_bounds, Left 0, Top 0, Width 1280, Height 720
    Streaming Parameters Video Capture:
           Capabilities     : timeperframe
           Frames per second: 5.000 (5/1)
           Read buffers     : 0
                        brightness (int)    : min=0 max=255 step=1 default=128 value=128
                          contrast (int)    : min=0 max=255 step=1 default=32 value=32
                        saturation (int)    : min=0 max=255 step=1 default=32 value=32
    white_balance_temperature_auto (bool)   : default=1 value=1
                              gain (int)    : min=0 max=255 step=1 default=64 value=192
              power_line_frequency (menu)   : min=0 max=2 default=2 value=2
         white_balance_temperature (int)    : min=0 max=10000 step=10 default=4000 value=4610 flags=inactive
                         sharpness (int)    : min=0 max=255 step=1 default=24 value=24
            backlight_compensation (int)    : min=0 max=1 step=1 default=0 value=0
                     exposure_auto (menu)   : min=0 max=3 default=3 value=3
                 exposure_absolute (int)    : min=1 max=10000 step=1 default=166 value=249 flags=inactive
            exposure_auto_priority (bool)   : default=0 value=1
                         led1_mode (menu)   : min=0 max=3 default=3 value=3
                    led1_frequency (int)    : min=0 max=131 step=1 default=0 value=0
  • File not found at path : on laravel 5.6

    9 mars 2018, par syehbi herbian

    i am using laravel 5.6, i will try to make function multiple upload video, and get frame and duration with laravel-ffmpeg, but when i try to upload one video for example, always show error like "File not found at path :",

    this is my function to store video and get duration & frame :

    public function doCreate($lessonsid)
     {
         if (empty(Session::get('contribID'))) {
           return redirect('contributor/login');
         }
       # code...
       // validate
       // read more on validation at http://laravel.com/docs/validation
       $rules = array(
         'judul'          => 'required',
       //   'video.*'  => 'mimes:mp4,mov,ogg,webm |required|max:100000',
       //   'image.*' => 'mimes:jpeg,jpg,png,gif|required|max:30000'
       );
       $validator = Validator::make(Input::all(), $rules);

       // process the login
       if ($validator->fails()) {
           return redirect()->back()->withErrors($validator)->withInput();
       } else {

           $now          = new DateTime();
           $cid          = Session::get('contribID');
           $title        = Input::get('judul');
           $image_video = Input::file('image');
           $lessons_video = Input::file('video');
           // dd($lessons_video);
           // $media = FFMpeg::open('https:/dev.cilsy.id/assets/source/lessons/lessons-74/video-8/1. Introduction (2).mp4');
           // $frame = $media->getFrameFromString('00:00:13.37');
           // dd($media);    
           $description  = Input::get('desc');

           $video=Video::where('lessons_id',$lessonsid)->get();
           $count_video=count($video);


           if (!is_dir("assets/source/lessons/lessons-$lessonsid")) {
                   $newforder=mkdir("assets/source/lessons/lessons-".$lessonsid);
           }

           $i=$count_video + 1;
           foreach ($title as $key => $titles) {
                   $type_video =$lessons_video[$key]->getMimeType();

                   if (!is_dir("assets/source/lessons/lessons-".$lessonsid."/video-".$i)) {
                           $newforder=mkdir("assets/source/lessons/lessons-".$lessonsid."/video-".$i);
                   }
                   $DestinationPath= 'assets/source/lessons/lessons-'.$lessonsid.'/video-'.$i;
                   //insert image
                   if(!empty($image_video[$key])){
                       $imagefilename    = $image_video[$key]->getClientOriginalName();
                       $image_video[$key]->move($DestinationPath, $imagefilename);
                   }else{
                       $imagefilename    = '';
                   }
                   if($imagefilename ==''){
                       $url_image= $imagefilename;
                   }else{
                       $urls=url('');
                       $url_image= $urls.'/assets/source/lessons/video-'.$i.'/'.$imagefilename;
                   }

                   //insert video
                   if(!empty($lessons_video[$key])){
                       $lessonsfilename    = $lessons_video[$key]->getClientOriginalName();
                       $lessons_video[$key]->storeAs($DestinationPath, $lessonsfilename);
                   }else{
                       $lessonsfilename    = '';
                   }
                   if($lessonsfilename ==''){
                       $url_video= $lessonsfilename;
                   }else{
                       $urls=url('');
                       $url_video= $urls.'/assets/source/lessons/video-'.$i.'/'.$lessonsfilename;
                   }




                   $store                  = new Video;
                   $store->lessons_id      = $lessonsid;
                   $store->title           = $titles;
                   $store->image           = $url_image;
                   $store->video           = $url_video;
                   $store->description     = $description[$key];
                   $store->type_video      = $type_video;
                   $store->durasi          = 0;
                   $store->created_at      = $now;
                   $store->enable=1;
                   $store->save();
                   if($store){
                       $media = FFMpeg::open($url_video);
                       // $frame = FFMpeg::open($link)
                       //         ->getFrameFromSeconds(10)
                       //         ->export()
                       //         ->toDisk('public')
                       //         ->save($filename.'.png');
                       dd($media);
                       $durationInSeconds = $media->getDurationInSeconds();
                       // dd($media);


                   }
           $i++;
           }

           // Session::set('lessons_title',$title);
           // Session::set('lessons_category_id',$category_id);
           // Session::set('lessons_image',$image);
           // Session::set('lessons_description',$description);

           return redirect('contributor/lessons/'.$lessonsid.'/view')->with('success','Penambahan video berhasil');

       }
     }

    this is message error, when i try to upload my video

    error display

    anyone can help me ?