
Recherche avancée
Autres articles (32)
-
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 -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (5005)
-
FFMPEG encoding is rotating portrait images uploaded from the iPhone
27 juillet 2017, par Kevin JI’m trying to figure out why FFMPEG is rotating my thumbnail image when a portrait video is uploaded from an iphone.
Here is my command line test :
ffmpeg -i video/test.mp4 -c:v libx264 -profile:v high -level 5 -crf 18 -preset medium -maxrate 10M -bufsize 16M -pix_fmt yuv420p -vf "scale=iw*sar:ih, scale=\'if(gt(iw,ih),min(1920,iw),-1)\':\'if(gt(iw,ih),-1,min(1080,ih))\'" -x264opts bframes=3:cabac=1 -movflags faststart -b:a 320k -y video/test.mp4 -vcodec mjpeg -vframes 1 -an -f rawvideo -s 410x231 video/testthumb.jpg 2>&1
Then the portrait image is rotated 90 degrees to be made a landscape image, but the video stays portrait. How can I keep the orientation the same ?
-
How to apply multiple filters and inputs with ffmpeg
24 juillet 2017, par JasonNot only do I have multiple filters, I have multiple inputs that I want to overlay. I usually have to them in 2-3 steps and wonder how to do it all in one command as it should be the most efficient way ?
1 and 2 literally identical. For readability, I’ve cut out the actual filters which are very long and complicated.
- image slide in left onto video
- Take output of 1, image slide in right
- Take output 2, textbox image fade in
-
Take output3, text fade in (finish)
1)
ffmpeg -i input.mp4 -loop 1 -i image.jpg -filter_complex \
"[1]scale=640:-1[i0]; \
[i0]drawbox=color=white:t=15[i1]; \
[i1]format=,fade=[i2]; \
[i2]rotate=[i3]; \
[0][i3]overlay= \
-c:v libx264 -vb 10M output1.mp4
2)
ffmpeg -i output1.mp4 -loop 1 -i image2.jpg -filter_complex \
"[1]scale=[i0]; \
[i0]drawbox=[i1]; \
[i1]format=,fade=[i2]; \
[i2]rotate=[i3]; \
[0][i3]overlay=" \
-c:v libx264 -vb 10M output2.mp4
3)
ffmpeg -i output2.mp4 -i image3.jpg -filter_complex \
"[1]scale=1080:-1 [ovrl], \
[ovrl]format=fade=[i]; \
[0][i]overlay=" \
-c:v libx264 -vb 10M output4.mp4
4)
ffmpeg -i output4.mp4 -filter_complex "drawtext=" -vb 10M finaloutput.mp4
-
Encoding of two full hd streams in Linux + GPU with Intel HD4000 / VA API / FFMPEG / OpenGL
27 juin 2017, par qknighti want to encode/stream two full hd streams in realtime from my laptop to a remote location using linux/xorg on the host.
VA API
for this i’ve been playing with the VA API but the performance is pretty bad with 5.59 fps (see paste below).
FFMPEG
using ffmpeg with CPU encoding i get about 200 fps but then all cores of my Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz are busy and the fan turns on.
future plans
i want GPU support in encoding and later integrate this into a program which streams a virtual xorg ’screen’, see https://lastlog.de/wiki/index.php/Raspberry_PI_virtual_screen for more details on my plans.
maybe h264 isn’t even what i want ? so if someone advices towards a different implementation, i’d welcome that.
besides VA API there seems to be QuickSync but i didn’t experiment with that yet as it is not packaged on NixOS just yet.
note : i need a library to have a smooth integration into the code.
h264encode -w 1920 -h 1080 —profile MPSource frame is 1920x1080 and will code clip to 1920x1088 with crop
INPUT:Try to encode H264...
INPUT : Resolution : 1920x1080, 60 frames
INPUT : FrameRate : 30
INPUT : Bitrate : 14929920
INPUT : Slieces : 1
INPUT : IntraPeriod : 30
INPUT : IDRPeriod : 60
INPUT : IpPeriod : 1
INPUT : Initial QP : 26
INPUT : Min QP : 0
INPUT : Source YUV : AUTO generated
INPUT : Coded Clip : /tmp/test.264
INPUT : Rec Clip : Not save reconstructed framelibva info : VA-API version 0.38.1
libva info : va_getDriverName() returns 0
libva info : Trying to open /run/opengl-driver/lib/dri/i965_drv_video.so
libva info : Found init function __vaDriverInit_0_38
libva info : va_openDriver() returns 0
Use profile VAProfileH264Main
Support rate control mode (0x12):CBR CQP
RateControl mode : CQP
Support VAConfigAttribEncPackedHeaders
Support packed sequence headers
Support packed picture headers
Support packed slice headers
Support packed misc headers
Support 1 RefPicList0 and 1 RefPicList1
Loading data into surface 15.....Complete surface loading
\00000059(054456 bytes coded)PERFORMANCE : Frame Rate : 5.59 fps (60 frames, 10730 ms (178.83 ms per frame))
PERFORMANCE : Compression ratio : 51:1
PERFORMANCE : UploadPicture : 10467 ms (174.45, 97.55% percent)
PERFORMANCE : vaBeginPicture : 0 ms (0.00, 0.00% percent)
PERFORMANCE : vaRenderHeader : 1 ms (0.02, 0.01% percent)
PERFORMANCE : vaEndPicture : 42 ms (0.70, 0.39% percent)
PERFORMANCE : vaSyncSurface : 244 ms (4.07, 2.27% percent)
PERFORMANCE : SavePicture : 7 ms (0.12, 0.07% percent)
PERFORMANCE : Others : -31 ms (71582787.75, 40027653.91% percent)
(Multithread enabled, the timing is only for reference)i’ve seen https://www.reddit.com/r/linux/comments/1qk1yu/is_there_currently_opensource_software_to_encode/ though but i’m not sure what do do with it.