Recherche avancée

Médias (1)

Mot : - Tags -/punk

Autres articles (3)

  • Les images

    15 mai 2013
  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (1816)

  • ffmpeg convert MJPEG to H.265

    19 juillet 2023, par Андрей Тернити

    I want use ffmpeg to encode MJPEG -> h265. I need use some thread amount. For example 10 threads.

    &#xA;

    But my code use all cores of my CPU... Why it ignore numa-pools ?

    &#xA;

    ffmpeg -loglevel verbose -i v.raw -pix_fmt yuv420p -c:v libx265 -vtag hvc1 outf.mp4 -x265-params numa-pools="10"&#xA;

    &#xA;

    ffmpeg says :

    &#xA;

    ...&#xA;x265 [info]: Thread pool created using 16 threads&#xA;...&#xA;

    &#xA;

    It is true. I also can see that all my cores are busy in htop.

    &#xA;

    This code use all cores of my CPU too...

    &#xA;

    ffmpeg -loglevel verbose -threads 1  -i v.raw -pix_fmt yuv420p -c:v libx265 -vtag hvc1 outf.mp4 -x265-params numa-pools="10"&#xA;

    &#xA;

    $ ffmpeg —version

    &#xA;

    ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;

    &#xA;

    I have raw MJPEG video file. 3840x2160, 25fps, YUYV 4:2:2. I got it this way. (Now I set stream-count=2 to decrease size of my file for users, usually I set 1000)

    &#xA;

    v4l2-ctl --device=/dev/video0 --set-fmt-video=width=3840,height=2160,pixelformat=MJPG --stream-mmap --set-parm=25 --stream-to=v.raw --stream-count=2&#xA;

    &#xA;

    Here you can download v.raw

    &#xA;

    P.S. I also try drop ffmpeg and use x265 cli directly, but... What is outf.hevc ? No one player can open this...

    &#xA;

    x265 --input v.raw --fps 25 --input-res 3840x2160 --output outf.hevc&#xA;

    &#xA;

  • Using FFMPEG to merge video frames back into a video with subtitle messes up the audio when seeking

    26 juin 2023, par YoungDON

    I broke down a h265 video into frames and try to merge them back together with its original audio, subtitle and fonts. The resulting video has an issue where when I try to seek at some points in the video, the audio stops playing. And even when I don't seek, at a point the video hangs and the audio keeps playing. Seconds later, the video resumes, but now, video and audio are out of sync. This doesn't happen with the original video.

    &#xA;

    The reason I'm breaking the video into frames and merging them is because I want to upscale each frame. But I'm going to leave that part out because this issue occurs with the original unscaled frames.

    &#xA;

    Here's the details of the original video. Notice it has video, audio and two font streams.

    &#xA;

    .\ffmpeg.exe -i "input.mkv"&#xA;&#xA;Input #0, matroska,webm, from &#x27;input.mkv&#x27;:&#xA;  Metadata:&#xA;    encoder         : libebml v1.3.10 &#x2B; libmatroska v1.5.2&#xA;    creation_time   : 2021-01-07T00:20:19.000000Z&#xA;  Duration: 00:23:02.05, start: 0.000000, bitrate: 320 kb/s&#xA;    Stream #0:0: Video: hevc (Main), yuv420p(tv), 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)&#xA;    Metadata:&#xA;      BPS-eng         : 278671&#xA;      DURATION-eng    : 00:23:02.006000000&#xA;      NUMBER_OF_FRAMES-eng: 33135&#xA;      NUMBER_OF_BYTES-eng: 48140731&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;    Stream #0:1(jpn): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp&#xA;    Metadata:&#xA;      BPS-eng         : 36166&#xA;      DURATION-eng    : 00:23:02.016000000&#xA;      NUMBER_OF_FRAMES-eng: 32391&#xA;      NUMBER_OF_BYTES-eng: 6247833&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;    Stream #0:2(eng): Subtitle: ass (default)&#xA;    Metadata:&#xA;      BPS-eng         : 76&#xA;      DURATION-eng    : 00:21:20.790000000&#xA;      NUMBER_OF_FRAMES-eng: 246&#xA;      NUMBER_OF_BYTES-eng: 12264&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;    Stream #0:3: Attachment: ttf&#xA;    Metadata:&#xA;      filename        : Roboto-Medium.ttf&#xA;      mimetype        : application/x-truetype-font&#xA;    Stream #0:4: Attachment: ttf&#xA;    Metadata:&#xA;      filename        : Roboto-MediumItalic.ttf&#xA;      mimetype        : application/x-truetype-font&#xA;

    &#xA;

    Here's how I break it into frames

    &#xA;

    .\ffmpeg.exe -i "input.mkv" -qscale:v 1 -qmin 1 -qmax 1 -vsync 0 "InputFolder/frame%08d.png"&#xA;

    &#xA;

    Here's how I merge the frames back to video with all the original streams except the video

    &#xA;

    .\ffmpeg.exe -r 23.98 -i "InputFolder\frame%08d.png" -i "input.mkv" -map 0:v:0 -map 1 -map -1:v -c:a copy -c:v libx265 -r 23.98 -pix_fmt yuv420p "output.mkv"&#xA;

    &#xA;

    Here's the details of the resulting video :

    &#xA;

    .\ffmpeg.exe -i "output.mkv"&#xA;&#xA;Input #0, matroska,webm, from &#x27;output.mkv&#x27;:&#xA;  Metadata:&#xA;    ENCODER         : Lavf58.45.100&#xA;  Duration: 00:23:02.05, start: 0.000000, bitrate: 245 kb/s&#xA;    Stream #0:0: Video: hevc (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)&#xA;    Metadata:&#xA;      ENCODER         : Lavc58.91.100 libx265&#xA;      DURATION        : 00:23:01.777000000&#xA;    Stream #0:1(jpn): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      BPS-eng         : 36166&#xA;      DURATION-eng    : 00:23:02.016000000&#xA;      NUMBER_OF_FRAMES-eng: 32391&#xA;      NUMBER_OF_BYTES-eng: 6247833&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;      DURATION        : 00:23:02.046000000&#xA;    Stream #0:2(eng): Subtitle: ass (default)&#xA;    Metadata:&#xA;      BPS-eng         : 76&#xA;      DURATION-eng    : 00:21:20.790000000&#xA;      NUMBER_OF_FRAMES-eng: 246&#xA;      NUMBER_OF_BYTES-eng: 12264&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;      ENCODER         : Lavc58.91.100 ssa&#xA;      DURATION        : 00:21:21.580000000&#xA;    Stream #0:3: Attachment: ttf&#xA;    Metadata:&#xA;      filename        : Roboto-Medium.ttf&#xA;      mimetype        : application/x-truetype-font&#xA;    Stream #0:4: Attachment: ttf&#xA;    Metadata:&#xA;      filename        : Roboto-MediumItalic.ttf&#xA;      mimetype        : application/x-truetype-font&#xA;

    &#xA;

    One thing to note is that I've done this successfully numerous times with h264 videos. No audio issues. Another thing to note which might be more relevant is that when I merge the frames with only the original audio stream (as opposed to all original streams except video), the audio issue does not occur.

    &#xA;

    .\ffmpeg.exe -r 23.98 -i "InputFolder\frame%08d.png" -i "input.mkv" -map 0:v:0 -map 1:a:0 -c:a copy -c:v libx265 -r 23.98 -pix_fmt yuv420p "output.mkv"&#xA;&#xA;Produces no audio issues. But this isn&#x27;t good for me because I want the subtitles and fonts from the original video.&#xA;

    &#xA;

    If anyone needs me to upload the original video somewhere so they can reproduce it, let me know.

    &#xA;

    Edit : Also note that Merging the frames with the original audio AND subtitle stream, i.e without the fonts, the issue remains.

    &#xA;

  • fftp server stream server error- connection to tcp:10.10.X.X timeout=0 faild no route to host

    1er juillet 2023, par slowmonk

    When attempting to stream the webcam using RTSP, I encountered persistent timeout issues.

    &#xA;

    https://hub.docker.com/r/aler9/rtsp-simple-server

    &#xA;

    docker run -p 6020:8000 aler9/rtsp-simple-server:latest&#xA;2023/07/01 20:15:24 INF MediaMTX v0.23.7&#xA;2023/07/01 20:15:24 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)&#xA;2023/07/01 20:15:24 INF [RTMP] listener opened on :1935&#xA;2023/07/01 20:15:24 INF [HLS] listener opened on :8888&#xA;2023/07/01 20:15:24 INF [WebRTC] listener opened on :8889 (HTTP)&#xA;&#xA;$ sudo ffmpeg -f v4l2 -framerate 24 -video_size 480x480 -i /dev/video0 -f rtsp -rtsp_transport tcp rtsp://192.168.XXX.XXX:8554/webCamStream&#xA;

    &#xA;

    following error occur

    &#xA;

    ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  libavutil      56. 70.100 / 56. 70.100&#xA;  libavcodec     58.134.100 / 58.134.100&#xA;  libavformat    58. 76.100 / 58. 76.100&#xA;  libavdevice    58. 13.100 / 58. 13.100&#xA;  libavfilter     7.110.100 /  7.110.100&#xA;  libswscale      5.  9.100 /  5.  9.100&#xA;  libswresample   3.  9.100 /  3.  9.100&#xA;  libpostproc    55.  9.100 / 55.  9.100&#xA;[video4linux2,v4l2 @ 0x5642e55137c0] The V4L2 driver changed the video from 480x480 to 640x480&#xA;[video4linux2,v4l2 @ 0x5642e55137c0] The driver changed the time per frame from 1/24 to 1/30&#xA;Input #0, video4linux2,v4l2, from &#x27;/dev/video0&#x27;:&#xA;  Duration: N/A, start: 46142.014949, bitrate: 147456 kb/s&#xA;  Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))&#xA;Press [q] to stop, [?] for help&#xA;[tcp @ 0x5642e55e34c0] Connection to tcp://10.10.1068:9988?timeout=0 failed: No route to host&#xA;Could not write header for output file #0 (incorrect codec parameters ?): No route to host&#xA;Error initializing output stream 0:0 --&#xA;

    &#xA;