Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (64)

  • 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

  • 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

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (8560)

  • lavc/libopenh264enc : Add qmin/qmax support

    29 avril 2020, par Linjie Fu
    lavc/libopenh264enc : Add qmin/qmax support
    

    Clip iMinQp/iMaxQp to (1, 51) for user specified qp range.

    If not set, leave iMinQp/iMaxQp untouched and use the values (0, 51)
    initialized in FillDefault(), and the QP range would be adjusted to the
    defaults inside libopenh264 library according to the iUsageType, (12, 42)
    for iUsageType == CAMERA_VIDEO_REAL_TIME which is default.

    <https://github.com/cisco/openh264/blob/master/codec/encoder/core/src/encoder_ext.cpp#L375> ;

    Signed-off-by : Linjie Fu <linjie.fu@intel.com>
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/libopenh264enc.c
  • PHP ffmpeg - save mp4 as H.264 in Baseline profile

    2 mai 2020, par Pikaboo

    I'm trying to play a mp4 file in android but it's not working.

    &#xA;&#xA;

    According to Android VideoView Cannot play video mp4

    &#xA;&#xA;

    the file needs to be H.264 in Baseline.

    &#xA;&#xA;

    I don't know what the hell this means.

    &#xA;&#xA;

    This is the PHP code I'm using to create mp4 :

    &#xA;&#xA;

    $videoname = str_replace(&#x27;.gif&#x27;, &#x27;.mp4&#x27;, $picname);&#xA;$ffmpeg = FFMpeg\FFMpeg::create(array(&#xA;    &#x27;ffmpeg.binaries&#x27;  => &#x27;ffmpeg/bin/ffmpeg.exe&#x27;,&#xA;    &#x27;ffprobe.binaries&#x27; => &#x27;ffmpeg/bin/ffprobe.exe&#x27;,&#xA;    &#x27;timeout&#x27;          => 6600, // The timeout for the underlying process&#xA;    &#x27;ffmpeg.threads&#x27;   => 12,   // The number of threads that FFMpeg should use&#xA;), $logger);&#xA;&#xA;$video = $ffmpeg->open(&#x27;memes/&#x27; . $folder . &#x27;/&#x27; . $picname);&#xA;$video&#xA;    ->save(new \FFMpeg\Format\Video\X264(), &#x27;memes/&#x27; . $folder . &#x27;/&#x27; . $videoname);&#xA;

    &#xA;&#xA;

    How can I set it to be H.264 in Baseline profile ?

    &#xA;

  • Speed advantage in combining FFmpeg filters ?

    4 mai 2020, par lach_codes

    I'm currently using five separate FFmpeg processes to do the following :

    &#xA;&#xA;

      &#xA;
    1. trim & crop Vid B
    2. &#xA;

    3. scale Vid B to height of Vid A
    4. &#xA;

    5. combine Vid B & Vid A
    6. &#xA;

    7. add a fade-in/fade-out to Combined Vid
    8. &#xA;

    9. add an overlay to fade in/out vid
    10. &#xA;

    &#xA;&#xA;

    I have them all set to ultrafast but it still takes a long time - about 40 seconds when each video is 10 seconds long.

    &#xA;&#xA;

    I initially explored combining some of the filters but couldn't get it working in the timeframe I had available. I also wasn't sure if the time spent figuring out how to combine all the filters would pay off in a faster processing time.

    &#xA;&#xA;

    Any thoughts/insights from you brilliant FFmpeg gurus ? Would this speed up processing, and if so, should I combine all the commands together or are there some I should combine and others I should leave separate ?

    &#xA;&#xA;

    Here are my current commands, all of which are working :

    &#xA;&#xA;

    // trimming 200ms off begining of vid B &#x2B; cropping frame (note that I have previously retrieved dimensions and duration of both videos with ffprobe)&#xA;1. `ffmpeg -i vidB.mov -ss 200 -t ${vidB.duration} -async 1 -filter:v "crop=iw:${vidB.croppedHeight}:0:${vidB.offset}" -preset ultrafast -c:a copy croppedVidB.mov`&#xA;&#xA;// scale Vid B up to Vid A&#x27;s height&#xA;2. `ffmpeg -i croppedVidB.mov -vf scale=-2:${vidA.height} vidBScaled.mov`&#xA;&#xA;// combine videos&#xA;3. `ffmpeg -i vidA.mov -i vidBScaled.mov -filter_complex "[0:v][1:v] hstack=inputs=2[v]; [0:a][1:a]amix[a]" -map "[v]" -map "[a]" -preset ultrafast -ac 2 combined.mov`&#xA;&#xA;// add fade in &amp; out&#xA;4. `ffmpeg -i combined.mov -sseof -1 -copyts -i combined.mov -filter_complex "[1]fade=out:0:30[t];[0][t]overlay,fade=in:0:30[v]; anullsrc,atrim=0:1[at];[0][at]acrossfade=d=1,afade=d=1[a]" -map "[v]" -map "[a]" -c:v libx264 -crf 22 -preset ultrafast -shortest fadeInOut.mov`&#xA;&#xA;// add overlay&#xA;5. `ffmpeg -i fadeInOut.mov -i overlay.png -filter_complex overlay=W-w-10:H-h-10 -codec:a copy -preset ultrafast -async 1 overlay.mov`&#xA;

    &#xA;&#xA;

    Thanks in advance for your thoughts !

    &#xA;