
Recherche avancée
Médias (3)
-
Elephants Dream - Cover of the soundtrack
17 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
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (27)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne 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 (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Les formats acceptés
28 janvier 2010, parLes 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 (...)
Sur d’autres sites (3640)
-
avformat_close_input memory leak ?
20 janvier 2021, par Keen JackdawI developed an app to push live stream with ffmpeg. When I checked the app with
leaks --atExit -- <the app="app"></the>
(I'm on mac), I found some memory leak with AVFormatContext.

The minimized code are provided below :


#include <iostream>

extern "C" {
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
#include <libavdevice></libavdevice>avdevice.h>
}

void foo() {
 avdevice_register_all();

 AVFormatContext *avInputFormatContext = avformat_alloc_context();
 AVInputFormat *avInputFormat = av_find_input_format("avfoundation");
 std::cout << "open input" << std::endl;
 int ret = avformat_open_input(&avInputFormatContext, "Capture screen 0", avInputFormat, nullptr);
 if (ret < 0) { std::cout << "open input failed: " << ret << std::endl; return;}

 avformat_close_input(&avInputFormatContext);

}

int main() {
 foo();
 return 0;
}

</iostream>


The output is


Process: ffmpegtest [87726]
Path: /Users/USER/*/ffmpegtest
Load Address: 0x10a752000
Identifier: ffmpegtest
Version: ???
Code Type: X86-64
Platform: macOS
Parent Process: leaks [87725]

Date/Time: 2021-01-20 15:44:57.533 +0800
Launch Time: 2021-01-20 15:44:55.760 +0800
OS Version: macOS 11.1 (20C69)
Report Version: 7
Analysis Tool: /Applications/Xcode.app/Contents/Developer/usr/bin/leaks
Analysis Tool Version: Xcode 12.3 (12C33)

Physical footprint: 9.9M
Physical footprint (peak): 10.6M
----

leaks Report Version: 4.0
Process 87726: 14143 nodes malloced for 2638 KB
Process 87726: 1 leak for 32 total leaked bytes.

 1 (32 bytes) ROOT LEAK: 0x7f8c61e1b040 [32] length: 16 "Capture screen 0"



Did I miss something ?


-
why am i getting very low encoding bitrate using vaapi in ffmpeg
19 janvier 2021, par ohroblotI am using this command :


ffmpeg -y \
-vaapi_device /dev/dri/renderD128 \
-loop 1 -r 1 -i ./image.jpg -pix_fmt vaapi_vld \ 
-b:v 18000k -minrate 18000k \
-vf 'format=nv12|vaapi,hwupload,scale_vaapi=w=1280:h=720' \ 
-rc_mode 3 \
-r 30 -g 60 \
-c:v h264_vaapi -f flv /dev/null



I am getting very low bitrate with this, the bitrate is as low as 100Kbits/s. I get faster encoding using libx264 and my cpu. Is it an underpowered GPU ? am I missing some ffmpeg arguments ?


I am not sure what's going on, could this be an issue with linux, mesa drivers, did i miss some options when I compiled ffmpeg ?


vainfo


error: can't connect to X server!
libva info: VA-API version 1.8.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.8 (libva 2.8.0)
vainfo: Driver version: Mesa Gallium driver 20.2.6 for AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.38.0, 5.8.0-7630-generic, LLVM 11.0.0)
vainfo: Supported profile and entrypoints
 VAProfileMPEG2Simple : VAEntrypointVLD
 VAProfileMPEG2Main : VAEntrypointVLD
 VAProfileVC1Simple : VAEntrypointVLD
 VAProfileVC1Main : VAEntrypointVLD
 VAProfileVC1Advanced : VAEntrypointVLD
 VAProfileH264ConstrainedBaseline: VAEntrypointVLD
 VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
 VAProfileH264Main : VAEntrypointVLD
 VAProfileH264Main : VAEntrypointEncSlice
 VAProfileH264High : VAEntrypointVLD
 VAProfileH264High : VAEntrypointEncSlice
 VAProfileHEVCMain : VAEntrypointVLD
 VAProfileHEVCMain : VAEntrypointEncSlice
 VAProfileHEVCMain10 : VAEntrypointVLD
 VAProfileJPEGBaseline : VAEntrypointVLD
 VAProfileNone : VAEntrypointVideoProc



ffmpeg -buildconf


ffmpeg version N-100671-gc48110a4a4 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 10 (Ubuntu 10.2.0-13ubuntu1)
 configuration: --prefix=/home/_user/Dev/ffmpeg_build/build --extra-cflags='-I/home/_user/Dev/ffmpeg_build/build/include -I/usr/include' --extra-ldflags='-L/home/_user/Dev/ffmpeg_build/build/lib -L/home/_user/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -Wl,-rpath=/home/_user/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -ldrm -L/usr/lib' --pkg-config-flags=--static --extra-libs='-lpthread -lm' --bindir=/home/_user/Dev/ffmpeg_build/bin --arch=amd64 --disable-shared --disable-ffprobe --disable-ffplay --disable-gnutls --enable-openssl --enable-zlib --enable-librtmp --enable-static --enable-chromaprint --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-vdpau --enable-ladspa --enable-libaom --enable-libbs2b --enable-libcaca --enable-libcodec2 --enable-libdav1d --enable-libfontconfig --enable-libfribidi --enable-libgme --enable-libopenjpeg --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libwebp --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-libass --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librabbitmq --enable-libvorbis --enable-libvpx --enable-libflite --enable-chromaprint --enable-frei0r
 libavutil 56. 63.101 / 56. 63.101
 libavcodec 58.117.101 / 58.117.101
 libavformat 58. 65.101 / 58. 65.101
 libavdevice 58. 11.103 / 58. 11.103
 libavfilter 7. 96.100 / 7. 96.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100

 configuration:
 --prefix=/home/_user/Dev/ffmpeg_build/build
 --extra-cflags='-I/home/_user/Dev/ffmpeg_build/build/include -I/usr/include'
 --extra-ldflags='-L/home/_user/Dev/ffmpeg_build/build/lib -L/home/_user/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -Wl,-rpath=/home/_user/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -ldrm -L/usr/lib'
 --pkg-config-flags=--static
 --extra-libs='-lpthread -lm'
 --bindir=/home/_user/Dev/ffmpeg_build/bin
 --arch=amd64
 --disable-shared
 --disable-ffprobe
 --disable-ffplay
 --disable-gnutls
 --enable-openssl
 --enable-zlib
 --enable-librtmp
 --enable-static
 --enable-chromaprint
 --enable-gpl
 --enable-libass
 --enable-libfdk-aac
 --enable-libfreetype
 --enable-libmp3lame
 --enable-libopus
 --enable-libvorbis
 --enable-libvpx
 --enable-libx264
 --enable-libx265
 --enable-nonfree
 --enable-vdpau
 --enable-ladspa
 --enable-libaom
 --enable-libbs2b
 --enable-libcaca
 --enable-libcodec2
 --enable-libdav1d
 --enable-libfontconfig
 --enable-libfribidi
 --enable-libgme
 --enable-libopenjpeg
 --enable-librsvg
 --enable-librubberband
 --enable-libshine
 --enable-libsnappy
 --enable-libsoxr
 --enable-libspeex
 --enable-libsrt
 --enable-libssh
 --enable-libtheora
 --enable-libtwolame
 --enable-libvidstab
 --enable-libwebp
 --enable-libxml2
 --enable-libxvid
 --enable-libzmq
 --enable-libzvbi
 --enable-lv2
 --enable-omx
 --enable-openal
 --enable-opencl
 --enable-opengl
 --enable-sdl2
 --enable-pocketsphinx
 --enable-libdc1394
 --enable-libdrm
 --enable-libiec61883
 --enable-libass
 --enable-libfreetype
 --enable-libgsm
 --enable-libmp3lame
 --enable-libmysofa
 --enable-libopenjpeg
 --enable-libopenmpt
 --enable-libopus
 --enable-librabbitmq
 --enable-libvorbis
 --enable-libvpx
 --enable-libflite
 --enable-chromaprint
 --enable-frei0r



a link to full logs : http://0x0.st/-i2j.txt


-
ffmpeg.exe not detecting UScreenCapture
14 janvier 2021, par TenGI have two version of ffmpeg on the Windows 7 PC.


The first came installed with an application, which uses ffmpeg to capture video/audio of the desktop. This works.


It uses an older version of ffmpeg, so I downloaded the latest version and tried the same command and it reports that the devices are not detected.


Commands run :


Old FFMPEG :


ffmpeg.exe -list_devices true -f dshow -i dummy


ffmpeg version N-70358-g047fd98 Copyright (c) 2000-2015 the FFmpeg developers
 built with gcc 4.9.2 (GCC)
 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-f
rei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --ena
ble-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-
amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-li
btheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --e
nable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklin
k --enable-zlib
 libavutil 54. 19.100 / 54. 19.100
 libavcodec 56. 26.100 / 56. 26.100
 libavformat 56. 23.106 / 56. 23.106
 libavdevice 56. 4.100 / 56. 4.100
 libavfilter 5. 11.102 / 5. 11.102
 libswscale 3. 1.101 / 3. 1.101
 libswresample 1. 1.100 / 1. 1.100
 libpostproc 53. 3.100 / 53. 3.100
[dshow @ 04a8a500] DirectShow video devices (some may be both video and audio devices)
[dshow @ 04a8a500] "VF0700 Live! Cam Chat HD"
[dshow @ 04a8a500] Alternative name "@device_pnp_\\?\usb#vid_041e&pid_4088&mi_00#7&b015b04&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c
9223196}\global"
[dshow @ 04a8a500] "UScreenCapture"
[dshow @ 04a8a500] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture"
[dshow @ 04a8a500] "screen-capture-recorder"
[dshow @ 04a8a500] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{4EA6930A-2C8A-4AE6-A561-56E4B5044439}"
[dshow @ 04a8a500] DirectShow audio devices
[dshow @ 04a8a500] "Microphone (VF0700 Live! Cam Ch"
[dshow @ 04a8a500] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Microphone (VF0700 Live! Cam Ch"
[dshow @ 04a8a500] "virtual-audio-capturer"
[dshow @ 04a8a500] Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{8E14549B-DB61-4309-AFA1-3578E927E935}"
dummy: Immediate exit requested



New FFMPEG :


ffmpeg version N-100616-gca21cb1e36 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 9.3-win32 (GCC) 20200320
 configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --a
rch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv
--enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-open
cl --enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-li
bdavs2 --enable-ffnvcodec --enable-cuda-llvm --disable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-li
bopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --en
able-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-
libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-li
bxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
 libavutil 56. 63.100 / 56. 63.100
 libavcodec 58.116.100 / 58.116.100
 libavformat 58. 65.101 / 58. 65.101
 libavdevice 58. 11.103 / 58. 11.103
 libavfilter 7. 95.100 / 7. 95.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100
[dshow @ 000000000052cc00] DirectShow video devices (some may be both video and audio devices)
[dshow @ 000000000052cc00] "VF0700 Live! Cam Chat HD"
[dshow @ 000000000052cc00] Alternative name "@device_pnp_\\?\usb#vid_041e&pid_4088&mi_00#7&b015b04&0&0000#{65e8773d-8f56-11d0-a3
b9-00a0c9223196}\global"
[dshow @ 000000000052cc00] DirectShow audio devices
[dshow @ 000000000052cc00] "Microphone (VF0700 Live! Cam Ch"
[dshow @ 000000000052cc00] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Microphone (VF0700 Live! Cam Ch"
dummy: Immediate exit requested



The new version is not detecting the following :


[dshow @ 04a8a500] "UScreenCapture"
[dshow @ 04a8a500] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture"
[dshow @ 04a8a500] "screen-capture-recorder"
[dshow @ 04a8a500] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{4EA6930A-2C8A-4AE6-A561-56E4B5044439}"
[dshow @ 04a8a500] "virtual-audio-capturer"
[dshow @ 04a8a500] Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{8E14549B-DB61-4309-AFA1-3578E927E935}"



Why is this ?