
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (105)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (15714)
-
In ffmpeg, how to search to a keyframe BEFORE a specified time ?
12 janvier 2018, par siods333333Background
For a video in the
mp4
orflv
container formats, I need to :-
Get its duration.
-
Get a keyframe at 25% of its duration. If frame at 25% isn’t a keyframe, seek to the first keyframe before that frame.
-
Seek to audio at 10ms before that keyframe.
According to the following comment on StackOverflow,
av_seek_frame
seems to only seek to a keyframe after a specified time.Question
Given that it appears I can only seek after a specified time, how is it possible to get the required keyframe and to seek to the correct part in a
mp4
orflv
container as specified above ?My Ideas
-
My best bet is probably parsing the header (and index, where applicable) manually, and then use the
av_seek_frame
with theAVSEEK_FLAG_BYTE
flag. -
Or I can just walk the whole file, and just check if
AVFrame->key_frame
is true or not.
It would be awesome if the
trim
filter could support different seek methods, but I guess I have to get correct timestamps by myself, is that correct ? -
-
tests/checkasm : fix wrong summation of bench time
31 mars, par Niklas Haastests/checkasm : fix wrong summation of bench time
This was changed 8 years ago with the introduction of the linux-perf path,
with seemingly no justification at the time. Likely a developer oversight
from testing.This bug not only made —runs completely ineffective, but also meant that we
didn't actually correctly filter out outliers.Fixes : e0d56f097f42bcdbe6c3b2f57df62a4da63f2094
-
Cutting the stream on local date time when scheduled
19 juin 2017, par FearhunterI am using a ffmpeg slice commando in my C# code. For example : I scheduled a stream from 12pm till 3 pm. In my if statement I use a condition to compare the local datetime with the time of now.
DateTime systemDate = DateTime.Now;
DateTime compareDate = DateTime.Today;
private Process SliceStream(string url)
{
if (systemDate < compareDate)
{
return Process.Start(new ProcessStartInfo
{
FileName = "ffmpeg.exe",
Arguments = $"-i \"{url}\"-acodec aac -strict -2 -vcodec libx264 -hls_wrap 100 -f hls -hls_time 20 C:/var/1.m3u8 ",
UseShellExecute = false,
RedirectStandardOutput = true
});
}
else
{
Thread.Sleep(100);
return null;
}
}The problem is it doesn’t work when my time on my computer is for example 12pm and he is not cutting the stream.
What am I doing wrong ?