Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (91)

Sur d’autres sites (16689)

  • Cannot clip videos using FFMpeg in laravel

    22 novembre 2017, par Programmmereg

    I am building script where I can clip videos in laravel. Here’s my code :

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

           $vid = Storage::get('public/uploads/videos/' . $video->file_name);

           $ffmpeg = \FFMpeg\FFMpeg::create();

           $media = \FFMpeg::open($vid);

           dd($media);

           $video->filters()->clip(FFMpeg\Coordinate\TimeCode::fromSeconds(30), FFMpeg\Coordinate\TimeCode::fromSeconds(15));

       }

    And I have problem because there is error :

    FatalErrorException in ProcessUtils.php line 74:
    escapeshellarg(): Input string contains NULL bytes

    I think that is in line :

    $media = \FFMpeg::open($vid);

    But I do not know what happened. Can you help me ?

  • Merging four videos with differnt resolution in a Grid with ffmpeg

    5 juillet 2015, par Taufiq

    I want to marge four videos in to one as show below. I have achieve the correct output given all the videos have the same resolution. But I get an undesirable result with different resolution. See below for more details.

    ffmpeg code to get to merge 4 videos of different resution in a grid format

    ffmpeg.exe -i "1.avi" -vf "[in] scale=iw:ih, pad=2*iw:ih [left];movie=2.avi, scale=iw:ih [right]; [left][right] overlay=main_w/2:0 [out]" -b:v 768k "Output1.mp4"
    ffmpeg.exe -i "3.avi" -vf "[in] scale=iw:ih, pad=2*iw:ih [left];movie=4.avi, scale=iw:ih [right]; [left][right] overlay=main_w/2:0 [out]" -b:v 768k "Output2.mp4"
    ffmpeg.exe -i "Output1.mp4" -vf "pad=iw:2*ih [top]; movie=Output2.mp4 [bottom]; [top][bottom] overlay=0:main_h/2" "Output_Stacked.mp4"

    Code above gives the follow output.

    For Example

    But the problem arises when I rotate one of the videos and merge them.
    enter image description here.

    Please tell me what I need to change to get the desired result. Thanks
    enter image description here

  • How do I combine two videos or add a logo using ffmpeg via VB.Net ? [on hold]

    25 janvier 2014, par user3235437

    How do I combine two videos or add a logo using ffmpeg via VB.Net ?

    EG : copy file1.mpg /b + file2.mpg /b output.mpg /b

    How do I execute this code through VB.Net ?

    Thank you for giving example code.