Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (86)

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

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (13849)

  • FFMPEG not working in php code

    19 avril 2015, par User

    I have tried with ffmpeg for video thumbnail creation.
    In windows its working fine, but in Linux(centos) it’s not working.

    i have tried the following command :

    $cmd = "/usr/local/bin/ffmpeg -i  /opt/lampp/htdocs/mydashboard/sites/default/files/content_videos/".$video."
    -ss 00:00:01.435 -f image2 -vframes 1     /opt/lampp/htdocs/mydashboard/sites/default/files/content_images/".$videoname."-thumb.jpg";

       echo exec($cmd);

    The abovecommand is working in the Linux command line and thumbnails are creating in destination folder, i have given static video file.

    But the same command is not working as expected in the php script.

    Any help is greatly appreciated.

  • Cannot find ffmpeg when moving the code to a new computer

    20 septembre 2021, par Omersr

    I have a code that works on my computer but when I moved it to a new one it doesn't find the ffmpeg dependency.
It happens on these lines of code :

    


        var videoshow = require('videoshow')
    var image = [{path: './screenshot.jpg'}]
    var videoOption = { 
      loop: 10,
      fps: 25,
      transition: false,
      transitionDuration: 0, // seconds
      videoBitrate: 1024,
      videoCodec: 'libx264',
      size: '640x?',
      audioBitrate: '128k',
      audioChannels: 2,
      format: 'mp4',
      pixelFormat: 'yuv420p'
    }
    //call the videoshow library
     videoshow(image,videoOption).save(filename+"_"+"movie.mp4").on('start',function(command){
         console.log("conversion started" + command)
    }).on('error',function(err,stdout,stderr){
         console.log("some error occured"+ err)
     }).on('end',function(output){
         console.log("conversion complete "+ output)


    


    It throws an error "Cannot find ffmpeg".
I tried to do npm install or npm install ffmpeg but it didn't help.
I think this happens because I don't know how to make dependencies work on a different computer.
Any help would be appreciated !

    


  • Fix nonsense MPEG-4 hwaccel code.

    21 août 2013, par Reimar Döffinger
    Fix nonsense MPEG-4 hwaccel code.
    

    Issues with the code :
    1) The skip_bits_long breaks packed B-frames since we skip
    of the packed frame, even for VDPAU.
    2) Calling ff_h263_find_resync_marker_reverse is nonsense for MPEG-4,
    and for H.263 the only code using this (vaapi_mpeg4) explicitly reverts
    this change !
    3) mb_x/mb_y are always 0 when vaapi_mpeg4_decode_slice, so doing
    computations with them is just obfuscation
    4) due to not updating mb_y the code would always go into the error
    resilience case, causing nonsense error messages and maybe further
    issues.

    While tested to fix the data provided to the decoder in case of
    VDPAU so it is the same as for the non-hwaccel code, the VA-API code
    was not tested to still work, and adding regression testing even
    as a quick hack is much more complicated for it.

    Signed-off-by : Reimar Döffinger <Reimar.Doeffinger@gmx.de>

    • [DH] libavcodec/h263dec.c
    • [DH] libavcodec/vaapi_mpeg4.c