
Recherche avancée
Autres articles (13)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
La gestion des forums
3 novembre 2011, parSi les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
Accès à l’interface de modération des messages
Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)
Sur d’autres sites (3345)
-
How to avoid color shift using FFmpeg libx264
7 septembre 2021, par floritI’d like to convert some footage to proxy H.264 using ffmpeg. I got a slight colorshift using the following command :


ffmpeg -i /path/to/045_0054.MXF -map 0 -dn -c:v libx264 -preset slow -profile:v main -level:v 4.1 -coder 1 -pix_fmt yuv420p -crf 25 -vf "scale=1280:720:flags=lanczos" -movflags +faststart -colorspace 1 -color_primaries 1 -color_trc 1 -color_range 1 -brand mp42 -refs 1 -x264-params b-pyramid=0 -bf 2 -g 5 -y /path/to/045_0054.mp4



How can I get rid of the slight magenta shift ?


mediainfo
prints the following about the source file :

General
Complete name : /path/to/045_0054.MXF
Format : MXF
Format version : 1.3
Format profile : OP-1a
Format settings : Closed / Complete
File size : 180 MiB
Duration : 14 s 720 ms
Overall bit rate mode : Variable
Overall bit rate : 102 Mb/s
Encoded date : 2021-02-19 13:13:15.000
Writing application : Sony Mem 2.00

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Format settings, GOP : M=3, N=6
Format settings, wrapping mode : Frame
Codec ID : 0D01030102106001-0401020201314001
Duration : 14 s 720 ms
Bit rate mode : Variable
Bit rate : 97.8 Mb/s
Maximum bit rate : 100.0 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.472
Stream size : 172 MiB (95%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709



-
Anomalie #4728 (En cours) : Dump php, support pour MariaDB
13 avril 2021, par Joachim SENESi Spip fonctionne bien sur des serveurs utilisant MariaDB (comme chez l’hébergeur Nuxit), cela plante pour deux fonctions essentielles :
- Sauvegarde de la base
- Mise à jour via spip_loader.php
Pendant la sauvegarde (je crois que c’est donc ecrire/base/dump.php) le préfixe de table est ignoré.
Pour une base qui fonctionne avec un préfixe comme spippref* ici les erreurs renvoient spip* comme préfixe utilisé :2021-04-09 10:26:24 90.3.175.179 (pid 12829) :Pri:ERREUR: no such table: spip_articles - <br />SELECT COUNT(*)<br />FROM spip_articles - /home/users4/s/sj140phpnet/www/plugins-dist/dump/prive/squelettes/contenu/sauvegarder_fonctions.php L36 [sql_countsel(),dump_afficher_tables_sauvegardees(),html_4efc0080d0d07f4680aa17f4911fe369(),public_parametrer_dist(),public_produire_page_dist(),inclure_page(),evaluer_fond(),recuperer_fond(),eval(),include(),evaluer_fond(),recuperer_fond(),eval(),include(),evaluer_fond(),recuperer_fond(),eval(),include(),include()]<br />2021-04-09 10:26:24 90.3.175.179 (pid 12829) :Pri:ERREUR: Erreur sqlite HY000 / 1<br />2021-04-09 10:26:24 90.3.175.179 (pid 12829) :Pri:ERREUR: no such table: spip_breves -
La sauvegarde indique, dans l’espace privé :
spip_articles (vide)<br />spip_auteurs_liens (82/82)<br />spip_breves (vide)<br />spip_depots (vide)<br />spip_depots_plugins (707/707)<br />spip_documents (vide)<br />spip_documents_liens (116/116)<br />spip_forum (vide)<br />spip_groupes_mots (vide)<br />spip_jobs (7/7)<br />spip_jobs_liens (vide)<br />spip_messages (vide)<br />spip_mots (vide)<br />spip_mots_liens (203/203)<br />spip_paquets (1109/1109)<br />spip_petitions (vide)<br />spip_plugins (732/732)<br />spip_referers (vide)<br />spip_referers_articles (vide)<br />spip_rubriques (vide)<br />spip_signatures (vide)<br />spip_syndic (vide)<br />spip_syndic_articles (vide)<br />spip_types_documents (vide)<br />spip_urls (172/172)<br />spip_versions (vide)<br />spip_versions_fragments (vide)
Sachant que même les tables marquées comme ok 172/172 lignes sauvegardées par ex, sont en erreur dans le log !
2021-04-13 11:29:25 90.3.175.179 (pid 23528) :Pri:ERREUR: no such table: spip_urls -
J’ai échangé avec l’hébergeur, on en est arrivé à cette conclusion possible Spip & MariaDB à ce niveau pose problème. Je ne sais pas aller plus loin, si quelqu’un a besoin d’un FTP sur Nuxit je peux fournir !
Je me suis permis d’assigner en fonction de la signature dans dump.php pour que le ticket soit reçu :)
merci d’avance ! -
ffmpeg video merging issues for videos recorded from andriod mobile phone
14 avril 2021, par Nishit ModiFollowing is the command I'm using :


sudo ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[1]tpad=start_mode=clone:start_duration=15[tr];[0][tr]xstack=inputs=2:layout=0_0|w0_0[v];[1:a]adelay=15s:all=true[a1];[0:a][a1]amix=inputs=2[a]" -map "[v]" -map "[a]" output.mp4



It took a couple of hours to merge the videos. Original videos are 6 MBs in size. Merged video is approx 2 GB in size.


It is working fine with videos recorded from the iphone.


Update :
The issue is regarding different fps in different videos. If two videos are of different fps, then it is taking too long and eventually break.


Full log :


ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[1]tpad=start_mode=clone:start_duration=15[tr];[0][tr]xstack=inputs=2:layout=0_0|w0_0[v];[1:a]adelay=15s:all=true[a1];[0:a][a1]amix=inputs=2[a]" -map "[v]" -map "[a]" output_ia_2.mp4
 ffmpeg version 4.3.2-0york0~16.04 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
 configuration: --prefix=/usr --extra-version='0york0~16.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libzimg --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '97FD4344-23C3-4668-AA40-E5E724338352-3149-0000018389D9630F.mp4':
 Metadata:
 major_brand : qt 
 minor_version : 0
 compatible_brands: qt 
 creation_time : 2021-04-09T00:43:28.000000Z
 Duration: 00:00:15.03, start: 0.000000, bitrate: 10342 kb/s
 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 226 kb/s (default)
 Metadata:
 creation_time : 2021-04-09T00:43:28.000000Z
 handler_name : Core Media Audio
 Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709), 720x1280, 10111 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
 Metadata:
 creation_time : 2021-04-09T00:43:28.000000Z
 handler_name : Core Media Video
 encoder : H.264
 Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'android_ritesh.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 creation_time : 2021-04-13T06:39:16.000000Z
 com.android.version: 10
 Duration: 00:00:09.59, start: 0.000000, bitrate: 5288 kb/s
 Stream #1:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, unknown/bt470bg/unknown), 720x1280, 5152 kb/s, SAR 1:1 DAR 9:16, 17.31 fps, 59.94 tbr, 90k tbn, 180k tbc (default)
 Metadata:
 creation_time : 2021-04-13T06:39:16.000000Z
 handler_name : VideoHandle
 Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 131 kb/s (default)
 Metadata:
 creation_time : 2021-04-13T06:39:16.000000Z
 handler_name : SoundHandle
 Stream mapping:
 Stream #0:0 (aac) -> amix:input0
 Stream #0:1 (h264) -> xstack:input0
 Stream #1:0 (h264) -> tpad
 Stream #1:1 (aac) -> adelay
 xstack -> Stream #0:0 (libx264)
 amix -> Stream #0:1 (aac)
 Press [q] to stop, [?] for help
 [swscaler @ 0x5628692bd340] deprecated pixel format used, make sure you did set range correctly
 [mp4 @ 0x562868aa7dc0] Frame rate very high for a muxer not efficiently supporting it.
 Please consider specifying a lower framerate, a different muxer or -vsync 2
 [libx264 @ 0x562868af2400] MB rate (648000000) > level limit (16711680)
 [libx264 @ 0x562868af2400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
 [libx264 @ 0x562868af2400] profile High, level 6.2
 [libx264 @ 0x562868af2400] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'output_ia_2.mp4':
 Metadata:
 major_brand : qt 
 minor_version : 0
 compatible_brands: qt 
 encoder : Lavf58.45.100
 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc, progressive), 1440x1280, q=-1--1, 90k tbn, 90k tbc (default)
 Metadata:
 encoder : Lavc58.91.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
 Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
 Metadata:
 encoder : Lavc58.91.100 aac
 More than 1000 frames duplicated 0kB time=00:00:00.00 bitrate=N/A speed= 0x 
More than 10000 frames duplicated 4352kB time=00:00:00.09 bitrate=358592.3kbits/s dup=8991 drop=0 speed=0.00141x 
frame=15000 fps=131 q=33.0 size= 7680kB time=00:00:00.16 bitrate=378802.6kbits/s dup=14985 drop=0 speed=0.00145x