Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (8)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (2861)

  • Error in making animation through ffmpeg (python3.9)

    20 avril 2024, par Taehyung Ghim

    When I try to make 2D animation map for cow tracking(matching 2 camera views) through ffmpeg, following error occurs.

    


    
raise subprocess.CalledProcessError(subprocess.CalledProcessError: Command '['ffmpeg', '-f', 'rawvideo', '-vcodec', 'rawvideo', '-s', '4000x4000', '-pix_fmt', 'rgba', '-r', '5', '-loglevel', 'error', '-i', 'pipe:', '-vcodec', 'h264', '-pix_fmt', 'yuv420p', '-metadata', 'artist=Me', '-y', '../out_detect/run7/TRACKS_ANIMATION_fused.mp4']' returned non-zero exit status 1.



    


    Following is the full error :

    


    &#xA;Plotting the last 1800.9391813674797 frames.&#xA;INFO:Animation.save using <class>&#xA;INFO:MovieWriter._run: running command: ffmpeg -f rawvideo -vcodec rawvideo -s 4000x4000 -pix_fmt rgba -r 5 -loglevel error -i pipe: -vcodec h264 -pix_fmt yuv420p -metadata artist=Me -y ../out_detect/run7/TRACKS_ANIMATION_fused.mp4&#xA;WARNING:MovieWriter stderr:&#xA;[libopenh264 @ 0x55b93df81fc0] [OpenH264] this = 0x0x55b93df8ef10, Error:ParamValidationExt(), width > 0, height > 0, width * height &lt;= 9437184, invalid 4000 x 4000 in dependency layer settings!&#xA;[libopenh264 @ 0x55b93df81fc0] [OpenH264] this = 0x0x55b93df8ef10, Error:WelsInitEncoderExt(), ParamValidationExt failed return 2.&#xA;[libopenh264 @ 0x55b93df81fc0] [OpenH264] this = 0x0x55b93df8ef10, Error:CWelsH264SVCEncoder::Initialize(), WelsInitEncoderExt failed.&#xA;[libopenh264 @ 0x55b93df81fc0] Initialize failed&#xA;Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;   &#xA;&#xA; Traceback (most recent call last):&#xA;      File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/animation.py", line 236, in saving&#xA;        yield self&#xA;      File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/animation.py", line 1095, in save&#xA;        writer.grab_frame(**savefig_kwargs)&#xA;      File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/animation.py", line 353, in grab_frame&#xA;        self.fig.savefig(self._proc.stdin, format=self.frame_format,&#xA;      File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/figure.py", line 3012, in savefig&#xA;        self.canvas.print_figure(fname, **kwargs)&#xA;      File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 2314, in print_figure&#xA;        result = print_method(&#xA;      File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 1643, in wrapper&#xA;        return func(*args, **kwargs)&#xA;      File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/_api/deprecation.py", line 412, in wrapper&#xA;        return func(*inner_args, **inner_kwargs)&#xA;      File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py", line 486, in print_raw&#xA;        fh.write(renderer.buffer_rgba())&#xA;    BrokenPipeError: [Errno 32] Broken pipe&#xA;During handling of the above exception, another exception occurred:&#xA;Traceback (most recent call last):&#xA;  File "/home/rom/PycharmProjects/cow_tracking_package/tracking-cows/main.py", line 330, in <module>&#xA;    inference_tracking_video(opt=args, device=dev, detector=detector, keypoint_tfm=keypoint_tfm,&#xA;  File "/home/rom/PycharmProjects/cow_tracking_package/tracking-cows/tracking.py", line 325, in inference_tracking_video&#xA;    postprocess_tracking_results(track_args=track_args, cfg_postprocess=cfg_matching_parameters.POSTPROCESS,&#xA;  File "/home/rom/PycharmProjects/cow_tracking_package/tracking-cows/postprocessing/postprocess_results.py", line 90, in postprocess_tracking_results&#xA;    postprocess_trajectories(track_args=track_args, analysis_matching_cfg=cfg_analysis)&#xA;  File "/home/rom/PycharmProjects/cow_tracking_package/tracking-cows/postprocessing/postprocess_results.py", line 58, in postprocess_trajectories&#xA;    analyse_trajectories(analysis_arguments, full_width, full_height, video_fps, frame_rate_animation)&#xA;  File "/home/rom/PycharmProjects/cow_tracking_package/tracking-cows/postprocessing/trajectory_postprocess.py", line 115, in analyse_trajectories&#xA;    create_virtual_map_animation_final(opt.save_dir, final_matching_both_cams, color_dict3, full_width,&#xA;  File "/home/rom/PycharmProjects/cow_tracking_package/tracking-cows/output/output_plot_fused_trajectory_animation.py", line 236, in create_virtual_map_animation_final&#xA;    virtual_map_animation.save(traj_file_path, writer=writer)&#xA;  File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/animation.py", line 1095, in save&#xA;    writer.grab_frame(**savefig_kwargs)&#xA;  File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/contextlib.py", line 137, in __exit__&#xA;    self.gen.throw(typ, value, traceback)&#xA;  File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/animation.py", line 238, in saving&#xA;    self.finish()&#xA;  File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/animation.py", line 344, in finish&#xA;    self._cleanup()  # Inline _cleanup() once cleanup() is removed.&#xA;  File "/home/rom/anaconda3/envs/cow_tracking_env/lib/python3.9/site-packages/matplotlib/animation.py", line 375, in _cleanup&#xA;    raise subprocess.CalledProcessError(&#xA;subprocess.CalledProcessError: Command &#x27;[&#x27;ffmpeg&#x27;, &#x27;-f&#x27;, &#x27;rawvideo&#x27;, &#x27;-vcodec&#x27;, &#x27;rawvideo&#x27;, &#x27;-s&#x27;, &#x27;4000x4000&#x27;, &#x27;-pix_fmt&#x27;, &#x27;rgba&#x27;, &#x27;-r&#x27;, &#x27;5&#x27;, &#x27;-loglevel&#x27;, &#x27;error&#x27;, &#x27;-i&#x27;, &#x27;pipe:&#x27;, &#x27;-vcodec&#x27;, &#x27;h264&#x27;, &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;, &#x27;-metadata&#x27;, &#x27;artist=Me&#x27;, &#x27;-y&#x27;, &#x27;../out_detect/run7/TRACKS_ANIMATION_fused.mp4&#x27;]&#x27; returned non-zero exit status 1.&#xA;&#xA;</module></class>

    &#xA;

    ffmpeg version is 4.3 built with gcc 7.3.0. and OS is Ubuntu 20.04&#xA;and my conda env is below.

    &#xA;

    channels:&#xA;  - pytorch&#xA;  - defaults&#xA;dependencies:&#xA;  - _libgcc_mutex=0.1=main&#xA;  - _openmp_mutex=4.5=1_gnu&#xA;  - blas=1.0=mkl&#xA;  - bzip2=1.0.8=h7b6447c_0&#xA;  - ca-certificates=2021.10.26=h06a4308_2&#xA;  - certifi=2021.10.8=py39h06a4308_2&#xA;  - cudatoolkit=11.3.1=h2bc3f7f_2&#xA;  - ffmpeg=4.3=hf484d3e_0&#xA;  - freetype=2.11.0=h70c0345_0&#xA;  - giflib=5.2.1=h7b6447c_0&#xA;  - gmp=6.2.1=h2531618_2&#xA;  - gnutls=3.6.15=he1e5248_0&#xA;  - intel-openmp=2021.4.0=h06a4308_3561&#xA;  - jpeg=9d=h7f8727e_0&#xA;  - lame=3.100=h7b6447c_0&#xA;  - lcms2=2.12=h3be6417_0&#xA;  - ld_impl_linux-64=2.35.1=h7274673_9&#xA;  - libffi=3.3=he6710b0_2&#xA;  - libgcc-ng=9.3.0=h5101ec6_17&#xA;  - libgomp=9.3.0=h5101ec6_17&#xA;  - libiconv=1.15=h63c8f33_5&#xA;  - libidn2=2.3.2=h7f8727e_0&#xA;  - libpng=1.6.37=hbc83047_0&#xA;  - libstdcxx-ng=9.3.0=hd4cf53a_17&#xA;  - libtasn1=4.16.0=h27cfd23_0&#xA;  - libtiff=4.2.0=h85742a9_0&#xA;  - libunistring=0.9.10=h27cfd23_0&#xA;  - libuv=1.40.0=h7b6447c_0&#xA;  - libwebp=1.2.0=h89dd481_0&#xA;  - libwebp-base=1.2.0=h27cfd23_0&#xA;  - lz4-c=1.9.3=h295c915_1&#xA;  - mkl=2021.4.0=h06a4308_640&#xA;  - mkl-service=2.4.0=py39h7f8727e_0&#xA;  - mkl_fft=1.3.1=py39hd3c417c_0&#xA;  - mkl_random=1.2.2=py39h51133e4_0&#xA;  - ncurses=6.3=h7f8727e_2&#xA;  - nettle=3.7.3=hbbd107a_1&#xA;  - numpy=1.21.2=py39h20f2e39_0&#xA;  - numpy-base=1.21.2=py39h79a1101_0&#xA;  - olefile=0.46=pyhd3eb1b0_0&#xA;  - openh264=2.1.0=hd408876_0&#xA;  - openssl=1.1.1m=h7f8727e_0&#xA;  - pillow=8.4.0=py39h5aabda8_0&#xA;  - pip=21.2.4=py39h06a4308_0&#xA;  - python=3.9.7=h12debd9_1&#xA;  - pytorch=1.10.0=py3.9_cuda11.3_cudnn8.2.0_0&#xA;  - pytorch-mutex=1.0=cuda&#xA;  - readline=8.1=h27cfd23_0&#xA;  - setuptools=58.0.4=py39h06a4308_0&#xA;  - six=1.16.0=pyhd3eb1b0_0&#xA;  - sqlite=3.36.0=hc218d9a_0&#xA;  - tk=8.6.11=h1ccaba5_0&#xA;  - torchaudio=0.10.0=py39_cu113&#xA;  - torchvision=0.11.1=py39_cu113&#xA;  - typing_extensions=3.10.0.2=pyh06a4308_0&#xA;  - wheel=0.37.0=pyhd3eb1b0_1&#xA;  - xz=5.2.5=h7b6447c_0&#xA;  - zlib=1.2.11=h7b6447c_3&#xA;  - zstd=1.4.9=haebb681_0&#xA;  - pip:&#xA;    - absl-py==1.0.0&#xA;    - addict==2.4.0&#xA;    - cachetools==4.2.4&#xA;    - charset-normalizer==2.0.8&#xA;    - cloudpickle==2.0.0&#xA;    - cycler==0.11.0&#xA;    - cython==0.29.24&#xA;    - docutils==0.18.1&#xA;    - easydict==1.9&#xA;    - filterpy==1.4.5&#xA;    - fonttools==4.28.2&#xA;    - geohash2==1.1&#xA;    - google-auth==2.3.3&#xA;    - google-auth-oauthlib==0.4.6&#xA;    - grpcio==1.42.0&#xA;    - idna==3.3&#xA;    - imageio==2.13.5&#xA;    - importlib-metadata==4.8.2&#xA;    - joblib==1.1.0&#xA;    - kiwisolver==1.3.2&#xA;    - loguru==0.6.0&#xA;    - markdown==3.3.6&#xA;    - matplotlib==3.5.0&#xA;    - natsort==8.0.2&#xA;    - networkx==2.6.3&#xA;    - oauthlib==3.1.1&#xA;    - opencv-python==4.5.4.60&#xA;    - packaging==21.3&#xA;    - pandas==1.3.4&#xA;    - protobuf==3.19.1&#xA;    - pyasn1==0.4.8&#xA;    - pyasn1-modules==0.2.8&#xA;    - pycocotools==2.0.4&#xA;    - pyparsing==3.0.6&#xA;    - pyqt5==5.15.6&#xA;    - pyqt5-qt5==5.15.2&#xA;    - pyqt5-sip==12.9.0&#xA;    - python-dateutil==2.8.2&#xA;    - pytz==2021.3&#xA;    - pytz-deprecation-shim==0.1.0.post0&#xA;    - pywavelets==1.2.0&#xA;    - pyyaml==6.0&#xA;    - requests==2.26.0&#xA;    - requests-oauthlib==1.3.0&#xA;    - rsa==4.8&#xA;    - scikit-image==0.19.1&#xA;    - scikit-learn==1.0.2&#xA;    - scipy==1.7.3&#xA;    - seaborn==0.11.2&#xA;    - setuptools-scm==6.3.2&#xA;    - shapely==1.8.0&#xA;    - sklearn==0.0&#xA;    - split-folders==0.4.3&#xA;    - tabulate==0.8.9&#xA;    - tensorboard==2.7.0&#xA;    - tensorboard-data-server==0.6.1&#xA;    - tensorboard-plugin-wit==1.8.0&#xA;    - terminaltables==3.1.10&#xA;    - thop==0.0.31-2005241907&#xA;    - threadpoolctl==3.1.0&#xA;    - tifffile==2021.11.2&#xA;    - timm==0.4.12&#xA;    - tomli==1.2.2&#xA;    - tqdm==4.62.3&#xA;    - traja==0.2.8&#xA;    - tzdata==2021.5&#xA;    - tzlocal==4.1&#xA;    - urllib3==1.26.7&#xA;    - werkzeug==2.0.2&#xA;    - yacs==0.1.8&#xA;    - yapf==0.32.0&#xA;    - zipp==3.6.0&#xA;

    &#xA;

    I also installed ffmpy through conda.

    &#xA;

    It will be very grateful if anyone could help me.

    &#xA;

  • Unknown input format : 'rawvideo' when trying to save animation

    8 juin 2022, par John Klint

    So, I get a strange error trying to save animations created with matplotlib.FuncAnimation using FFMpegWriter.

    &#xA;

    /home/j/PycharmProjects/venvtest/venv/bin/python /home/j/PycharmProjects/venvtest/main.py&#xA;MovieWriter stderr:&#xA;Unknown input format: &#x27;rawvideo&#x27;&#xA;&#xA;Traceback (most recent call last):&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/animation.py", line 234, in saving&#xA;    yield self&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/animation.py", line 1093, in save&#xA;    writer.grab_frame(**savefig_kwargs)&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/animation.py", line 351, in grab_frame&#xA;    self.fig.savefig(self._proc.stdin, format=self.frame_format,&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/figure.py", line 3046, in savefig&#xA;    self.canvas.print_figure(fname, **kwargs)&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 2319, in print_figure&#xA;    result = print_method(&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 1648, in wrapper&#xA;    return func(*args, **kwargs)&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/_api/deprecation.py", line 415, in wrapper&#xA;    return func(*inner_args, **inner_kwargs)&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py", line 486, in print_raw&#xA;    fh.write(renderer.buffer_rgba())&#xA;BrokenPipeError: [Errno 32] Broken pipe&#xA;&#xA;During handling of the above exception, another exception occurred:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "/home/j/PycharmProjects/venvtest/main.py", line 24, in <module>&#xA;    anim.save(&#x27;basic_animation.mp4&#x27;, writer=FFwriter)&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/animation.py", line 1093, in save&#xA;    writer.grab_frame(**savefig_kwargs)&#xA;  File "/usr/lib/python3.9/contextlib.py", line 137, in __exit__&#xA;    self.gen.throw(typ, value, traceback)&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/animation.py", line 236, in saving&#xA;    self.finish()&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/animation.py", line 342, in finish&#xA;    self._cleanup()  # Inline _cleanup() once cleanup() is removed.&#xA;  File "/home/j/PycharmProjects/venvtest/venv/lib/python3.9/site-packages/matplotlib/animation.py", line 373, in _cleanup&#xA;    raise subprocess.CalledProcessError(&#xA;subprocess.CalledProcessError: Command &#x27;[&#x27;/usr/bin/ffmpeg&#x27;, &#x27;-f&#x27;, &#x27;rawvideo&#x27;, &#x27;-vcodec&#x27;, &#x27;rawvideo&#x27;, &#x27;-s&#x27;, &#x27;640x480&#x27;, &#x27;-pix_fmt&#x27;, &#x27;rgba&#x27;, &#x27;-r&#x27;, &#x27;5&#x27;, &#x27;-loglevel&#x27;, &#x27;error&#x27;, &#x27;-i&#x27;, &#x27;pipe:&#x27;, &#x27;-vcodec&#x27;, &#x27;h264&#x27;, &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;, &#x27;-y&#x27;, &#x27;basic_animation.mp4&#x27;]&#x27; returned non-zero exit status 1.&#xA;&#xA;Process finished with exit code 1&#xA;</module>

    &#xA;

    I am confident it has nothing to do with the animation data, the error occurs even when I create a simple test animation :

    &#xA;

    import numpy as np&#xA;from matplotlib import pyplot as plt&#xA;from matplotlib import animation&#xA;# plt.rcParams[&#x27;animation.ffmpeg_path&#x27;] = &#x27;/usr/bin/ffmpeg&#x27;&#xA;&#xA;fig = plt.figure()&#xA;ax = plt.axes(xlim=(0, 2), ylim=(-2, 2))&#xA;line, = ax.plot([], [], lw=2)&#xA;&#xA;&#xA;def init():&#xA;    line.set_data([], [])&#xA;    return line,&#xA;&#xA;&#xA;def animate(i):&#xA;    x = np.linspace(0, 2, 1000)&#xA;    y = np.sin(2 * np.pi * (x - 0.01 * i))&#xA;    line.set_data(x, y)&#xA;    return line,&#xA;&#xA;&#xA;anim = animation.FuncAnimation(fig, animate, init_func=init,&#xA;                           frames=200, interval=20, blit=True)&#xA;&#xA;FFwriter = animation.FFMpegWriter()&#xA;anim.save(&#x27;basic_animation.mp4&#x27;, writer=FFwriter)&#xA;

    &#xA;

    I am currently using PyCharm in LinuxMint and I have a fairly new version of FFMpeg (4.2.4) installed. Given that FFMpeg complains about 'rawvideo' which as far as I understand it is just a bunch of images in series, it seems unlikely this has anything to do with codecs. If I run ffmpeg -formats, sure enough rawvideo is in the list.

    &#xA;

    I have tried manually setting plt.rcParams, like in the commented line in the code above, with no success. I have also tried setting up both anaconda and venv environments, but I get the same error.&#xA;Annoyingly, I did not have this problem a few months ago when I was using Ubuntu. I have also verified that it works on my friends Ubuntu desktop, using the same simple venv as I set up for myself.

    &#xA;

    Any ideas ?

    &#xA;

    EDIT : I use the fish shell, if that is relevant...

    &#xA;

    Well this is peculiar. If I start a terminal from within PyCharm and check supported formats, I get the following :

    &#xA;

    (venv) ffmpeg -formats&#xA;ffmpeg version 4.3.4 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 11.3.0 (GCC)&#xA;  configuration: --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-debug --disable-doc --disable-static --enable-optimizations --enable-shared --disable-everything --enable-ffplay --enable-ffprobe --enable-gnutls --enable-libaom --enable-libdav1d --enable-libfdk-aac --enable-libmp3lame --enable-libfontconfig --enable-libfreetype --enable-libopus --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-openal --enable-opengl --enable-sdl2 --enable-vulkan --enable-zlib --enable-libv4l2 --enable-libxcb --enable-vdpau --enable-vaapi --enable-encoder=&#x27;ac3,alac,flac,libfdk_aac,g723_1,mp2,libmp3lame,libopus,libspeex,pcm_alaw,pcm_mulaw,pcm_f32le,pcm_s16be,pcm_s24be,pcm_s16le,pcm_s24le,pcm_s32le,pcm_u8,tta,libvorbis,wavpack,&#x27; --enable-encoder=&#x27;ass,ffv1,libaom_av1,libvpx_vp8,libvpx_vp9,mjpeg_vaapi,rawvideo,theora,vp8_vaapi,libopenh264&#x27; --enable-decoder=&#x27;adpcm_g722,alac,flac,g723_1,g729,libfdk_aac,libopus,libspeex,mp2,mp3,m4a,pcm_alaw,pcm_mulaw,pcm_f16le,pcm_f24le,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_s16be,pcm_s16be_planar,pcm_s24be,pcm_s16le,pcm_s16le_planar,pcm_s24le,pcm_s24le_planar,pcm_s32le,pcm_s32le_planar,pcm_s64be,pcm_s64le,pcm_s8,pcm_s8_planar,pcm_u8,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,tta,vorbis,wavpack,&#x27; --enable-decoder=&#x27;ass,ffv1,mjpeg,mjpegb,libaom_av1,libdav1d,libvpx_vp8,libvpx_vp9,rawvideo,theora,vp8,vp9,libopenh264&#x27; --enable-encoder=&#x27;bmp,gif,jpegls,png,tiff,webp,&#x27; --enable-decoder=&#x27;bmp,gif,jpegls,png,tiff,webp,&#x27; --enable-hwaccel=&#x27;vp8_vaapi,mjpeg_vaapi,&#x27; --enable-parser=&#x27;aac,ac3,flac,mjpeg,mpegaudio,mpeg4video,opus,vp3,vp8,vp9,vorbis,&#x27; --enable-muxer=&#x27;ac3,ass,flac,g722,gif,matroska,mp3,mpegvideo,rtp,ogg,opus,pcm_s16be,pcm_s16le,wav,webm,&#x27; --enable-demuxer=&#x27;aac,ac3,ass,flac,g722,gif,image_jpeg_pipe,image_png_pipe,image_webp_pipe,matroska,mjpeg,mov,mp3,mpegvideo,ogg,pcm_mulaw,pcm_alaw,pcm_s16be,pcm_s16le,rtp,wav,&#x27; --enable-filter=&#x27;crop,scale,overlay,amix,amerge,aresample,format,aformat,fps,transpose,pad,&#x27; --enable-protocol=&#x27;crypto,file,pipe,rtp,srtp,rtsp,tcp,udp,unix,&#x27; --arch=x86_64 --enable-libopenh264&#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;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;File formats:&#xA; D. = Demuxing supported&#xA; .E = Muxing supported&#xA; --&#xA; D  aac             raw ADTS AAC (Advanced Audio Coding)&#xA; DE ac3             raw AC-3&#xA; D  alaw            PCM A-law&#xA; D  asf             ASF (Advanced / Active Streaming Format)&#xA; DE ass             SSA (SubStation Alpha) subtitle&#xA; DE flac            raw FLAC&#xA; DE g722            raw G.722&#xA; DE gif             CompuServe Graphics Interchange Format (GIF)&#xA; D  jpeg_pipe       piped jpeg sequence&#xA;  E matroska        Matroska&#xA; D  matroska,webm   Matroska / WebM&#xA; D  mjpeg           raw MJPEG video&#xA; D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOV&#xA; DE mp3             MP3 (MPEG audio layer 3)&#xA; D  mpegts          MPEG-TS (MPEG-2 Transport Stream)&#xA; D  mpegvideo       raw MPEG video&#xA; D  mulaw           PCM mu-law&#xA; DE ogg             Ogg&#xA;  E opus            Ogg Opus&#xA; D  png_pipe        piped png sequence&#xA; D  rm              RealMedia&#xA; DE rtp             RTP output&#xA; DE s16be           PCM signed 16-bit big-endian&#xA; DE s16le           PCM signed 16-bit little-endian&#xA; D  sdp             SDP&#xA; DE wav             WAV / WAVE (Waveform Audio)&#xA;  E webm            WebM&#xA; D  webp_pipe       piped webp sequence&#xA;&#xA;

    &#xA;

    As is evident, there is no support for 'rawvideo' in the list above ! Very strange indeed, I do not know which ffmpeg this list belongs to, perhaps it is a version integrated into matplotlib's animation class ?

    &#xA;

    Anyway, if I uncomment the line setting the ffmpeg_path I am back at the old error. I did get it to work however, by changing the path from '/usr/bin/ffmpeg' to '/home/j/.conda/envs/venvtest/bin/ffmpeg'. Then I get the file to run, create the animation and save it. This works for my real files as well, which do not even run that particular conda-environment. They do not recognize or find the ffmpeg I have in /usr/bin though. I have no clue why but at least I have a workaround now.

    &#xA;

    Final edit :&#xA;It is solved. It was flatpak's fault. Lesson is, don't use flatpak (or snap for that matter) to install Pycharm.

    &#xA;

  • Tv box failed to open encoded videos using x265 HEVC encoder

    3 juin 2022, par Constadinos Chatzis

    I have Zidoo X9S tv box and it has support for x265 HEVC codec. Every single video i throw in it, HDR 4K or standard x264 videos, it plays perfectly except my encoded x265 video when i select it to play, it freezes and it doesn't load. I believe it has something to do with my encoding settings. The encoding command i use with ffmpeg, is this :

    &#xA;

    -c:v libx265 -crf 10 -preset veryfast output.mkv&#xA;

    &#xA;

    Any ideas why this is happening ?

    &#xA;