Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (82)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8468)

  • CVOpenGLESTextureCacheCreateTextureFromImage from uint8_t buffer

    6 novembre 2015, par resident_

    I’m developing an video player for iPhone. I’m using ffmpeg libraries to decode frames of video and I’m using opengl 2.0 to render the frames to the screen.

    But my render method is very slowly.

    A user told me :
    iOS 5 includes a new way to do this fast. The trick is to use AVFoundation and link a Core Video pixel buffer directly to an OpenGL texture.

    My problem now is that my video player send to render method a uint8_t* type that I use then with glTexSubImage2D.

    But if I want to use CVOpenGLESTextureCacheCreateTextureFromImage I need a CVImageBufferRef with the frame.

    The question is : How I can create CVImageBufferRef from uint8_t buffer ?

    This is my render method :

    - (void) render: (uint8_t*) buffer


    NSLog(@"render") ;

    [EAGLContext setCurrentContext:context];

    glBindFramebuffer(GL_FRAMEBUFFER, defaultFramebuffer);
    glViewport(0, 0, backingWidth, backingHeight);

    glClearColor(0.0f, 0.0f, 0.0f, 1.0f);

    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

    // OpenGL loads textures lazily so accessing the buffer is deferred until draw; notify
    // the movie player that we're done with the texture after glDrawArrays.        
    glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, mFrameW, mFrameH, GL_RGB,GL_UNSIGNED_SHORT_5_6_5, buffer);  

    glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);

    [moviePlayerDelegate bufferDone];

    glBindRenderbuffer(GL_RENDERBUFFER, colorRenderbuffer);
    [context presentRenderbuffer:GL_RENDERBUFFER];

    Thanks,

  • PHP - FFMPEG - Unable to apply multiple regular expressions on media output

    9 avril 2012, par Parth G

    I am writing a php script (I have to use php) to cycle through a dir of media files and displaying media information in a chart.

    Right now, I'm trying to do it on 1 file.

    I can successfully do so. I currently can parse the output (using regular expressions) to obtain information such as file name, duration, resolution, etc

    I was told that I can combine the regular expressions to make it more efficient.

    When I do however, I am unable to parse the ffmpeg output correctly.

    Consequently, I've tried copying the output to a string and parsing that using multiple expressions and it works just fine.

    Any help is appreciated.

    Thanks.


    Working code

    $media_info = "'test.mkv': Metadata: creation_time : 2011-03-12 09:04:18 Duration: 00:21:44.10, start: 0.000000, bitrate: 500 kb/s Chapter #0.0: start 0.097000, end 1304.107000 Metadata: title : 00:00:00.097 Stream #0:0: Video: h264 (High), yuv420p, 720x400 [SAR 80:81 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 (default) At least one output file must be specified";


    $file = array();
    $file_test = preg_match_all("/'([a-zA-Z0-9\._]*\.[a-zA-Z0-9]*)'.* Duration: ([0-9]{2,}:[0-9]{2}:[0-9]{2}\.[0-9]*)/", $media_info, $file);;
    var_dump($file)

    Not Working Code

    ob_start();
    passthru("C:\\wamp\\www\\ffmpeg\\bin\\ffmpeg.exe -i \"{$videofile}\" 2>&1");
    $raw_data = ob_get_contents();
    ob_end_clean();


    $ffmpeg_info =  explode("from", $raw_data);


    $media_info = $ffmpeg_info[1];

    $file = array();
    $file_test = preg_match_all("/'([a-zA-Z0-9\._]*\.[a-zA-Z0-9]*)'.* Duration: ([0-9]{2,}:[0-9]{2}:[0-9]{2}\.[0-9]*)/", $media_info, $file);;
    var_dump($file)

    New Code

    I tried using the ffmpeg-php extension and the following works (except for printing the bit rate)

    $movie = new ffmpeg_movie($video_file);

    echo $movie->getFilename();
    echo "<br />" ;
    echo $movie->getDuration();
    echo "<br />" ;
    echo $movie->getFrameWidth();
    echo "x";
    echo $movie->getFrameHeight();
    echo "<br />" ;
    echo $movie->getBitRate();
    echo "<br />" ;
    echo $movie->getVideoBitRate();
    echo "<br />" ;
    echo $movie->getAudioBitRate();
    echo "<br />" ;
    echo $movie->getVideoCodec();
    echo "<br />" ;
    echo $movie->getAudioCodec();
    ?>
  • ffmpeg permission Denied [on hold]

    19 avril 2014, par user3549636

    ffmpeg is giving me permission Denied from my asp.net app when told to grab a video from "\"C :\Users\Aleksandur Murfitt\Documents\My Web Sites\Photo Gallery5\Images\userpics\""
    even though Everyone has been given full rights for My Web Sites and userpics, why ?