Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (45)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

Sur d’autres sites (4599)

  • ffmpeg doesn't stop the playing track even after ending

    17 novembre 2024, par BlyZe

    I'm trying to run a 24/7 music stream on my Raspberry Pi 4. The .sh script works perfectly until the first track ends. After the track ends the script still sends empty data infinitely and so the stream is basically dead.

    


    Script.sh

    


    #!/bin/bash
MUSIC_DIR="/home/pi/Desktop/24-7-Music"
BACKGROUND_VIDEO="$MUSIC_DIR/bgvid.mp4"
KEY="myKey"

# Infinite loop to play random files
while true; do
    # Pick a random file from the folder (only including mp3)
    file=$(find "$MUSIC_DIR" -type f -name "*.mp3" | shuf -n 1)
    
    # Check if a file was found
    if [ -n "$file" ]; then
        # Extract the filename without path
        title=$(basename "$file" .mp3 | sed 's/_/ /g')
        echo "Now playing: $title"

        # Stream the file with the background video, looping the video
        # Using ffmpeg to stream video and audio together
        ffmpeg -re -stream_loop -1 -i "$BACKGROUND_VIDEO" -i "$file" \
        -filter_complex "[0:v]scale=1920x1080[v]; [1:a]anull[a]" \
        -map "[v]" -map "[a]" \
        -c:v h264_v4l2m2m -b:v 4000k -r 30 \
        -c:a aac -b:a 192k -ac 2 -bufsize 10000k -f flv "rtmp://a.rtmp.youtube.com/live2/$KEY"

        # Check if ffmpeg exited cleanly
        if [ $? -ne 0 ]; then
            echo "Error during playback. Retrying..."
            sleep 2  # Wait before retrying
        fi

        echo "Track ended, picking the next track..."

    else
        echo "No MP3 files found in $MUSIC_DIR."
        sleep 5  # Wait before checking again
    fi
done


    


    I tried removing the stream_loop but then the stream is stuck because the background video ended.

    


  • AttributeError : module 'librosa' has no attribute 'output'

    31 mai 2024, par Aditya Kumar

    I am using librosa 0.6 in anaconda and i have also installed ffmpeg but i am still getting this error

    


    the code is

    


    a = np.exp(spectrum) - 1
    p = 2 * np.pi * np.random.random_sample(spectrum.shape) - np.pi
    for i in range(50):
        S = a * np.exp(1j * p)
        x = librosa.istft(S)
        p = np.angle(librosa.stft(x, N_FFT))
    librosa.output.write_wav(outfile, x, sr)



    


  • Extract different types of frames using FFMPEG and OpenCV [closed]

    24 juillet 2024, par Çağatay Alptekin

    How should I extract I, P, and B frames from video using the FFMPEG library ? the first stage would be using VideoCapture from OpenCV. I guess. My end goal is to do this with C# using FFMPEG.Autogen.