Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (97)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (6603)

  • Watermarking in video using ffmpeg

    14 octobre 2017, par Monisha Vp

    Following is for video watermarking

    include "vendor/autoload.php";\n<br />
    $logger="";<br />
    $ffmpeg = \FFMpeg\FFMpeg::create([
           'ffmpeg.binaries'  => 'C:\ffmpeg\bin\ffmpeg.exe', // the path to the FFMpeg binary<br />
           'ffprobe.binaries' => 'C:\ffmpeg\bin\ffprobe.exe', // the path to the FFProbe binary<br />
       ]);<br />
       $video = $ffmpeg->open('sample.mp4');<br />
       $video<br />
       ->filters()<br />
       ->watermark('watermark.png', array(<br />
           'position' => 'absolute',<br />
           'x' => 1180,<br />
           'y' => 620,<br />
       ));<br />
       $video<br />
       ->save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4');<br />
       print "ssddd";

    But it return error

    Fatal error : Uncaught exception
    ’Alchemy\BinaryDriver\Exception\ExecutionFailureException’ with
    message ’ffmpeg failed to execute command C :\ffmpeg\bin\ffmpeg.exe -y
    -i sample.mp4 -vcodec libx264 -acodec libfaac -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -vf "movie=watermark.png [watermark] ;[in][watermark] overlay=1180:620 [out]" -pass 1
    -passlogfile "C :\Users\Lap215\AppData\Local\Temp\ffmpeg-passes59e25ad8c4dd5xwrpl/pass-59e25ad8c5327"
    export-x264.mp4’ in
    C :\xampp\htdocs\test_html\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php:100
    Stack trace : #0
    C :\xampp\htdocs\test_html\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php(72) :
    Alchemy\BinaryDriver\ProcessRunner->doExecutionFailure(’C :\ffmpeg\bin\f...’)

    1 C :\xampp\htdocs\test_html\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php(209) :

    Alchemy\BinaryDriver\ProcessRunner->run(Object(Symfony\Component\Process\P
    in
    C :\xampp\htdocs\test_html\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\Video.php
    on line 228.

    Please help me

  • I dont know how to Create a frame from a video with FFMpeg

    17 octobre 2017, par Rohallah Hatami

    by this code i am creating new object of news width video file and save that file into public/files

     public function store(Request $request, $type)
    {
       $library_data = [
           'library_title' => request()->input('title'),
           'library_short_text' => request('short_text'),
           'library_body' => request('body'),
           'library_type' => $type,
           'library_cat_id' =>request()->input('category'),
       ];

       $new_library_object = Library::create($library_data);
       if (count($request->file('fileItem')) > 0 &amp;&amp; is_array($request->file('fileItem')) ){
           foreach ($request->file('fileItem') as $file){
               $file_data=[
                   'file_type'=> $file->getMimeType(),
                   'file_size'=> $file->getClientSize(),
               ];
               $new_file_name = str_random(45).'.'.$file->getClientOriginalExtension();
               $result = $file->move(public_path('files'),$new_file_name);
               if($result instanceof \Symfony\Component\HttpFoundation\File\File){
                   $file_data['file_name'] = $new_file_name;
                   $file_data['file_title'] = $new_file_name;

                   $new_file_object=$new_library_object->files()->create($file_data);

               }
           }
       }elseif (count($request->file('fileItem')) > 0 &amp;&amp; !is_array($request->file('fileItem'))){

           $file_data=[
               'file_type'=> $request->file('fileItem')->getMimeType(),
               'file_size'=> $request->file('fileItem')->getClientSize(),
           ];


           $new_file_name = str_random(45).'.'.$request->file('fileItem')->getClientOriginalExtension();
           $result = $request->file('fileItem')->move(public_path('files'),$new_file_name);
           if($result instanceof \Symfony\Component\HttpFoundation\File\File){
               $file_data['file_name'] = $new_file_name;
               $file_data['file_title'] = $new_file_name;

               $new_file_object=$new_library_object->files()->create($file_data);

           }
       }

    then I dont know how use this codes to Create a frame from a video

    FFMpeg::fromDisk('videos')
    ->open('steve_howe.mp4')
    ->getFrameFromSeconds(10)
    ->export()
    ->toDisk('thumnails')
    ->save('FrameAt10sec.png');

    whate is ’videos’ in fromdisk and in my codes how use this parametrs

    I use this code `

    $new_file_object=$new_library_object->files()->create($file_data);
               $start = \FFMpeg\Coordinate\TimeCode::fromSeconds(5);
               $clipFilter = new \FFMpeg\Filters\Video\ClipFilter($start);
               FFMpeg::fromDisk('files')
                   ->open($new_file_object->file_name)
                   ->addFilter($clipFilter)
                   ->export()
                   ->toDisk('files')
                   ->inFormat(new \FFMpeg\Format\Video\X264)
                   ->save('short_steve.mkv');

    but I have this erroe

    Non-static method Pbmedia\LaravelFFMpeg\FFMpeg::fromDisk() should not be called statically
  • Merge commit '4c0588b4562abad5540f6a5435c62828de9e4fdf'

    11 novembre 2017, par James Almer
    Merge commit '4c0588b4562abad5540f6a5435c62828de9e4fdf'
    

    * commit '4c0588b4562abad5540f6a5435c62828de9e4fdf' :
    mpeg2enc : Don't mark all streams as component video

    Merged-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/mpeg12enc.c