Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (71)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

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

Sur d’autres sites (6500)

  • avutil/avutil : make AV_TIME_BASE_Q available in C++

    18 septembre 2023, par Zhao Zhili
    avutil/avutil : make AV_TIME_BASE_Q available in C++
    

    ISO C++ forbids compound-literals. It's not available with MSVC.
    This is a known issue from 10 years ago, and that's why there is a
    av_get_time_base_q().

    Since we have no plan to remove AV_TIME_BASE_Q, just make it
    available in C++.

    There are multiple choices :
    1. Use C++11 syntax : AVRational1, AV_TIME_BASE

    Users may still use C++98 to write new code. So no.

    2. Use av_get_time_base_q().

    It's for this purpose. But it's not compile time constants as
    AV_TIME_BASE_Q in C.

    So I choose av_make_q() as Anton's suggestion.

    https://libav-devel.libav.narkive.com/ZQCWfTun/patch-0-2-fix-avutil-h-usage-from-c
    Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>

    • [DH] doc/APIchanges
    • [DH] libavutil/avutil.h
    • [DH] libavutil/version.h
  • When assigning an IP via Docker container macvlan and sending video to that container, will the data be limited ?

    11 septembre 2023, par leejh

    I created a macvlan network as shown below.

    &#xA;

    docker network create -d macvlan \&#xA;    --subnet=192.168.1.0/24 \&#xA;    --gateway=192.168.1.1 \&#xA;    -o parent=eno1 \&#xA;    macvlan_network&#xA;

    &#xA;

    And the container was created as shown below.

    &#xA;

    The plan was to create a mistserver inside the container to send and receive video via IP.

    &#xA;

    docker run -d --name mistserver1 --restart=always -v mistserver_config:/config -v /home/ketivrar/detr2:/home/shared_folder --net=macvlan_network --ip 192.168.1.16 r0gger/mistserver&#xA;

    &#xA;

    There is no problem when transmitting video in the directory using the Mist server.

    &#xA;

    An error occurs when transmitting video using ffmpeg as shown below.

    &#xA;

    ffmpeg -re -i test7_10.mp4 -c:v libx264 -preset medium -b:v 8000k -f flv rtmp://192.168.1.16/live/cam1&#xA;

    &#xA;

    If you run the above command, the following error will occur and it will stop.

    &#xA;

    av_interleaved_write_frame(): Connection reset by peer58.73 bitrate=8053.7kbits/s dup=0 drop=4 speed=0.948x&#xA;[flv @ 0x5582ab9e6e00] Failed to update header with correct duration.&#xA;[flv @ 0x5582ab9e6e00] Failed to update header with correct filesize.&#xA;Error writing trailer of rtmp://192.168.1.2/live/cam1: Connection reset by peer&#xA;frame= 1845 fps= 29 q=33.0 Lsize=   57806kB time=00:00:58.86 bitrate=8044.2kbits/s dup=0 drop=4 speed=0.94x&#xA;

    &#xA;

    I wonder what the reason is...

    &#xA;

    I created two streams on the Mist server and sent video to each stream simultaneously.

    &#xA;

    ffmpeg -re -i test7_10.mp4 -c:v libx264 -preset medium -b:v 8000k -f flv rtmp://192.168.1.16/live/cam1&#xA;

    &#xA;

    ffmpeg -re -i test7_10.mp4 -c:v libx264 -preset medium -b:v 8000k -f flv rtmp://192.168.1.16/live/cam2&#xA;

    &#xA;

    av_interleaved_write_frame(): Connection reset by peer29.46 bitrate=8135.7kbits/s dup=0 drop=2 speed=0.343x&#xA;[flv @ 0x55975fb05e00] Failed to update header with correct duration.&#xA;[flv @ 0x55975fb05e00] Failed to update header with correct filesize.&#xA;Error writing trailer of rtmp://192.168.1.16/live/cam1: Connection reset by peer&#xA;frame=  971 fps= 11 q=33.0 Lsize=   29395kB time=00:00:29.66 bitrate=8116.6kbits/s dup=0 drop=2 speed=0.34x&#xA;&#xA;&#xA;&#xA;####&#xA;&#xA;&#xA;av_interleaved_write_frame(): Connection reset by peer25.06 bitrate=8313.0kbits/s dup=0 drop=1 speed=0.292x&#xA;[flv @ 0x55ce4a7ce340] Failed to update header with correct duration.&#xA;[flv @ 0x55ce4a7ce340] Failed to update header with correct filesize.&#xA;Error writing trailer of rtmp://192.168.1.16/live/rtsp: Connection reset by peer&#xA;frame=  853 fps=9.8 q=33.0 Lsize=   25857kB time=00:00:25.76 bitrate=8220.2kbits/s dup=0 drop=2 speed=0.297x&#xA;&#xA;

    &#xA;

    It seems to stop before the total size of the two reaches 60000.

    &#xA;

    This time, I sent the video using OBS.

    &#xA;

    I confirmed that the connection was disconnected and reconnected at a similar time as ffmpeg.

    &#xA;

    I think there is a size limit somewhere. Could you please tell me a solution or the exact problem ?

    &#xA;

    +++++

    &#xA;

    ffmpeg -re -i test7_10.mp4 -c:v libx264 -preset medium -b:v 4000k -f flv rtmp://192.168.1.16/live/cam1&#xA;

    &#xA;

    ->

    &#xA;

    [flv @ 0x56547e6f1e00] Failed to update header with correct duration.019.0kbits/s dup=0 drop=12 speed=0.982x&#xA;[flv @ 0x56547e6f1e00] Failed to update header with correct filesize.&#xA;frame= 5328 fps= 30 q=-1.0 Lsize=   87550kB time=00:02:57.93 bitrate=4030.8kbits/s dup=0 drop=12 speed=0.996x&#xA;

    &#xA;

    success !

    &#xA;

    ffmpeg -re -i test7_10.mp4 -c:v libx264 -preset medium -b:v 5000k -f flv rtmp://192.168.1.16/live/cam1&#xA;

    &#xA;

    ->

    &#xA;

    av_interleaved_write_frame(): Connection reset by peer30.63 bitrate=5039.7kbits/s dup=0 drop=6 speed=0.965x&#xA;[flv @ 0x555ad97f7e00] Failed to update header with correct duration.&#xA;[flv @ 0x555ad97f7e00] Failed to update header with correct filesize.&#xA;Error writing trailer of rtmp://192.168.1.16/live/cam1: Connection reset by peer&#xA;frame= 2802 fps= 30 q=37.0 Lsize=   55876kB time=00:01:30.83 bitrate=5039.3kbits/s dup=0 drop=6 speed=0.962x&#xA;

    &#xA;

    fail...

    &#xA;

    I only adjusted -b:v 5000k, but the results were mixed.

    &#xA;

    Are there any resource limits for each container ?

    &#xA;

    I didn't set it up separately.

    &#xA;

  • How to stream 24/7 on youtube (audio + video) with FFMPEG

    29 septembre 2023, par Carter510

    I plan to create a 24/7 stream with a video and a musical background which is located in a /Playlist folder.&#xA;I would like the music playlist to be played randomly and if a piece of music is corrupted or cannot be played, the program moves on to the next one.

    &#xA;

    The problem is that with my command every time the music changes the stream stops.&#xA;Any suggestions ?

    &#xA;

    #!/bin/bash&#xA;&#xA;VBR="4500k"&#xA;FPS="30"&#xA;QUAL="superfast"&#xA;&#xA;YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"&#xA;KEY="XXXX-XXXX-XXXX-XXXX"&#xA;&#xA;VIDEO_SOURCE="fireplace.mkv"&#xA;AUDIO_FOLDER="/home/administrateur/Documents/Youtube/Playlist"&#xA;&#xA;while true; do&#xA;    # Joue la vid&#xE9;o en boucle&#xA;    ffmpeg -re -stream_loop -1 -i "$VIDEO_SOURCE" \&#xA;    -thread_queue_size 512 -i "$(find "$AUDIO_FOLDER" -type f -name "*.mp3" | shuf -n 1)" \&#xA;    -map 0:v:0 -map 1:a:0 \&#xA;    -map_metadata:g 1:g \&#xA;    -vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \&#xA;    -acodec libmp3lame -ar 44100 -threads 6 -qscale:v 3 -b:a 320000 -bufsize 512k \&#xA;    -f flv "$YOUTUBE_URL/$KEY"&#xA;done&#xA;

    &#xA;

    I would like the fireplace.mkv video to play without interruption, for the music to be chosen randomly without ever stopping. And if one of the songs cannot be played, it is skipped.

    &#xA;