Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (49)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • 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

Sur d’autres sites (10630)

  • Is encoding and streaming images into a video in under 30 ms realistic at all ?

    25 septembre 2020, par Hamza Ghizaoui

    So, a client camera would be sending 20 FPS 4000 x 3000 pixel images per second.

    


    The client want it to be streamed in under 30 ms upon receiving via a web-browser with a 1920 x 1080 resolution .

    


    Here is how we approached the problem :

    


    Image received => openCV resizes it to 1920 x 1080 => image piped to FFMPEG => ffmpeg encode it to H.264 using Nvec hardware acceleration => FFMPEG sends it via UDP-packets to a Node.js server => the Node.js server serves it to client (using React as a front-end there)

    


    The encoding time requires circa 12 ms using my best options while keeping the client quality standards.

    


    Downsizing the image requires 10 ms - this leaves circa 8 ms for the rest

    


    Is it doable at all or should I look for another approach ?

    


  • python for loop result in ffmpeg command [duplicate]

    6 août 2020, par madiha bout

    hi im trying to insert for loop results in a ffmpeg command i tried some code but all i get is first text with no sound and it glitches and freezes i tried many modification but no success i appreciate if you have any ideas that would be great, the imported text from api should display only the duration of audio file here is my code :

    


    
import requests
import json
import os
import requests
import http.client
import io
import subprocess


response = requests.get('http://api.quran.com:3000/api/v3/chapters/2/verses?text_type=image&language=ar&recitation=10')

json = json.loads(response.content)

data= json['verses']
#print(data)

for i in data:
    input_text = i['text_madani'] 
    input_duration = i['audio']['duration'] 
    input_mp3 = i['audio']['url']
    input_img = i['image']['url']
 #   print(input_duration)
    command = f'''ffmpeg -re -stream_loop -1 \
                    -i img2.jpeg \
                    -i {input_mp3} \
                    -vf 'pad=ceil(iw/2)*2:ceil(ih/2)*2,drawtext=enable='between(t, n, {input_duration})':text={input_text}:fontsize=90:x=50:y=50:fontcolor=black@0.8' \
                    -c:v libx264 -preset veryfast -b:v 3000k \
                    -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -g 50 \
                    -c:a aac -b:a 160k \
                    -ac 2 -ar 44100 \
                    -y -f flv rtmp://localhost/hls/test''' 
    print(command)
    os.system(command)


    


  • python for loop result in ffmpeg command

    6 août 2020, par madiha bout

    hi im trying to insert for loop results in a ffmpeg command i tried some code but all i get is first text with no sound and it glitches and freezes i tried many modification but no success i appreciate if you have any ideas that would be great, the imported text from api should display only the duration of audio file here is my code :

    


    
import requests
import json
import os
import requests
import http.client
import io
import subprocess


response = requests.get('http://api.quran.com:3000/api/v3/chapters/2/verses?text_type=image&language=ar&recitation=10')

json = json.loads(response.content)

data= json['verses']
#print(data)

for i in data:
    input_text = i['text_madani'] 
    input_duration = i['audio']['duration'] 
    input_mp3 = i['audio']['url']
    input_img = i['image']['url']
 #   print(input_duration)
    command = f'''ffmpeg -re -stream_loop -1 \
                    -i img2.jpeg \
                    -i {input_mp3} \
                    -vf 'pad=ceil(iw/2)*2:ceil(ih/2)*2,drawtext=enable='between(t, n, {input_duration})':text={input_text}:fontsize=90:x=50:y=50:fontcolor=black@0.8' \
                    -c:v libx264 -preset veryfast -b:v 3000k \
                    -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -g 50 \
                    -c:a aac -b:a 160k \
                    -ac 2 -ar 44100 \
                    -y -f flv rtmp://localhost/hls/test''' 
    print(command)
    os.system(command)