
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (61)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Les statuts des instances de mutualisation
13 mars 2010, parPour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...) -
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
Sur d’autres sites (7198)
-
Recording live stream with intermittent no audio with FFmpeg
15 décembre 2022, par charlie-birdI'm trying to record a live stream with ffmpeg and having an issue with the audio.
The stream has video and audio, until it goes to video only for a few minutes and back to audio+video.

A : XXXXXX________YYYYYY_______ZZZZZZ

V : XXXXXXOOOOO0YYYYYYOOOOOZZZZZZ

When I stop the recording and look at the output file, the absence of audio is messing stuff up. Instead of having no audio during the "breaks" ffmpeg wrote the audio track from after the break over the video, completely disconnecting audio and video

A : XXXXXXYYYYYYYZZZZZZZZZ

V : XXXXXXOOOOOOOOYYYYYYOOOOOOOZZZZZZ

Is there an argument or parameter to force the recording of an "empty" audio track over the video when there's no audio, to keep both in sync ?


Right now, not using any options


ffmpeg -i "https://input.m3u8" ~/Outputfile.mp4



Tried with map as below, same issue


ffmpeg -i "https://input.m3u8" -map 0:a -map 0:v ~/Outputfile.mp4



EDIT :
Also tried with a simple copy, in that case the audio stops but then isn't recorded when it comes back


ffmpeg -i "https://input.m3u8" -map 0:a -map 0:v -c copy ~/Outputfile.ts



EDIT 2 :
I've found a workaround. I re-stream the live stream using VLC on a local port and record copy with ffmpeg, and now it's all in sync


ffmpeg -i "http://10.10.10.10:1234" -c copy ~/Outputfile.ts



I would still like to be able to do this directly, but in the meantime that works.


-
How do i compress a video file in c# (Xamarin android)
1er août 2016, par stackOverNoI’m currently working on a xamarin.android project, and am attempting to upload a video to an aws server, and then also be able to play it back. The upload is working correctly as far as I can tell.
I’m retrieving the file from the user’s phone, turning it into a byte array, and uploading that. This is the code to upload :
if (isImageAttached || isVideoAttached)
{
//upload the file
byte[] fileInfo = System.IO.File.ReadAllBytes(filePath);
Task<media> task = client.SaveMediaAsync(fileInfo, nameOfFile);
mediaObj = await task;
//other code below is irrelevant to example
}
</media>and SaveMediaAsync is a function I wrote in a PCL :
public async Task<media> SaveMediaAsync(byte[] fileInfo, string fName)
{
Media a = new Media();
var uri = new Uri(RestUrl);
try
{
MultipartFormDataContent form = new MultipartFormDataContent();
form.Add(new StreamContent(new MemoryStream(fileInfo)), "file", fName); //add file
var response = await client.PostAsync(uri, form); //post the form client is an httpclient object
string info = await response.Content.ReadAsStringAsync();
//save info to media object
string[] parts = info.Split('\"');
a.Name = parts[3];
a.Path = parts[7];
a.Size = Int32.Parse(parts[10]);
}
catch(Exception ex)
{
//handle exception
}
return a;
}
</media>After uploading the video like that, I’m able to view it in a browser using the public url. The quality is the same, and there is no issue with lag or load time. However when I try to play back the video using the same public url on my app on an android device, it takes an unbelievably long time to load the video. Even once it is loaded, it plays less than a second of it, and then seems to start loading the video again(the part of the progress bar that shows how much of the video has loaded jumps back to the current position and starts loading again).
VideoView myVideo = FindViewById<videoview>(Resource.Id.TestVideo);
myVideo.SetVideoURI(Android.Net.Uri.Parse(url));
//add media controller
MediaController cont = new MediaController(this);
cont.SetAnchorView(myVideo);
myVideo.SetMediaController(cont);
//start video
myVideo.Start();
</videoview>Now I’m trying to play a 15 second video that is 5.9mb. When I try to play a 5 second video that’s 375kb it plays with no issue. This leads me to believe I need to make the video file smaller before playing it back, but I’m not sure how to do that. I’m trying to allow the user to upload their own videos, so I’ll have all different file formats and sizes.
I’ve seen some people suggesting ffmpeg for a c# library to alter video files, but I’m not quite sure what it is I need to do to the video file. Can anyone fill in the gaps in my knowledge here ?
Thanks for your time, it’s greatly appreciated !
-
How to use ffmpeg to split a video and then merge it smoothly ? [duplicate]
16 juin 2017, par leandro moreiraThis question is an exact duplicate of :
The idea is to split a video into
n
segments and process them separated and when the process is done to merge the segments into a full video.I tried using the following approach :
```
// spliting
ffmpeg -i video.mp4 -c:v copy -c:a copy -ss 0 -t 10 video_0_10.mp4
ffmpeg -i video.mp4 -c:v copy -c:a copy -ss 10 -t 20 video_10_20.mp4
vim video_list.txt (with all files)
// joining (merging them)
ffmpeg -f concat -safe 0 -i video_list.txt -c:v copy -c:a copy new_video.mp4```
But when I tried to play the
new_video.mp4
it didn’t play (using VLC) smooth, it froze seemly at the moment of the joining.What’s the best way to split a bigger video into several smaller, work on them and after joining the smaller into a new ?