
Recherche avancée
Autres articles (40)
-
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 (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (8588)
-
"fmpeg" has no attribute "input"
2 mai 2024, par Robin SinghI had previously built this youtube downloader but when I tested it recently ; it stopped working.


from pytube import YouTube
import ffmpeg
import os

raw = 'C:\ProgramData\ytChache'

path1 = 'C:\ProgramData\ytChache\Video\\'
path2 = 'C:\ProgramData\ytChache\Audio\\'

file_type = "mp4"

if os.path.exists(path1 and path2):
 boo = True
else:
 boo = False

while boo:

 url = str(input("Link : "))
 choice = int(input('Enter 1 for Only Audio and Enter 2 For Both Audio and Video \n: '))

 video = YouTube(url)
 Streams = video.streams

 if choice == 1:
 aud = Streams.filter(only_audio=True).first().download(path2)

 elif choice == 2:
 resol = str(input("Resolution : "))
 vid = Streams.filter(res=resol, file_extension=file_type).first().download(path1)
 aud = Streams.filter(only_audio=True).first().download(path2)

 file = video.title + '.mp4'
 # location = path1
 # location2 = path2
 rem = os.path.join(path1, file)
 rm = os.path.join(path2, file)

 video_stream = ffmpeg.input(path1, video.title + '.mp4')
 audio_stream = ffmpeg.input(path2, video.title + '.mp4')
 ffmpeg.output(audio_stream, video_stream, video.title + '.mp4').run()
 os.remove(rem)
 os.remove(rm)

 else:
 print('Invalid Selection')

if not boo:
 os.mkdir(raw)
 os.mkdir(path1)
 os.mkdir(path2)



so it gives an error saying :


Traceback (most recent call last):
 File "E:\dev files\YouTube Video Downloader\Video Downloader.py", line 39, in <module>
 video_stream = ffmpeg.input(path1 + video.title + '.mp4')
AttributeError: module 'ffmpeg' has no attribute 'input'
</module>


I can't figure out what happened. I think it may have something to do about the versions of ffmpeg or something ??


-
Introducing Improvements to the Opt-Out Form Feature
18 septembre 2022, par Ben — AboutMatomo includes a built-in opt-out form that you can add to your website so you can provide your visitors with the choice to opt-out of Matomo tracking. Up until Matomo 4.12.0 the built-in opt-out form relied on iFrame technology which has become increasingly problematic due to browser changes and restrictions on setting third-party cookies.
With our privacy-first approach, we’ve known for some time that we would eventually need a new way to provide this important opt-out functionality that would work most reliably in the myriad of contexts our users rely on it for.
Embedding the opt-out form
Matomo 4.12.0 introduces an improved opt-out. This provides two new options for embedding the opt-out on your website, either using the Matomo tracker code or as self-contained code.
As with the iFrame method, the built-in opt-out code can be styled in Matomo to match your website, and provides a snippet which you can add to your website to show the opt-out feature to your users.
Find out how to customise the opt-out form.
Customising the opt-out form
What does this mean for existing opt-out forms ?
Although it is no longer possible to generate new iFrame embed code using the Matomo UI, the underlying opt-out feature is still fully supported and any existing iFrame opt-out form code embedded in websites will still work as before. It is recommended to migrate to one of the new opt-out form options as browser support for the iFrame opt-out will continue to decrease.
To read more in depth information about the new opt-out functionality please refer to our new developer documentation for tracking opt-out.
-
FFMPEG changing output framerate issues
12 septembre 2022, par is_this_takenI want to take the input, blend N frames, decimate the other frames and use those for the output with the fps of my choice.


I used this line :


ffmpeg -y -i input.mp4 -vf tmix=frames=15:weights="1",select='not(mod(n\,15))' -vsync vfr frames/output-%05d.tif



That generated images, which I combined into the video. So far, so good.
But I'd like to skip the image output and go straight to video, so I tried this :


ffmpeg -y -i input.mp4 -vf tmix=frames=15:weights="1",select='not(mod(n\,15))' -vsync vfr -r 30 -c:v prores_ks -profile:v 3 -vendor apl0 -bits_per_mb 8000 -pix_fmt yuv422p10le output.mov



That produces 1.62 fps video, instead of 30 fps.


I'm at a loss on how to get it to output 30fps without the intermediate step of outputting images.


Thanks