Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (40)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • 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

Sur d’autres sites (5449)

  • Anomalie #3299 : Génération d’urls en boucle avec noms d’objets longs

    16 octobre 2014, par Guillaume Fahrner

    Je pense que c’est plus un soucis d’implémentation qu’autre chose. J’ai réglé mon problème de la manière suivante :

    1) implémenter le pipeline objet_compte_enfants pour l’objet concerné, dans mon cas

    /**
     * Compte intégrant les challenge dans le nombre d’objet d’une rubrique
     */
    function ctf_alltheday_objet_compte_enfants($flux) 
    

    if ($flux[’args’][’objet’] == ’rubrique’)
    $flux[’data’][’machines_virtuelles’] = sql_countsel(
    ’spip_machines_virtuelles’,
    array(
    ’id_rubrique = ’.intval($flux[’args’][’id_objet’])
    )
    ) ;

    return $flux ;

    2) ajouter la configuration adéquate a la configuration des URLs choisi, dans mon cas :

    $GLOBALS[’url_arbo_parents’]=array(’challenge’=>array(’id_rubrique’,’rubrique’)) ;
    $GLOBALS[’url_arbo_types’]=array_merge($GLOBALS[’url_arbo_types’], array(’challenge’=>’’, ’solution’=>’’)) ;

    Une fois la "configuration" mise en place correctement : plus aucun soucis ,-)

  • Is 32-bit-only app running on iPhone 6 slower then on iPhone 5 ?

    22 avril 2015, par ChihHao

    I have an app that is build with very old ffmpeg library(Ver. 0.10.4). I found that when iPhone 5 decoding the H.264 stream with VGA resolution, the used percentage of CPU is about 10% lower then iPhone 6’s.

    The ffmpeg lib file only support arm V7 and arm V7s architecture. So I think that the function provided by ffmpeg will run faster or more efficency on the machine with the supported architecture. Is that right ?

  • Merging videos. multiple overlays and audio in one step

    3 février 2019, par user14567

    I have a process that I run hourly to update a 60 sec weather video.

    I combine a background video with a generated m4a audio track, scrolling text and separate top and bottom overlays.

    I need all of this in an mp4 and in a TLS (m3u8) format.

    Right now I do this 3 ffmpeg consecutive sessions and end up with a rendered 720p mp4.

    Then I run a 4th ffpmeg session to convert the the mp4 to a TLS version (I need both mp4 and m3u8.)

    I am doing this in 4 ffmpeg runs because I haven’t figured out how to combine the filters and do it in less.

    When I try an combine this, I lose either the overlays or the text. I can’t get it all to come out in one session. I’ve tried comma separating within the filters but I haven’t found the right combination.

    Any assistance in showing me how to combine this work and reduce the number of runs would be greatly appreciated.

    This runs on a Centos 7 box with ffmpeg version 3.4.1.

    #
    # Step 1: Combine background video with audio and scrolling text
    #
    ffmpeg -i /video/weather/media/sunnybeach.mp4 \
    -i /video/weather/prod/currentweather.m4a \
    -i /video/weather/media/weather-lower-third1.png \
    -map 2:v:0 -map 1:a:0 -strict -2 \
    -filter_complex  "[0]split[txt][orig];[txt]drawtext=fontfile=/var/www/vhosts/30a.tv/httpdocs/openx/lib/pear/Image/Canvas/Fonts/arial.ttf:fontsize=80:fontcolor=white:x=(w-text_w)/2+20:y=h-70*t:textfile=/video/weather/prod/currentweather.txt:bordercolor=black:borderw=2[txt];[orig]crop=iw:50:0:0[orig];[txt][orig]overlay” \
    -t 60 -c:v libx264 -y -s hd720  -loglevel quiet /video/weather/prod/currentweather.mp4 2>&1 >> /dev/null

    if [ $? != 0 ]; then echo fail step 1; exit 1;fi

    #
    # Step 2: now overlay current lowerthird
    #
    ffmpeg -i /video/weather/prod/currentweather.mp4 \
    -i /video/weather/media/weather-lower-third1.png \
    -strict -2 -filter_complex  "[0:v][1:v]overlay" -c:a copy -y  \
    -loglevel quiet $FKWI/currentweather1.mp4 2>&1 >> /dev/null

    if [ $? != 0 ]; then echo fail step 2; exit 1;fi

    #
    # Step 3: now overlay current topbanner
    #
    ffmpeg -i $FKWI/currentweather1.mp4 \
    -i /video/weather/media/weather-top-banner.png \
    -strict -2 -filter_complex  "[0:v][1:v]overlay" -c:a copy -y  \
    -loglevel quiet $FKWI/currentweather.mp4 2>&1 >> /dev/null

    if [ $? != 0 ]; then echo fail step 3; exit 1;fi

    #
    # Step 4: Now make TLS version
    #

    cd $FKWI/httpdocs/weather
    RES1=`/usr/bin/ffmpeg -i $FKWI/httpdocs/currentweather.mp4 \
    -profile:v baseline -level 3.0 -s 1280x720 \
    -c:a aac -ar 48000 -g 60 -start_number 0 \
    -hls_time 6 -hls_list_size 0 -f hls \
    -hls_base_url "http://$URL.com/weather/" \
    -hls_segment_filename "video%04d.ts" \
    -strict -2   -loglevel quiet "currentweather.m3u8" 2>&1>>/dev/null `

    if [ $? != 0 ]; then echo fail step 4; exit 1;fi

    This code yields both videos fine, but it takes 4 runs and I need it to happen in less runs.