
Recherche avancée
Autres articles (56)
-
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 (...) -
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 (8122)
-
How do I resize my video ? in proportion (python)
23 septembre 2022, par ggn0*I am sorry for my poor English. It's a translator.


I used Python moviepy to resize it, but the pixels are broken. I want to make the video 9:16 ratio while maintaining the original image quality. (So that there are black frames on both sides)


from moviepy.editor import *
c = VideoFileClip('test.mp4')
f = c.resize(newsize=(1080,1920))
f.write_videofile('aa.mp4')



This code causes pixels to collapse.


Let me show you an example picture.








It doesn't have to be moviepy, so I'd appreciate it if you could tell me how to use Python. (PIL ? opencv ?)


Thank you so much. Have a nice day 🙏


-
Using FFMPEG and PHP to encode HLS video on the fly
21 avril 2024, par mrsmithI'm re-encoding a MP4 video to HLS using FFMPEG with PHP. I'm trying to then directly serve to the output to a HTML page's
<video></video>
tag. The following script (encode.php) encodes the video as I require and it works if I use the script url directly in VLC player for example but I'm struggling to get the gtml page to play it. The resulting video file should be compatible with most browsers. I usevideo.src = 'encode.php'
on my player html page.

Any help appreciated.


<?php

$input_video = 'whatever.mp4';

// video passthrough
// hls format
// audio (english strems only) to aac (6 channel)
// output to stdout

$ffmpeg_command = 'ffmpeg -i ' . escapeshellarg($input_video) . ' -map 0:v -c:v copy -map 0:a:m:language:eng -c:a aac -ac 6 -b:a 320k -f hls -hls_time 30 -hls_list_size 120 -start_number 0 -';

$handle = popen($ffmpeg_command, 'rb');

header('Content-Type: application/vnd.apple.mpegurl');
header('Content-Disposition: inline; filename="output.m3u8"');

// stream the output to the browser
fpassthru($handle);
pclose($handle);
?>



-
android ffmpeg command line
8 avril 2014, par user3509984i am new android develop.i need to change video color like vintage ,sepia etc .i google many hours at last i found FFMPEG to achieve tat.i had command line for ffmpeg to convert video color
ffmpeg -y -i /sdcard/videokit/in.mp4 -strict experimental -vf transpose=1 -s 160x120 -r 30 -aspect 4:3 -ab 48000 -ac 2 -ar 22050 -b 2097k /sdcard/videokit/out.mp4
i need to know how to compile tat in android. pls provide some tutorial to achieve tat.
i found one link tat command will work..but it give oly trai version...
tat link is
http://androidwarzone.blogspot.in/2011/12/ffmpeg4android.htmlpls provide some tutorial to compile tat command in ffmpeg
(sorry for my english)
thanks in advance