Recherche avancée

Médias (0)

Mot : - Tags -/page unique

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

Autres articles (24)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (2821)

  • FFMPEG "Segmentation fault" with stream source and watermark

    4 mars 2020, par Magikey

    I use release : 4.2.2 (static) from "https://johnvansickle.com/ffmpeg/"

    Final code will be on "Amazon AWS lambda"

    Goal : use a url stream and add watermak

    Link to video : ​https://feoval.fr/519.mp4

    Link to Watermak : ​https://feoval.fr/watermark.png

    ./ffmpeg -i "https://feoval.fr/519.mp4" -i "./watermark.png" -filter_complex "overlay=W-w-10:H-h-10:format=rgb" -f "mp4" -movflags "frag_keyframe+empty_moov" -pix_fmt "yuv420p" test.mp4

    return "Segmentation fault"

    I have the same error on my computer and on AWS Lambda server

    ./ffmpeg -i "https://feoval.fr/519.mp4" -f "mp4" -movflags "frag_keyframe+empty_moov" -pix_fmt "yuv420p" test.mp4

    work (but not watermak)

    ./ffmpeg -i "./519.mp4" -i "./watermark.png" -filter_complex "overlay=W-w-10:H-h-10:format=rgb" -f "mp4" -movflags "frag_keyframe+empty_moov" -pix_fmt "yuv420p" test.mp4

    work (but not with stream)

    Thanks you very much !

    Logs for the first case who return "Segmentation fault" :

    ...
    Stream mapping:
    Stream #0:0 (h264) -> overlay:main (graph 0)
    Stream #1:0 (png) -> overlay:overlay (graph 0)
    overlay (graph 0) -> Stream #0:0 (libx264)
    Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, ? for help
    [libx264 @ 0x742e480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x742e480] profile High, level 3.1, 4:2:0, 8-bit
    [libx264 @ 0x742e480] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - ​http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'test.mp4':
    Metadata:
    major_brand : mp42
    minor_version : 1
    compatible_brands: isommp41mp42
    encoder : Lavf58.29.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 480x848, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
    encoder : Lavc58.54.100 libx264
    Side data:
    cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
    creation_time : 2020-01-13T08:54:26.000000Z
    handler_name : Core Media Audio
    encoder : Lavc58.54.100 aac
    Segmentation fault (core dumped)
  • ffmpeg : how can i hstack 2 videos and display a watermark outside the video area

    27 février 2020, par Cédric Kamermans

    I’m new to using ffmpeg and I want to combine two 1920x1080 videos using hstack. The output video also needs to be 1920x1080. At the same time I want to display a watermark at the bottom of the screen (outside the video area) and one in the top middle of the screen.

    So far i managed to make an hstack with padding but the watermark won’t display outside the video area.

    Here is my first attempt :

    ffmpeg -y -i input1.mp4 -i input2.mp4 -i watermark1.png -filter_complex "[0]pad=iw+5:color=black[left];[left][1]hstack=inputs=2","overlay=x=(main_w-overlay_w)*0.95:y=(main_h-overlay_h)*0.95","scale=w=1920:h=1080" Output.mp4

    Here is a comparison of what i get and what i want :

    wrong output desired output

    Any help regarding my problem would be very much appreciated !

  • php-FFMpeg issue when adding watermark

    17 février 2020, par BN83

    Currently getting the following error whilst trying to add a watermark to videos

    PHP Fatal error : Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException : ffmpeg failed to execute command ’/usr/bin/ffmpeg’ ’-y’ ’-i’ ’test.mp4’ ’-vcodec’ ’libx264’ ’-acodec’ ’libmp3lame’ ’-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’ ’256k’ ’-ac’ ’2’ ’-vf’ ’movie=watermark.png [watermark] ;[in][watermark] overlay=main_w - 50 - overlay_w:25 [out]’ ’-pass’ ’1’ ’-passlogfile’ ’/tmp/ffmpeg-passes5e4aa564641efqx15l/pass-5e4aa564642e3’ ’1276404247.mp4’

    when doing the following :

    if (file_exists('test.mp4')) {

       $videoSource = 'test.mp4';
       $reqExtension = 'mp4';
       $watermark = "watermark.png";

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

       $video = $ffmpeg->open($videoSource);

       $format = new FFMpeg\Format\Video\X264('libmp3lame', 'libx264');

       if (!empty($watermark))
       {
           $video  ->filters()
                   ->watermark($watermark, array(
                       'position' => 'relative',
                       'top' => 25,
                       'right' => 50,
                   ));
       }

       $format
       -> setKiloBitrate(1000)
       -> setAudioChannels(2)
       -> setAudioKiloBitrate(256);

       $randomFileName = rand().".$reqExtension";
       $saveLocation = getcwd(). '/'.$randomFileName;
       $video->save($format, $saveLocation);

    }

    Have no idea why it’s failing though, must be finding the video to even start the process ?

    EDIT :

    Tried to make it simpler and just generate a capture of the video...

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

    $video = $ffmpeg->open($videoSource);


    $frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(1));
    $frame->save('image.jpg');

    Throws this error :

    PHP Fatal error : Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException : ffmpeg failed to execute command ’/usr/bin/ffmpeg’ ’-y’ ’-ss’ ’00:00:01.00’ ’-i’ ’test.mp4’ ’-vframes’ ’1’ ’-f’ ’image2’ ’image.jpg’

    In the console it works and generates the screenshot without error.