Recherche avancée

Médias (91)

Autres articles (110)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (13979)

  • ffmpeg unable to convert vhs-captured .ts files [closed]

    4 avril, par fredko

    I'm digitizing vhs tapes with a Hauppauge Colossus capture card and Mediaportal on windows 7. They're captured as .ts files and the .ts files play well, with no sign of corruption.

    


    But I'd like to convert them to .mkv (losslessly from the .ts), and ffmpeg (version 2023-08-28-git-b5273c619d-essentials_build-www.gyan.dev) fails at this. I use

    


    ffmpeg.exe -i test.ts -c copy test.mkv


    


    and get these errors repeated many times

    


    [mpegts @ 00000000003d6d40] Packet corrupt (stream = 0, dts = 46105).
[mpegts @ 00000000003d6d40] Packet corrupt (stream = 0, dts = 49107).
[h264 @ 00000000003fc580] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 00000000003fc580] decode_slice_header error
[h264 @ 00000000003fc580] no frame!
...etc...
[in#0/mpegts @ 00000000003d6b80] corrupt input packet in stream 0
[mpegts @ 00000000003d6d40] Packet corrupt (stream = 0, dts = 247305).
...etc...


    


    The resulting mkv file is much smaller than the .ts, and displays solid black in mpc-hc. Ffprobe gives the same errors and ends with

    


    Input #0, mpegts, from 'test.ts':
  Duration: 00:24:26.80, start: 0.099956, bitrate: 4486 kb/s
  Program 137 
  Stream #0:0[0x30]: Video: h264 (Main) (HDMV / 0x564D4448), yuv420p(top first),
 720x480 [SAR 10:11 DAR 15:11], 29.97 fps, 29.97 tbr, 90k tbn
  Stream #0:1[0x40]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo,
 fltp, 188 kb/s


    


    Ffmpeg seems to be complaining about corruption, though again the .ts files play fine. Is there some way to use ffmpeg to convert these files to mkv ? Or is the problem with the capture setup ?

    


  • Remove all instances of first frame from mp4 in FFmpeg

    15 juin 2020, par Pete

    I have a frame occurring several times at the beginning of an MP4 and I'd like to get rid of the duplicate frames, such that it only occurs once.

    



    I know that the ffmpeg -i input.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB out.mp4 command will remove duplicates in the entire video, but is there any way to limit this to frames identical to the first one ?

    


  • Generating random thumbnails with PHP+FFMPEG

    30 décembre 2014, par MrGhost

    I’m trying to generate thumbnails from random points in a movie using FFMPEG and FFMPEG-PHP extension.

    My script works OK.. however takes 20 minutes just to generate 5-10 thumbnails !!

    The script works by generating random numbers which are used as frame numbers later. All numbers generated are within the movies frame count.

    Can you work out why this script is taking 20 mins to finish ?
    If not, a better solution ?

    <?php

    //Dont' timeout
    set_time_limit(0);

    //Load the file (This can be any file - still takes ages)
    $mov = new ffmpeg_movie('1486460.mp4');

    //Get the total frames within the movie
    $total_frames = $mov->getFrameCount();

    //Loop 5-10 times to generate random frames 5-10 times
    for ($i = 1; $i <= 5; ) {
       // Generate a number within 200 and the total number of frames.
    $frame = mt_rand(200,$total_frames);
    $getframe = $mov->getFrame($frame);
    // Check if the frame exists within the movie
    // If it does, place the frame number inside an array and break the current loop
    if($getframe){
     $frames[$frame] = $getframe ;
     $i++;
    }
    }

    //For each frame found generate a thumbnail
    foreach ($frames as $key => $getframe) {
    $gd_image = $getframe->toGDImage();
    imagejpeg($gd_image, "images/shot_".$key.'.jpeg');
    imagedestroy($gd_image);
    echo $key.'<br />';
    }

    ?>

    The script SHOULD be generating frame numbers which are valid ? Anything within START - END should be valid frame numbers ? Yet the loop takes ages !