Recherche avancée

Médias (91)

Autres articles (102)

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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (11752)

  • Threads creating process in infinite loop

    10 décembre 2013, par bhupinder

    In my application a thread runs while(1){} in it so thread terminates when my app is terminated by user.

    Is it safe to do like this ? I am using while(1){} because my app continuously monitors devices on system.

    After some time I am getting "(R6016) not enough space for thread data" on ffmpeg.

    I read this but did not get solution of my problem :

    http://support.microsoft.com/kb/126709

    Thread description :
    Thread uses ffmpeg and handle utility (http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx). within while(1){} loop.

    ffmpeg and handle is running through QProcess which I am deleting after process ends.

    while(1){} loop waits for 5 seconds using
    msleep(5000).

  • Seek issue with ffmpeg

    1er janvier 2015, par Ramesh

    I implemented one audio player using with ffmpeg for playing all format audio files in android.I used following code for seek the song.

            int64_t seekTime = av_rescale_q(seekValue * AV_TIME_BASE,
                       AV_TIME_BASE_Q,
                       fmt_ctx->streams[seekStreamIndex]->time_base);

               int64_t seekStreamDuration =
                       fmt_ctx->streams[seekStreamIndex]->duration;

               int flags = AVSEEK_FLAG_BACKWARD;
               if (seekTime > 0 && seekTime < seekStreamDuration)
                   flags |= AVSEEK_FLAG_ANY;

               int ret = av_seek_frame(fmt_ctx, seekStreamIndex, seek_target,
                       flags);

               if (ret < 0)
                   ret = av_seek_frame(fmt_ctx, seekStreamIndex, seekTime,
                           flags);

             avcodec_flush_buffers(dec_ctx);

    Its working fine for most of the songs.But some of the mp3 songs getting duration problem.For example if the song length is 2 mins if i seek the song to some position then finally song ends with 2 mins 10 seconds.I get this issue with only mp3 songs.Without seeking the same song ends with exact time. I am using ffmpeg 2.1 The some code working fine with ffmpeg 0.11.1 Please provide any information about this issue.

  • Add metadata while converting MKV to MP3 with FFMPEG

    17 août 2020, par Elderhoard

    I am trying to convert MKV files to MP3, while adding metadata and album artwork through a batch file. I am generating a PNG through FFMPEG, then converting to MP3 while adding metadata, and finally adding the album artwork i got initially.

    


    I have tried adding the metadata while converting to MP3 and while adding the artwork to no avail. I read something about it flushing the buffer too quickly but thought I might be able to get around it by adding it while converting it.

    


    Individually, all parts work, but I can't get it to add the title and artist to the metadata, or at least in a place where VLC can read it. any suggestions ?

    


    @echo off
::Extracts a PNG thumbnail 
for %%A in ("*.mkv") do (ffmpeg -ss 30 -i "%%A" -qscale:v 4 -frames:v 1 "%%~nA.png")

::Convert from MKV to MP3 and adds title and artist based on file name delimited by "-" eg Metallica - Enter Sandman.mkv
SETLOCAL ENABLEDELAYEDEXPANSION
for %%A in ("*.mkv") do (
    set filename=%%~nA
    set artist=
    set song=
    echo "!filename!"

    for /F "tokens=1,2 delims=-" %%G in ("!filename!") do (
        set artist="%%G"
        set song="%%H"
        echo !artist!
        echo !song!
    )

    echo !song! by !artist!

    ffmpeg -i "%%A" -b:a 192K -id3v2_version 4 -write_id3v2 1 -metadata title="%song%" -metadata artist="%artist%" -flush_packets 0 -vn "%%~nA.mp3"
)

::Add Artwork to MP3
for %%A in ("*.mp3") do (ffmpeg -i "%%A" -i "%%~nA.png" -map 0:0 -map 1:0 -c copy -id3v2_version 3 "UPDATED%%~nA.mp3")