
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (48)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
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 (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (6218)
-
how to write subcommand to FFPLAY during playback using subprocess module ?
4 mars 2023, par ChienMouilleI'm trying to pause a video playback started with
FFPLAY
through a pythonsubprocess
. You can do this manually by pressing the "p" key on the keyboard while the video is playing. I'd like to emulate this behavior through a python call.

I'm now sending a "p" string, encoded as bytes, through the
stdin
of thePopen
call. The video starts and I can pause it with the keyboard but thecommunicate
command doesn't seem to do anything.

import subprocess
import time

proc = subprocess.Popen(['ffplay', 'PATH_TO_'],
 stdin=subprocess.PIPE,
 stdout=subprocess.PIPE,
 )
time.sleep(2) # just waiting to make sure playback has started
proc.communicate(input="p".encode())[0]




Thanks in advance !


-
TypeError at /api/v1/file/86370b91-8e25-4833-bbc6-a4b833363893/ 'module' object is not callable
16 avril 2023, par OlyxPlease help me, I'm writing a patch request that should change the video resolution, but I can't get the file back from celery
views.py


def patch(self, request, id = None):
 file = File.objects.get(id = id)
 width = request.data.get('width')
 height = request.data.get('height')
 file.width = width
 file.height = height 
 
 file.video = change_video_extension.delay(file.video.path, width, height).get()
 file.save()
 return Response({'width':width, 'height':height})



tasks.py


import os
from demo.celery import app

@app.task(name = "change_video_extension")
def change_video_extension(input_file, width, height):
 output_file = "abc123.mp4"
 os.system(f"ffmpeg -i {input_file} -s {width}x{height} {output_file}")
 return output_file



TypeError


TypeError at /api/v1/file/86370b91-8e25-4833-bbc6-a4b833363893/
'module' object is not callable
Request Method : PATCH
Request URL : http://127.0.0.1:8000/api/v1/file/86370b91-8e25-4833-bbc6-a4b833363893/
Django Version : 4.2
Exception Type : TypeError
Exception Value :

'module' object is not callable

-
AttributeError : module 'ffmpeg' has no attribute 'load'
23 avril 2023, par az-purplepenI'm having difficulty with ffmpeg. I've installed it properly (I think) but still get AttributeErrors.


I used the online guide (https://ffmpeg.org/download.html), and doing
pip install ffmpeg-python
instead ofpip install ffmpeg
. I've verified the installation withpip show
. I've also made sure to not name my filesffmpeg.py
.

However, when I try running the following commands in terminal, I get an Attribute Error. Any tips ? I've seen this question pop up before, but none of the tips have worked.


>>> import ffmpeg
>>> ffmpeg.load('cover.wav')
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
AttributeError: module 'ffmpeg' has no attribute 'load
</module></stdin>