Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (88)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • 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

Sur d’autres sites (6339)

  • How do I make libavformat reconnect when connection is reset by peer ?

    6 mai 2024, par user24897675

    I am opening a network file via HTTPS like this :

    


    avformat_open_input(&m_format, "https://www.example.com/file.mp4", nullptr, nullptr);


    


    It works, however sometimes connection is closed and this is logged :

    


    [tls @ 0x7f600ba690] Error in the pull function.
[tls @ 0x7f600ba690] IO error: Connection reset by peer
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f6007e450] Packet corrupt (stream = 0, dts = 24188928).
[aac @ 0x7f60324800] Input buffer exhausted before END element found


    


    I found it possible to setup reconnection by logs from this post. Here are their logs :

    


    [tls @ 0x6e3b440] Error in the pull function.
[tls @ 0x6e3b440] IO error: Connection reset by peer
[https @ 0x6e37900] Will reconnect at 720896 in 0 second(s), error=Connection reset by peer.


    


    Here libavformat does not give up and it tries to reconnect because -reconnect argument was passed in FFmpeg CLI. How can I do the same in code with FFmpeg's libavformat ?

    


  • Merge mp3 files at specific duration in Android

    18 mai 2017, par Gio Vanno

    First I’m new in Android.

    I’m trying to make an app that can combine a lot of music(mp3 files im using) at specific duration with the selected music via seekbar.

    My main plan is to merge multiple audio files at specific time.

    example :
    when i pressed the drum button at 5 sec(via seekbar), and then guitar button at 6 sec.

    when i clicked the merge button, it will merged the selected mp3 file with those 2 mp3 files at their respective time.

    from what i’m searching so far, the possible way is by using ffmpeg from this :

    -How to overlay two audio files using ffmpeg

    -Merge mp3 files using FFmpeg on Android

    but i don’t see them merged at specified time.

    maybe there’s another way besides ffmpeg,or i’ve missed something ?

    thank you

  • ffmpeg : adding an audio file to a video at specified delays

    15 juillet 2020, par JarsOfJam-Scheduler

    I have an array that may contain multiple occurrences of these terms : 'video, forest'. An audio file is added to the video file when the current element of this array I iterate is 'forest'. Otherwise, not. 'video and forest' elements will increment (of 5 seconds) the delay at which an audio file will be added. Example : the array contains "video, video, forest, video, forest". The first audio file will be added at delay=15000ms. The last one, at 25000ms. Computation details : 0 (initialization) + 5000 (video) + 5000 (video) + 5000 (forest) + 5000 (video) + 5000 (forest). 5000 + 5000 + 5000 = 15000. 5000*5 = 25000.

    


    I use ffmpeg to implement this program. The problem is that only one audio file is added, at the beginning of my video file. So the delays are not actually taken into account I think.

    


    Note that the video file also contains a music. The audio files that I try to add must be present in the video file in addition to this music. The first line of the following code adds the music to the video. The next lines try to add the audio files at good delays.

    


    subprocess.call(
    ['C:/Users/XYZ/Downloads/ffmpeg/bin/ffmpeg.exe', '-i', 'XYZ/my_XYZ_video.webm', '-stream_loop', '-1', '-i', 'tmp_music/original_music.wav',
     '-c:v', 'copy', '-shortest', '-fflags', '+shortest', '-max_interleave_delta', '100M',
     'XYZ/my_XYZ_video_with_music.webm']
    , cwd='C:/Users/XYZ/Desktop/XYZ/')

chosen_songs = ['video', 'forest', 'forest', 'video']

time_for_ffmpeg = 0
for chosen_song in chosen_songs:
    if chosen_song == 'video':
        print('video')
        print(time_for_ffmpeg)
        time_for_ffmpeg += 2000    

    elif chosen_song == 'forest':
        print('forest')
        print(time_for_ffmpeg)
        subprocess.call(
            ['C:/Users/XYZ/Downloads/ffmpeg/bin/ffmpeg.exe', '-i', 'XYZ/my_XYZ_video_with_music.webm', '-i', 'tmp_music/forest.mp3',
             '-filter_complex',
             '[1]adelay=' + str(time_for_ffmpeg) + '|' + str(time_for_ffmpeg) + '[a1];[0][a1]amix', '-c:v', 'copy',
             'XYZ/my_XYZ_video_with_music_with_songs.webm']
            , cwd='C:/Users/XYZ/Desktop/XYZ/')
        time_for_ffmpeg += 5000
    


    


    My question

    


    Why can't I add the audio files corresponding to the forest the specified delays (implemented by the variable time_for_ffmpeg`) ? How could I fix my code ?