Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (75)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

Sur d’autres sites (9516)

  • FFmpeg massive data loss when writing large data and swapping segments

    25 avril 2023, par Bohdan Petrenko

    I have an ffmpeg process running which continiously writes audio data to two 30 seconds (for testing, I'm actually planning to use 5 minutes) segments. The problem is that when I write some audio data with length more than size of two segments (60 seconds), 8-17 seconds of audio is lost. Here is how I run FFmpeg and write data :

    


        _ffmpeg = Process.Start(new ProcessStartInfo
    {
        FileName = "ffmpeg",
        Arguments = 
            $"-y -f s16le -ar 48000 -ac {Channels} -i pipe:0 -c:a libmp3lame -f segment -segment_time {BufferDuration} -segment_format mp3 -segment_wrap 2 -reset_timestamps 1 -segment_list \"{_segmentListPath}\" \"{segmentName}\"",
        UseShellExecute = false,
        RedirectStandardInput = true
    })!;
    // Channels is usually 1, BufferDuration is 30


    


    And here is how I write data :

    


    public async Task WriteSilenceAsync(int amount)
{
    if (amount > _size) amount = _size; // _size is 48000 * 1 * 2 * 30 * 2 = 5760000 (size of 1 minute of audio)
    
    var silence = _silenceBuffer.AsMemory(0, amount);
    await _ffmpeg.StandardInput.BaseStream.WriteAsync(silence);
}


    


    I tried to change the ffmpeg parameters and ways I write data. But I haven't found the solution.

    


    I'm sure that the problem is caused by ffmpeg segments, because if I disable segmenting and write audio to a single file, there are no problems with data loss or audio missmatch. I also sure that amount of silence to add in WriteSilenceAsync() method is calculated right. I'm not sure if the problem appears with data length more than 30 seconds but less then 1 minute, but I think it doesn't.

    


    I don't know how to solve this problem and would be glad to see any suggestions or solutions.

    


  • SVT-AV1 : After encoding the video seeking is very bad in any video player (even HTML5)

    18 juin 2020, par Viktor Machnik

    i am using SVT-AV1 and FFMPEG to encode Videos into the AV1 video and opus audio codec (.webm), it works fine, except that the video seeking do not work really (extremly bad). When i seek, the CPU useage jumps up and it takes up to minutes until the seeking process finishes.

    



    Here is how i encode the videos :

    



      

    1. Convert any video into yuv : ffmpeg -i  -preset veryslow -level 6.2 .yuv
    2. 


    3. First AV1 run svt-av1 -i '.yuv' -w  -h  --fps  --rc 0 -q 30 --preset 8 -b '.\output1.ivf' --output-stat-file '.\stat_file.stat' --keyint 1 --enable-restoration-filtering 1
    4. 


    5. Second AV1 run svt-av1 -i '.yuv' -w  -h  --fps  --rc 0 -q 30 --preset 3 -b '.\output.ivf' --input-stat-file '.\stat_file.stat' --keyint 1 --enable-restoration-filtering 1
    6. 


    7. Get source video audio in opus codec ffmpeg -i  -c:a libopus -vn -preset veryslow -level 6.2 output.ogg
    8. 


    9. Get final .webm video ffmpeg -i output.ivf -i output.ogg -c copy output.webm
    10. 


    



    I have allready tryed to play with the —keyin option, also just letting it away and use the encoder default, but the results are always the same. (--keyin 1 seems to work better than without this option, but also very very bad)

    



    What am i doing wrong ?

    



    Extras : I am using Windows 10 with downloaded version of SVT-AV1 and FFMPEG (I just renamed the SVT-AV1 Encoder .exe file to be svt-av1.exe). Used CPU is Ryzen 9 3900X

    


  • Adding transparency to a video from black and white (and gray) alpha information video images

    3 juillet 2018, par Jan F.

    I’d like to create a video with transparency (and semi transparency) in android. The images of the source video are split into two images, the top one with color information (looks like the normal video image), the bottom one with alpha information (the same shapes but only in black and white and gray, black means transparent).

    This is the solution for iOS :
    https://medium.com/@quentinfasquel/ios-transparent-video-with-coreimage-52cfb2544d54

    What would be the best way to to this in android ?

    Can this be solved with javacv, FFmpegFrameGrabber, FFmpegFrameFilter etc.?

    Or better with OpenGL ES and shaders ?

    Are there any samples ?

    Thanks !