Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (25)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

Sur d’autres sites (7165)

  • vvcdec : add CTU parser

    5 décembre 2023, par Nuo Mi
    vvcdec : add CTU parser
    

    Co-authored-by : Xu Mu <toxumu@outlook.com>
    Co-authored-by : Frank Plowman <post@frankplowman.com>
    Co-authored-by : Shaun Loo <shaunloo10@gmail.com>
    Co-authored-by : Wu Jianhua <toqsxw@outlook.com>

    • [DH] libavcodec/vvc/vvc_ctu.c
    • [DH] libavcodec/vvc/vvc_ctu.h
  • Stream OpenCV frames to http using ffmpeg

    15 mars 2023, par Christoph Meyer

    I have a small Python OpenCV project and would like to stream my processed frames to HTTP using ffmpeg.

    &#xA;

    For this I used the following sources :&#xA;Pipe and OpenCV to FFmpeg with audio streaming RTMP in Python&#xA;and&#xA;https://github.com/kkroening/ffmpeg-python/blob/master/examples/README.md#stream-from-a-local-video-to-http-server

    &#xA;

    To make things more readable I used the ffmpeg-python library but as far as I understand, it doesn't matter if I open a pipe using subprocess or use the library.

    &#xA;

    The problem that I have is, that I always get a broken pipe or "Connection refused" when I open the stream with ffplay.

    &#xA;

    import ffmpeg&#xA;import cv2&#xA;&#xA;video_format = "flv"&#xA;server_url = "http://localhost:8080"&#xA;&#xA;cap = cv2.VideoCapture(1)&#xA;width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))&#xA;height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))&#xA;&#xA;&#xA;process = (&#xA;    ffmpeg&#xA;    .input(&#x27;pipe:&#x27;, format=&#x27;rawvideo&#x27;,codec="rawvideo", pix_fmt=&#x27;bgr24&#x27;, s=&#x27;{}x{}&#x27;.format(width, height))&#xA;    .output(&#xA;        server_url,&#xA;        #codec = "copy", # use same codecs of the original video&#xA;        listen=1, # enables HTTP server&#xA;        codec="libx264",&#xA;        pix_fmt="yuv420p",&#xA;        preset="ultrafast",&#xA;        f=video_format)&#xA;    .overwrite_output()&#xA;    .run()&#xA;)&#xA;&#xA;while True:&#xA;    ret, frame = cap.read()&#xA;    if not ret:&#xA;        break&#xA;    print("Sending frame")&#xA;    process.stdin.write(frame.tobytes())&#xA;

    &#xA;

    I also tried to stream using only ffmpeg and FaceTime and that works as i expected.

    &#xA;

    My operation system is MacOS 12.3

    &#xA;

    Maybe someone knows how to fix this.

    &#xA;

    Thanks for your help

    &#xA;

    Chris

    &#xA;

  • Processing Camera stream in Opencv, pushing it over RTMP (NGINX RTMP Module) using FFMPEG

    19 avril 2016, par Asymptote

    Output video :
    https://youtu.be/VxfoBQjoY6E

    Explanation :

    I want to : Process camera stream in Opencv and push it over to RTMP server. I already have NGINX (RTMP module) set up and I have tested streaming videos with both RTMP (Flash Player) and HLS.

    I am reading the frames in a loop and using ’subprocess’ in python to execute ffmpeg command. Here’s the command I am using :

    command = [ffmpeg,
       '-y',
       '-f', 'rawvideo',
       '-vcodec','rawvideo',
       '-pix_fmt', 'bgr24',
       '-s', dimension,
       '-i', '-',
       '-c:v', 'libx264',
       '-pix_fmt', 'yuv420p',
       '-preset', 'ultrafast',
       '-f', 'flv',
       'rtmp://10.10.10.80/live/mystream']


    import subprocess as sp
    ...
    proc = sp.Popen(command, stdin=sp.PIPE,shell=False)
    ...
    proc.stdin.write(frame.tostring()) #frame is read using opencv

    Problem :

    I can see the stream fine but it freezes and resumes frequently. Here’s the output of FFMPEG terminal log :

    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    frame=  117 fps= 16 q=22.0 size=     344kB time=00:00:04.04 bitrate= 697.8kbits/s speed=0.543x  

    It mentions speed at the end. I believe it should be close to 1x. I am not sure how to achieve that.

    And I am on the same network as server, I can post my python code if required. Need some ffmpeg guru to give me some advise.

    EDIT

    My input fps is actually 3.
    With '-use_wallclock_as_timestamps', '1' I can see in the log that speed is close to 1x.
    But HLS is not streaming live there’s 2 min delay, it halts and . Chris’s advise partially worked. I am not sure where exactly is the problem, I am starting to believe it has something to do with nginx-rtmp module.

    Here’s the final output, on left it’s flash and on right it’s hls. I am showing the ffmpeg options at the end.
    https://youtu.be/jsm6XNFOUE4