Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

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

Autres articles (34)

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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

Sur d’autres sites (6704)

  • How can I make an rtsp stream as correct as possible in a Django application ? [closed]

    4 décembre 2024, par user25336067

    I am writing a mini video surveillance system on Django. I want the stream to be output to the tag. now I have output to the img tag using a stream and jpeg images (using OpenCV)how to make a stream from a video, you may need to use WebRTC for the stream and somehow decode the video using ffmpeg, please tell me

    


    def generate_frames(rtsp_url):
    cap = cv2.VideoCapture(rtsp_url)  # Замените на ваш RTSP URL

    while True:
        success, frame = cap.read()
        if not success:
            break

        # Кодируем кадр в JPEG
        ret, buffer = cv2.imencode('.jpeg', frame)
        frame = buffer.tobytes()

        yield (b'--frame\r\n'
               b'Content-Type: photo/jpg\r\n\r\n' + frame + b'\r\n')


    


    i vant to stop video and start in video tag
my html looks like this

    


      <div class="video-container">&#xA;    <img src="http://stackoverflow.com/feeds/tag/{% url &#38;#x27;video_feed&#38;#x27; %}?rtspurl={{ rtsp_url }}" width='300' height='225' alt="{{ rtsp_url }}" />&#xA;    <div class="separator"></div>  &#xA;    <p class="cam-name">Трансляция камеры: {{ cam_name }}<br />RTSP: <a>{{ rtsp_url }}</a></p>&#xA;  </div>&#xA;

    &#xA;

  • How to add video play duration ffmpeg ? [duplicate]

    2 août 2019, par Mostafa Daash

    This question already has an answer here :

    i want to add video duration stamp in mp4 file

    like this photo
    https://i.ibb.co/m6cd63k/Untitled-1.jpg

    i use this code to output video file with watermark

    ffmpeg -i 22.mp4 -i logo50.png -filter_complex "overlay=x=40:10:y=20" -preset medium -crf 24 -codec:a aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p 22.xxxx.mp4
  • FFmpeg stream giving me "Alsa" errors

    14 mars 2019, par Sherman B.

    Of late I have been trying different ways of telling my Raspberry Pi to send video to YouTube live stream. One of the things I wanted to be able to do is boot the Pi up, and it automatically starts the live stream on its own. The advantages to this are huge (won’t have to tote around keyboard/mouse to start the stream, or have to ssh into the Pi to start the stream).

    Now what I did to accomplish this was to make a Python program that pipes the stream from my encoder(FFmpeg) directly to the stream. My goal was to make the program work, and then, set it to run automatically. But every time I run the file in my terminal this is my result :

    Traceback (most recent call last):
     File "stream.py", line 22, in <module>
       stream.stdin.close()
    NameError: name 'stream' is not defined
    [h264 @ 0x19ed450] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    pi@raspberrypi:~ $ Input #0, h264, from 'pipe:':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: h264, none, 25 tbr, 1200k tbn, 50 tbc
    Unknown input format: 'alsa'
    </module>

    Now I think I can fix I can fix some of those errors, but the biggest thing that worries me there is : the fact that "alsa" is unknown. I installed "libsasound" which is supposed to make Alsa usable, but that clearly did not help.

    I am using Python 3.

    This is my syntax for this program :

    import subprocess
    import picamera
    import time
    YOUTUBE="rtmp://a.rtmp.youtube.com/live2/"
    KEY = ("MY PERSONAL ENCODER KEY")
    stream_cmd = 'ffmpeg -f h264 -r 25 -i - -itsoffset 5.5 -fflags nobuffer -f alsa -ac 1 -i hw:1,0 -vcodec copy -acodec aac -ac 1 -ar 8000 -ab 32k -map 0:0 -map 1:0 -strict experimental -f flv ' + YOUTUBE + KEY
    stream_pipe = subprocess.Popen(stream_cmd, shell=True, stdin=subprocess.PIPE)
    camera = picamera.PiCamera(resolution=(640, 480), framerate=25)
    try:
     now = time.strftime("%Y-%m-%d-%H:%M:%S")
     camera.framerate = 25
     camera.vflip = True
     camera.hflip = True
     camera.start_recording(stream.stdin, format='h264', bitrate = 2000000)
     while True:
        camera.wait_recording(1)
    except KeyboardInterrupt:
        camera.stop_recording()
    finally:
     camera.close()
     stream.stdin.close()
     stream.wait()
     print("Camera safely shut down")
     print("Good bye")

    Now maybe I am missing something simple here, but I don’t know what. I have tried many ideas (e.g. replacing Alsa with some other input, naming the "stream" function.) I have no idea.