
Recherche avancée
Autres articles (84)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (9036)
-
FFMEPG - How to resolve 'Reinit context to WxH ... deprecated pixel format'
30 juin 2022, par hi im BaconI 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



-
CVAT error during installation of development version
28 novembre 2022, par RamanI'm trying to install development version of CVAT according to official instruction but struggling at the step of requirements.txt applying :


pip install -r cvat/requirements/development.txt



... with following error :


Skipping wheel build for av, due to binaries being disabled for it.
Skipping wheel build for datumaro, due to binaries being disabled for it.
Installing collected packages: wrapt, tf-estimator-nightly, termcolor, tensorboard-plugin-wit, Shapely, rules, rope, rjsmin, rcssmin, pytz, pyasn1, patool, mistune, mccabe, libclang, keras, itypes, flatbuffers, entrypoint2, EasyProcess, dj-pagination, diskcache, av, addict, Werkzeug, urllib3, uritemplate, typing-extensions, tqdm, tornado, toml, threadpoolctl, tensorflow-io-gcs-filesystem, tensorboard-data-server, sqlparse, smmap, six, ruamel.yaml.clib, rsa, redis, PyYAML, pyunpack, pyrsistent, pyparsing, pylogbeat, pyjwt, Pygments, pycparser, pyasn1-modules, protobuf, Pillow, oauthlib, numpy, networkx, natsort, MarkupSafe, Markdown, lxml, lazy-object-proxy, kiwisolver, joblib, jmespath, isort, inflection, idna, google-crc32c, gast, fonttools, dnspython, django-extensions, deprecated, defusedxml, cycler, click, charset-normalizer, certifi, cachetools, attrs, asgiref, absl-py, tensorboardX, snakeviz, scipy, ruamel.yaml, rq, requests, python3-openid, python-ldap, python-dateutil, pdf2image, packaging, orderedmultidict, opt-einsum, opencv-python-headless, opencv-python, keras-preprocessing, jsonschema, jinja2, isodate, h5py, grpcio, googleapis-common-protos, google-resumable-media, google-pasta, google-auth, gitdb, Django, cffi, astunparse, astroid, scikit-learn, requests-oauthlib, pylint, pandas, matplotlib, limits, google-api-core, GitPython, furl, djangorestframework, django-sendfile2, django-rq, django-filter, django-cors-headers, django-auth-ldap, django-appconf, cryptography, croniter, coreschema, botocore, azure-core, s3transfer, rq-scheduler, python-logstash-async, pylint-plugin-utils, pycocotools, open3d, msrest, google-cloud-core, google-auth-oauthlib, drf-spectacular, django-rest-auth, django-compressor, coreapi, tensorboard, pylint-django, google-cloud-storage, django-allauth, datumaro, boto3, azure-storage-blob, tensorflow
 Running setup.py install for av ... error
 error: subprocess-exited-with-error
 
 × Running setup.py install for av did not run successfully.
 │ exit code: 1
 ╰─> [50 lines of output]
 running install
 /Users/dd/cvat/.env/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
 warnings.warn(
 running build
 running build_py
 creating build
 creating build/lib.macosx-12.4-x86_64-cpython-39
 creating build/lib.macosx-12.4-x86_64-cpython-39/av
 copying av/deprecation.py -> build/lib.macosx-12.4-x86_64-cpython-39/av
 copying av/datasets.py -> build/lib.macosx-12.4-x86_64-cpython-39/av
 copying av/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av
 copying av/__main__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av
 creating build/lib.macosx-12.4-x86_64-cpython-39/av/video
 copying av/video/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av/video
 creating build/lib.macosx-12.4-x86_64-cpython-39/av/codec
 copying av/codec/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av/codec
 creating build/lib.macosx-12.4-x86_64-cpython-39/av/container
 copying av/container/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av/container
 creating build/lib.macosx-12.4-x86_64-cpython-39/av/audio
 copying av/audio/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av/audio
 creating build/lib.macosx-12.4-x86_64-cpython-39/av/subtitles
 copying av/subtitles/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av/subtitles
 creating build/lib.macosx-12.4-x86_64-cpython-39/av/filter
 copying av/filter/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av/filter
 creating build/lib.macosx-12.4-x86_64-cpython-39/av/sidedata
 copying av/sidedata/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av/sidedata
 creating build/lib.macosx-12.4-x86_64-cpython-39/av/data
 copying av/data/__init__.py -> build/lib.macosx-12.4-x86_64-cpython-39/av/data
 running build_ext
 running config
 PyAV: 8.0.2 (unknown commit)
 Python: 3.9.10 (main, Jun 28 2022, 17:49:16) \n[Clang 13.1.6 (clang-1316.0.21.2.5)]
 platform: macOS-12.4-x86_64-i386-64bit
 extension_extra:
 include_dirs: [b'include']
 libraries: []
 library_dirs: []
 define_macros: []
 runtime_library_dirs: []
 config_macros:
 PYAV_COMMIT_STR="unknown-commit"
 PYAV_VERSION=8.0.2
 PYAV_VERSION_STR="8.0.2"
 Could not find libavformat with pkg-config.
 Could not find libavcodec with pkg-config.
 Could not find libavdevice with pkg-config.
 Could not find libavutil with pkg-config.
 Could not find libavfilter with pkg-config.
 Could not find libswscale with pkg-config.
 Could not find libswresample with pkg-config.
 [end of output]
 
 note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> av



I have already tried suggested fixes, but no luck :
https://github.com/openvinotoolkit/cvat/issues/4406


Environment :


- 

- MacBook Pro (Intel x64)
- macOS Monterey (Version 12.4)
- (pyenv) Python 3.9.10








What other options could be applied to fix it ?


-
FFmpeg converting to .265 corrupts videos
25 juin 2022, par AlfaI'm trying to convert and compress videos in
React Native
using FFmpegKit, what is strange is it is very slow regardless of the preset I use, Also, no matter how big the input video is, it always produces a video less than 1MB that is corrupt.
This is my first time usingFFmpeg
, I'm using it due to the lack of good video compressing libraries on React Native.

My command looks like this :


const getFFmpegCommand = (input: string, output: string) => {
 const scale = `"scale='if(gte(iw,ih),min(720,iw),-2):if(lt(iw,ih),min(720,ih),-2)'"`;
 const preset = '-preset veryfast ';
 const ffmpegCommand = `-i ${input} -y -crf 28 -vf ${scale} ${preset} -c:v libx265 ${output}`;
 return ffmpegCommand;
};



This is my log output


ffmpeg version v4.5-dev-3393-g30322ebe3c
 LOG Copyright (c) 2000-2021 the FFmpeg developers
 LOG 
 LOG built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
 LOG configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/light/projects/ffmpeg-kit/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --target-os=android --disable-neon --disable-asm --disable-inline-asm --ar=i686-linux-android-ar --cc=i686-linux-android24-clang --cxx=i686-linux-android24-clang++ --ranlib=i686-linux-android-ranlib --strip=i686-linux-android-strip --nm=i686-linux-android-nm --extra-libs='-L/storage/light/projects/ffmpeg-kit/prebuilt/android-x86/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libx264 --enable-libxvid --enable-libx265 --enable-libvidstab --disable-sdl2 --disable-openssl --enable-zlib --enable-mediacodec --enable-gpl
 LOG libavutil 57. 13.100 / 57. 13.100
 LOG libavcodec 59. 15.102 / 59. 15.102
 LOG libavformat 59. 10.100 / 59. 10.100
 LOG libavdevice 59. 1.100 / 59. 1.100
 LOG libavfilter 8. 21.100 / 8. 21.100
 LOG libswscale 6. 1.102 / 6. 1.102
 LOG libswresample 4. 0.100 / 4. 0.100
 LOG Guessed Channel Layout for Input Stream #0.1 : mono
 LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///data/user/0/com.orbis.cybersight/files/95fdb965-5074-421f-b6b0-9e67332550ca/VID_20220625_211041.mp4':
 LOG Metadata:
 LOG major_brand :
 LOG mp42
 LOG 
 LOG minor_version :
 LOG 0
 LOG 
 LOG compatible_brands:
 LOG isommp42
 LOG 
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG location :
 LOG +37.4234-122.0839/
 LOG 
 LOG location-eng :
 LOG +37.4234-122.0839/
 LOG 
 LOG com.android.version:
 LOG 11
 LOG 
 LOG Duration:
 LOG 00:00:33.68
 LOG , start:
 LOG 0.000000
 LOG , bitrate:
 LOG 8302 kb/s
 LOG 
 LOG Stream #0:0
 LOG [0x1]
 LOG (eng)
 LOG : Video: h264 (avc1 / 0x31637661), yuv420p(tv, gbr/reserved/reserved, progressive), 1280x720, 9007 kb/s
 LOG , SAR 1:1 DAR 16:9
 LOG ,
 LOG 22.69 fps,
 LOG 90k tbr,
 LOG 90k tbn
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG VideoHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG Side data:
 LOG 
 LOG displaymatrix: rotation of -90.00 degrees
 LOG 
 LOG Stream #0:1
 LOG [0x2]
 LOG (eng)
 LOG : Audio: amr_nb (samr / 0x726D6173), 8000 Hz, mono, fltp, 12 kb/s
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG SoundHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG [h264 @ 0xebd4c280] The "sub_text_format" option is deprecated: Deprecated, does nothing
 LOG [amrnb @ 0xebd4dc00] The "sub_text_format" option is deprecated: Deprecated, does nothing
 LOG Stream mapping:
 LOG Stream #0:0 -> #0:0
 LOG (h264 (native) -> hevc (libx265))
 LOG 
 LOG Stream #0:1 -> #0:1
 LOG (amr_nb (amrnb) -> aac (native))
 LOG 
 LOG Press [q] to stop, [?] for help
 LOG [aac @ 0xebd4a5d0] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
 LOG Output #0, mp4, to '/storage/emulated/0/Android/data/com.orbis.cybersight/files/3dfb9ef6-6cb3-4adf-9777-8fb4c7762dc7.mp4':
 LOG Metadata:
 LOG major_brand :
 LOG mp42
 LOG 
 LOG minor_version :
 LOG 0
 LOG 
 LOG compatible_brands:
 LOG isommp42
 LOG 
 LOG com.android.version:
 LOG 11
 LOG 
 LOG location :
 LOG +37.4234-122.0839/
 LOG 
 LOG location-eng :
 LOG +37.4234-122.0839/
 LOG 
 LOG encoder :
 LOG Lavf59.10.100
 LOG 
 LOG Stream #0:0
 LOG (eng)
 LOG : Video: hevc (hev1 / 0x31766568), yuv420p(tv, gbr/reserved/reserved, progressive), 720x1280 [SAR 1:1 DAR 9:16], q=2-31
 LOG ,
 LOG 22.69 fps,
 LOG 2502k tbn
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG VideoHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG encoder :
 LOG Lavc59.15.102 libx265
 LOG 
 LOG Side data:
 LOG 
 LOG cpb:
 LOG bitrate max/min/avg: 0/0/0 buffer size: 0
 LOG vbv_delay: N/A
 LOG 
 LOG 
 LOG displaymatrix: rotation of -0.00 degrees
 LOG 
 LOG Stream #0:1
 LOG (eng)
 LOG : Audio: aac (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 48 kb/s
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG SoundHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG encoder :
 LOG Lavc59.15.102 aac