Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (46)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La 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 (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

Sur d’autres sites (3287)

  • How do i fix the error "ffmpeg was not found." in my discord bot ?

    4 janvier 2023, par Anton Abboud

    I am currently trying to make my discord bot play a youtube audio from a URL. However, I can't pass the error "ffmpeg was not found". I have tried to use different solutions but nothing has worked. My code currently looks like this :

    


    import discord
import asyncio
from discord import FFmpegPCMAudio
from discord.utils import get
from discord.ext import commands
from youtube_dl import YoutubeDL

@bot.command(brief="Plays a single video, from a youtube URL")
async def play(ctx, url):
    if not ctx.message.author.voice:
        await ctx.send("{} is not connected to a voice channel".format(ctx.message.author.name))
        return
    else:
        global channel_player
        channel_player = ctx.message.author.voice.channel
    await channel_player.connect()
    YDL_OPTIONS = {'format': 'bestaudio', 'noplaylist':'True'}
    FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
    voice = get(bot.voice_clients, guild=ctx.guild)

    if not voice.is_playing():
        with YoutubeDL(YDL_OPTIONS) as ydl:
            info = ydl.extract_info(url, download=False)
        URL = info['url']
        voice.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))
        voice.is_playing()
    else:
        await ctx.send("Already playing song")
        return


    


    I am relatively new to coding so if you have any other suggestions on top of (hopefully) the solution to the problem, feel free !

    


    I am relatively new to coding so if you have any other suggestions on top of (hopefully) the solution to the problem, feel free !

    


    I have as I said tried a few different other approaches but nothing has worked. The one that seemed to almost work was to download ffmpeg through libx264 and create files that python could be directed to.

    


    I also tried downloadeing the most recent version of ffmpeg and 7zip to extract it.

    


  • Saving OpenCV output in Motion JPEG format. Getting a "'MJPG' is not supported with codec id 7" error

    23 novembre 2022, par portsample

    I'd like to save video camera output in motion JPEG (MJPG) format. The below code,

    


    import cv2
import numpy as np

cap = cv2.VideoCapture(0)
if (cap.isOpened() == False): 
print("Unable to read camera feed")
frame_width = int(cap.get(3))
frame_height = int(cap.get(4))
frame_per_sec = int('10')

out = cv2.VideoWriter('output.mjpeg',cv2.VideoWriter_fourcc('M','J','P','G'),         (frame_per_sec), (frame_width,frame_height))
while(True):
ret, frame = cap.read()
if ret == True:      
# Write the frame into the file 'output.mjpeg'
out.write(frame) 
# Display the resulting frame    
cv2.imshow('frame',frame)
# Press Q on keyboard to stop recording
if cv2.waitKey(1) & 0xFF == ord('q'):
  break
else:
break 
cap.release()
out.release()
cv2.destroyAllWindows()


    


    While it will run, I am getting the following error(s),

    


    [ WARN:0] OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
OpenCV: FFMPEG: tag 0x67706a6d/'mjpg' is not supported with codec id 7 and format 'mjpeg / raw MJPEG video'


    


    What can I do to resolve these ? I've tried changing the case, ('M','J','P','G' to 'm','j','p','g') with no success.
Appreciate any suggestions regarding resolving the above issue, as well as the GStreamer issue. Thanks in advance.

    


  • FFMPEG bash > folder processing > AI upscale - script ERROR ">" [closed]

    13 novembre 2022, par Jason Paul Michaels

    Trying to port a single file manual command from Topaz AI so I can run it as a part of a simple script allowing me to run multiple sessions from terminal. I am running MacOS with BASH 5.2 and when I run the script I get dumped to ">" instead of command prompt and no error message is displayed.

    


    This is my command -

    


    for f in *.mp4; do
  /Applications/Topaz\ Video\ AI.app/Contents/MacOS/ffmpeg \
    -hide_banner \
    -nostdin \
    -y \
    -nostats \
    -i “$f” \
    -vsync 0 \
    -avoid_negative_ts 1 \
    -sws_flags spline+accurate_rnd+full_chroma_int \
    -color_trc 1 \
    -colorspace 1 \
    -color_primaries 1 \
    -filter_complex veai_up=model=prob-3:scale=0:w=1920:h=1080:preblur=0:noise=0:details=0:halo=0:blur=0:compression=0:estimate=20:device=0:vram=1:instances=1,scale=w=1920:h=1080:flags=lanczos:threads=0,scale=out_color_matrix=bt709 \
    -c:v prores_videotoolbox \
    -profile:v lt \
    -pix_fmt p210le \
    -allow_sw 1 \
    -map_metadata 0 \
    -movflags frag_keyframe+empty_moov+delay_moov+use_metadata_tags+write_colr \
    -map_metadata:s:v 0:s:v \
    -map_metadata:s:a 0:s:a \
    -c:a aac \
    "encoded/${f%.*}.mp4”;
done


    


    I have a feeling it's something really simple I'm missing but I've gone through it a dozen times and can't seem to modify in any way to success.

    


    Thank you !

    


    Getting dumped back to ">" terminal prompt.