Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (53)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (4406)

  • Run PHP exec() asynchronously, but check for completion ?

    1er septembre 2015, par PeregrineStudios

    I’m coding up a website back-end that will include user-uploaded video. In order to ensure maximum accessibility, I’m compressing the uploaded videos and re-saving them as .mp4 and .webm format to cover all browsers (or as many as possible anyway). To do this, I’m running an avconv command in the PHP exec() function.

    I don’t want to make the user wait for the script to finish before the page loads, so I’m running the code asynchronously. My code so far is below.

    exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libx264 ' . $transpose . ' ' . $newPath . 'mp4 > /dev/null 2>/dev/null &"');
    exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libvpx ' . $transpose . ' ' . $newPath . 'webm > /dev/null 2>/dev/null &"');

    In addition to running the exec functions, I also save the video to a database and send the user an email thanking them for uploading their video.

    Here’s the rub : I want the server to WAIT until the video conversion is finished, and THEN add it to the database and send the user an email. Basically, the program flow would be :

    User uploads video.
    Video is placed in a temp folder.
    User is taken to a thank you page indicating their video will be up shortly.
    The server executes two avconv commands to convert and compress the video for web use.
    Once BOTH conversions are finished, the video info is added to a MySQL database, an email is sent to the user, and the original uploaded video is deleted.

    It may just be my ignorance of the command line (in fact it almost definitely is), but how could I ’queue up’ these commands ? First do both conversions, then call a PHP script to add to the database, then delete the original video, all while being asynchronous with the original PHP script ?

    EDIT : I’ve tried queuing them up with an ’&&’ operator, like below :

    exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libx264 ' . $transpose . ' ' . $newPath . 'mp4 && avconv -i ' . $tempPath . ' -c:v libvpx ' . $transpose . ' ' . $newPath . 'webm > /dev/null 2>/dev/null &"');

    However, that seems to cancel out the fact that I’m running it asynchronously, since the page now seems to wait for the command to finish.

  • ffmpeg Problem with converting. ffmpeg converts image attachments to stream ? [closed]

    5 mars 2021, par For Fun

    I have a mp4 file with cover.jpg as attachments but when I use -c copy to convert to mkv the image won't stay as attachments ffmpeg changes it to stream 0:2 ?

    


    ffmpeg -i 'file.mp4' -c copy -map 0 'output.mkv' 


    


    Full Log : https://pastebin.com/raw/L9Ss3qbx

    


  • How to Remove Hard Subtitles in a video file using ffmpeg ? [migrated]

    23 mars 2021, par xinYapeng

    I use the follow code to cover Hard Subtitle, but it is a little effective.

    


    ffmpeg -i in.mp4 -strict -2 -vf delogo=x=x:y=y:w=w:h=h:show=0 out.mp4


    


    The out.mp4 is a little mosaic somewhere.

    


    in.mp4 just has video stream and audio stream, NO subtitle steam.

    


    How to remove subtitle from in.mp4 using ffmpeg ?

    


    Thank you.