
Recherche avancée
Médias (10)
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (75)
-
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (6270)
-
Stream output of x264_encoder_encode over rtsp or rtp [closed]
21 août 2013, par user2660369How can I stream the h264 created with x264_encoder_encode over rtp/rtsp ? What parameters have to be passed to the libx264-encoder ? Is there a way to keep the framerate variable, so that the viewer will display the frame when it gets it, and is not to upset if the frame is a bit late ?
-
close ffmpeg subprocess in python
8 septembre 2018, par LiamI’mh having issues with ffmpeg in a python subprocess,
I’m downloading videos from v.redd.it and stiching them up together with ffmpeg before sending them up to instagram
So here’s what I’m using to download and stick them up together
print('[ TASK ] Downloading video...')
media_url = submission.media['reddit_video']['fallback_url']
mp4_path = ("./media/cache/%s.mp4" % (submission.id))
mp3_path = ("./media/cache/%s.mp3" % (submission.id))
output_path = ("./media/%s.mp4" % (submission.id))
cmd = './ffmpeg.exe -y -i %s -i %s -codec copy -shortest %s' % (mp4_path, mp3_path, output_path)
try:
mute = False
urllib.request.urlretrieve(media_url, mp4_path)
urllib.request.urlretrieve(media_url[:media_url.find('/', 18)] + "/audio", mp3_path)
except urllib.error.HTTPError: # A 'muted sound' video.
print("[ Task ] Muted sound video found...")
mute = True
pass
except Exception as e:
print(e)
pass
if mute is False:
try:
print ("[ TASK ] Merging audio and video with ffpmeg...")
subprocess.call(cmd)
except Exception as e:
print(e)
pass
path = output_path
os.remove(mp3_path)
os.remove(mp4_path)
else:
path = mp4_path
if os.path.getsize(path) >= 20*10**6:
print("[ ERROR ] Video file is larger than max file size")
print("[ INFO ] Currently at " + str(os.path.getsize(path)/1000000) + " MB")
print("[ INFO ] Goal is 20 MB")
print("[ TASK ] Making file smaller... (this might take up to a few minutes)")
subprocess.call("./ffmpeg.exe -y -i %s -vcodec libx264 -crf 24 %s" % (path, output_path.replace(".mp4", "_new.mp4")))
os.remove(path)
path = output_path.replace(".mp4", "_new.mp4")
print("[ INFO ] New size is now " + str(os.path.getsize(path)/1000000) + " MB" )
time.sleep(5)
print(path)
return pathAnd then to upload to instagram :
print("[ INFO ] Post will be a video")
thumb_path = "./media/thumb.jpg"
print("[ TASK ] Currently downloading the video thumbnail")
urllib.request.urlretrieve(str(submission.thumbnail), thumb_path)
video_local_path = path
thumbnail_local_path = thumb_path
print("[ TASK ] Uploading video to Instagram Servers...")
API.uploadVideo(video_local_path, thumbnail_local_path, caption=submission.title)
try:
os.remove(thumb_path)
os.remove(path)
except Exception as e:
print(e)However after it download and ffmpeg up’s the video fine it gives me this error when trying to delete :
[WinError 32] The process cannot access the file because it is being used by another process: './media/9e2zd5_new.mp4'
And I don’t get it, because the ffmpeg task should be alright ? Maybe it’s a conflict between moviepy (used by Instagram-python-API) and ffmpeg subprocess ?
-
How to make cropping when doing motion-tracking look super smooth ? (using cv2 and yolo v8)
4 décembre 2024, par Thomas LancerI'm using yolo to track a face in a video on a frame by frame basis, and then I'm using cv2 to crop the video (with some padding) around the speakers face so it creates a motion tracking type effect. (short example here : https://www.instagram.com/reel/DCIFkFEObkE/?hl=en)


The problem I'm running into is my final crop looks "shaky". Like it's flickering a bit. I think this is because every frame yolo is updating the coordinates, and so there's a slight change in x, y and because of that it creates this shakiness/flickering effect. Here's what mine looks like compared to the example : https://drive.google.com/file/d/1MKHWK-5EH5abSq6i32r71GWld76tN1GP/view?usp=sharing


You can see there's this "shakiness" type look to it. it's especially apparent when the speaker is relatively still.


I've tried doing an exponential moving average and a few other averaging techniques but none have fixed it.


Is my fundamental approach of doing a frame by frame crop wrong ? or is there just some smoothing algorithm or some dumb mistake that you think I may be making ? Any advice is mega appreciated !