
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (97)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Installation en mode standalone
4 février 2011, parL’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
[mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)
Sur d’autres sites (8213)
-
OpenCV Alpha Channel support
14 février 2014, par adriagilI've tried many different solutions but I'm stuck at this point.
I have a sequence of .png files with alpha channel.
If I pick one of the files for splitting the channels I got the expected result in an array[4] having the alpha channelMat check = imread("1.png");
printf("channels = %d", check.channels()); //got 'channels = 4'
Then I expected to get the same results for a movie file.
With FFMPEG I've just converted the .png sequence to a .mov file with "qtrle" codec that I'm sure that support alpha channel.
ffmpeg -pix_fmt argb -i sequence_%d.png -vcodec qtrle output.mov
Then the I process the video file frames with OpenCV
Mat frame;
VideoCapture cap ("output.mov");
if (cap.grab())
cap.retrieve(frame);
printf("channels = %d", frame.channels()); // got 'channels = 3'I've checked the ffmpeg generated output and seems to be encoded right and have the alpha channel stored.
Does OpenCV does not support Alpha Channel in movie files ?
If so, anyone knows an alternative to do it with C++ or other libraries ?
Can this be done with DirectX in some way (only using OpenCV for reading video) ?In the official docs I've found that cv::VideocCapture.retrieve() has a second argument for the 'channel' but I've tried to do the following with the same results (no alpha channel) :
cap.retrieve(frame, 4);
cap.retrieve(frame, -1);As far as cv::VideoCapture supports loading image sequences I've tried to load the PNG sequence but I got the following warning so I could not play the movie file :
VideoCapture cap("sequence_%d.png");
warning: Could not find codec parameters (../../modules/highgui/src/cap_ffmpeg_impl.hpp)Why I got that result if I can read the same PNG with
imread("")
?Also I've tried to encode the .png sequence again with ffmpeg :
ffmpeg -pix_fmt rgba -i sequence_%d.png -vcodec png output.mov
But got exactly the same warning as before.
Any suggestion would be much appreciated !
Note : I'm using OpenCV 2.4.2 right now...maybe updating to 2.4.8 may solve the problem ?
-
The question about ffmpeg drawtext filter [closed]
5 mai 2024, par B1GGersnowI tried to use rockchip(aarch64) hardware acceleration and add a drawtext filter to add watermarks. However, squares appear when multiple Chinese fonts are added.


This is my compilation parameter.


./configure --prefix=/usr --enable-gpl --enable-version3 --enable-libdrm --enable-rkmpp --enable-rkrga --enable-filter=drawtext --enable-libharfbuzz --enable-libfreetype --enable-libfontconfig --enable-libfreetype --enable-libfribidi



- 

-
ffmpeg -hwaccel rkmpp -hwaccel_output_format drm_prime -i 1.mp4 -vf scale_rkrga=w=1920:h=1080,hwdownload,format=nv12,drawtext=text='中文':fontfile=msyh.ttc:fontsize=200 -c:v h264_rkmpp -y -t 10 output.mp4

img1

-
ffmpeg -hwaccel rkmpp -hwaccel_output_format drm_prime -i 1.mp4 -vf "scale_rkrga=w=1920:h=1080,hwdownload,format=nv12,drawtext=text='中文字幕测试':fontfile=msyh.ttc:fontsize=200" -c:v h264_rkmpp -y -t 10 output.mp4

img2







But I try to use
apt install ffmpeg
to install ffmpeg which is officially maintained by Ubuntu. I got the right result. So I think it's the library, and I'm trying to compile using the official library.

./configure --prefix=/usr --enable-gpl --enable-version3 --enable-filter=drawtext --enable-libharfbuzz --enable-libfreetype --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libx264



I still get garbled results.


Is this because there is something wrong with my compilation dependent library ?


When I compiled it with the same parameters on wsl, there was no garbled code.


-
-
How can I solve the error when installing ffmpeg [closed]
11 mars 2024, par zhiyang houOS :
uname -r
3.10.0-957.27.2.el7.x86_64


I performed the following steps on CentOS :


1.Installed dependency libraries :


sudo yum install epel-release -y
sudo yum install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel -y



2.Cloned the FFmpeg repository :


git clone https://git.ffmpeg.org/ffmpeg.git



3.Compiled and installed FFmpeg :


cd ffmpeg
./configure --enable-shared
make -j$(nproc)
sudo make install



Then, I encountered the following issue :


(123) [root@b0a30580415d ffmpeg]# make install
INSTALL libavdevice/libavdevice.a
X86ASM libavcodec/x86/vvc/vvc_mc.o
libavcodec/x86/vvc/vvc_mc.asm:55: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:55: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:55: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:55: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:55: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:55: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:55: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:56: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:56: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:56: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:56: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:56: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:56: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:56: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:57: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:57: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:57: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:57: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:57: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:57: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:57: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:58: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:58: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:58: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:58: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:58: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:58: error: operand 1: expression is not simple or relocatable
libavcodec/x86/vvc/vvc_mc.asm:58: error: operand 1: expression is not simple or relocatable
make: *** [libavcodec/x86/vvc/vvc_mc.o] Error 1



I am trying to find relevant information on the ffmpeg official website, but I don't know how to solve it. I hope to get guidance from someone with strong technical skills. Thank you.