Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (21)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (3154)

  • FFMpeg\Format\video\X264 not found

    21 septembre 2022, par Despossivel

    Can anyone tell me why I get

    


    


    Error : Class "FFMpeg\Format\video\X264" not found in"

    


    


    even with the dependency installed and binary installed.

    


    Below is my implementation.

    


    I have the dependency in vendor and the binary in the container installed

    


    

<?php

namespace App\Services;
 
use App\Http\Traits\UploadFiles;
use App\Models\OtherVideoFormat;
use ProtoneMedia\LaravelFFMpeg\Support\FFMpeg;

class VideoServiceSecond
{
    use UploadFiles, SetPath;

    protected $otherVideoFormat, $data;

    public function __construct(array $data, $method = 'create')
    {
        $this->otherVideoFormat = app(OtherVideoFormat::class);
        $this->data = $data;

        if ($method == 'create')
            $this->convertFormatVideoFirst();
        else
            $this->convertFormatVideoFirstUpdate();
    }

    public function convertFormatVideoFirst()
    {
        FFMpeg::openUrl($this->data['url_signed'])
            ->export()
            ->toDisk('public')
            ->inFormat(new \FFMpeg\Format\video\X264)
            ->resize(config('dimensions-videos.second-width'), config('dimensions-videos.second-height'))
            ->save('video-resize-' . config('dimensions-videos.second-width') . 'x'
                . config('dimensions-videos.second-height') . config('files-extensions.video'));

        $response = $this->uploadFileConvert(
            Storage::disk('public')
                ->get("video-resize-" . config('dimensions-videos.second-width') . 'x'
                    . config('dimensions-videos.second-height') . config('files-extensions.video')),
            "video-resize-" . config('dimensions-videos.second-width') . 'x'
                . config('dimensions-videos.second-height') . '-' . Str::uuid() . config('files-extensions.video')
        );

        $this->data['url'] = $response;
        $this->data['url_signed'] = $this->getAuthorizationToDownloadFile($this->data['url']);
        $this->data['created_at'] = Carbon::now()->toDateString();
        $this->data['updated_at'] = Carbon::now()->toDateString();
        $this->data['video_id'] = $this->data['video_id'];
        $this->data['format'] = config('dimensions-videos.second-width') . 'x'
            . config('dimensions-videos.second-height');

        FFMpeg::openUrl($this->data['url_signed'])
            ->getFrameFromSeconds(config('time-capture-thumb.seconds'))
            ->export()
            ->toDisk('public')
            ->save("video-thumb-" . config('dimensions-thumb.second-width') . 'x'
                . config('dimensions-thumb.second-height') . config('files-extensions.thumb'));

        $url_file = $this->uploadPublicFileCompress(
            Storage::disk('public')
                ->get("video-thumb-" . config('dimensions-thumb.second-width') . 'x'
                    . config('dimensions-thumb.second-height') . config('files-extensions.thumb')),
            "video-thumb-" . config('dimensions-thumb.second-width') . 'x'
                . config('dimensions-thumb.second-height') . '-' . Str::uuid() . config('files-extensions.thumb')
        );

        $this->removeImagePublicDisk("video-thumb-" . config('dimensions-thumb.second-width') . 'x'
            . config('dimensions-thumb.second-height') . config('files-extensions.thumb'));
        $this->removeImagePublicDisk("video-resize-" . config('dimensions-videos.second-width') . 'x'
            . config('dimensions-videos.second-height') . config('files-extensions.video'));

        $this->data['thumbnail_url'] = $url_file;

        $this->otherVideoFormat->create($this->data);
    }


?>


    


    I've tried several options, and I can't find the reason for the problem

    


  • Pause/resume ffmpeg transcoding process

    27 janvier 2014, par XXX

    In my Android application I use Ffmpeg library written in C++. I use ffmpeg command ffmpeg -y -i in.mp4 -s 320x240 -c:a copy out.mp4 to reduce the size of media files on Android. Everything works well. But if the file is too large, then the smartphone's battery heats up. And I have a question : is it possible to stop a ffmpeg process, and then continue it later on ? When I am converting a large file, I would like to be able to start from where I left off. Or is there any way to avoid heating the battery. May be this way : cut the file into pieces, reduce each separately and paste together ?

    UPDATE

    I found this Pause any process you want in Linux. So I decided to try to apply it on Android.

    public static void pause()
    {
       try
       {
           Process      sh = Runtime.getRuntime().exec("su", null,null);
           OutputStream os = sh.getOutputStream();
           os.write(("sudo -kill -STOP (pidof Thread-10)").getBytes("ASCII"));
           Log.e("!!", "process stopped!");
           os.flush();
           os.close();
           sh.waitFor();
       }
       catch(Throwable t){t.printStackTrace();}
    }

    But the process doesn't stop. Thread-10 it's the name of ffmpeg transcoding process. Whats wrong ?

  • 2 GB Should Be Enough For Me

    31 août 2010, par Multimedia Mike — General

    My new EeePC 1201PN netbook has 2 GB of RAM. Call me shortsighted but I feel like “that ought to be enough for me”. I’m not trying to claim that it ought to be enough for everyone. I am, however, questioning the utility of swap space for those skilled in the art of computing.



    Technology marches on : This ancient 128 MB RAM module is larger than my digital camera’s battery charger… and I just realized that comparison doesn’t make any sense

    Does anyone else have this issue ? It has gotten to the point where I deliberately disable swap partitions on Linux desktops I’m using ('swapoff -a'), and try not to allocate a swap partition during install time. I’m encountering Linux installers that seem to be making it tougher to do this, essentially pleading with you to create a swap partition– “Seriously, you might need 8 total gigabytes of virtual memory one day.” I’m of the opinion that if 2 GB of physical memory isn’t enough for my normal operation, I might need to re-examine my processes.

    In the course of my normal computer usage (which is definitely not normal by the standard of a normal computer user), swap space is just another way for the software to screw things up behind the scenes. In this case, the mistake is performance-related as the software makes poor decisions about what needs to be kept in RAM.

    And then there are the netbook-oriented Linux distributions that insisted upon setting aside as swap 1/2 gigabyte of the already constrained 4 gigabytes of my Eee PC 701′s on-board flash memory, never offering the choice to opt out of swap space during installation. Earmarking flash memory for swap space is generally regarded as exceptionally poor form. To be fair, I don’t know that SSD has been all that prevalent in netbooks since the very earliest units in the netbook epoch.

    Am I alone in this ? Does anyone else prefer to keep all of their memory physical in this day and age ?