Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (107)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

Sur d’autres sites (9901)

  • ffmpeg drawtext Arabic fonts doesn't render correctly [closed]

    11 février 2024, par Mahmoud Abdellatief

    what i'm trying to achieve :
loop an image into a video and overlay Arabic Text from the Qur'an on it including the text diacritical mark, using a custom font.

    


    example of the text to be rendered :

    


    بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ


    


    the font used :
https://fonts.qurancomplex.gov.sa/wp02/wp-content/uploads/2024/01/UthmanicHafs_v22.zip

    


    font's unicode module :

    


    Unicode Module 
 
The Research and Development Unit in the Computer Department at King Fahd Glorious Qur’an Printing Complex relied on the unicode system unicode to create (Hafs) font in the Uthmanic Script, because this system is followed globally among computer and systems manufacturing companies in the world.

Unicode organization is a global code group that is used to define all codes and letters used in most of the world's languages and gathered in one code to facilitate the presentation and delivery on information despite of the language used. This global coding uses 1 to 4 bytes (byte = 8 bits) to encode letters, and so far only a third of the number available in Unicode organization to encode the letters of these languages.

Taking into account Hafs font with the Uthmanic Script, which was built entirely on the unicode system. We can explore the basic letters that were formed according to the following figure:

Whereas the font was developed starting from code (0600 ) to code (066FF ) Taking into account there are several encoded letters that haven't been used at all so it was replaces with the code []. The displayed copy above is the one that is been developed from the basic Arabic coding (0600-06FF) which was updated by Unicode organization in 2009.


    


    expected result :
exported video with correctly rendered text using the given font.

    


    actual result :
the text rendered contains only the diacritical marks ( which are the accents on top of the letters ) without the actual letters.
actual result

    


    what i tried :
this is my test command which exports just an image for faster results :

    


    Ffmpeg -loop 1  -i "image-2.jpg" -vf "drawtext=text='بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ':fontsize=124:fontcolor=white:fontfile='UthmanicHafsV22.ttf':x=(w-text_w)/2:y=(h-text_h)/2" -frames:v 1  "output.png"


    


      

    • tried adding ft_load_flags , almost tried all of them
    • 


    • tried text_shaping=1 , with no success
    • 


    • tried textfile instead of text
    • 


    • tried changing the font, any font i try with it always have different problems, either some squares instead of the diacritical mark
    • 


    


    p.s im having same results on both latest ffmpeg compiled by myself on macos terminal with all required libraries enabled , and also on flutter ffmpeg kit full gpl

    


  • libavformat/hlsenc.c : Populate OTI using AAC profile in write_codec_attr.

    1er janvier 2024, par Romain Beauxis
    libavformat/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/372597e5381c097455a7b73849254d56083eb056

    Changes 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>

    • [DH] libavformat/hlsenc.c
  • FFMPEG stream to youtube crashing

    29 septembre 2022, par jakeb

    We 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.

    &#xA;

    This is the FFMPEG command we're running :

    &#xA;

    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/*****"&#xA;

    &#xA;

    This is the output when it crashes :

    &#xA;

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

    &#xA;