
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (111)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (11358)
-
Set hls attributes in multiple outputs as seperated piece code
2 mars 2018, par parsaI used this command for create multiple outputs with different qualities in hls format and I mapped the audio for those.
ffmpeg -i kata.mp4 -filter_complex [0:v]split=4[s0][s1][s2][s3];
[s0]scale=hd720[v0];[s1]scale=hd480[v1];[s2]scale=nhd[v2];[s3]scale=cga[v3]
-map [v0] -map [v1] -map [v2] -map [v3] -map 0:a -c:v libx264 -c:a aac -f tee
-hls_list_size 0 -g 48 "[select=\'v:0,a\':f=hls]out.m3u8| [select=\'v:1,a\':f=hls]out-480.m3u8| [select=\'v:2,a\':f=hls]out-360.m3u8| [select=\'v:3,a\':f=hls]out-200.m3u8"in my command
-hls_list_size
not work.
I think I must be use this attribute as a seperated piece code for every outputs ,but I don’t know how can I do that,Or what is the syntax code for that.
Can anyone help me ? -
Erros in compiling and running FFmpeg C example code
11 juillet 2019, par Tina JI’ve been trying to change an FFmpeg’s example code HERE to call other filters using its C APIs. Say the filter be
freezedetect=n=-60dB:d=8
which normally runs like this :ffmpeg -i small.mp4 -vf "freezedetect=n=-60dB:d=8" -map 0:v:0 -f null -
And prints outputs like this :
[freezedetect @ 0x25b91c0] lavfi.freezedetect.freeze_start: 5.005
[freezedetect @ 0x25b91c0] lavfi.freezedetect.freeze_duration: 2.03537
[freezedetect @ 0x25b91c0] lavfi.freezedetect.freeze_end: 7.04037However, the original example displays frames, not these metadata information. How can I change the code to print this metadata information (and not the frames) ?
I’ve been trying to change the
display_frame
function below into adisplay_metadata
function. Looks like theframe
variable has ametadata
dictionary which looks promising, but my attempts failed to use it. I’m also new to C language.Original
display_frame
function :static void display_frame(const AVFrame *frame, AVRational time_base)
{
int x, y;
uint8_t *p0, *p;
int64_t delay;
if (frame->pts != AV_NOPTS_VALUE) {
if (last_pts != AV_NOPTS_VALUE) {
/* sleep roughly the right amount of time;
* usleep is in microseconds, just like AV_TIME_BASE. */
delay = av_rescale_q(frame->pts - last_pts,
time_base, AV_TIME_BASE_Q);
if (delay > 0 && delay < 1000000)
usleep(delay);
}
last_pts = frame->pts;
}
/* Trivial ASCII grayscale display. */
p0 = frame->data[0];
puts("\033c");
for (y = 0; y < frame->height; y++) {
p = p0;
for (x = 0; x < frame->width; x++)
putchar(" .-+#"[*(p++) / 52]);
putchar('\n');
p0 += frame->linesize[0];
}
fflush(stdout);
}My new
display_metadata
function that needs to be completed :static void display_metadata(const AVFrame *frame)
{
// printf("%d\n",frame->height);
AVDictionary* dic = frame->metadata;
printf("%d\n",*(dic->count));
// fflush(stdout);
} -
KeyError : 1 on Python when the code points to a value that exists [closed]
10 décembre 2020, par oo92I am using the following code to traverse a list JSON output. There are about 100 streamers I want to take screens from but the code fails after the first one where I call the ffmpeg. I put a code after the ffmpeg to see if Python is running it at all and it does :


Traceback (most recent call last):
 File "/home/onur/Desktop/pythonProject/main.py", line 12, in <module>
 username = streams_now[i]['channel']['display_name']
KeyError: 1
auronplay it is 
</module>


This is my code :


import streamlink, os
from twitch import TwitchClient

client = TwitchClient(client_id='frl3dqgn21bbpp6tajjvg5pdevczac')

streams_now = client.streams.get_live_streams(limit=100)

print(streams_now[2]['channel']['display_name'])

for i in range(0, 99):
 username = streams_now[i]['channel']['display_name']
 streams_now = streamlink.streams('http://twitch.tv/' + username)
 stream = streams_now["best"].url
 dir_path = os.getcwd() + '/' + username
 os.mkdir(dir_path)
 os.system('ffmpeg -i ' + stream + f' -ss 20 -vframes 10 -r 0.2 -f image2 {dir_path}/' + username + '_output_%09d.jpg')
 print(username + ' it is ')



The line that throws the error is
username = streams_now[i]['channel']['display_name']
. However, this line cannot throw an error because I am testing it before the for loop :

print(streams_now[2]['channel']['display_name'])


and I get this :
shroud