
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (54)
-
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. -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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
Sur d’autres sites (9836)
-
FFMPEG-KIT - Video is cut after adding 2 watermarks
7 août 2023, par dfjickI made a FFMPEG-KIT command to add 2 PNG watermarks to the video and everything went smoothly.


String ffmpegCommand = "-y -i " + videoPath +
 " -i " + watermarkImagePath +
 " -i " + userID +
 " -filter_complex " +
 "\"[0:v][1:v]overlay=x='if(lt(mod(t,10),5),10,W-w-10)':y='if(lt(mod(t,10),5),10,H-h-35)',\"" +
 "\"overlay=x='if(lt(mod(t,10),5),7,W-w-7)':y='if(lt(mod(t,10),5),165,H-h-15)'[out]\"" +
 " -map [out] -map 0:a -c:v libx264 -crf 18 -preset slow -c:a aac " + outputPath;



But for videos that are longer than 20 seconds, the results don't match the original video, sometimes the videos are only <20 seconds and at random times.


but i got this error, do you guys know how to fix it ?


W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] Packet corrupt (stream = 1, dts = 366976)
W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] .
E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] Invalid NAL unit size (63547 > 20190).
E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] missing picture in access unit with size 20194
W/ffmpeg-kit: /storage/emulated/0/DCIM/android_100394_20230807_162805_5465009.mp4: corrupt input packet in stream 1
E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Invalid NAL unit size (63547 > 20190).
E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Error splitting the input into NAL units.
E/ffmpeg-kit: Error while decoding stream #0:1: Invalid data found when processing input



I've tried to use this
-fflags +discardcorrupt
, but the result is still the same. the duration of the video that has been watermarked does not match the original video

-
FFmpeg crashing on drawtext filter (ffmpeg-python)
31 août 2023, par DeadSecHey guys so im trying to use ffmpeg-python to add text to a video but its crashing at


[Parsed_drawtext_0 @ 0000012ea115ee80] Setting 'text' to value 'hi'


and I'm not sure what I can do to fix this problem. I tried pure FFmpeg command-line style and still the same issue where it gets stuck at
Setting text to value
and it simply outputs a 0byte mp4 after crashing.

My code :


os.environ['FONTCONFIG_FILE'] = r'C:\Users\NOP\NOP\NOP\NOP\binaries\fonts\fonts.conf'
 os.environ['FONTCONFIG_PATH'] = r'C:\Users\NOP\NOP\NOP\NOP\binaries\fonts'
 os.environ['FC_CONFIG_DIR'] = r'C:\Users\NOP\NOP\NOP\NOP\binaries\fonts'
 in_ = ffmpeg.input(output_video_logo)
 in_ = in_.drawtext(text='hi')
 ffmpeg.output(in_, output_video).global_args('-loglevel', 'debug').run(cmd=FFMPEG_PATH)



Font config file :


<?xml version="1.0"?>


<fontconfig>





 <dir>WINDOWSFONTDIR</dir>
 <dir>~/fonts</dir>
 <dir prefix="cwd">.</dir>
 <dir>~/.fonts</dir>


 <match target="pattern">
 <test qual="any">
 <string>mono</string>
 </test>
 <edit mode="assign">
 <string>monospace</string>
 </edit>
 </match>


 <match target="pattern">
 <test qual="any">
 <string>sans serif</string>
 </test>
 <edit mode="assign">
 <string>sans-serif</string>
 </edit>
 </match>


 <match target="pattern">
 <test qual="any">
 <string>sans</string>
 </test>
 <edit mode="assign">
 <string>sans-serif</string>
 </edit>
 </match>


 <include>conf.d</include>



 <cachedir>WINDOWSTEMPDIR_FONTCONFIG_CACHE</cachedir>
 <cachedir>~/.fontconfig</cachedir>

 <config>


 <rescan>
 <int>30</int>
 </rescan>
 </config>

</fontconfig>



Is this a issue with any of my fontconfig or script ? I'm really lost on fixing this.


As requested by Rotem tried adding new input to drawtext and this was the output before crashing with no error message :
Successfully opened the file.


[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'box' to value '1'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'boxcolor' to value 'yellow'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'fontcolor' to value 'blue'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'fontsize' to value '72'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'text' to value 'hi'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'x' to value '10'
[Parsed_drawtext_0 @ 00000171a2f0f900] Setting 'y' to value '10'



Full log :
https://pastebin.com/E6sHvwUz


-
using clang compile ffmpeg with too much warning on osx
12 juin 2014, par arachideI use clang to compile ffmpeg, It reports too much warn
./libavutil/arm/intmath.h:102:40: warning: value size does not match register size specified by the constraint and modifier
[-Wasm-operand-widths]
./libavutil/arm/intmath.h:102:40: warning: value size does not match register size specified by the constraint and modifier
[-Wasm-operand-widths]and finally stop with error
libavcodec/arm/mlpdsp_armv5te.S:5180:9: error: unknown directive
.hword (75f - 0b) / 2
^
libavcodec/arm/mlpdsp_armv5te.S:5182:9: error: unknown directive
.hword (76f - 0b) / 2
^
libavcodec/arm/mlpdsp_armv5te.S:5184:9: error: unknown directive
.hword (77f - 0b) / 2
^
libavcodec/arm/mlpdsp_armv5te.S:5186:9: error: unknown directive
.hword (78f - 0b) / 2
^
libavcodec/arm/mlpdsp_armv5te.S:5648:9: error: unknown directiveIs there anyone met the same problem ?