Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (48)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (9716)

  • "wrong sample count" When reading MP4 files using OpenCV

    26 octobre 2022, par Object Unknown

    I want to marge some mp4 videos using OpenCV library, but when I try to read those videos using cv::VideoCapture, it outputs like that :

    


    [mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB9AAE9D80] co located POCs unavailable
[h264 @ 000001EB9AAE7D80] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB9A128600] co located POCs unavailable
[h264 @ 000001EB9A129840] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB9AA28E40] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB9A169B00] co located POCs unavailable
[h264 @ 000001EB9A16B680] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB960CD680] co located POCs unavailable
[h264 @ 000001EB960CC8C0] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB9A81DDC0] co located POCs unavailable
[h264 @ 000001EB9A81B000] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB960CB200] co located POCs unavailable
[h264 @ 000001EB960CBFC0] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB99F206C0] co located POCs unavailable
[h264 @ 000001EB99F20B40] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB9A81D480] co located POCs unavailable
[h264 @ 000001EB9A81B000] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB9AD02C00] co located POCs unavailable
[h264 @ 000001EB9AD02300] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB9A81B480] co located POCs unavailable
[h264 @ 000001EB9A81B940] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[h264 @ 000001EB9AD02780] co located POCs unavailable
[h264 @ 000001EB9AD01E40] co located POCs unavailable
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001EB96084B80] wrong sample count


    


    and just exited with exit value 0. I want to know why it is reporting this and how to solve it please.

    


    Heres my demo code :

    


    #include <string>&#xA;#include <iostream>&#xA;#include <opencv2></opencv2>core/core.hpp>&#xA;#include <opencv2></opencv2>video/video.hpp>&#xA;#include <opencv2></opencv2>imgproc/imgproc.hpp>&#xA;#include <opencv2></opencv2>videoio/videoio.hpp>&#xA;#include <opencv2></opencv2>highgui/highgui.hpp>&#xA;&#xA;int main()&#xA;{&#xA;        cv::Mat frame;&#xA;        cv::VideoCapture vcap;&#xA;        for (int i = 1; i &lt;= 60; i&#x2B;&#x2B;)&#xA;        {&#xA;            if (!vcap.open("G:\\Users\\15819\\Desktop\\Demo\\demo (" &#x2B; std::to_string(i) &#x2B; ").mp4"))&#xA;            {&#xA;                std::cout &lt;&lt; "Failed to Open File: demo (" &lt;&lt; i &lt;&lt; ").mp4" &lt;&lt; std::endl;&#xA;                continue;&#xA;            }&#xA;            while (!vcap.read(frame))&#xA;                cv::imshow("video", frame);&#xA;        }&#xA;        return 0;&#xA;}&#xA;</iostream></string>

    &#xA;

    I installed the OpenCV and FFmpeg library using vcpkg, here's the library information (displayed by vcpkg list command) :

    &#xA;

    ffmpeg:x64-windows                                4.4.1#21            a library to decode, encode, transcode, mux, dem...&#xA;ffmpeg:x86-windows                                4.4.1#21            a library to decode, encode, transcode, mux, dem...&#xA;ffmpeg[avcodec]:x64-windows                                           Build the avcodec library&#xA;ffmpeg[avcodec]:x86-windows                                           Build the avcodec library&#xA;ffmpeg[avdevice]:x64-windows                                          Build the avdevice library&#xA;ffmpeg[avdevice]:x86-windows                                          Build the avdevice library&#xA;ffmpeg[avfilter]:x64-windows                                          Build the avfilter library&#xA;ffmpeg[avfilter]:x86-windows                                          Build the avfilter library&#xA;ffmpeg[avformat]:x64-windows                                          Build the avformat library&#xA;ffmpeg[avformat]:x86-windows                                          Build the avformat library&#xA;ffmpeg[openh264]:x64-windows                                          H.264 de/encoding via openh264&#xA;ffmpeg[openh264]:x86-windows                                          H.264 de/encoding via openh264&#xA;ffmpeg[swresample]:x64-windows                                        Build the swresample library&#xA;ffmpeg[swresample]:x86-windows                                        Build the swresample library&#xA;ffmpeg[swscale]:x64-windows                                           Build the swscale library&#xA;ffmpeg[swscale]:x86-windows                                           Build the swscale library&#xA;opencv4:x64-windows                               4.6.0#6             computer vision library&#xA;opencv4:x86-windows                               4.6.0#6             computer vision library&#xA;opencv4[default-features]:x64-windows                                 Platform-dependent default features&#xA;opencv4[default-features]:x86-windows                                 Platform-dependent default features&#xA;opencv4[dnn]:x64-windows                                              Enable dnn module&#xA;opencv4[dnn]:x86-windows                                              Enable dnn module&#xA;opencv4[ffmpeg]:x64-windows                                           ffmpeg support for opencv&#xA;opencv4[ffmpeg]:x86-windows                                           ffmpeg support for opencv&#xA;opencv4[jpeg]:x64-windows                                             JPEG support for opencv&#xA;opencv4[jpeg]:x86-windows                                             JPEG support for opencv&#xA;opencv4[png]:x64-windows                                              PNG support for opencv&#xA;opencv4[png]:x86-windows                                              PNG support for opencv&#xA;opencv4[qt]:x64-windows                                               Qt GUI support for opencv&#xA;opencv4[qt]:x86-windows                                               Qt GUI support for opencv&#xA;opencv4[quirc]:x64-windows                                            Enable QR code module&#xA;opencv4[quirc]:x86-windows                                            Enable QR code module&#xA;opencv4[tiff]:x64-windows                                             TIFF support for opencv&#xA;opencv4[tiff]:x86-windows                                             TIFF support for opencv&#xA;opencv4[webp]:x64-windows                                             WebP support for opencv&#xA;opencv4[webp]:x86-windows                                             WebP support for opencv&#xA;opencv:x64-windows                                4.6.0               Computer vision library&#xA;opencv:x86-windows                                4.6.0               Computer vision library&#xA;opencv[default-features]:x64-windows                                  Platform-dependent default features&#xA;opencv[default-features]:x86-windows                                  Platform-dependent default features&#xA;opencv[dnn]:x64-windows                                               Enable dnn module&#xA;opencv[dnn]:x86-windows                                               Enable dnn module&#xA;opencv[jpeg]:x64-windows                                              JPEG support for opencv&#xA;opencv[jpeg]:x86-windows                                              JPEG support for opencv&#xA;opencv[png]:x64-windows                                               PNG support for opencv&#xA;opencv[png]:x86-windows                                               PNG support for opencv&#xA;opencv[quirc]:x64-windows                                             Enable QR code module&#xA;opencv[quirc]:x86-windows                                             Enable QR code module&#xA;opencv[tiff]:x64-windows                                              TIFF support for opencv&#xA;opencv[tiff]:x86-windows                                              TIFF support for opencv&#xA;opencv[webp]:x64-windows                                              WebP support for opencv&#xA;opencv[webp]:x86-windows                                              WebP support for opencv&#xA;

    &#xA;

    Other Environments :

    &#xA;

    OS: Windows 11 x64 Professional Workstation&#xA;IDE: Visual Studio 2022&#xA;Project C&#x2B;&#x2B; Standard: C&#x2B;&#x2B;14&#xA;Project Platform: x64 Release&#xA;

    &#xA;

  • Stream is not appearing on youtube

    1er novembre 2022, par AMRITESH GUPTA

    I am trying to stream a captured stream to youtube live through FFmpeg, but the stream is not appearing on youtube. I tried giving input from an mp4 file, and it worked perfectly but providing input as a buffer through stdin gives nothing.

    &#xA;

    FFmpeg command

    &#xA;

    ffmpeg -rtbufsize 100M -report -i - -v error -c:v libx264 -preset veryfast -tune zerolatency -g:v 60 -c:a aac -strict -2 -ar 44100 -b:a 64k -y -use_wallclock_as_timestamps 1 -async 1 -f flv ${youtubeURL}

    &#xA;

    I used -report for generating a log report, and I couldn't find anything wrong with it.

    &#xA;

    Here is snippet of log file

    &#xA;

    ffmpeg started on 2022-11-01 at 09:42:32&#xA;Report written to "ffmpeg-20221101-094232.log"&#xA;Log level: 48&#xA;Command line:&#xA;ffmpeg -rtbufsize 100M -report -i - -v error -c:v libx264 -preset veryfast -tune zerolatency -g:v 60 -c:a aac -strict -2 -ar 44100 -b:a 64k -y -use_wallclock_as_timestamps 1 -async 1 -f flv rtmp://a.rtmp.youtube.com/live2/pxjt-j9g5-ygv8-0000-6w8h&#xA;ffmpeg version 2022-10-27-git-00b03331a0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --ena  libavutil      57. 39.101 / 57. 39.101&#xA;  libavcodec     59. 51.100 / 59. 51.100&#xA;  libavformat    59. 34.101 / 59. 34.101&#xA;  libavdevice    59.  8.101 / 59.  8.101&#xA;  libavfilter     8. 49.101 /  8. 49.101&#xA;  libswscale      6.  8.112 /  6.  8.112&#xA;  libswresample   4.  9.100 /  4.  9.100&#xA;  libpostproc    56.  7.100 / 56.  7.100&#xA;Splitting the commandline.&#xA;Reading option &#x27;-rtbufsize&#x27; ... matched as AVOption &#x27;rtbufsize&#x27; with argument &#x27;100M&#x27;.&#xA;Reading option &#x27;-report&#x27; ... matched as option &#x27;report&#x27; (generate a report) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;-&#x27;.&#xA;Reading option &#x27;-v&#x27; ... matched as option &#x27;v&#x27; (set logging level) with argument &#x27;error&#x27;.&#xA;Reading option &#x27;-c:v&#x27; ... matched as option &#x27;c&#x27; (codec name) with argument &#x27;libx264&#x27;.&#xA;Reading option &#x27;-preset&#x27; ... matched as AVOption &#x27;preset&#x27; with argument &#x27;veryfast&#x27;.&#xA;Reading option &#x27;-tune&#x27; ... matched as AVOption &#x27;tune&#x27; with argument &#x27;zerolatency&#x27;.&#xA;Reading option &#x27;-g:v&#x27; ... matched as AVOption &#x27;g:v&#x27; with argument &#x27;60&#x27;.&#xA;Reading option &#x27;-c:a&#x27; ... matched as option &#x27;c&#x27; (codec name) with argument &#x27;aac&#x27;.&#xA;Reading option &#x27;-strict&#x27; ...Routing option strict to both codec and muxer layer&#xA; matched as AVOption &#x27;strict&#x27; with argument &#x27;-2&#x27;.&#xA;Reading option &#x27;-ar&#x27; ... matched as option &#x27;ar&#x27; (set audio sampling rate (in Hz)) with argument &#x27;44100&#x27;.&#xA;Reading option &#x27;-b:a&#x27; ... matched as option &#x27;b&#x27; (video bitrate (please use -b:v)) with argument &#x27;64k&#x27;.&#xA;Reading option &#x27;-y&#x27; ... matched as option &#x27;y&#x27; (overwrite output files) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-use_wallclock_as_timestamps&#x27; ... matched as AVOption &#x27;use_wallclock_as_timestamps&#x27; with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-async&#x27; ... matched as AVOption &#x27;async&#x27; with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-f&#x27; ... matched as option &#x27;f&#x27; (force format) with argument &#x27;flv&#x27;.&#xA;Reading option &#x27;rtmp://a.rtmp.youtube.com/live2/pxjt-j9g5-ygv8-0000-6w8h&#x27; ... matched as output url.&#xA;Finished splitting the commandline.&#xA;Parsing a group of options: global .&#xA;Applying option report (generate a report) with argument 1.&#xA;Applying option v (set logging level) with argument error.&#xA;Applying option y (overwrite output files) with argument 1.&#xA;Successfully parsed a group of options.&#xA;Parsing a group of options: input url -.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: -.&#xA;[NULL @ 0000025c01844940] Opening &#x27;pipe:&#x27; for reading&#xA;[pipe @ 0000025c01844e00] Setting default whitelist &#x27;crypto,data&#x27;&#xA;[matroska,webm @ 0000025c01844940] Format matroska,webm probed with size=2048 and score=100&#xA;st:0 removing common factor 1000000 from timebase&#xA;[matroska,webm @ 0000025c01844940] Before avformat_find_stream_info() pos: 136 bytes read:32271 seeks:0 nb_streams:1&#xA;[extract_extradata @ 0000025c01817d40] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[extract_extradata @ 0000025c01817d40] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;[extract_extradata @ 0000025c01817d40] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[extract_extradata @ 0000025c01817d40] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[extract_extradata @ 0000025c01817d40] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[extract_extradata @ 0000025c01817d40] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[extract_extradata @ 0000025c01817d40] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[extract_extradata @ 0000025c01817d40] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] Format yuv420p chosen by get_format().&#xA;[h264 @ 0000025c0186aac0] Reinit context to 1280x384, pix_fmt: yuv420p&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[h264 @ 0000025c0186aac0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3&#xA;[matroska,webm @ 0000025c01844940] max_analyze_duration 5000000 reached at 22181000 microseconds st:0&#xA;[matroska,webm @ 0000025c01844940] rfps: 1.000000 0.006758&#xA;[matroska,webm @ 0000025c01844940] rfps: 2.000000 0.019257&#xA;[matroska,webm @ 0000025c01844940] rfps: 7.916667 0.017773&#xA;[matroska,webm @ 0000025c01844940] rfps: 9.916667 0.012828&#xA;[matroska,webm @ 0000025c01844940] rfps: 10.916667 0.019976&#xA;[matroska,webm @ 0000025c01844940] rfps: 16.833333 0.010482&#xA;[matroska,webm @ 0000025c01844940] rfps: 17.833333 0.007736&#xA;[matroska,webm @ 0000025c01844940] rfps: 17.833333 0.007736&#xA;[matroska,webm @ 0000025c01844940] rfps: 18.833333 0.018506&#xA;[matroska,webm @ 0000025c01844940] After avformat_find_stream_info() pos: 88442 bytes read:88443 seeks:0 frames:31&#xA;Input #0, matroska,webm, from &#x27;pipe:&#x27;:&#xA;  Metadata:&#xA;    encoder         : Chrome&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0(eng), 31, 1/1000: Video: h264 (Constrained Baseline), yuv420p(progressive), 1280x382, SAR 1:1 DAR 640:191, 1 tbr, 1k tbn (default)&#xA;Successfully opened the file.&#xA;Parsing a group of options: output url rtmp://a.rtmp.youtube.com/live2/pxjt-j9g5-ygv8-0000-6w8h.&#xA;Applying option c:v (codec name) with argument libx264.&#xA;Applying option c:a (codec name) with argument aac.&#xA;Applying option ar (set audio sampling rate (in Hz)) with argument 44100.&#xA;Applying option b:a (video bitrate (please use -b:v)) with argument 64k.&#xA;Applying option f (force format) with argument flv.&#xA;Successfully parsed a group of options.&#xA;Opening an output file: rtmp://a.rtmp.youtube.com/live2/pxjt-j9g5-ygv8-0000-6w8h.&#xA;Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (rtmp://a.rtmp.youtube.com/live2/pxjt-j9g5-ygv8-0000-6w8h) 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;[rtmp @ 0000025c01d1bd00] No default whitelist set&#xA;[tcp @ 0000025c01844f40] No default whitelist set&#xA;[tcp @ 0000025c01844f40] Original list of addresses:&#xA;[tcp @ 0000025c01844f40] Address 142.250.193.204 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.193.236 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.206.108 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.206.140 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.206.172 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.12 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.44 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.76 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.108 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.140 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.172 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.204 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.236 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.195.12 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.207.204 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.207.236 port 1935&#xA;[tcp @ 0000025c01844f40] Interleaved list of addresses:&#xA;[tcp @ 0000025c01844f40] Address 142.250.193.204 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.193.236 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.206.108 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.206.140 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.206.172 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.12 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.44 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.76 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.108 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.140 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.172 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.204 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.194.236 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.195.12 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.207.204 port 1935&#xA;[tcp @ 0000025c01844f40] Address 142.250.207.236 port 1935&#xA;[tcp @ 0000025c01844f40] Starting connection attempt to 142.250.193.204 port 1935&#xA;[tcp @ 0000025c01844f40] Successfully connected to 142.250.193.204 port 1935&#xA;[rtmp @ 0000025c01d1bd00] Handshaking...&#xA;[rtmp @ 0000025c01d1bd00] Type answer 3&#xA;[rtmp @ 0000025c01d1bd00] Server version 4.0.0.1&#xA;[rtmp @ 0000025c01d1bd00] Proto = rtmp, path = /live2/pxjt-j9g5-ygv8-0000-6w8h, app = live2, fname = pxjt-j9g5-ygv8-0000-6w8h&#xA;[rtmp @ 0000025c01d1bd00] Window acknowledgement size = 2500000&#xA;[rtmp @ 0000025c01d1bd00] Max sent, unacked = 59768832&#xA;[rtmp @ 0000025c01d1bd00] Releasing stream...&#xA;[rtmp @ 0000025c01d1bd00] FCPublish stream...&#xA;[rtmp @ 0000025c01d1bd00] Creating stream...&#xA;[rtmp @ 0000025c01d1bd00] Sending publish command for &#x27;pxjt-j9g5-ygv8-0000-6w8h&#x27;&#xA;Successfully opened the file.&#xA;detected 8 logical cores&#xA;[h264 @ 0000025c01882e00] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[h264 @ 0000025c01882e00] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;[matroska,webm @ 0000025c01844940] Thread message queue blocking; consider raising the thread_queue_size option (current value: 1)&#xA;[h264 @ 0000025c01882e00] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[h264 @ 0000025c01882e00] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;[h264 @ 0000025&#xA;

    &#xA;

  • ffmpeg-python Unable to open .srt, .vtt files. Error initializing filter 'subtitles' with args ... Error initializing complex filters

    3 novembre 2022, par Batuhan Yılmaz

    I'm trying to build a web app where users can upload a video file and a transcript as .srt or .vtt file to get a video with subtitles. But keep getting an error with the subtitles.
    &#xA;Here's my code :

    &#xA;

    import streamlit as st&#xA;from streamlit_lottie import st_lottie&#xA;from utils import write_vtt, write_srt&#xA;import ffmpeg&#xA;import requests&#xA;from typing import Iterator&#xA;from io import StringIO&#xA;import numpy as np&#xA;import pathlib&#xA;import os&#xA;import components.authenticate as authenticate&#xA;&#xA;&#xA;st.set_page_config(page_title="Auto Subtitled Video Generator", page_icon=":movie_camera:", layout="wide")&#xA;&#xA;# Define a function that we can use to load lottie files from a link.&#xA;@st.cache(allow_output_mutation=True)&#xA;def load_lottieurl(url: str):&#xA;    r = requests.get(url)&#xA;    if r.status_code != 200:&#xA;        return None&#xA;    return r.json()&#xA;&#xA;&#xA;APP_DIR = pathlib.Path(__file__).parent.absolute()&#xA;&#xA;LOCAL_DIR = APP_DIR / "local_transcript"&#xA;LOCAL_DIR.mkdir(exist_ok=True)&#xA;save_dir = LOCAL_DIR / "output"&#xA;save_dir.mkdir(exist_ok=True)&#xA;&#xA;&#xA;col1, col2 = st.columns([1, 3])&#xA;with col1:&#xA;    lottie = load_lottieurl("https://assets1.lottiefiles.com/packages/lf20_HjK9Ol.json")&#xA;    st_lottie(lottie)&#xA;&#xA;with col2:&#xA;    st.write("""&#xA;    ## Auto Subtitled Video Generator &#xA;    ##### Upload a video file and a transcript as .srt file and get a video with subtitles.""")&#xA;&#xA;&#xA;def getSubs(segments: Iterator[dict], format: str, maxLineWidth: int) -> str:&#xA;    segmentStream = StringIO()&#xA;&#xA;    if format == &#x27;vtt&#x27;:&#xA;        write_vtt(segments, file=segmentStream, maxLineWidth=maxLineWidth)&#xA;    elif format == &#x27;srt&#x27;:&#xA;        write_srt(segments, file=segmentStream, maxLineWidth=maxLineWidth)&#xA;    else:&#xA;        raise Exception("Unknown format " &#x2B; format)&#xA;&#xA;    segmentStream.seek(0)&#xA;    return segmentStream.read()&#xA;&#xA;&#xA;def generate_subtitled_video(uploaded_file):&#xA;    with open(f"{save_dir}/input.mp4", "wb") as f:&#xA;            f.write(uploaded_file.read())&#xA;    audio = ffmpeg.input(f"{save_dir}/input.mp4")&#xA;    audio = ffmpeg.output(audio, f"{save_dir}/output.wav", acodec="pcm_s16le", ac=1, ar="16k")&#xA;    ffmpeg.run(audio, overwrite_output=True)&#xA;&#xA;&#xA;def main():&#xA;    video_file = st.file_uploader("File", type=["mp4", "avi", "mov", "mkv"])&#xA;    # get the name of the input_file&#xA;    if video_file is not None:&#xA;        filename = video_file.name[:-4]&#xA;    else:&#xA;        filename = None&#xA;    transcript_file = st.file_uploader("Transcript", type=["srt", "vtt"])&#xA;    if transcript_file is not None:&#xA;        transcript_name = transcript_file.name&#xA;    else:&#xA;        transcript_name = None&#xA;    if video_file is not None and transcript_file is not None:&#xA;        if transcript_name[-3:] == "vtt":&#xA;            with open(f"{save_dir}/transcript.vtt", "wb") as f:&#xA;                f.writelines(transcript_file)&#xA;                f.close()&#xA;            with open(os.path.join(os.getcwd(), f"{save_dir}/transcript.vtt"), "rb") as f:&#xA;                vtt_file = f.read()&#xA;            if st.button("Generate Video with Subtitles"):&#xA;                generate_subtitled_video(video_file)&#xA;                video_file = ffmpeg.input(f"{save_dir}/input.mp4")&#xA;                audio_file = ffmpeg.input(f"{save_dir}/output.wav")&#xA;                ffmpeg.concat(video_file.filter("subtitles", vtt_file), audio_file, v=1, a=1).output("final.mp4").global_args(&#x27;-report&#x27;).run(quiet=True, overwrite_output=True)&#xA;                video_with_subs = open("final.mp4", "rb")&#xA;                col3, col4 = st.columns([3, 1])&#xA;                with col3:&#xA;                    st.video(video_with_subs)&#xA;                with col4:&#xA;                    st.download_button(label="Download Video with Subtitles",&#xA;                                        data=video_with_subs,&#xA;                                        file_name=f"{filename}_with_subs.mp4")&#xA;            else:&#xA;                st.error("Please upload a video file and a transcript file.")&#xA;        elif transcript_name[-3:] == "srt":&#xA;            with open(f"{save_dir}/transcript.srt", "wb") as f:&#xA;                f.writelines(transcript_file)&#xA;                f.close()&#xA;            with open(os.path.join(os.getcwd(), f"{save_dir}/transcript.srt"), "rb") as f:&#xA;                srt_file = f.read()&#xA;                f.close()&#xA;            if st.button("Generate Video with Subtitles"):&#xA;                generate_subtitled_video(video_file)&#xA;                video_file = ffmpeg.input(f"{save_dir}/input.mp4")&#xA;                audio_file = ffmpeg.input(f"{save_dir}/output.wav")&#xA;                ffmpeg.concat(video_file.filter("subtitles", f&#x27;{save_dir}/transcript.srt&#x27;), audio_file, v=1, a=1).output("final.mp4").global_args(&#x27;-report&#x27;).run(quiet=True, overwrite_output=True)&#xA;                video_with_subs = open("final.mp4", "rb")&#xA;&#xA;                col3, col4 = st.columns([3, 1])&#xA;                with col3:&#xA;                    st.video(video_with_subs)&#xA;                with col4:&#xA;                    st.download_button(label="Download Video with Subtitles",&#xA;                                        data=video_with_subs,&#xA;                                        file_name=f"{filename}_with_subs.mp4")&#xA;        else:&#xA;            st.error("Please upload a .srt or .vtt file")&#xA;    else:&#xA;        st.info("Please upload a video file and a transcript file")&#xA;&#xA;&#xA;if __name__ == "__main__":&#xA;    authenticate.set_st_state_vars()&#xA;    if st.session_state["authenticated"]:&#xA;        main()&#xA;        authenticate.button_logout()&#xA;    else:&#xA;        st.info("Please log in or sign up to use the app.")&#xA;        authenticate.button_login()&#xA;        &#xA;&#xA;

    &#xA;

    I couldn't figure out what I'm doing wrong. Please help

    &#xA;

    And the log file of ffmpeg error :

    &#xA;

    ffmpeg started on 2022-11-03 at 21:29:27&#xA;Report written to "ffmpeg-20221103-212927.log"&#xA;Log level: 48&#xA;Command line:&#xA;ffmpeg -i "C:\\Users\\batuh\\Auto-Subtitled-Video-Generator - Copy2\\pages\\local_transcript\\output/input.mp4" -i "C:\\Users\\batuh\\Auto-Subtitled-Video-Generator - Copy2\\pages\\local_transcript\\output/output.wav" -filter_complex "[0]subtitles=C\\\\\\\\\\\\:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\batuh\\\\\\\\\\\\\\\\Auto-Subtitled-Video-Generator - Copy2\\\\\\\\\\\\\\\\pages\\\\\\\\\\\\\\\\local_transcript\\\\\\\\\\\\\\\\output/transcript.srt[s0];[s0][1]concat=a=1:n=1:v=1[s1]" -map "[s1]" final.mp4 -report -y&#xA;ffmpeg version 2022-10-24-git-d79c240196-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --ena  libavutil      57. 39.101 / 57. 39.101&#xA;  libavcodec     59. 51.100 / 59. 51.100&#xA;  libavformat    59. 34.101 / 59. 34.101&#xA;  libavdevice    59.  8.101 / 59.  8.101&#xA;  libavfilter     8. 49.101 /  8. 49.101&#xA;  libswscale      6.  8.112 /  6.  8.112&#xA;  libswresample   4.  9.100 /  4.  9.100&#xA;  libpostproc    56.  7.100 / 56.  7.100&#xA;Splitting the commandline.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/input.mp4&#x27;.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/output.wav&#x27;.&#xA;Reading option &#x27;-filter_complex&#x27; ... matched as option &#x27;filter_complex&#x27; (create a complex filtergraph) with argument &#x27;[0]subtitles=C\\\\\\:\\\\\\\\Users\\\\\\\\batuh\\\\\\\\Auto-Subtitled-Video-Generator - Copy2\\\\\\\\pages\\\\\\\\local_transcript\\\\\\\\output/transcript.srt[s0];[s0][1]concat=a=1:n=1:v=1[s1]&#x27;.&#xA;Reading option &#x27;-map&#x27; ... matched as option &#x27;map&#x27; (set input stream mapping) with argument &#x27;[s1]&#x27;.&#xA;Reading option &#x27;final.mp4&#x27; ... matched as output url.&#xA;Reading option &#x27;-report&#x27; ... matched as option &#x27;report&#x27; (generate a report) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-y&#x27; ... matched as option &#x27;y&#x27; (overwrite output files) with argument &#x27;1&#x27;.&#xA;Finished splitting the commandline.&#xA;Parsing a group of options: global .&#xA;Applying option filter_complex (create a complex filtergraph) with argument [0]subtitles=C\\\\\\:\\\\\\\\Users\\\\\\\\batuh\\\\\\\\Auto-Subtitled-Video-Generator - Copy2\\\\\\\\pages\\\\\\\\local_transcript\\\\\\\\output/transcript.srt[s0];[s0][1]concat=a=1:n=1:v=1[s1].&#xA;Applying option report (generate a report) with argument 1.&#xA;Applying option y (overwrite output files) with argument 1.&#xA;Successfully parsed a group of options.&#xA;Parsing a group of options: input url C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/input.mp4.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/input.mp4.&#xA;[NULL @ 000001baaeb55300] Opening &#x27;C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/input.mp4&#x27; for reading&#xA;[file @ 000001baaeb55800] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] ISO: File Type Major Brand: mp42&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] Unknown dref type 0x206c7275 size 12&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] Processing st: 0, edit list 0 - media time: 3003, duration: 8201160&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] Offset DTS by 3003 to make first pts zero.&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] Setting codecpar->delay to 1 for stream st: 0&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] Unknown dref type 0x206c7275 size 12&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] Before avformat_find_stream_info() pos: 34044 bytes read:65536 seeks:0 nb_streams:2&#xA;[h264 @ 000001baaeb68bc0] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[h264 @ 000001baaeb68bc0] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;[h264 @ 000001baaeb68bc0] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[h264 @ 000001baaeb68bc0] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;[h264 @ 000001baaeb68bc0] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 000001baaeb68bc0] Format yuv420p chosen by get_format().&#xA;[h264 @ 000001baaeb68bc0] Reinit context to 1280x720, pix_fmt: yuv420p&#xA;[h264 @ 000001baaeb68bc0] no picture &#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] All info found&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001baaeb55300] After avformat_find_stream_info() pos: 109849 bytes read:131072 seeks:0 frames:15&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;    creation_time   : 2016-08-24T03:50:36.000000Z&#xA;  Duration: 00:01:31.14, start: 0.000000, bitrate: 1149 kb/s&#xA;  Stream #0:0[0x1](und), 14, 1/90000: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 1020 kb/s, 29.97 fps, 29.97 tbr, 90k tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2016-08-24T03:50:36.000000Z&#xA;      handler_name    : ISO Media file produced by Google Inc.&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](und), 1, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2016-08-24T03:50:36.000000Z&#xA;      handler_name    : ISO Media file produced by Google Inc.&#xA;      vendor_id       : [0][0][0][0]&#xA;Successfully opened the file.&#xA;Parsing a group of options: input url C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/output.wav.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/output.wav.&#xA;[NULL @ 000001baaec0e8c0] Opening &#x27;C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/output.wav&#x27; for reading&#xA;[file @ 000001baaf24ee40] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;[wav @ 000001baaec0e8c0] Format wav probed with size=2048 and score=99&#xA;[wav @ 000001baaec0e8c0] Before avformat_find_stream_info() pos: 78 bytes read:65614 seeks:1 nb_streams:1&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:32&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:31&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:30&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:29&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:28&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:27&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:26&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:25&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:24&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:23&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:22&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:21&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:20&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:19&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:18&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:17&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:16&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:15&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:14&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:13&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:12&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:11&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:10&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:9&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:8&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:7&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:6&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:5&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:4&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:3&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:2&#xA;[wav @ 000001baaec0e8c0] probing stream 0 pp:1&#xA;[wav @ 000001baaec0e8c0] probed stream 0&#xA;[wav @ 000001baaec0e8c0] parser not found for codec pcm_s16le, packets or times may be invalid.&#xA;[wav @ 000001baaec0e8c0] max_analyze_duration 5000000 reached at 5120000 microseconds st:0&#xA;[wav @ 000001baaec0e8c0] After avformat_find_stream_info() pos: 176206 bytes read:262222 seeks:1 frames:42&#xA;Guessed Channel Layout for Input Stream #1.0 : mono&#xA;Input #1, wav, from &#x27;C:\Users\batuh\Auto-Subtitled-Video-Generator - Copy2\pages\local_transcript\output/output.wav&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf59.34.101&#xA;  Duration: 00:01:31.14, bitrate: 256 kb/s&#xA;  Stream #1:0, 42, 1/16000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, 1 channels, s16, 256 kb/s&#xA;Successfully opened the file.&#xA;[Parsed_subtitles_0 @ 000001baaeb7d040] Setting &#x27;filename&#x27; to value &#x27;C\:\\Users\\batuh\\Auto-Subtitled-Video-Generator - Copy2\\pages\\local_transcript\\output/transcript.srt&#x27;&#xA;[Parsed_subtitles_0 @ 000001baaeb7d040] libass API version: 0x1600010&#xA;[Parsed_subtitles_0 @ 000001baaeb7d040] libass source: commit: 0.16.0-48-g75a3dbac9bd41842a4d00b0d42c9513e2c8aec67&#xA;[Parsed_subtitles_0 @ 000001baaeb7d040] Raster: FreeType 2.12.1&#xA;[Parsed_subtitles_0 @ 000001baaeb7d040] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 5.3.1 (COMPLEX)&#xA;[Parsed_subtitles_0 @ 000001baaeb7d040] Initialized&#xA;[NULL @ 000001baaf473400] Opening &#x27;C\:\\Users\\batuh\\Auto-Subtitled-Video-Generator - Copy2\\pages\\local_transcript\\output/transcript.srt&#x27; for reading&#xA;[file @ 000001baaeb7dc40] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;[Parsed_subtitles_0 @ 000001baaeb7d040] Unable to open C\:\\Users\\batuh\\Auto-Subtitled-Video-Generator - Copy2\\pages\\local_transcript\\output/transcript.srt&#xA;[AVFilterGraph @ 000001baaf24ef40] Error initializing filter &#x27;subtitles&#x27; with args &#x27;C\\\:\\\\Users\\\\batuh\\\\Auto-Subtitled-Video-Generator - Copy2\\\\pages\\\\local_transcript\\\\output/transcript.srt&#x27;&#xA;Error initializing complex filters.&#xA;Invalid argument&#xA;[AVIOContext @ 000001baaeb5f880] Statistics: 131072 bytes read, 0 seeks&#xA;[AVIOContext @ 000001baaf10b2c0] Statistics: 262222 bytes read, 1 seeks&#xA;&#xA;

    &#xA;

    I tried doing all ffmpeg related things under the generate_subtitled_video function but couldn't make it work either.

    &#xA;