
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (38)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...) -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)
Sur d’autres sites (5796)
-
How to add overlay video with opacity and run in loop using ffmpeg-python ?
30 juillet 2021, par kupI am trying the below code :


in0 = ffmpeg.input('left.mkv')
in1 = ffmpeg.input('right.mkv')
aout = ffmpeg.filter([in0.audio, in1.audio.filter('adelay', "5000|5000")],'amix')
vout = ffmpeg.filter([inv0.video, inv1.video.filter('tpad', start_duration=5, start_mode='add', color='black')], 'hstack')

overlay_file = ffmpeg.input(overlay).filter('scale', 1280, 720, force_original_aspect_ratio='decrease')
vout = vout.overlay(overlay_file, x=0, y=0)


(
 ffmpeg
 .concat(vout, aout, v=1, a=1)
 .output("out.mkv")
 .run()
)



But the overlay does not appear to be at top left (0,0) instead it is at top left of the stacked video which is somewhat at (0, 260). Is it possible to make the overlay video to cover full screen and with opacity to run in loop.


-
How to create side by side horizontally stacked video with delay in video and audio using ffmpeg-python ?
29 juillet 2021, par kupI am trying to create a video from two videos that will be stacked horizontally but the resulting video is not what i expected. The same video is appearing on both side (left & right). So wondering how that can be achieved ?


The ffmpeg command i tried, which kinda worked :


ffmpeg -i left.mp4 -i right.mp4 -filter_complex "
[0:v]setpts=PTS-STARTPTS[l]; 
[1:v]setpts=PTS-STARTPTS,tpad=start_duration=14:start_mode=add:color=black[r]; 
[l][r]hstack=inputs=2[stacked]; [0:a][1:a]amix=inputs=2[a]
" -map "[stacked]" -map "[a]" -c:a aac -preset superfast result.mp4



ffmpeg-python script that's not working :


in0 = ffmpeg.input('0.mp4')
in1 = ffmpeg.input('right.mkv')
aout = ffmpeg.filter([in0.audio, in1.audio.filter('adelay', "5000|5000")],'amix')
vout = ffmpeg.filter([inv0.video, inv1.video.filter('tpad', start_duration=5, start_mode='add', color='black')], 'hstack')

(
 ffmpeg
 .concat(vout, aout, v=1, a=1)
 .output("out.mkv")
 .run()
)



This script not resulting in the expected output which two videos side-by-side horizontally stacked.


-
How to decode Byte string from continous video frames in python
15 juillet 2021, par fresch mani am trying to get PNG from a video stream. first i connect the server during socket, and i recieve presistent byte string. however when i use Pickel ,i get a Error,that is UnpicklingError : invalid load key, '\x10.


i surpose that ,if i should first do someting to the bytestring before i use pickel.or i should use another methode


i have already search in the internet, but all the answers are , open locally video and so ..but my byte string are acctully presistent RAW video frames(yuv420) during tcp transport.


`import socket,os,struct,numpy,pickle
TCP_IP = '192.168.0.90'
TCP_PORT = 5000
BUFFER_SIZE =1024
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))
while True :
 data = s.recv(BUFFER_SIZE)
 data = pickle.loads(data) `



thank you