
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (23)
-
Publier sur MédiaSpip
13 juin 2013Puis-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 -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (5956)
-
How to concat two .mp4 files in php using ffmpeg ? [duplicate]
6 mai 2014, par user3607665This question is an exact duplicate of :
I want to concat two .mp4 files to single .mp4 in php using ffmpeg.
Thanks -
ffmpeg frame rate issue
3 juillet 2013, par user2529661I have been having frame rate issues with ffmpeg. I'm trying to make a mkv file with a raw H.264 input.
I have to declare a frame rate or it will default to 25 fps, but the text becomes out of sync when I try to set a frame rate with the
-r
option :ffmpeg -r 29.42 -i 2.h264 -i 2.ass -map 0 -map 1 -c copy 2.mkv
I know the time duration of the H.264 file when I get the frame count using :
ffprobe -i 2.h264 -show_streams -count_frames
I can calculate the frame rate and make the mkv file and the text is pretty well synced. This is slow ; it takes about 1 min to process 10 mins of video. My files will be up to 1 hour long and this all has to be done in the back ground from my .net app.
- Is there a faster way to get the framerate ?
- Is using
ffprobe
the best option ? - Can I force a duration on the mkv file ?
-
How to show Images from a video as preview for playlist
1er février 2017, par Guruprasad RaoYou guys Have seen Youtube right. There while you are watching a video, You will also get related videos preview alongwith link. So how we can get it from video itself.. Is it possible to do so.. I am able to get the url from database and display it.. and when the link is clicked it will be played in a jquery player.. So before that a preview of that or you can say playlist of that will be available for user.
I have updated my code with a link I found.. But still I am not able to get the Image from Video.. Is there anything wrong in my code.. Please correct me if I am wrong..
Below is my front end code :
<form runat="server">
<div runat="server" style="height:100%;width:100%">
<div>Latest Videos</div>
</div>
</form>and I am adding all my video links from backend on page load as shown below :
try
{
con.Open();
com = new SqlCommand("Select videourl, videoname from video order by [vid] desc",con);
DbDataReader dr = com.ExecuteReader();
DataTable dt = new DataTable();
if (dr.HasRows)
{
int i = 0;
dt.Load(dr);
int rows = dt.Rows.Count;
for (i = 0; i < rows; i++)
{
HtmlGenericControl d = new HtmlGenericControl("div");
HtmlGenericControl s = new HtmlGenericControl("span");
string[] link = new string[rows];
string[] name = new string[rows];
d.Attributes.Add("class", "plst");
s.Attributes.Add("class", "text");
link[i] = dt.Rows[i]["videourl"].ToString();
name[i] = dt.Rows[i]["videoname"].ToString();
string videothumb = link[i];
string svthto="**Path to save Image**";
string imgpath=GetVideoThumbnail(videothumb, svthto, 30);
sb.Append("<a i="i" href=" + " class=" + ">" + name[i] + "</a>");
s.InnerHtml = sb.ToString();
d.Controls.Add(s);
examples.Controls.Add(d);
sb.Clear();
}
}
}
catch(Exception ex)
{
ex.Message.ToString();
}
public string GetVideoThumbnail(string path, string saveThumbnailTo, int seconds)
{
string parameters = string.Format("-ss {0} -i {1} -f image2 -vframes 1 -y {2}", seconds, path, saveThumbnailTo);
string pathToConvertor = "C:\\Program Files\\ffmpeg\\ffmpeg.exe";
var processInfo = new ProcessStartInfo();
processInfo.FileName = pathToConvertor;
processInfo.Arguments = parameters;
processInfo.CreateNoWindow = true;
processInfo.UseShellExecute = false;
File.Delete(saveThumbnailTo);
using (var process = new Process())
{
process.StartInfo = processInfo;
process.Start();
process.WaitForExit();
}
if (File.Exists(saveThumbnailTo))
return saveThumbnailTo;
else
return "File not Found";
}and here is the image of what I am getting until now :
Please note : I am not concentrating on you tube videos. I am questioning regarding the videos which I store in server side folder. So if there is any jquery technique or any sort of technique to do this then please let me know. :)