Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (52)

  • 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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

Sur d’autres sites (10573)

  • 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
  • cutting mp4 with codec copy results no audio in browser

    16 novembre 2020, par Luka

    I'm editing a video clip with ffmpeg. The original does not play in Firefox browser by itself. It does normally in Chromium. I do something like :

    &#xA;

    ffmpeg -ss 00:05:10 -i INPUT.mp4 -c copy OUTPUT.mp4&#xA;

    &#xA;

    the resulting clip plays in Firefox but there's no audio. This happens in Firefox (82.0.3), but not in Chromium (86.0.4240.75). In chromium the sound is ok.

    &#xA;

    If audio is reencoded with

    &#xA;

    ffmpeg -ss 00:05:10 -i INPUT.mp4 -c:v copy -ab 360kb OUTPUT.mp4&#xA;

    &#xA;

    resulting clip is playing ok in Firefox.

    &#xA;

    Could anyone explain what is happening here and is it possible to cut the mp4 without reencoding audio resulting in a clip that plays in Firefox too ?

    &#xA;

    Some data :

    &#xA;

    ffmpeg version 3.4.8-0ubuntu0.2

    &#xA;

    ffprobe INPUT.mp4 :

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;INPUT.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 1&#xA;    compatible_brands: iso4avc1isom&#xA;    creation_time   : 2020-11-13T18:45:37.000000Z&#xA;    com.apple.proapps.clipID: INPUT&#xA;    com.blackmagic-design.camera.dateRecorded: 2020:11:13&#xA;    com.apple.proapps.cameraName: 0&#xA;    com.blackmagic-design.camera.uuid: BDB766E79E646CBB82E3EB986EA1EA-0&#xA;  Duration: 02:01:38.00, start: 0.000000, bitrate: 6047 kb/s&#xA;    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 5909 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-11-13T18:45:37.000000Z&#xA;      handler_name    : ?Apple Alias Data Handler&#xA;      encoder         : H264/AVC&#xA;      timecode        : 19:45:35:04&#xA;    Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-11-13T18:45:37.000000Z&#xA;      handler_name    : ?Apple Alias Data Handler&#xA;      timecode        : 19:45:35:04&#xA;    Stream #0:2(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-11-13T18:45:37.000000Z&#xA;      handler_name    : ?Apple Alias Data Handler&#xA;      timecode        : 19:45:35:04&#xA;

    &#xA;

    ffprobe OUTPUT.mp4

    &#xA;

    &#xA;&#xA;&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;OUTPUT.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf57.83.100&#xA;  Duration: 01:34:48.02, start: -0.016000, bitrate: 6022 kb/s&#xA;    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 5889 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 12800 tbn, 25600 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      timecode        : 19:45:35:04&#xA;    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;    Stream #0:2(eng): Data: none (tmcd / 0x64636D74)&#xA;    Metadata:&#xA;      handler_name    : TimeCodeHandler&#xA;      timecode        : 19:45:35:04&#xA;

    &#xA;

    ffprobe the OUTPUT.mp4 that has audio re-encoded and works in Firefox :

    &#xA;

      Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf57.83.100&#xA;  Duration: 01:34:48.04, start: 0.000000, bitrate: 6160 kb/s&#xA;    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 5889 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 12800 tbn, 25600 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      timecode        : 19:45:35:04&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 265 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;    Stream #0:2(eng): Data: none (tmcd / 0x64636D74)&#xA;    Metadata:&#xA;      handler_name    : TimeCodeHandler&#xA;      timecode        : 19:45:35:04&#xA;

    &#xA;

    EDIT :

    &#xA;

    I'm providing links to original files, but a bit of warning, they are 4-5GB big each :

    &#xA;

      &#xA;
    1. original recording from blackmagic switcher/capture/recorder (this does not play in firefox at all, but does in Chromium)
    2. &#xA;

    3. cut version made with -codec copy (plays in firefox but no audio. plays in chromium ok)
    4. &#xA;

    5. cut version with re-encoded audio (plays ok in both firefox and chromium)
    6. &#xA;

    &#xA;