
Recherche avancée
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)
-
FFMPEG stream to youtube crashing
29 septembre 2022, par jakebWe have a script that runs FFMPEG and broadcasts a tab recording from puppeteer, it will run fine for a period of time, but if the chromium tab from puppeteer ends up doing certain things (playing a youtube video, for example) FFMPEG crashes. It doesn't matter if the video is 4k 60 FPS, or if it's a 480i video from 2009, the result seems to be the same.


This is the FFMPEG command we're running :


ffmpeg -loglevel info -i - -c:v libx264 -b:v 15000k -preset ultrafast -tune animation -force_key_frames "expr:gte(t,n_forced*2)" -sc_threshold 0 -c:a aac -minrate 15000k -s 1920x1080 -r 60 -vsync 1 -max_muxing_queue_size 1024 -max_interleave_delta 0 -f flv -flvflags no_duration_filesize "rtmps://a.rtmps.youtube.com/live2/*****"



This is the output when it crashes :


frame= 6554 fps= 57 q=0.0 size= 17033kB time=00:02:00.02 bitrate=1162. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 6564 fps= 56 q=1.0 size= 17189kB time=00:02:01.02 bitrate=1163. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 6566 fps= 56 q=0.0 size= 17224kB time=00:02:02.05 bitrate=1156. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 6570 fps= 56 q=1.0 size= 17276kB time=00:02:03.07 bitrate=1149. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 6580 fps= 55 q=2.0 size= 17431kB time=00:02:04.10 bitrate=1150. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 6602 fps= 55 q=0.0 size= 17730kB time=00:02:05.12 bitrate=1160. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 6648 fps= 55 q=1.0 size= 18802kB time=00:02:06.12 bitrate=1221. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 6710 fps= 55 q=0.0 size= 18824kB time=00:02:07.15 bitrate=1212. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 6770 fps= 55 q=0.0 size= 19539kB time=00:02:08.17 bitrate=1248. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 6831 fps= 55 q=1.0 size= 19560kB time=00:02:09.19 bitrate=1240. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 7013 fps= 56 q=0.0 size= 21011kB time=00:02:10.39 bitrate=1320. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 7256 fps= 58 q=0.0 size= 22483kB time=00:02:10.52 bitrate=1411. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 7625 fps= 60 q=0.0 size= 24692kB time=00:02:10.58 bitrate=1549. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 7828 fps= 62 q=2.0 size= 25456kB time=00:02:10.82 bitrate=1594. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 7895 fps= 62 q=0.0 size= 35079kB time=00:02:12.03 bitrate=2176. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 7936 fps= 62 q=2.0 size= 42929kB time=00:02:12.83 bitrate=2647. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 7981 fps= 62 q=2.0 size= 53139kB time=00:02:13.53 bitrate=3259. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 8030 fps= 62 q=0.0 size= 63944kB time=00:02:14.32 bitrate=3899. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 8081 fps= 62 q=0.0 size= 74523kB time=00:02:15.16 bitrate=4516. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 8128 fps= 62 q=2.0 size= 84385kB time=00:02:15.94 bitrate=5084. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 8145 fps= 62 q=1.0 size= 87711kB time=00:02:16.24 bitrate=5273. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 8193 fps= 62 q=1.0 size= 98046kB time=00:02:17.01 bitrate=5862. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 8204 fps= 62 q=0.0 size= 100564kB time=00:02:17.27 bitrate=6001. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 8252 fps= 62 q=0.0 size= 110255kB time=00:02:18.04 bitrate=6543. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
frame= 8266 fps= 62 q=2.0 size= 113024kB time=00:02:18.29 bitrate=6695. 5d7095f4-8035-4dc5-85e1-535f90d1935b 
[tls @ 0x563ee0299440] Error in the push function.
av_interleaved_write_frame(): Input/output error
 Last message repeated 2 times
Error writing trailer of rtmps://a.rtmps.youtube.com/live2/****: Input/output error
frame= 8311 fps= 62 q=2.0 Lsize= 123071kB time=00:02:19.02 bitrate=7252.1kbits/s dup=7716 drop=1 speed=1.04x 
video:123035kB audio:202kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[tls @ 0x563ee0299440] The specified session has been invalidated for some reason.
 Last message repeated 1 times
[libx264 @ 0x563ee026fe80] frame I:70 Avg QP: 0.31 size:221022
[libx264 @ 0x563ee026fe80] frame P:2770 Avg QP: 0.05 size: 29868
[libx264 @ 0x563ee026fe80] frame B:5471 Avg QP: 1.56 size: 6271
[libx264 @ 0x563ee026fe80] consecutive B-frames: 0.8% 1.7% 97.5%
[libx264 @ 0x563ee026fe80] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x563ee026fe80] 
mb P I16..4: 1.8% 0.0% 0.0% P16..4: 5.2% 0.0% 0.0% 0.0% 0.0% skip:93.0%
[libx264 @ 0x563ee026fe80] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 0.6% 0.0% 0.0% direct: 2.8% skip:96.5% L0:46.8% L1:38.5% BI:14.7%
[libx264 @ 0x563ee026fe80] final ratefactor: -5.03
[libx264 @ 0x563ee026fe80] coded y,uvDC,uvAC intra: 50.9% 43.8% 40.5% inter: 2.3% 1.8% 1.7%
[libx264 @ 0x563ee026fe80] i16 v,h,dc,p: 53% 30% 4% 12%
[libx264 @ 0x563ee026fe80] i8c dc,h,v,p: 58% 24% 8% 10%
[libx264 @ 0x563ee026fe80] kb/s:7653.50
[aac @ 0x563ee0282500] Qavg: 61059.410
Conversion failed!
[ERROR] 16:33:59 Error: write EPIPE



-
How do I add a text for the 1st 30 seconds inside a filter_complex expression for each video part ?
30 décembre 2022, par PirateAppI am generating a video grid using the following filter_complex command


ffmpeg
 -i v_nimble_guardian.mkv -i macko_nimble_guardian.mkv -i ghost_nimble_guardian_1.mp4 -i nano_nimble_guardian.mkv
 -filter_complex "
 nullsrc=size=3840x2160 [base];
 [0:v] trim=start=39.117000,setpts=PTS-STARTPTS, scale=1920x1080 [upperleft];
 [1:v] trim=start=40.483000,setpts=PTS-STARTPTS, scale=1920x1080 [upperright];
 [2:v] trim=start=32.416471,setpts=PTS-STARTPTS, scale=1920x1080 [lowerleft];
 [3:v] trim=start=28.100000,setpts=PTS-STARTPTS, scale=1920x1080 [lowerright];
 [3:a] atrim=start=28.100000,asetpts=PTS-STARTPTS[outa];
 [base][upperleft] overlay=shortest=1 [tmp1];
 [tmp1][upperright] overlay=shortest=1:x=1920 [tmp2];
 [tmp2][lowerleft] overlay=shortest=1:y=1080 [tmp3];
 [tmp3][lowerright] overlay=shortest=1:x=1920:y=1080[v]
 "
 -map "[v]" -map "[outa]" -c:v libx264 -crf 17 -shortest -t 880 output4k.mkv



How do I text to this video grid that will appear with a fade in at 10 seconds, stay for 30 seconds and then fade out ?




What I tried ?


ffmpeg
 -i v.mkv -i macko_nimble_guardian.mkv -i ghost_nimble_guardian_subtle_arrow_1.mp4 -i nano_nimble_guardian.mkv
 -filter_complex "
 nullsrc=size=1920x1080 [base];
 drawtext=text='Summer Video':enable='between(t,10,30)'[fg];
 [0:v] trim=start=39.117000,setpts=PTS-STARTPTS, scale=960x540 [upperleft];
 [1:v] trim=start=40.483000,setpts=PTS-STARTPTS, scale=960x540 [upperright];
 [2:v] trim=start=32.416471,setpts=PTS-STARTPTS, scale=960x540 [lowerleft];
 [3:v] trim=start=28.100000,setpts=PTS-STARTPTS, scale=960x540 [lowerright];
 [3:a] atrim=start=28.100000,asetpts=PTS-STARTPTS[outa];
 [base][upperleft] overlay=shortest=1 [tmp1];
 [tmp1][upperright] overlay=shortest=1:x=960 [tmp2];
 [tmp2][lowerleft] overlay=shortest=1:y=540 [tmp3];
 [tmp3][lowerright] overlay=shortest=1:x=960:y=540[v]
 "
 -map "[v]" -map "[outa]" -c:v libx264 -shortest -t '30' output2.mkv



It gives me an error


[Parsed_drawtext_1 @ 0x600002bdc420] Using "/System/Library/Fonts/Supplemental/Verdana.ttf"
Filter drawtext:default has an unconnected output



-
libavformat/hlsenc.c : Populate OTI using AAC profile in write_codec_attr.
1er janvier 2024, par Romain Beauxislibavformat/hlsenc.c : Populate OTI using AAC profile in write_codec_attr.
This patch populates the third entry for HLS codec attribute using the
AAC profile.The HLS specifications[1] require this value to be the Object Type ID as
referred to in table 1.3 of ISO/IEC 14496-3:2009[2].The numerical constants in the code refer to these OTIs minus one, as
documented in commit 372597e[3], confirmed by comparing the values in the
code with the values in the table mentioned above.Links :
1 : https://datatracker.ietf.org/doc/html/rfc6381#section-3.3
2 : https://csclub.uwaterloo.ca/~ehashman/ISO14496-3-2009.pdf
3 : https://github.com/FFmpeg/FFmpeg/commit/372597e5381c097455a7b73849254d56083eb056Changes in this version :
Default value set to "mp4a.40.2" when profile is unknown for backward
compatibility.Signed-off-by : Steven Liu <liuqi05@kuaishou.com>