Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (107)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

Sur d’autres sites (13180)

  • FFMPEG how to combine -filter_complex with h264 and output to stdout

    8 février 2023, par Luis Gonzalez

    I need to stream some ffmpeg output that is generated with ffmpeg (audio to video) ; for this I'm using -filter_complex avectorscope.

    


    I am testing the pipe with ffplay, something like this works :

    


    ffmpeg -i video.mp4 -f h264 - | ffplay -


    


    and something like this also works fine (writing to a file) :

    


    ffmpeg -i input.mp3 -filter_complex "[0:a]avectorscope=s=1920x1080,format=yuv420p[v]" \
-map "[v]" -map 0:a -vcodec libx264 avectorscope.mp4


    


    But what I really need is something like this :

    


    ffmpeg -i input.mp3 -filter_complex "[0:a]avectorscope=s=1920x1080,format=yuv420p[v]" \
-map "[v]" -map 0:a -vcodec libx264 -f h264 | ffplay -


    


    but when I try that I get this error :

    


    Automatic encoder selection failed for output stream #0:1. Default encoder for format h264 (codec none) is probably disabled. Please choose an encoder manually.
Error selecting an encoder for stream 0:1
pipe: : Invalid data found when processing input

    


    So I can encode it to a file but not encode it to a pipe with the same flags.

    


    I also tried with other format (-f flv and -f mpegts) and they also work (for ffplay), but it doesn't work with other tools that require h264 stream as input.

    


    I hope someone can help !

    


  • Got two working ffmpeg commands, help me transform them

    7 mars 2019, par lukistar

    here are two different commands.

    ffmpeg -i input.mp3 -i second.mp3 -filter_complex "[0:a]atrim=end=10,asetpts=N/SR/TB[begin];[0:a]atrim=start=10,asetpts=N/SR/TB[end];[begin][1:a][end]concat=n=3:v=0:a=1[a]" -map "[a]" output

    This command inserts second.mp3 into input.mp3. It seems to always keep the parameters of input.mp3. It inserts it in exact 10 seconds of input.mp3.

    Here is the second command :

    ffmpeg -i input.mp3 -i second.mp3 -filter_complex "[1:a]adelay=10000|10000[1a];[0:a][1a]amix=duration:first" output

    This command is closer to my final goal. It plays input.mp3 and in exact 10 seconds it plays along second.mp3 without stopping input.mp3’s sound.

    My final goal is to create final.mp3.

    Its duration must always equal input.mp3 duration. It must keep the samplerate, the count of channels, etc of input.mp3

    When playing final.mp3, it must play the whole input.mp3.
    But each 10-15 seconds, it must play second.mp3 without stopping input.mp3.
    It could be said that I must use "Second command" but in a loop.
    It would be great if there is one-line command for that in ffmpeg.
    I am working with flac, mp3 and wav and both of the commands, I got, work great for what they are doing.

    For example :

    input.mp3 could be 40 seconds long.

    second.mp3 could be 2 seconds long.

    When I play final.mp3 it will be 40 seconds long, but each 10-15 seconds(on random) it will play second.mp3 at the same time as input.mp3.

    Sadly I have no experience with ffmpeg, both of the commands I got are answers to questions here in stackoverflow. Hope somebody can help me. Thank you !

  • Stream Live IP cam to Youtube on FFMPEG

    24 juillet 2018, par Håkon Berntsen

    I`m streaming 2 IP cams (live webcam for tourists) from 2 Raspberry Pi, using FFMPEG (version 3.4.2) to YouTube. IPcam no.1 and Raspberry no.1 fails once a month or so, and that issue is solved with a Cron job that restarts the scripts if the service is not running.

    The stream from IPcam no.2 fail after 1 hour to maybe 24 hours, even though its the same FFMPEG command and same setup.
    FFMPEG keep streaming and the service is running on the Raspberry. YouTube stop receiving the stream, but there is no logs to be found at YouTube.

    The bandwidth is not an issue (fiber), and the cameras are both connect with Cat5 cable. The only way to restart the stream (so YouTube restart the stream) is to restart the service (since its an cronjob that restart the service only if the service is no longer running, I`m forced to do a pkill). I have also tried to set up another cron job that kills the service every 15 minutes, but its not really an elegant solution.

    Both cameras streams H264.

    Stream no.2 can be seen here : https://www.youtube.com/embed/live_stream?channel=UCEJJjA5IsjE0JjuiqfxZFaw

    The command I`m using is :

    COMMAND="sudo ffmpeg  -f lavfi -i anullsrc -thread_queue_size 512   -rtsp_transport tcp  -i ${RTSP_URL}  -vcodec libx264   -pix_fmt + -c:v copy -c:a aac  -f flv ${YOUTUBE_URL}/${YOUTUBE_KEY}"

    I hope there is someone that can help with ideas to the command or to why the stream fail.