Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (66)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • 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 (...)

Sur d’autres sites (6184)

  • Creating MOV from PNGs with ffmpeg : playback issue in older quicktime (7.6.6)

    15 avril 2013, par Jim Lindstrom

    I'm using ffmpeg to create a MOV file from a series of images. When I view the movie in Quicktime 7.7.x, it looks great (left image). When I view in Quicktime 7.6.6 I get this weird issue (on the right) :

    In Quicktime 7.7.x
    In Quicktime 7.6.6

    Any idea even what this is, much less how to fix it ?

    Details

    My source images are a mix of PNGs and JPGs that I pre-process with ImageMagick (to draw text, captions, etc). I store intermediate results as MPCs, and final frames as PNMs.

    To draw the above frame, I'm doing this :

    convert -background none -fill white -font my_font.ttf -pointsize 132 -gravity \
           center -size 945x550 caption:"Stills Demo" background-template.png     \
           +swap -composite -resize 1920x1080! /tmp/title_screen4338355.png
    convert -auto-orient /tmp/title_screen4338355.png -resize 100% -type TrueColor \
           /tmp/1b2764754ce6e420986ed74b942bcf67.mpc
    convert /tmp/1b2764754ce6e420986ed74b942bcf67.mpc -set option:distort:viewport \
           1920x1080+0+0  +distort SRT '960.0,540.0 1.0 0 960.0,540.0'            \
           /tmp/stills-project-6224/video_frames/img_0000.pnm

    I render frames with ffmpeg like so :

    ffmpeg -y -f image2 -i /tmp/stills-project-6224/video_frames/img_%04d.pnm      \
          -i /tmp/soundtrack_8702693.wav -vcodec libx264 -pix_fmt yuvj444p        \
          -b:v 2200k  -r 25 -strict experimental                                  \
          /tmp/stills-project-6224/video_rendered/output.mov

    The rest of the video is fine. The other images are photos (jpgs or pngs) that I process in the same way. I have also noticed that if I don't apply text to this background-template, the image shows up fine, so I think the issue has something to do with either how I'm processing or saving that image.

  • Watch My Hero Academia Heroes Rising Full Movie Online FREE #2019

    6 juillet 2020, par sarahlburke58

    Watch My Hero Academia : Heroes Rising (2018) Full Movie Online HD Streaming Free Unlimited Download, Watch My Hero Academia : Heroes Rising (2018) Full Series 2017 Online Movie for Free DVD Rip Full HD With English Subtitles Ready For Download.

    


    Watch My Hero Academia : Heroes Rising Full MOVIE HD ►► [1]

    


    Watch My Hero Academia : Heroes Rising (2018) Movie Free 2017 1080p, 720p, BrRip, DvdRip, CapRip, Telesyc, High Quality, My Hero Academia : Heroes Rising (2018) Movie Online, My Hero Academia : Heroes Rising (2018) Movie Full HD Free.

    


    Watch My Hero Academia : Heroes Rising (2018) Online Download My Hero Academia : Heroes Rising (2018) Movie, My Hero Academia : Heroes Rising (2018) Movie Full Online, My Hero Academia : Heroes Rising (2018) Movie Online BluRay, My Hero Academia : Heroes Rising (2018) Movie Full HD Streaming, My Hero Academia : Heroes Rising (2018) Movie Free 2017 Torrent, My Hero Academia : Heroes Rising (2018) Movie Download HD Streaming Free.

    


    Title : My Hero Academia : Heroes Rising
Release : 2019-12-20
Runtime : 104 min
Genre : Animation, Action
Stars : Daiki Yamashita, Nobuhiko Okamoto, Kenta Miyake, Ayane Sakura, Aoi Yuki, Yuki Kaji

    


    Overview : Class 1-A visits Nabu Island where they finally get to do some real hero work. The place is so peaceful that it's more like a vacation … until they're attacked by a villain with an unfathomable Quirk ! His power is eerily familiar, and it looks like Shigaraki had a hand in the plan. But with All Might retired and citizens' lives on the line, there's no time for questions. Deku and his friends are the next generation of heroes, and they're the island's only hope.

    


  • PHP - Read and write the same file hangs

    2 février 2016, par Adracat

    I’m trying to use FFMPEG to make some works with video on the server, and something I need to do is to get the progress of the process.

    I searched a little and I found this solution which tells to write the log into a file and then reading and parsing it.

    The problem

    What is driving me crazy is that I tell FFMPEG - with exec - (process A) to write the log into a file, but when I try to read it - with file_get_contents() - (process B) it does not show the contents until process A is finished (or interrupted the PHP script).

    So, when process A finishes or it says "PHP script timeout", then I can read the file as times as I want, refreshing the page (process B) and showing the contents at the time.

    What I’ve tried

    I’ve tried to use fopen() to create the file with w, w+ and a parameters, using - and without using - fclose(). I’ve tried to use also flock() just in case it gets faster to read to process B if it knows it’s already locked and does not have to wait, but then FFMPEG is not able to write into the file.

    I’ve searched for multithreading too, but I think there must be an easier and simpler way.

    I’ve used also CURL and HTTP context, as this link suggests, but no luck.

    I’ve tried, too, to use PHP-FFMPEG but it’s not supporting the last FFMPEG version, so I cannot use it.

    When I said before "(or interrupted the PHP script)" is because I tried to wait and, when PHP got a timeout, process B worked alright and the file was still updating.

    The code

    Process A (fileA.php)

    exec('ffmpeg -y -i input_file.mp4 output_file.avi 2> C:\Full\Path\To\File\log.txt 1>&2');

    Process B (fileB.php)

    $content = file_get_contents($file);

    if($content){
       //get duration of source
       preg_match("/Duration: (.*?), start:/", $content, $matches);

       $rawDuration = $matches[1];

       //rawDuration is in 00:00:00.00 format. This converts it to seconds.
       $ar = array_reverse(explode(":", $rawDuration));
       $duration = floatval($ar[0]);
       if (!empty($ar[1])) $duration += intval($ar[1]) * 60;
       if (!empty($ar[2])) $duration += intval($ar[2]) * 60 * 60;

       //get the time in the file that is already encoded
       preg_match_all("/time=(.*?) bitrate/", $content, $matches);

       $rawTime = array_pop($matches);

       //this is needed if there is more than one match
       if (is_array($rawTime)){$rawTime = array_pop($rawTime);}

       //rawTime is in 00:00:00.00 format. This converts it to seconds.
       $ar = array_reverse(explode(":", $rawTime));
       $time = floatval($ar[0]);
       if (!empty($ar[1])) $time += intval($ar[1]) * 60;
       if (!empty($ar[2])) $time += intval($ar[2]) * 60 * 60;

       //calculate the progress
       $progress = round(($time/$duration) * 100);

       echo "Duration: " . $duration . "<br />";
       echo "Current Time: " . $time . "<br />";
       echo "Progress: " . $progress . "%";

    }

    The process

    I just open fileA.php on a Chrome tab and, after a few seconds, I open fileB.php on another Chrome tab (and it stays as loading).

    What I need

    I need to be able to load the file and show the information I want to show while the file is being written (by exec and FFMPEG or other PHP scripts), so I can update the progress percentage with some AJAX calls.

    Extra information

    At this point, I’m using PHP 5.4 on a IIS 7.5 with Windows 7 Professional.

    Thank you everyone for your time, help and patience !

    Best regards.