
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (48)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
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 (...) -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)
Sur d’autres sites (4027)
-
How to embed ffmpeg and ffprobe to a python gui.exe file in Windows or Mac ?
10 décembre 2023, par sburakcI prepared a Pyhton Gui script in Windows that gets a subtitle then converts an audio file. But at the end of the script I realized that the script uses the ffmpeg from my computer's local ffmpeg and didn't give any error. But, when I try in another computer that doesn't include ffmpeg, it's given the error in the terminal below :

pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work Processing text 1/2 pydub\utils.py:198: RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work Error occurred: [WinError 2] System cannot find the specified file


I tried many ways such as :


pyinstaller -F --add-data "./ffmpeg/*;./ffmpeg/" gui.py


pyinstaller -F --add-data "C:\Users\sbura\Desktop\gom\ffmpeg\ffmpeg.exe;ffmpeg" --add-data "C:\Users\sbura\Desktop\gom\ffmpeg\ffprobe.exe;ffmpeg" gui.py


OR


tried to gui.spec file adding :


exe = EXE(pyz,
 a.scripts,
 binaries=[('C:\\Users\\sbura\\Desktop\\gom\\ffmpeg_bin\\ffmpeg.exe', 'ffmpeg.exe'), 
 ('C:\\Users\\sbura\\Desktop\\gom\\ffmpeg_bin\\ffprobe.exe', 'ffprobe.exe')],
 a.zipfiles,
 a.datas,
 [],
 ...




I also created a folder with the name of "ffmpeg" where I put the files of ffmpeg.exe and ffprobe.exe.


Also I added to my code that :


import sys
from pydub import AudioSegment

def resource_path(relative_path):
 if hasattr(sys, '_MEIPASS'):
 return os.path.join(sys._MEIPASS, relative_path)
 return os.path.join(os.path.abspath("."), relative_path)

AudioSegment.converter = resource_path('ffmpeg\\ffmpeg.exe')
AudioSegment.ffprobe = resource_path('ffmpeg\\ffprobe.exe')



But any of these didn't work. Thank you for your help.


-
Iterate recursively in every subfolder and run a batch file
6 août 2018, par Gokul NairPlease look at the following scenario wherein a folder
A
has many subfolders with different names. These subfolders haven
number of.jpg
files, which I am trying to scale and crop.Folder A\
SubFolder 01\*.jpg
SubFolder 02\*.jpg
.
.
.
SubFolder xx\*.jpgThese sub-folders are with different names and do not have a trend when it comes to its names.
I have created a batch file which would scale and crop images. This is working perfectly. I need to run the following command (name of file : ScaleCrop.bat) in each SubFolder xx :
for %%I in (.) do set CurrDirName=%%~nxI
for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=-1:260, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=260:-1, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
pauseThe command Scales and crops the image in the folder and saves these files in to a folder named
SacledImages
, which too has subfolders of the same name (SubFolder 01
,SubFolder 02
,…,SubFolderxx
).I have created another
.bat
file which I used to copyScaleCrop.bat
to each subfolder.for /d %%a in ("C:\Users\Name\Desktop\Folder A\*") do copy " C:\Users\Name\Desktop\Folder A\ScaleCrop.bat" "%%a"
How could I code a batch file run and execute
ScaleCrop.bat
from each of these subfolders ?I tried using the following code, but this just calls the
.bat file
inside each subfolder, however it is not executing :for /f %%f in ('dir /ad /b') do start %%f\ScaleCrop.bat
I Tried the following as well, this does the trick, but all images are getting overwritten as the scaled-cropped images are saved on to
/SacledImages
Folder and not insideScaledImages/SubFolderxx
:for /r "C:\ Users\Name\Desktop\Folder A " %%a in (.) do (
pushd %%a
for %%I in (.) do set CurrDirName=%%~nxI
for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=-1:260, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
for %%a in ("*.JPG") do ffmpeg -i "%%a" -vf ^"scale=260:-1, crop=250:250^" "..\ScaledImages\%CurrDirName%\%%a.JPG"
pause
popd
) -
ffmpeg append an audio file to another audio file at position of every 10 seconds
28 décembre 2018, par manoj kumarI want to append an audio file into another audio file at position of every 10 seconds through FFMPEG.
- ads.mp3 length 2 seconds (advertisement audio file)
- original.mp3 length xxxx seconds
- so output file could be as following
file appending terms
original.mp3 after 10 seconds append ads.mp3 for 2 seconds then
again original.mp3 for 10 seconds append ads.mp3 for 2 seconds then
again original.mp3 for 10 seconds append ads.mp3 for 2 seconds then
again original.mp3 for 10 seconds ...... so long till end of
original.mp3 file.Thanks