
Recherche avancée
Autres articles (111)
-
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 ; (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation" -
La gestion des forums
3 novembre 2011, parSi les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
Accès à l’interface de modération des messages
Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)
Sur d’autres sites (10131)
-
pydub no ffprobe found
21 septembre 2019, par Virgil SisoeI have an app for MacOS that is compiled with
py2app
. The app uses thepydub
module and the latter uses ffmpeg family package.The problem is that once I compile the app and move it to a different OS, the
subprocess
call frompydub
fails to find any of theffmpeg
packages even though they are installed in/usr/local/bin
.If I launch the app from terminal
./Nameapp.app/Contents/MacOs/Nameapp
then it runs no problem, but if I launch it with double click thenpydub
complains not finding the packages and the app hangs whereffmpeg/ffprobe
should do the work.I can see that
pydub
searches in the/usr/local/bin
only if launched from terminal, otherwise no. If I add/usr/local/bin
toPATH
,pydub
doesnt complain anymore that it doesnt find ffmpeg/ffprobe, but it still gives me an error for both ffmpeg and ffprobe :[Errno 2] No such file or directory:
.If I hardcode the path
pydub.AudioSegment.converter = "/usr/local/bin/ffmpeg"
, the app gives me only ffprobe error[Errno 2] No such file or directory:'ffprobe': 'ffprobe'
.On some other posts i’ve seen
pydub.AudioSegment.ffprobe = "/path/to/ffprobe"
but it doesnt seem to work in my case ?So my two questions are :
How to hardcode the ffprobe path in pydub ?
How to solve this without hardcoding path ? -
I need assistance of making a automated script for ffmpeg [closed]
18 décembre 2024, par user2614404Currently i use this script that GPT generated :


ffmpeg -c:v av1_qsv -b:v 0 -global_quality 20 -preset veryslow -look_ahead 64 -c:a copy -c:s copy G:\1ARC-movies\A-View-to-a-kill.mkv -i Y:\media\Movies\A_VIEW_TO_A_KILL_t05.mkv


But sadly GPT being gpt, it hallucinates answers, and none of it's deeper automation code scripts were working when it made the scripts for a .ps1 script file.


And as i find most of the docs quite overwhelming, i need help to simplify what i need. As i learn best when i get explained what i currently try to do, and not every variable ffmpeg can do.


what i want the script to do is :


1 : convert movies with AV1_QSV with "veryslow", as that's apparently from what i've read up being the best it can do


2 : Global quality as close to 50 as possible (smaller, the better), as 20-6 gave the same range of percentage of 97% VMAF score, 22 gave 95%, so 20 is the largest number i can go, as VMAF via NMKODER reported any higher number was sub 97%.


3 : Give it a main folder for movies and shows to scan, and convert all the media in there to their respective subfolders to a designated output folder.


2 : Automatic crop detection, as some crops it to a 21:9 ratio, others has very small letterboxes. As GPT's code for that attempt for some reason used cpu instead of arc's quicksync.


As this will be ran from powershell, and it's to replace my plex library, by transcoding all movies and shows, starting with the least watched ones/shows that my family has seen, as then those will be unavailable for them until unraid 7 is out of beta to read intel arc for av1.


-
Can not found valid font in ffmpeg android
8 décembre 2022, par HaryD5I want to add text over video using ffmpeg. But it gives me error of Cannot find a valid font.


I used this command


ffmpeg -y -ss 0 -i /data/user/0/com.example.videoeditor/cache/LMS_1670500883503.mp4 -filter_complex drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text='Stack Overflow':fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2" -t 7 -movflags faststart -strict experimental -vcodec mpeg4 -b:v 2097152 -b:a 48000 -ac 2 -ar 22050 /storage/emulated/0/Download/LMS_1670500883824.mp4



but it gives me error


Cannot find a valid font for the family Sans
Error initializing filter 'drawtext'
with args 'fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text=Stack Overflow:fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2'



I'm using ubuntu OS.
And also is there any way to get font file from android studio assets folder ?


Thanks in Advance !!