Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (72)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • 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

Sur d’autres sites (12796)

  • How to record frames with ffmpeg and finish the recording

    20 février 2024, par Jorge Augusto Wilchen

    In the following code, i trying to create a class to record frames from an IP camera (RTSP), save frames on a .avi file and finish the record, but, when i kill the operation, the video file may be corrupted. Have any other more safely way to stop the ffmpeg recording ?

    


    .cpp file :

    


    #include "videorecorder.h"


VideoRecorder::VideoRecorder(const std::string& rtspUrl) :
    url(rtspUrl),
    recording(false)
{

}

VideoRecorder::~VideoRecorder()
{
    end_record();
}

bool VideoRecorder::start_record(const std::string &fileName)
{
    if (recording) {
        std::cerr << "Already recording." << std::endl;
        return false;
    }

    std::string command = "ffmpeg -rtsp_transport udp -i " + url
                          + " -c:v mjpeg -preset fast -qp 0 " + fileName;

    videoWriter = popen(command.c_str(), "w");
    if (!videoWriter) {
        std::cerr << "Error opening ffmpeg process." << std::endl;
        return false;
    }

    recording = true;
    ffmpegProcessId = getpid();
    std::cout << "Recording started." << std::endl;
    return true;
}

bool VideoRecorder::end_record()
{
    if (recording) {
        if (videoWriter) {
            pid_t ffmpegPID = fileno(videoWriter);

            if (kill(ffmpegPID, SIGTERM) == 0) {
                std::cout << "Recording terminated successfully." << std::endl;
            } else {
                std::cerr << "Error terminating recording." << std::endl;
                return false;
            }

            int status = pclose(videoWriter);

            if (status == 0) {
                std::cout << "Recording ended successfully." << std::endl;
            } else {
                std::cerr << "Error ending recording. pclose status: " << status << std::endl;
                return false;
            }
        } else {
            std::cerr << "Error ending recording. videoWriter is nullptr." << std::endl;
            return false;
        }

        recording = false;
        return true;
    }

    return false;
}


    


    .h file :

    


    #ifndef VIDEORECORDER_H&#xA;#define VIDEORECORDER_H&#xA;&#xA;#include <string>&#xA;#include <iostream>&#xA;#include <fstream>&#xA;#include <cstdlib>&#xA;#include <csignal>&#xA;#include <sys></sys>wait.h>&#xA;&#xA;extern "C" {&#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;#include <libavformat></libavformat>avformat.h>&#xA;#include <libavutil></libavutil>avutil.h>&#xA;#include <libavutil></libavutil>opt.h>&#xA;#include <libswscale></libswscale>swscale.h>&#xA;#include &#xA;}&#xA;&#xA;#include <linux></linux>videodev2.h>&#xA;&#xA;#include <opencv2></opencv2>opencv.hpp>&#xA;#include <opencv2></opencv2>videoio.hpp>&#xA;#include <opencv2></opencv2>highgui/highgui.hpp>&#xA;&#xA;&#xA;class VideoRecorder&#xA;{&#xA;public:&#xA;    VideoRecorder(const std::string&amp; rtspUrl);&#xA;    ~VideoRecorder();&#xA;    bool start_record(const std::string&amp; fileName);&#xA;    bool end_record();&#xA;&#xA;private:&#xA;    std::string url;&#xA;    AVFormatContext *formatContext;&#xA;    AVStream *videoStream;&#xA;    AVCodecContext *codecContext;&#xA;    AVCodec *codec;&#xA;    SwsContext *swsContext;&#xA;    AVFrame *frame;&#xA;    AVPacket packet;&#xA;    bool recording;&#xA;    pid_t ffmpegProcessId;&#xA;    FILE* videoWriter;&#xA;};&#xA;&#xA;#endif // VIDEORECORDER_H&#xA;</csignal></cstdlib></fstream></iostream></string>

    &#xA;

    I'm using the ffmpeg lib becouse i need max speed on frames recording, and OpenCV and AV Lib is much slowness than ffmpeg.

    &#xA;

    This my terminal output after recording during 10 seconds (generated a file with 23 seconds duration) :

    &#xA;

    Recording started.&#xA;ffmpeg version 4.3.6-0&#x2B;deb11u1&#x2B;rpt5 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with gcc 10 (Debian 10.2.1-6)&#xA;  configuration: --prefix=/usr --extra-version=0&#x2B;deb11u1&#x2B;rpt5 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-librsvg --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-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-mmal --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-sand --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, rtsp, from &#x27;rtsp://admin:[password]@[ip]:[port]/live/0/MAIN&#x27;:&#xA;  Metadata:&#xA;    title           : RTSP Server&#xA;  Duration: N/A, start: 0.280000, bitrate: N/A&#xA;    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 25 fps, 25 tbr, 90k tbn, 50 tbc&#xA;Codec AVOption preset (Configuration preset) specified for output file #0 (/home/guardian-tech/Pictures/output_frame.avi) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.&#xA;Codec AVOption qp (Constant quantization parameter rate control method) specified for output file #0 (/home/guardian-tech/Pictures/output_frame.avi) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, avi, to &#x27;/home/guardian-tech/Pictures/output_frame.avi&#x27;:&#xA;  Metadata:&#xA;    INAM            : RTSP Server&#xA;    ISFT            : Lavf58.45.100&#xA;    Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj420p(pc), 1920x1080, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 mjpeg&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A&#xA;[rtsp @ 0x5592e7bb00] max delay reached. need to consume packet&#xA;[rtsp @ 0x5592e7bb00] RTP: missed 212 packets&#xA;[h264 @ 0x5592ebb790] concealing 2192 DC, 2192 AC, 2192 MV errors in I frame&#xA;rtsp://admin:[password]@[ip]:[port]/live/0/MAIN: corrupt decoded frame in stream 0&#xA;[rtsp @ 0x5592e7bb00] max delay reached. need to consume packet&#xA;[rtsp @ 0x5592e7bb00] RTP: missed 6 packets&#xA;[rtsp @ 0x5592e7bb00] max delay reached. need to consume packet&#xA;[rtsp @ 0x5592e7bb00] RTP: missed 14 packets&#xA;[h264 @ 0x5592f1bd30] cabac decode of qscale diff failed at 42 29&#xA;[h264 @ 0x5592f1bd30] error while decoding MB 42 29, bytestream 0&#xA;[h264 @ 0x5592f1bd30] concealing 4687 DC, 4687 AC, 4687 MV errors in I frame&#xA;rtsp://admin:[password]@[ip]:[port]/live/0/MAIN: corrupt decoded frame in stream 0&#xA;Error terminating recording.&#xA;

    &#xA;

  • How to convert Lagarith .avi videos to MP4 using WinFF

    24 avril 2014, par Moein

    I have a bunch of .avi videos encoded with Lagarith codec. We would like to convert them in to a lossless .MP4 format so that they could be easily played on html. I want to keep video specifications remain the same if it’s possible and just convert the video to MP4.

    I tried WinFF and also some manually written FFmpeg codes [without any specific reference to the Lagarith codec] but they all create a video which is not playable (neither with Windows Player nor with the HTML5 player). Also, FFmpeg returns exceptions like bellow.

    Edit :
    Here is the FFmpeg code generated by WinFF, this code gives me the following Exception :

    "C:\Program Files\WinFF\ffmpeg.exe" -y -i "C:\Desktop\Videos\input.avi" -f mp4 -r 29.97 -vcodec libx264 -preset slow -vf scale=640:480 -b:v 1000k -aspect 4:3 -flags +loop -cmp chroma -b:v 1250k -maxrate 1500k -bufsize 4M -bt 256k -refs 1 -bf 3 -coder 1 -me_method umh -me_range 16 -subq 7 -partitions +parti4x4+parti8x8+partp8x8+partb8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -qcomp 0.6 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -acodec libvo_aacenc -b:a 112k -ar 48000 -ac 2 "C:\Desktop\Videos\output.mp4"

    enter image description here

    2nd Edit :
    Here is the entire exception that I receive :

       C:\Users\Desktop\Videos>"c:\Program Files\ffmpeg\bin\ffmpeg.exe" -y -i 300
    4_KDSmall-08_02_2013-11_43_34_415.avi -crf 26 -vcodec libx264 -pix_fmt yuv420p -
    acodec libvo_aacenc -ac 1 -ar 16000 -b:a 32000 3004_KDSmall-08_02_2013-11_43_34_
    415.mp4
    ffmpeg version N-62439-g5e379cd Copyright (c) 2000-2014 the FFmpeg developers
     built on Apr 13 2014 22:08:47 with gcc 4.8.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
    cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
    ack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable
    -zlib
     libavutil      52. 76.100 / 52. 76.100
     libavcodec     55. 58.103 / 55. 58.103
     libavformat    55. 37.100 / 55. 37.100
     libavdevice    55. 13.100 / 55. 13.100
     libavfilter     4.  4.100 /  4.  4.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, avi, from '3004_KDSmall-08_02_2013-11_43_34_415.avi':
     Duration: 00:15:00.00, start: 0.000000, bitrate: 328 kb/s
       Stream #0:0: Video: lagarith (LAGS / 0x5347414C), rgb24, 320x244, 326 kb/s,
    7.50 tbr, 7.50 tbn, 7.50 tbc
    Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (3004_KD
    Small-08_02_2013-11_43_34_415.mp4) has not been used for any stream. The most li
    kely reason is either wrong type (e.g. a video option with no video streams) or
    that it is a private option of some encoder which was not actually used for any
    stream.
    [libx264 @ 0000000004288320] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    AVX
    [libx264 @ 0000000004288320] profile High, level 1.2
    [libx264 @ 0000000004288320] 264 - core 142 r2409 d6b4e63 - H.264/MPEG-4 AVC cod
    ec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 r
    ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed
    _ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pski
    p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 dec
    imate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b
    _adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=
    7 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=26.0 qcomp=0.6
    0 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '3004_KDSmall-08_02_2013-11_43_34_415.mp4':
     Metadata:
       encoder         : Lavf55.37.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x24
    4, q=-1--1, 15360 tbn, 7.50 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (lagarith -> libx264)
    Press [q] to stop, [?] for help
    frame= 1024 fps=0.0 q=27.0 size=      17kB time=00:02:08.80 bitrate=   1.1kbits/
    frame= 1947 fps=1943 q=27.0 size=     234kB time=00:04:11.86 bitrate=   7.6kbits
    frame= 2695 fps=1794 q=27.0 size=     659kB time=00:05:51.60 bitrate=  15.4kbits
    frame= 3971 fps=1983 q=27.0 size=     680kB time=00:08:41.73 bitrate=  10.7kbits
    frame= 5256 fps=2101 q=27.0 size=     702kB time=00:11:33.06 bitrate=   8.3kbits
    frame= 6074 fps=2023 q=27.0 size=    1018kB time=00:13:22.13 bitrate=  10.4kbits
    frame= 6343 fps=1810 q=27.0 size=    1625kB time=00:13:58.00 bitrate=  15.9kbits
    frame= 6588 fps=1644 q=27.0 size=    2247kB time=00:14:30.66 bitrate=  21.1kbits
    [lagarith @ 0000000004378fc0] Unsupported Lagarith frame type: 0x24
    [lagarith @ 00000000043796c0] Unsupported Lagarith frame type: 0x38
    [lagarith @ 000000000437a700] Unsupported Lagarith frame type: 0x4c
    [lagarith @ 000000000437d740] Unsupported Lagarith frame type: 0x60
    [lagarith @ 000000000437e760] Unsupported Lagarith frame type: 0x74
    [lagarith @ 0000000007fcb800] Unsupported Lagarith frame type: 0x88
    [lagarith @ 0000000007fcc820] Unsupported Lagarith frame type: 0x9c
    [lagarith @ 0000000007fd0860] Unsupported Lagarith frame type: 0xb0
    Error while decoding stream #0:0: Not yet implemented in FFmpeg, patches welcome

    [lagarith @ 0000000007fd0ce0] Unsupported Lagarith frame type: 0xc4
    Error while decoding stream #0:0: Not yet implemented in FFmpeg, patches welcome

    [lagarith @ 0000000004378fc0] Unsupported Lagarith frame type: 0xd8
    Error while decoding stream #0:0: Not yet implemented in FFmpeg, patches welcome

    [lagarith @ 00000000043796c0] Unsupported Lagarith frame type: 0xec
    frame= 6750 fps=1524 q=-1.0 Lsize=    2881kB time=00:14:59.73 bitrate=  26.2kbit
    s/s
    video:2802kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
    overhead: 2.842291%
    [libx264 @ 0000000004288320] frame I:29    Avg QP: 8.05  size:  2113
    [libx264 @ 0000000004288320] frame P:1874  Avg QP:11.85  size:   799
    [libx264 @ 0000000004288320] frame B:4847  Avg QP:13.60  size:   270
    [libx264 @ 0000000004288320] consecutive B-frames:  1.3%  6.0%  8.6% 84.1%
    [libx264 @ 0000000004288320] mb I  I16..4: 82.8%  4.8% 12.4%
    [libx264 @ 0000000004288320] mb P  I16..4:  0.2%  0.2%  0.3%  P16..4:  5.5%  4.9
    %  5.0%  0.0%  0.0%    skip:84.0%
    [libx264 @ 0000000004288320] mb B  I16..4:  0.0%  0.0%  0.1%  B16..8:  2.9%  2.2
    %  1.4%  direct: 0.7%  skip:92.7%  L0:55.4% L1:38.8% BI: 5.8%
    [libx264 @ 0000000004288320] 8x8 transform intra:13.7% inter:12.4%
    [libx264 @ 0000000004288320] coded y,uvDC,uvAC intra: 21.9% 42.5% 34.9% inter: 2
    .7% 5.4% 4.8%
    [libx264 @ 0000000004288320] i16 v,h,dc,p: 81%  9%  8%  2%
    [libx264 @ 0000000004288320] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 14% 49%  2%  3%
    4%  3%  2%  2%
    [libx264 @ 0000000004288320] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 14% 34%  4%  4%
    5%  4%  4%  3%
    [libx264 @ 0000000004288320] i8c dc,h,v,p: 72% 12% 12%  4%
    [libx264 @ 0000000004288320] Weighted P-Frames: Y:0.1% UV:0.1%
    [libx264 @ 0000000004288320] ref P L0: 42.5%  5.1% 29.3% 23.0%
    [libx264 @ 0000000004288320] ref B L0: 52.8% 37.8%  9.5%
    [libx264 @ 0000000004288320] ref B L1: 82.3% 17.7%
    [libx264 @ 0000000004288320] kb/s:25.50

    Any body could help me easily doing this conversion ?

  • VLC Player shows broken HLS stream with 4k HDR10 mkv

    8 avril 2023, par goodkid38

    I am trying to convert a 4k mkv to an HLS stream but I am not having any luck. I have tried a few ffmpeg commands to try and fix the issue but none have worked. Here are the commands I have tried.

    &#xA;

      &#xA;
    1. Basic copy command :
    2. &#xA;

    &#xA;

    ffmpeg -i "video.mkv" -c copy -f hls "plexTemp/out.m3u8"

    &#xA;

      &#xA;
    1. Command used to see if it was an HDR color issue :
    2. &#xA;

    &#xA;

    ffmpeg -i "video.mkv" -c copy -pix_fmt yuv420p10le -f hls "plexTemp/out.m3u8"&#xA;3. Command used to revert to 8 bit color :

    &#xA;

    ffmpeg -i "video.mkv" -c copy -pix_fmt yuv420p -f hls "plexTemp/out.m3u8"

    &#xA;

      &#xA;
    1. I tried removing extra streams and just focusing on audio and video :
    2. &#xA;

    &#xA;

    ffmpeg -i "out.mkv" -map 0:v:0 -map 0:a:1 -c copy -pix_fmt yuv420p10le -f hls "plexTemp/out.m3u8"

    &#xA;

    I also saw these warnings when running each command.Stream HEVC is not hvc1, you should use tag:v hvc1 to set it.&#xA;And this

    &#xA;

    [matroska,webm @ 000001d7921803c0] Stream #12: not enough frames to estimate rate; consider increasing probesize&#xA;[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;

    &#xA;

    So I tried increasing the analyzeduration and probesize and adding the tag like so :&#xA;ffmpeg -analyzeduration 10000000 -probesize 10000000 -i "out.mkv" -c copy -tag:v hvc1 -f hls "plexTemp/out.m3u8"

    &#xA;

    To no avail. Here is what the output looks like on VLC. It's mostly black with a few lines of color that randomly change.enter image description here

    &#xA;

    On my TV I see this :

    &#xA;

    enter image description here

    &#xA;

    One thing I see that stands out in ffmpegs output is this :

    &#xA;

    [hls @ 00000207239a9ec0] Opening &#x27;plexTemp/out0.ts&#x27; for writing7 bitrate=  -0.0kbits/s speed=N/A&#xA;[hls @ 00000207239a9ec0] Opening &#x27;plexTemp/out.m3u8.tmp&#x27; for writing&#xA;

    &#xA;

    Here is the audio and video info on the mkv :

    &#xA;

    General&#xA;Unique ID                                : 92280908398971492516286250889389584022 (0x456CA80EF29B1357B572719D6EC4AE96)&#xA;Complete name                            : I:\video.mkv&#xA;Format                                   : Matroska&#xA;Format version                           : Version 2&#xA;File size                                : 49.4 GiB&#xA;Duration                                 : 1 h 39 min&#xA;Overall bit rate mode                    : Variable&#xA;Overall bit rate                         : 71.2 Mb/s&#xA;Frame rate                               : 23.976 FPS&#xA;Movie name                               : video&#xA;Encoded date                             : 2023-04-06 22:39:53 UTC&#xA;Writing application                      : MakeMKV v1.16.7 win(x64-release)&#xA;Writing library                          : libmakemkv v1.16.7 (1.3.10/1.5.2) win(x64-release)&#xA;Cover                                    : Yes&#xA;Attachments                              : cover.jpg&#xA;&#xA;Video&#xA;ID                                       : 1&#xA;ID in the original source medium         : 4113 (0x1011)&#xA;Format                                   : HEVC&#xA;Format/Info                              : High Efficiency Video Coding&#xA;Format profile                           : Main 10@L5.1@High&#xA;HDR format                               : SMPTE ST 2086, HDR10 compatible&#xA;Codec ID                                 : V_MPEGH/ISO/HEVC&#xA;Duration                                 : 1 h 39 min&#xA;Bit rate                                 : 63.6 Mb/s&#xA;Width                                    : 3 840 pixels&#xA;Height                                   : 2 160 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 23.976 (24000/1001) FPS&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0 (Type 2)&#xA;Bit depth                                : 10 bits&#xA;Bits/(Pixel*Frame)                       : 0.320&#xA;Stream size                              : 44.1 GiB (89%)&#xA;Writing library                          : ATEME Titan File 3.9.6 (4.9.6.2)        &#xA;Language                                 : English&#xA;Default                                  : No&#xA;Forced                                   : No&#xA;Color range                              : Limited&#xA;Color primaries                          : BT.2020&#xA;Transfer characteristics                 : PQ&#xA;Matrix coefficients                      : BT.2020 non-constant&#xA;Mastering display color primaries        : Display P3&#xA;Mastering display luminance              : min: 0.0050 cd/m2, max: 1000 cd/m2&#xA;Maximum Content Light Level              : 1000 cd/m2&#xA;Maximum Frame-Average Light Level        : 140 cd/m2&#xA;Original source medium                   : Blu-ray&#xA;&#xA;Audio #1&#xA;ID                                       : 2&#xA;ID in the original source medium         : 4352 (0x1100)&#xA;Format                                   : DTS XLL X&#xA;Format/Info                              : Digital Theater Systems&#xA;Commercial name                          : DTS:X&#xA;Codec ID                                 : A_DTS&#xA;Duration                                 : 1 h 39 min&#xA;Bit rate mode                            : Variable&#xA;Bit rate                                 : 4 174 kb/s&#xA;Channel(s)                               : 8 channels&#xA;Channel layout                           : C L R LFE Lb Rb Lss Rss&#xA;Sampling rate                            : 48.0 kHz&#xA;Frame rate                               : 93.750 FPS (512 SPF)&#xA;Bit depth                                : 24 bits&#xA;Stream size                              : 2.89 GiB (6%)&#xA;Title                                    : Surround 7.1&#xA;Language                                 : English&#xA;Default                                  : Yes&#xA;Forced                                   : No&#xA;Original source medium                   : Blu-ray&#xA;Here is information on the HLS output:&#xA;General&#xA;Complete name                            : I:\out.m3u8&#xA;Format                                   : HLS&#xA;Format profile                           : Media&#xA;File size                                : 67.4 MiB&#xA;Duration                                 : 8 s 138 ms&#xA;Overall bit rate mode                    : Variable&#xA;Overall bit rate                         : 69.4 Mb/s&#xA;Frame rate                               : 23.976 FPS&#xA;

    &#xA;

    And my&#xA;Here is the output of my HLS stream :

    &#xA;

    Video&#xA;ID                                       : 256 (0x100)&#xA;Menu ID                                  : 1 (0x1)&#xA;Format                                   : HEVC&#xA;Format/Info                              : High Efficiency Video Coding&#xA;Format profile                           : Main 10@L5.1@High&#xA;HDR format                               : SMPTE ST 2086, HDR10 compatible&#xA;Muxing mode                              : MPEG-TS&#xA;Codec ID                                 : 36&#xA;Duration                                 : 8 s 49 ms&#xA;Width                                    : 3 840 pixels&#xA;Height                                   : 2 160 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate                               : 23.976 (24000/1001) FPS&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0 (Type 2)&#xA;Bit depth                                : 10 bits&#xA;Writing library                          : ATEME Titan File 3.9.6 (4.9.6.2)        &#xA;Color range                              : Limited&#xA;Color primaries                          : BT.2020&#xA;Transfer characteristics                 : PQ&#xA;Matrix coefficients                      : BT.2020 non-constant&#xA;Mastering display color primaries        : Display P3&#xA;Mastering display luminance              : min: 0.0050 cd/m2, max: 1000 cd/m2&#xA;Maximum Content Light Level              : 1000 cd/m2&#xA;Maximum Frame-Average Light Level        : 140 cd/m2&#xA;Source                                   : out92.ts&#xA;&#xA;Audio&#xA;ID                                       : 257 (0x101)&#xA;Menu ID                                  : 1 (0x1)&#xA;Format                                   : DTS XLL X&#xA;Format/Info                              : Digital Theater Systems&#xA;Commercial name                          : DTS:X&#xA;Muxing mode                              : MPEG-TS&#xA;Codec ID                                 : 130&#xA;Duration                                 : 8 s 138 ms&#xA;Bit rate mode                            : Variable&#xA;Channel(s)                               : 8 channels&#xA;Channel layout                           : C L R LFE Lb Rb Lss Rss&#xA;Sampling rate                            : 48.0 kHz&#xA;Frame rate                               : 93.750 FPS (512 SPF)&#xA;Bit depth                                : 24 bits&#xA;Delay relative to video                  : -125 ms&#xA;Language                                 : English&#xA;Source                                   : out92.ts&#xA;

    &#xA;