Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (37)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (7515)

  • FFMEPG - How to resolve 'Reinit context to WxH ... deprecated pixel format'

    30 juin 2022, par hi im Bacon

    I am using the pyav library to read and process video data and as I am reading through the videos I am getting lots (and lots) of the following output.

    


    I am creating the videos by segmenting either a much larger source file or RTSP/HTTP IP camera.

    


    I would love to understand what this output actually means, and what I can do to prevent its output

    


    ffmpeg creating videos :

    


    ffmpeg -y -i https://manifest.googlevideo.com/api/... -pix_fmt yuvj422p -c:v libx264 -an -vf scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -r 12 -vsync cfr -x264opts keyint=12:min-keyint=12 -f segment -segment_format matroska -segment_time 5 -initial_offset 1656497474.686672 -strftime 1 /tmp/tmp87cc1n2o/%Y-%m-%dT%H%M%S.mkv -loglevel error


    


    python :

    


    container = av.open(io.BytesIO(...))
for frame in container.decode(video=0):
   ...


    


    2022-06-30 14:45:00,964 DEBUG:****:Creating <***.core.generators.av.AVGenerator object at 0x7f13340abd50> with target path: <_io.BytesIO object at 0x7f13341c93b0>
2022-06-30 14:45:00,966 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuv420p
2022-06-30 14:45:00,966 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuvj422p
2022-06-30 14:45:00,984 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuv420p
2022-06-30 14:45:01,045 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuv420p
2022-06-30 14:45:01,046 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuvj422p
deprecated pixel format used, make sure you did set range correctly
deprecated pixel format used, make sure you did set range correctly
 (repeated 9 more times)
2022-06-30 14:45:01,194 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuv420p
deprecated pixel format used, make sure you did set range correctly
deprecated pixel format used, make sure you did set range correctly
2022-06-30 14:45:01,215 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuv420p
deprecated pixel format used, make sure you did set range correctly
deprecated pixel format used, make sure you did set range correctly
 (repeated 17 more times)
2022-06-30 14:45:01,384 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuv420p
deprecated pixel format used, make sure you did set range correctly
deprecated pixel format used, make sure you did set range correctly
 (repeated 3 more times)
2022-06-30 14:45:01,398 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuv420p
deprecated pixel format used, make sure you did set range correctly
deprecated pixel format used, make sure you did set range correctly
 (repeated 22 more times)
2022-06-30 14:45:01,550 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuv420p
deprecated pixel format used, make sure you did set range correctly
deprecated pixel format used, make sure you did set range correctly
 (repeated 2 more times)
2022-06-30 14:45:01,592 DEBUG:libav.h264:Reinit context to 1280x720, pix_fmt: yuv420p


    


  • Stream map '0:4' matches no streams

    17 juillet 2022, par Hugh

    When concat vob files to mkv with -map 0:4 I get this error. if I replace it with -map 0:4 ? the output contains no subtitles because the subtitle track I want doesn't start until further into the file. If I include -map 0:3 I just get the wrong subtitle track.

    


    ffmpeg -version
ffmpeg version 5.0.1-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil      57. 17.100 / 57. 17.100
libavcodec     59. 18.100 / 59. 18.100
libavformat    59. 16.100 / 59. 16.100
libavdevice    59.  4.100 / 59.  4.100
libavfilter     8. 24.100 /  8. 24.100
libswscale      6.  4.100 /  6.  4.100
libswresample   4.  3.100 /  4.  3.100
libpostproc    56.  3.100 / 56.  3.100


ffmpeg -analyzeduration 9000M -probesize 9000M -f concat -fflags +genpts -i mylist.txt -map 0:1 -map 0:2 -map 0:4? -metadata:s:s:0 language=eng -metadata:s:s:0 title="English" -c:s copy -c:v copy -c:a copy 'output.mkv'
...
Input #0, concat, from 'mylist.txt':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Data: dvd_nav_packet
  Stream #0:1: Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn
    Side data:
      cpb: bitrate max/min/avg: 7000000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:2: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
  Stream #0:3: Subtitle: dvd_subtitle
Output #0, matroska, to 'output.mkv':
  Metadata:
    encoder         : Lavf59.16.100
  Stream #0:0: Video: mpeg2video (Main) (mpg2 / 0x3267706D), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 1k tbn
    Side data:
      cpb: bitrate max/min/avg: 7000000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 192 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
[concat @ 0x555af2e17000] New subtitle stream 0:4 at pos:3141646 and DTS:10.96s  0x


    


    ...
Any ideas ?

    


  • FFmpeg command to draw text hindi font is working fine in windows command prompt but Batch script and simple CPP program in NOT working

    1er juillet 2022, par Abdullah Farweez

    Below ffmpeg command in working fine in command prompt

    


    ffmpeg -i video.mp4 -filter_complex "drawtext=fontfile=Khula-regular.ttf:fontsize=60:fontcolor=blue:text=अगला एपिसोड देखने के लिए जल्दी से फॉलो करें:x=30:y=200" output.mp4


    


    giving expected result
enter image description here

    


    But if we run it as a bat file, it is not giving the expected output

    


        ::bat script start 
    @echo off
    ffmpeg -i video.mp4 -filter_complex "drawtext=fontfile=Khula-Regular.ttf:fontsize=60:fontcolor=blue:text=अगला एपिसोड देखने के लिए जल्दी से फॉलो करें:x=30:y=200" output.mp4
:: bat script end


    


    This the CPP program which calling the ffmpeg command via system method

    


    #include <iostream>&#xA;#include <cstring>&#xA;#include &#xA;&#xA;using namespace std;&#xA;&#xA;int main()&#xA;{&#xA;  string command = "ffmpeg.exe -i video.mp4 -filter_complex \"drawtext=fontfile=Khula-Regular.ttf:fontsize=60:fontcolor=yellow:text=अगला एपिसोड देखने के लिए जल्दी से फॉलो करें:x=30:y=200\" output.mp4";&#xA;  system(command.c_str());&#xA;  return 0;&#xA;}&#xA;</cstring></iostream>

    &#xA;

    same behavior as bat script.

    &#xA;

    screenshot of the output video.&#xA;enter image description here

    &#xA;

    Here is the additional information for the references

    &#xA;

    Folder structure

    &#xA;

    .&#xA;|-- Khula-Regular.ttf&#xA;|-- cpp_program.exe&#xA;|-- command.cpp&#xA;|-- ffmpeg.exe&#xA;|-- ffplay.exe&#xA;|-- ffprobe.exe&#xA;|-- output.mp4&#xA;|-- run.bat&#xA;`-- video.mp4&#xA;&#xA;C:\bin&#xA;

    &#xA;

    FFmpeg info

    &#xA;

    $ ffmpeg&#xA;ffmpeg version N-107262-g4454142782-20220628 Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 11.2.0 (crosstool-NG 1.24.0.533_681aaef)&#xA;  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220628&#xA;  libavutil      57. 27.100 / 57. 27.100&#xA;  libavcodec     59. 34.100 / 59. 34.100&#xA;  libavformat    59. 25.100 / 59. 25.100&#xA;  libavdevice    59.  6.100 / 59.  6.100&#xA;  libavfilter     8. 41.100 /  8. 41.100&#xA;  libswscale      6.  6.100 /  6.  6.100&#xA;  libswresample   4.  6.100 /  4.  6.100&#xA;  libpostproc    56.  5.100 / 56.  5.100&#xA;Hyper fast Audio and Video encoder&#xA;usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&#xA;&#xA;Use -h to get full help or, even better, run &#x27;man ffmpeg&#x27;&#xA;

    &#xA;

    PS : FFmpeg does not showing any error while processing in bat or cpp_program, but output is not giving in the specified font instead giving in random characters in the final output.mp4

    &#xA;