Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (57)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (5931)

  • Using GStreamer to receive and send h264 video (from OBS)

    16 mars 2020, par Ivorius

    I’ve been trying to set up using GStreamer to get support for some input I can output from OBS.

    OBS : rtp_mpegts to udp ://localhost:5000

    http-launch 8080 webmmux streamable=true name=stream udpsrc uri=udp://localhost:5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)
    33" ! gstrtpjitterbuffer latency=200 ! application/x-rtp ! rtpmp2tdepay ! video/mpegts ! mpegtsdemux ! video/x-h264 ! queue ! decodebin ! vp8enc ! stream.   audiotestsrc ! vorbisenc ! stream.

    However, using this it seems to accept connections, but just closes them again after a while. Any clues on what I am doing wrong ? I am open to any format changes as long as they’re supported by OBS / ffmpeg.

    As a bonus, how do I add support for audio as well ?

    Background

    I’ve found https://github.com/sdroege/http-launch, which works well in displaying a GStreamer video over http:

    <video autoplay="autoplay" controls="">
       <source src="https://localhost:8080" type="video/mp4" codecs="avc1.4D401E, mp4a.40.2">
       You browser doesn't support element <code>video

    .

    I’ve managed to set up a pipeline where I can use a GStreamer source to pipe into a http-launch
    pipeline and display it on video :

    http-launch 8080 webmmux streamable=true name=stream udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! mpegtsdemu
    x ! h264parse ! TIViddec2 ! videoconvert ! vp8enc ! stream.   audiotestsrc ! vorbisenc ! stream.

    gst-launch-1.0 -v videotestsrc ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000

    However, I don’t think OBS supports rpt over UDP. It uses ffmpeg to send these packets, which can stream rtp_mpegts. I’ve found some code snippets which claim to support the format, and stitch together the above pipeline.

  • Python Send FFMPEG stdout and stderr to Multiple files using for loop

    17 avril 2021, par D0n

    Here is my scripts

    &#xA;

    csv_location = &#x27;/home/scripts/streams.csv&#x27;&#xA;ffmpeg_location = &#x27;/usr/bin/ffmpeg&#x27;&#xA;ffmpeglogs = &#x27;/home/scripts/ffmpeglog/&#x27;&#xA;&#xA;# Open the streams list csv file&#xA;with open(csv_location) as csv_file:&#xA;    csv_reader = csv.reader(csv_file, delimiter=&#x27;,&#x27;)&#xA;    for row in csv_reader:&#xA;        ffmpeg_log = (ffmpeglogs &#x2B; row[0]) # set the ffmpeg log to be named the stream name&#xA;        # Open log file for writing&#xA;        with open(ffmpeg_log, &#x27;wb&#x27;) as ffmpeg_output: &#xA;            # Iterate through streams list&#xA;            for row in csv_reader:&#xA;                print(row)&#xA;                stream_output = (row[0] &#x2B; ".mpeg") # stream output variable&#xA;                # Subprocess record 1 stream at a time &amp; send the output t0 stdout &amp; stdeer&#xA;                ffmpeg_instance = subprocess.Popen([ffmpeg_location, &#x27;-t&#x27;, &#x27;10&#x27;, &#x27;-i&#x27;, row[1], stream_output], stdout=subprocess.PIPE, stderr=subprocess.PIPE)&#xA;                # sent output to ffmpeg log&#xA;                ffmpeg_output.write(ffmpeg_instance.communicate()[1])&#xA;

    &#xA;

    Here is my CSV File

    &#xA;

    Name,RTSP_URL&#xA;stream1,rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov&#xA;stream3,rtsp://wowz.streamlock.net/vod/mp4:BigBuckBunny_115k.mov&#xA;stream4,rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov&#xA;

    &#xA;

    So I have a script that reads a CSV file and ffmpeg records the video for 10 seconds. Then spits the output of the FFMPEG to a file. I need each camera to have its own file. Really just to log FFMPEG output for each camera. But my issue is that the FFMPEG output for multiple cameras get written to 1 file.

    &#xA;

    Here is what I want to see in /home/scripts/ffmpeglog/

    &#xA;

    stream1 stream3 stream4&#xA;

    &#xA;

    Here's what I'm actually what I see in /home/scripts/ffmpeglog/

    &#xA;

    name stream1&#xA;

    &#xA;

  • How to send av1 encoded stream to a mediamtx server ?

    17 juillet 2023, par Managor

    I want to test streaming av1 encoded video from the command line but I don't have enough expertise to know if I'm doing something wrong or if it's simply unsupported.

    &#xA;

    So far I've tried gst-launch-1.0 videotestsrc ! av1enc ! rtspclientsink location=rtsp://localhost:8554/usbcamera and ffmpeg -f v4l2 -i /dev/video1 -c:v libsvtav1 -an -f rtsp rtsp://localhost:8554/usbcamera

    &#xA;

    Using a file source with ffmpeg works with ffmpeg -re -stream_loop -1 -i av1noaudio.mp4 -f rtsp rtsp://localhost:8554/usbcamera but not with gstreamer gst-launch-1.0 filesrc location=av1test.mp4 ! videoconvert !  rtspclientsink location=rtsp://localhost:8554/usbcamera

    &#xA;