Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (108)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

  • from unix ffmpeg bash pipe to windows ''universe"

    25 septembre 2017, par Macheneso R.

    I am trying to "translate" some script from bash to windows powershell

    I tried to pass the simplest

    ffmpeg -i video.mp4 -vn -sn -map 0:a:0 -f flac - | ffmpeg -i - -c:a aac oiji.m4a

    the result is a failure

    using -f wav - another failure

    there is a way to make it work ?

    thank you

  • Python code mutes whole video instead of sliding a song. What shall I do ?

    16 juillet 2023, par Armed Nun

    I am trying to separate a song into 4 parts and slide the parts in random parts of a video. The problem with my code is that the final output video is muted. I want to play parts of the song at random intervals and while the song is playing the original video shall be muted. Thanks to everyone who helps

    


    import random
from moviepy.editor import *

def split_audio_into_parts(mp3_path, num_parts):
    audio = AudioFileClip(mp3_path)
    duration = audio.duration
    part_duration = duration / num_parts

    parts = []
    for i in range(num_parts):
        start_time = i * part_duration
        end_time = start_time + part_duration if i < num_parts - 1 else duration
        part = audio.subclip(start_time, end_time)
        parts.append(part)

    return parts

def split_video_into_segments(video_path, num_segments):
    video = VideoFileClip(video_path)
    duration = video.duration
    segment_duration = duration / num_segments

    segments = []
    for i in range(num_segments):
        start_time = i * segment_duration
        end_time = start_time + segment_duration if i < num_segments - 1 else duration
        segment = video.subclip(start_time, end_time)
        segments.append(segment)

    return segments

def insert_audio_into_segments(segments, audio_parts):
    modified_segments = []
    for segment, audio_part in zip(segments, audio_parts):
        audio_part = audio_part.volumex(0)  # Mute the audio part
        modified_segment = segment.set_audio(audio_part)
        modified_segments.append(modified_segment)

    return modified_segments

def combine_segments(segments):
    final_video = concatenate_videoclips(segments)
    return final_video

# Example usage
mp3_file_path = "C:/Users/Kris/PycharmProjects/videoeditingscript124234/DENKATA - Podvodnica Demo (1).mp3"
video_file_path = "C:/Users/Kris/PycharmProjects/videoeditingscript124234/family.guy.s21e13.1080p.web.h264-cakes[eztv.re].mkv"
num_parts = 4

audio_parts = split_audio_into_parts(mp3_file_path, num_parts)
segments = split_video_into_segments(video_file_path, num_parts)
segments = insert_audio_into_segments(segments, audio_parts)
final_video = combine_segments(segments)
final_video.write_videofile("output.mp4", codec="libx264", audio_codec="aac")


    


    I tried entering most stuff into chatGPT and asking questions around forums but without sucess, so lets hope I can see my solution here

    


  • FFMPEG audio streaming to icecast lets media players stop after each song

    21 décembre 2020, par ILoveCake

    I have set up FFMPEG audio streaming to an icecast2 server.
It works, but when I use a loop to stream different songs, media players stop after each song. In detail :

    


    for i in 1 2 3
do
  ffmpeg -loglevel quiet -hide_banner -re -i test$i.mp3 \
  -c:a libvorbis -ac 1 -b:a 96K -content_type audio/webm -f webm \
  icecast://source:password@localhost:8000/stream
done


    


    Media players (vlc, mpv, mplayer) would stop after each of the 3 test files. I have to press play again and again. For icecast2 I use the default settings (queue-size 524288, burst-size 65535).

    


    How can I have a continuous flow so players don't have to be restarted ?