Recherche avancée

Médias (91)

Autres articles (79)

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

  • movenc : Adjust edit lists to trim out parts of tracks with negative pts

    29 septembre 2012, par Michael Niedermayer
    movenc : Adjust edit lists to trim out parts of tracks with negative pts
    

    This makes sure that audio preroll for e.g. AAC is signaled correctly.

    Previously we only wrote the edit list correctly if we had negative
    dts but started with pts == 0 (e.g. for video with B-frames).

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavformat/movenc.c
  • FFMPEG, change default audio track with code

    2 août 2019, par Gralex

    I have mkv video, and what just change default audio track without remux, encode/decode and other stuff. How it can be done with code ?

    AVFormatContext *pFormatCtx;

    av_register_all();
    avcodec_register_all();
    avformat_network_init();
    pFormatCtx = avformat_alloc_context();

    if (avformat_open_input(&amp;pFormatCtx, [videoPath UTF8String], NULL, NULL) != 0) {
       avformat_close_input(&amp;pFormatCtx);
       return;
    }

    if (avformat_find_stream_info(pFormatCtx, NULL) &lt; 0) {
       avformat_close_input(&amp;pFormatCtx);
       return;
    }

    for (int i = 0; i &lt; pFormatCtx->nb_streams; i++) {
       if (pFormatCtx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
           // so we have audio track info
           // what todo next?
       }
    }
    avformat_close_input(&amp;pFormatCtx);
  • Mute parts of Wave file using Python/FFMPEG/Pydub

    20 avril 2020, par Adil Azeem

    I am new to Python, please bear with me. I have been able to get so far with the help of Google/StackOverflow and youtube :). So I have a long (2 hours) *.wav file. I want to mute certain parts of that file. I have all of those [start], [stop] timestamps in the "Timestamps.txt" file in seconds. Like this :

    &#xA;&#xA;

       0001.000 0003.000&#xA;   0744.096 0747.096&#xA;   0749.003 0750.653&#xA;   0750.934 0753.170&#xA;   0753.210 0754.990&#xA;   0756.075 0759.075&#xA;   0760.096 0763.096&#xA;   0810.016 0811.016&#xA;   0815.849 0816.849&#xA;

    &#xA;&#xA;

    What I have been able to do is read the file and isolate each tuple. I have just output the first tuple and printed it to check if everything looks good. It seems that the isolation of tuple works :) I plan to count the number of tuples (which is 674 in this case) and put in a 'for loop' according to that count and change the start and stop time according to the tuple. Perform the loop on that single *.wav file and output on file with muted sections as the timestamps. I have no idea how to implement my thinking with FFMPEG or any other utility in Python e.g pydub. Please help me.

    &#xA;&#xA;

       with open(&#x27;Timestamps.txt&#x27;) as f:&#xA;   data = [line.split() for line in f.readlines()]&#xA;   out = [(float(k), float(v)) for k, v in data]&#xA;&#xA;   r = out[0] &#xA;   x= r[0]&#xA;   y= r[1]&#xA;   #specific x and y values&#xA;   print(x)&#xA;   print(y)&#xA;

    &#xA;