Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (47)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • 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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (9006)

  • matroskaenc : factor ts_offset into block timecode computation

    15 février 2017, par John Stebbins
    matroskaenc : factor ts_offset into block timecode computation
    

    ts_offset was added to cluster timecode, but then effectively subtracted
    back off the block timecode

    When setting initial_padding for an audio stream, the timestamps are
    written incorrectly to the mkv file. cluster timecode gets written
    as pts0 + ts_offset which is correct, but then block timecode gets
    written as pts - cluster timecode which expanded is
    pts - (pts0 + ts_offset). Adding cluster and block tc back together :
    cluster + block = (pts0 + ts_offset) + (pts - (pts0 + ts_offset)) = pts
    But the result should be pts + ts_offset since demux will subtract the
    CodecDelay element from pts and set initial_padding to CodecDelay.
    This patch gives the correct result.

    • [DBH] libavformat/matroskaenc.c
  • Converting video with ffmpeg from a script not in the root folder

    30 octobre 2017, par Daniel Ormerod

    I am using ffmpeg to convert videos, create thumbnails etc.

    I made the below function to convert a video and when I run it in a script in the root folder it converts ok.

    However, I am using ajax to upload the video and the script is located /ajax/upload-video.php and when I run it in that folder it fails to convert.

    I have tried sending the $src and $dest up with ../ before the filenames to go back a folder but it isn’t working.

    Can anybody help ?

    Do I need to add something to the $command line to tell it to go back a folder ?

    These are the variables being used in the function :

    $ffmpegpath = 'ffmpeg.exe';
    $src = 'videos/video1.wmv';
    $dest = 'videos/video1.mp4';

    I have tried :

    $ffmpegpath = 'ffmpeg.exe';
    $src = '../videos/video1.wmv';
    $dest = '../videos/video1.mp4';

    And the function :

    function convert_video($src, $dest) {

       global $ffmpegpath;

       if (!file_exists($src)) {

           echo '<p>The file does not exist</p>';

       } else {

           $command = "$ffmpegpath -i $src $dest";

           @exec($command, $ret);

           if (!file_exists($dest)) {

               echo '<p>The file failed to create</p>';

           } else {

               if (filesize($dest)==0) {

                   echo '<p>The file created but has not filesize</p>';

               } else {

                   echo '<p>File Created Successfully</p>';

               }

           }

       }

    }
  • FFmpeg - Rotating at angle

    23 septembre 2017, par connor

    I’ve been working through FFmpeg, but I have been unable to get a rotation to run from the examples they have on their site. I am trying to "wiggle" a video back and forth at a fixed point on the bottom - think a head moving left to right (and so on).

    I am attempting to do this with the filter "rotate" (https://ffmpeg.org/ffmpeg-filters.html#rotate). Attempting to use their examples, I get an error.

    This is what I have so far :

    ffmpeg -i vid1.mp4 -i vid2.mov -loop 1 -i image.png -filter_complex "\
       [2:v]alphaextract, scale=240x160[mask];\
       [0:v] scale=240x160, rotate=A*sin(2*PI/T*t) [ascaled];\
       [ascaled][mask]alphamerge[masked];\
       [1:v]scale=480x360[background];\
       [background][masked]overlay=120:20"\
       -c:a copy 65B6354F61B4AF02_HD_sq.MOV

    I am using "rotate" directly from an example in an attempt to get something to run at all.

    The error I get back is :

    [Parsed_rotate_3 @ 0x7ff4476045e0] [Eval @ 0x7fff5b3e3f00] Undefined constant or missing '(' in 'T*t)'
    [Parsed_rotate_3 @ 0x7ff4476045e0] Error occurred parsing angle expression 'A*sin(2*PI/T*t)'
    [Parsed_rotate_3 @ 0x7ff4476045e0] Failed to configure output pad on Parsed_rotate_3
    Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Error while processing the decoded data for stream #1:0

    If I remove ’A’, ’T’, ’sin’, etc, rotate does actually work, but far from the desired behavior.

    Am I missing something to expose those params ?