Advanced search

Medias (0)

Tag: - Tags -/performance

No media matches your criterion on the site.

Other articles (32)

  • L’espace de configuration de MediaSPIP

    29 November 2010, by

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • HTML5 audio and video support

    13 April 2011, by

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

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 November 2010, by

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus; Son logo; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

On other websites (3683)

  • Trying to get property of non-object while uploading to database

    26 November 2017, by Programmmereg

    I have a script when user can clip video, then that video uploads to public folder, and now I want to upload all video data to database. But i get error like in title. Here’s my code:

    Controller:

    public function clip($id)
       {
           $video = Video::where('id', $id)->first();

           $oldId = $video->id;
           $originalName = $video->original_name;
           $newName = str_random(50) . '.' . 'mp4';

           FFMpeg::fromDisk('public')
           ->open('/uploads/videos/' .$video->file_name)
           ->addFilter(function ($filters) {
           $filters->clip(FFMpeg\Coordinate\TimeCode::fromSeconds(5), FFMpeg\Coordinate\TimeCode::fromSeconds(2));
           })
           ->export()
           ->toDisk('public')
           ->inFormat(new \FFMpeg\Format\Video\X264)
           ->save('/uploads/videos/' . $newName);



           $data = ['user_id'=>Auth::user()->id,
               'file_name'=>$newName,
               'original_name'=> $originalName,
               'old_id' => $oldId,
           ];

            $video = Video::edit($data);
       }

    Model:

    public static function edit($request)
       {
           $video = new Video;
           $video->user_id = $request->user_id;
           $video->file_name = $request->file_name;
           $video->original_name = $request->original_name;
           $video->save();

           $old = $file = Video::where('id', $request->old_id)->delete();
           //$old_file = unlink($request->file('file'));

           return $video;
       }

    What should I edit?

  • Pyinstaller exe works halfway on another computer

    21 October 2022, by At Bay

    I created an exe using pyinstaller. I did this by doing the following:

    


    pyinstaller cliptranscript.py


    


    When I run it on another computer, it's works partially. The code starts by asking the user for some arguments, after those inputs I get this error:

    


    Enter directory of wav files: C:\Users\myname\Downloads\&#xA;Enter clip start (seconds): 0&#xA;Enter desired clip length (seconds): 5&#xA;Traceback (most recent call last):&#xA;  File "cliptranscript.py", line 134, in <module>&#xA;  File "cliptranscript.py", line 47, in ffmpeg&#xA;  File "subprocess.py", line 503, in run&#xA;  File "subprocess.py", line 971, in __init__&#xA;  File "subprocess.py", line 1440, in _execute_child&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;[13304] Failed to execute script &#x27;cliptranscript&#x27; due to unhandled exception!&#xA;</module>

    &#xA;

    I'm using ffmpeg and the libraries os, subprocess, datetime, speech_recognition, and xlsx writer.

    &#xA;

  • Using ffmpeg, I'm trying to mute all 5.1 channels of audio for a period of time within a video

    1 November 2019, by cozmonaut

    I’m wanting to mute audio for a portion of a video clip while keeping the video exactly as it is.

    I came across this online.

    ffmpeg -i ~/Downloads/in.mov -vcodec copy -af "volume=enable='between(t,0,3)':volume=0" ~/Downloads/out2.mov

    Although it works, it converts the 5.1 audio to stereo. Isn’t it possible to mute the first 3 seconds of all 5.1 channels of audio, while keeping the 5.1 channels intact within the finished output video file?

    Here are the specs on my video/audio clip:

    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:2[0x102]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s

    Thank you.