
Recherche avancée
Autres articles (101)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (8451)
-
swscale : introduce new, dynamic scaling API
21 novembre 2024, par Niklas Haasswscale : introduce new, dynamic scaling API
As part of a larger, ongoing effort to modernize and partially rewrite
libswscale, it was decided and generally agreed upon to introduce a new
public API for libswscale. This API is designed to be less stateful, more
explicitly defined, and considerably easier to use than the existing one.Most of the API work has been already accomplished in the previous commits,
this commit merely introduces the ability to use sws_scale_frame()
dynamically, without prior sws_init_context() calls. Instead, the new API
takes frame properties from the frames themselves, and the implementation is
based on the new SwsGraph API, which we simply reinitialize as needed.This high-level wrapper also recreates the logic that used to live inside
vf_scale for scaling interlaced frames, enabling it to be reused more easily
by end users.Finally, this function is designed to simply copy refs directly when nothing
needs to be done, substantially improving throughput of the noop fast path.Sponsored-by : Sovereign Tech Fund
Signed-off-by : Niklas Haas <git@haasn.dev> -
Configuration error when configuring the FFMPEG compilation with NVCC/CUDA [closed]
3 février, par LerennI'm trying to compile the last FFMPEG version (
49726a922fd2b358feb7753488d415180da5121c
) on Fedora 41 with some libraries, including the CUDA libraries.

Everything works well when compiling without CUDA, but I have 2 cryptic errors when trying to run the
configure
command with the NVCC :

nvcc -gencode arch=compute_60,code=sm_60 -O2 -std=c++11 -m64 -ptx -c -o /tmp/ffconf.q0uMcStN/test.o /tmp/ffconf.q0uMcStN/test.cu
 nvcc warning : Support for offline compilation for architectures prior to '<compute></compute>sm/lto>_75' will be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
 /usr/include/c++/14/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
 constexpr bool __is_nothrow_new_constructible
 ^

 /usr/include/c++/14/type_traits(1610): error: "constexpr" is not valid here
 constexpr bool __is_nothrow_new_constructible
 ^

 2 errors detected in the compilation of "/tmp/ffconf.q0uMcStN/test.cu".
 ERROR: failed checking for nvcc.



I tried compiling it with default gcc (
gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7)
) but my NVCC version (Build cuda_12.8.r12.8/compiler.35404655_0
) seems to support only the GCC version 13.2 : https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html.

I have compiled it and ran the
configure
command again but it seems that I have the same errors.

Here is the
configure
command :

PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" \
 ./configure \
 --cc=gcc-13.2 \
 --extra-libs=-lpthread --prefix="/usr/local" \
 --extra-cflags="-I/usr/local/include -I/usr/local/cuda/include" \
 --extra-ldflags="-L/usr/local/lib -L/usr/local/cuda/lib64" \
 --pkg-config-flags="--static" --enable-gpl --enable-nonfree \
 --enable-libfdk-aac --enable-libmp3lame --enable-libopus \
 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 \
 --enable-libvidstab --enable-libaom \
 --enable-cuda-nvcc --enable-libnpp \
 --disable-static --enable-shared



If you have any idea or lead on the matter, I would be really grateful.


-
FFmpeg, low quality merge using overlay filter [closed]
24 mars, par He2AI am currently building a script, part of its functionality is to generate a cover art. I want to limit the scripts dependency to ffmpeg only so please don't suggest to use any other software to do the same.


For this, I am using ffmpeg to generate separate components for the coverart, code is given below :


# Draws transparent circle in correct background
ffmpeg -y -f lavfi -i "color=c=0x20292FFF:s=4000x4000,format=rgba" -filter_complex "geq=r='32':g='41':b='47':a='255*(1-between(hypot(X-2000,Y-2000),0,1150))'" -frames:v 1 -update 1 background.png

# Draws a circle gradient
ffmpeg -y -f lavfi -i "gradients=s=4000x4000:c0=0x33517e:c1=0x645098:c2=0xa53f97:c3=0xdf1177:c4=0xff033e:c5=0x2f4858:n=5:y0=750:x0=750:y1=3250:x1=3250:t=linear,format=rgba" -filter_complex "geq=g='g(X,Y)':a='255*between(hypot(X-2000,Y-2000),0,1200)'" -frames:v 1 -update 1 gradcir.png

# Draws the inner symbol
ffmpeg -y -f lavfi -i "color=c=0x20292FFF:s=4000x4000,format=rgba" -vf "geq=a='255*max(lte((X-2000+(530/3)+25)+sqrt(3)*abs(Y-2000),530)*gte(X-2000+(530/3)+25,0),between(hypot(X-2000,Y-2000),570,630))':r='255*max(lte((X-2000+(530/3)+25)+sqrt(3)*abs(Y-2000),530)*gte(X-2000+(530/3)+25,0),between(hypot(X-2000,Y-2000),570,630))':g='255*max(lte((X-2000+(530/3)+25)+sqrt(3)*abs(Y-2000),530)*gte(X-2000+(530/3)+25,0),between(hypot(X-2000,Y-2000),570,630))':b='255*max(lte((X-2000+(530/3)+25)+sqrt(3)*abs(Y-2000),530)*gte(X-2000+(530/3)+25,0),between(hypot(X-2000,Y-2000),570,630))'" -frames:v 1 shape.png



Now to merge all three pngs, I am using the following command :


ffmpeg -y -i background.png -i gradcir.png -i shape.png -filter_complex "[0][1]overlay[tmp];[tmp][2]overlay" cover.png



All the code works but the problem is that the output is severely low quality with banding and improper merges in the borders of each image.


I believe png is lossless so there shouldn't be any issue with artifacts but still I experimented with different levels of png compression but to no avail. I even tried enforcing rgba format for all three images prior to merging but to no avail.


For now I alleviated the problem by generating all images in 4000x4000 resolution, applying a deband filter and then resizing it to 1000x1000.


ffmpeg -y -i background.png -i gradcir.png -i shape.png -filter_complex "[0][1]overlay[tmp1];[tmp1][2]overlay[tmp2];[tmp2]format=rgb24,scale=2000:2000:flags=spline,deband,scale=1000:1000:flags=lanczos" -frames:v 1 -update 1 cover.png



But the above method is expensive, which is problematic for low performance systems. Can anyone find out what seems to be the issue or suggest some better way to merge it ?