Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (58)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7622)

  • Parse dynamic mpd file with Media Source Extensions

    17 février 2023, par FrankC

    I just started learning about adaptive streaming, and currently I'm working on a project that needs showing a live video. In order to control some of the elements in mpd file, I determined to use MSE instead of dash.js. I refer to the code at the following URL :https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/samples/dn551368(v=vs.85)
But I found out that there is no "Initialization" tag or "range" attribute in my mpd file. I don't find any relative attribute as well. By the way I'm use nginx-rtmp + ffmpeg to generate dash file.
So here is my dash file looks like

    


    &lt;?xml version="1.0"?>&#xA; &#xA;  <period start="PT0S">&#xA;    &#xA;      &#xA;        &#xA;          <segmenttimeline>&#xA;             <s t="0" d="10000"></s>&#xA;             <s t="10000" d="10000"></s>&#xA;             <s t="20000" d="5000"></s>&#xA;             <s t="25000" d="10000"></s>&#xA;          </segmenttimeline>&#xA;        &#xA;      &#xA;    &#xA;  </period>&#xA;&#xA;

    &#xA;

    My question is :&#xA;1.Did I have any missing parameters in using ffmpeg or nginx-rtmp resulting in losting tag in mpd file ?&#xA;2.Or there is other way to setup "Initialization"/"range" attribute and let my program work ?&#xA;3.I also curious about why my mpd file doesn't have a baseURL element ?

    &#xA;

    ※My mpd file works fine with dash.js, I can see the video properly

    &#xA;

    THANKS A LOT

    &#xA;

  • Gstreamer convert and display video v4l2 - tee problems in rust

    27 mars 2023, par d3im

    I have USB grabber v4l2 source and I want to tee stream to autovideosink and x264enc to file (now as fake black hole)

    &#xA;

    When I disable one or another branch it works but together Pipeline goes :

    &#xA;

    Pipeline state changed from Null to Ready&#xA;Pipeline state changed from Ready to Paused&#xA;

    &#xA;

    and stays there never switches to Playing

    &#xA;

    gst-launch-1.0 with similar functionality works well.

    &#xA;

        gst::Element::link_many(&amp;[&amp;pw_video, &amp;v_caps, &amp;vid_queuey, &amp;vid_tee]).unwrap();&#xA;    gst::Element::link_many(&amp;[&amp;vid_queue1, &amp;autovideoconvert, &amp;vid_queuex, &amp;autovideosink]).unwrap();&#xA;    gst::Element::link_many(&amp;[&amp;vid_queue2, &amp;autovideoconvert_x264, &amp;vid_queue3, &amp;x264, &amp;vid_queue4, &amp;fake]).unwrap();&#xA;&#xA;    let tee_display_pad = vid_tee.request_pad_simple("src_10").unwrap();&#xA;    let vid_queue1_pad = vid_queue1.static_pad("sink").unwrap();&#xA;&#xA;    tee_display_pad.link(&amp;vid_queue1_pad).unwrap();&#xA;&#xA;    let tee_convert_pad = vid_tee.request_pad_simple("src_20").unwrap();&#xA;    let vid_queue2_pad = vid_queue2.static_pad("sink").unwrap();&#xA;&#xA;    tee_convert_pad.link(&amp;vid_queue2_pad).unwrap();&#xA;

    &#xA;

    How can I use tee in rust properly to have playable pipeline with two branches ?

    &#xA;

    Update : I read some posts about increasing queue size, so I tried for this and then all queues :

    &#xA;

        let vid_queue1 = gst::ElementFactory::make("queue")&#xA;        .name("queue1")&#xA;        .property("max-size-buffers", 5000 as u32)&#xA;        .property("max-size-bytes", 1048576000 as u32)&#xA;        .property("max-size-time", 60000000000 as u64)&#xA;        .build()&#xA;        .expect("queue1");&#xA;

    &#xA;

    but it didn't help so I tried set zero latency :

    &#xA;

        let x264 = gst::ElementFactory::make("x264enc")&#xA;        .name("x264")&#xA;        .property_from_str("speed-preset", "ultrafast")&#xA;        .property_from_str("pass", "qual")&#xA;        .property_from_str("tune", "zerolatency")&#xA;        .property("quantizer", 0 as u32)&#xA;        .property("threads", 8 as u32)&#xA;        .build()&#xA;        .expect("!x264");&#xA;

    &#xA;

    and it works now. But comparable gst-launch-1.0 settings didn't had such option - only queues sizes increased.

    &#xA;

    Is there any other option than setting zerolatency ?

    &#xA;

  • Unable to get a frame using ffmpeg [closed]

    24 mars 2023, par Prakhar

    I have an SRT stream, which I am listening on an Ubuntu server. I want to be able to take a frame as a PNG at any given time, so that I can analyze that image. Given that it's a live stream, I should not be defining time of when do I want to download the frame, it should be instantaneous.

    &#xA;

    I tried following but in vain

    &#xA;

    ffmpeg -i &#x27;srt://10.174.190.221:5000?streamid=ABCDE&#x27; %04d.png&#xA;

    &#xA;

    This just starts the streaming, and does not produce the PNG files. Output which I get on screen

    &#xA;

        Last message repeated 1 times&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] no frame!&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;    Last message repeated 1 times&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] no frame!&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;    Last message repeated 1 times&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] no frame!&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;    Last message repeated 1 times&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] no frame!&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;    Last message repeated 1 times&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] no frame!&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;    Last message repeated 1 times&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] non-existing PPS 0 referenced&#xA;[h264 @ 0x7317c80] decode_slice_header error&#xA;[h264 @ 0x7317c80] no frame!&#xA;&#xA;Input #0, mpegts, from &#x27;srt://10.174.190.221:5000?streamid=ABCDE&#x27;:&#xA;  Duration: N/A, start: 61221.726022, bitrate: N/A&#xA;  Program 1 &#xA;    Metadata:&#xA;      service_name    : ABCDE&#xA;      service_provider: VITEC&#xA;  Stream #0:0[0x4da]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn&#xA;  Stream #0:1[0x2d](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 128 kb/s&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> png (native))&#xA;Press [q] to stop, [?] for help&#xA;Finishing stream 0:0 without any data written to it.&#xA;Output #0, image2, to &#x27;%04d.png&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf59.27.100&#xA;  Stream #0:0: Video: png, rgb24, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 59.94 fps, 59.94 tbn&#xA;    Metadata:&#xA;      encoder         : Lavc59.37.100 png&#xA;frame=    0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=   0x    &#xA;video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;

    &#xA;

    Would appreciate any help

    &#xA;