
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (77)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (10152)
-
How can I get Python to find ffprobe ?
4 novembre 2018, par tburrows13I have
ffmpeg
andffprobe
installed on my mac (macOS Sierra), and I have added their path to PATH. I can run them from terminal.I am trying to use
ffprobe
to get the width and height of a video file using the following code :import subprocess
import shlex
import json
# function to find the resolution of the input video file
def findVideoResolution(pathToInputVideo):
cmd = "ffprobe -v quiet -print_format json -show_streams"
args = shlex.split(cmd)
args.append(pathToInputVideo)
# run the ffprobe process, decode stdout into utf-8 & convert to JSON
ffprobeOutput = subprocess.check_output(args).decode('utf-8')
ffprobeOutput = json.loads(ffprobeOutput)
# find height and width
height = ffprobeOutput['streams'][0]['height']
width = ffprobeOutput['streams'][0]['width']
return height, width
h, w = findVideoResolution("/Users/tomburrows/Documents/qfpics/user1/order1/movie.mov")
print(h, w)I am sorry I cannot provide a MCVE, as I didn’t write this code, and I don’t really know how it works.
It gives the following error :
Traceback (most recent call last):
File "/Users/tomburrows/Dropbox/Moviepy Tests/get_dimensions.py", line 21, in <module>
h, w = findVideoResolution("/Users/tomburrows/Documents/qfpics/user1/order1/movie.mov")
File "/Users/tomburrows/Dropbox/Moviepy Tests/get_dimensions.py", line 12, in findVideoResolution
ffprobeOutput = subprocess.check_output(args).decode('utf-8')
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 626, in check_output
**kwargs).stdout
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 693, in run
with Popen(*popenargs, **kwargs) as process:
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'
</module>If python is not reading from the PATH file, how can I specify where
ffprobe
is ?Edit :
It appears the python path is not aligned with my shell path.
Usingos.environ["PATH"]+=":/the_path/of/ffprobe/dir"
at the beginning of each program allows me to use ffprobe, but why might my python path not be the same as my shell path ? -
Windows ffmpeg batch to find folder containing VOBs, concatenate and convert, move to next folder [on hold]
27 novembre 2018, par Daniel CooperAll,
I am in need of help that is beyond my capabilities. I need to run a batch command in Windows that finds VOB files in a folder, concatenates and converts them using ffmpeg, and then continues the recursive search for more folders containing VOBs.
The idea is that the cmd file would be copied into the root that the command should look under when running. I have found commands that find VOBs and I have found ffmpeg scripts that concatenate and convert, but combining these functionalities together in the way I need is proving above my level.
Thank you all in advance.
EDIT :
The computer I am running this code on is off the network so I had to manually retype. Any typo’s here are therefore likely from the retyping since the codes seem to function as intended originally...This code creates a list of folders that contain VTS*.VOB (as opposed to just all *.VOBs because that would include a certain useless VOB that is present in each folder).
for /r %%a in (.) do @if exist "%%~fa\VTS*.VOB" echo %%~fa >> folderlist.txt
This piece combines VTS*.VOBs and then converts them to MP4
@ECHO OFF
md ffmpeg_output
for %%f in (VTS*.VOB) do echo file '%%f' >> filelist.txt
ffmpeg -f concat -i filelist.txt -c copy "ffmpeg_output\Total.VOB"
ffmpeg -i "ffmpeg_output\Total.VOB" -c:v libx264 -pix_fmt yuv420p -c:a copy "ffmpeg_output\Converted.mp4"I attempted to essentially nest the for loops with the idea that the first snippet above would produce a txt file, which I could then "for /f" through each line to direct the second snippet of code for concatenation and conversion of the VOB files. However this plan never got off the ground as I am unable to figure out the viability or syntax of nesting for loops in this way.
-
FFMPEG cannot seems to find the font file. Defaulting to mingliub.ttc windows font
27 décembre 2018, par atisThese are the commands I’m trying to use
ffmpeg -i D:\Path\To\footage.mp4 -vf drawtext="fontfile=D:\Path\To\font.otf: text='test': fontcolor=white: fontsize=55: box=1: boxcolor=#D02120: boxborderw=5: x=(w-text_w)/2: y=2" -codec:a copy D:\Path\To\output.mp4
and
ffmpeg -i D:\Path\To\footage.mp4 -vf drawtext="fontfile="D:\\Path\\To\\font.otf": text='test': fontcolor=white: fontsize=55: box=1: boxcolor=#D02120: boxborderw=5: x=(w-text_w)/2: y=2" -codec:a copy D:\Path\To\output.mp4
Similar commands work fine in Linux with Linux path
"/"
instead of"\"
.The font also work on both Windows and Linux.
Exact line where I saw the error
Fontconfig error: Cannot load default config file
[Parsed_drawtext_0 @ 0000021cce8ffe40] Using "C:/WINDOWS/fonts/mingliub.ttc"About FFMPEG
ffmpeg version N-92780-gbb586a9703 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181201
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid
--enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
--enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmptThe commands do process the footage and provide an output, but with wrong fonts (mingliub)
What could I be doing wrong here ?