
Recherche avancée
Autres articles (27)
-
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (3579)
-
lavc/vvc : Prevent overflow in chroma QP derivation
9 juin 2024, par Frank Plowmanlavc/vvc : Prevent overflow in chroma QP derivation
On the top of p. 112 in VVC (09/2023) :
It is a requirement of bitstream conformance that the values of
qpInVal[ i ][ j ] and qpOutVal[ i ][ j ] shall be in the range
of −QpBdOffset to 63, inclusive for i in the range of 0 to
numQpTables − 1, inclusive, and j in the range of 0 to
sps_num_points_in_qp_table_minus1[ i ] + 1, inclusive.Additionally, don't discard the return code from sps_chroma_qp_table.
Signed-off-by : Frank Plowman <post@frankplowman.com>
-
Video Encoded using FFmpeg is not being played in Azure Kinect Viewer
4 octobre 2023, par Ashutosh SinglaI captured a video using a
Kinect Azure SDK
device and extracted the RGB (Color) track usingMKVToolNIX
. I could playback this RGB track usingAzure Kinect Viewer (v.1.4.1)
. However, when I encode a video usingFFmpeg
, the command is given below. I can not playback the video using Azure Kinect Viewer. I get a message :



Failed to open Recording




ffmpeg -i .\RGB.mkv -c:v libx264 -preset veryfast -crf 18 -c:a aac -b:a 128k RGG_Enc.mkv



I tried with different codecs (H.264, H.265, VP9, VP10, MJPEG) and different settings, but could not play the video in
Azure Kinect Viewer
. Can someone suggest to me what to do ?

Here is the output of the
FFprobe
for the original video.

C:\Users\Ashutosh\Desktop\RGB_Encoding> ffprobe -i .\RGB.mkv
 ffprobe version 6.0-full_build-www.gyan.dev Copyright (c) 2007- 
 2023 the FFmpeg developers
 built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
 configuration: --enable-gpl --enable-version3 --enable-static -- 
 disable-w32threads --disable-autodetect --enable-fontconfig -- 
 enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp -- 
 enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib -- 
 enable-librist --enable-libsrt --enable-libssh --enable-libzmq -- 
 enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 
 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable- 
 libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 -- 
 enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 
 --enable-libxvid --enable-libaom --enable-libjxl --enable- 
 libopenjpeg --enable-libvpx --enable-mediafoundation --enable- 
 libass --enable-frei0r --enable-libfreetype --enable-libfribidi -- 
 enable-liblensfun --enable-libvidstab --enable-libvmaf --enable- 
 libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable- 
 ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable- 
 dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan -- 
 enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme 
 --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb 
 --enable-libmp3lame --enable-libshine --enable-libtheora --enable- 
 libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable- 
 libgsm --enable-libopencore-amrnb --enable-libopus --enable- 
 libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b -- 
 enable-libflite --enable-libmysofa --enable-librubberband -- 
 enable-libsoxr --enable-chromaprint

 libavutil 58. 2.100 / 58. 2.100
 libavcodec 60. 3.100 / 60. 3.100
 libavformat 60. 3.100 / 60. 3.100
 libavdevice 60. 1.100 / 60. 1.100
 libavfilter 9. 3.100 / 9. 3.100
 libswscale 7. 1.100 / 7. 1.100
 libswresample 4. 10.100 / 4. 10.100
 libpostproc 57. 1.100 / 57. 1.100

 [matroska,webm @ 0000018ef5f4e240] Could not find codec parameters 
 for stream 1 (Attachment: none): unknown codec
 Consider increasing the value for the 'analyzeduration' (0) and 
 'probesize' (5000000) options

 Input #0, matroska,webm, from '.\RGB.mkv':
 Metadata:
 title : Azure Kinect
 encoder : libebml v1.4.4 + libmatroska v1.7.1
 creation_time : 2023-08-04T11:52:43.000000Z
 Duration: 00:00:40.03, start: 0.033000, bitrate: 126708 kb/s
 Stream #0:0(eng): Video: mjpeg (Baseline) (MJPG / 0x47504A4D), 
 yuvj422p(pc, bt470bg/unknown/unknown), 2048x1536, SAR 1:1 DAR 4:3, 
 30 fps, 30 tbr, 1k tbn (default)
 
 Metadata:
 title : COLOR
 BPS : 126696930
 DURATION : 00:00:40.029000000
 NUMBER_OF_FRAMES: 1201
 NUMBER_OF_BYTES : 633943931
 _STATISTICS_WRITING_APP: mkvmerge v76.0 ('Celebration') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2023-08-04 11:52:43
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Stream #0:1: Attachment: none
Metadata:
 filename : calibration.json
 mimetype : application/octet-stream
 Unsupported codec with id 0 for input stream 1

 



This example video contains only one channel (RGB) from the original video. I am able to play this video using Azure Kinect Viewer.


-
Command raised an exception : NameError : name 'player' is not defined
20 mars 2023, par baartysI finally got myself a hosting for my project, but got into an error and I don't know how to resolve it.
I ran command !play to start streaming in vc, but I got this error :


2023-03-19 18:36:04 INFO discord.client logging in using static token
2023-03-19 18:36:04 INFO discord.gateway Shard ID None has connected to Gateway (Session ID: f983009c9f2881b87ee119278692efc9).
Eurobeat Radio is running!
2023-03-19 18:36:10 ERROR discord.ext.commands.bot Ignoring exception in command play
Traceback (most recent call last):
 File "/home/container/.local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 229, in wrapped
 ret = await coro(*args, **kwargs)
 File "/home/container/radio.py", line 44, in play
 player.play(FFmpegPCMAudio('http://stream.eurobeat.xyz'))
NameError: name 'player' is not defined
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
 File "/home/container/.local/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
 await ctx.command.invoke(ctx)
 File "/home/container/.local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 1023, in invoke
 await injected(*ctx.args, **ctx.kwargs) # type: ignore
 File "/home/container/.local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 238, in wrapped
 raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: NameError: name 'player' is not defined



I tried running it on my pc and that was without error, but once it was on the hosting it ran in to the error up the page.


Here is the code :


import discord
import urllib.request, json 
from discord import FFmpegPCMAudio
from discord.ext import commands
from discord.ext import tasks
client= commands.Bot(command_prefix="er!", intents=discord.Intents.all(), help_command=None)

@tasks.loop(seconds=10.0)
async def my_background_task():
 """Will loop every 60 seconds and change the bots presence"""
 with urllib.request.urlopen('https://api.laut.fm/station/eurobeat/current_song') as url:
 data = json.load(url)
 global namestatus
 global artiststatus
 namestatus = data['title']
 artiststatus = data['artist']['name']
 await client.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="Eurobeat FM"))
 await client.change_presence(activity=discord.Game(name="Para para dancing ~"))
 await client.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name=f"{namestatus} by {artiststatus}"))


@client.event
async def on_ready():
 print('Eurobeat Radio is running!')
 await client.wait_until_ready()
 my_background_task.start()


@client.event
async def on_voice_state_update(member, prev, cur):
 if client.user in prev.channel.members and len([m for m in prev.channel.members if not m.bot]) == 0:
 channel = discord.utils.get(client.voice_clients, channel=prev.channel)
 await channel.disconnect()

@client.command(aliases=['p', 'pla', 'join', 'j'])
async def play(ctx, url: str = 'http://stream.eurobeat.xyz'): 
 channel = ctx.message.author.voice.channel
 global player
 try:
 player = await channel.connect()
 except:
 pass
 player.play(FFmpegPCMAudio('http://stream.eurobeat.xyz'))
 embedVar = discord.Embed(title="Started Playing!", color=discord.Color.random())
 await ctx.send(embed=embedVar)



Would be very grateful for your help !