MediaSPIP 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.
Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)
I have used the avcodec_decode_audio3 function to decode the AMR content in the frame order.
I get 640 bytes output for each frame, with sample format being float and I have saved the output as a raw output file.
Now, I want to validate this output content. But I can't play it in any player as it does not have any header or media info. And I am not able to find any command in ffmpeg which gives me raw audio output.
Now, if want to re-encode that raw output content in FFMPEG, what would be the input format I need to give.
I would like to show a ProgressDialog with percentage completed, below is the code I am using :



Action onProgress;
Action<string> logger = null;
int total = 0;
int current = 0;

var dialog = new ProgressDialog(this);
dialog.SetTitle("Please wait, creating video.");
dialog.Indeterminate = false;
dialog.SetProgressStyle(ProgressDialogStyle.Horizontal);
dialog.SetCancelable(false);
dialog.CancelEvent += (s, e) =>
{

};

dialog.SetCanceledOnTouchOutside(false); 
dialog.Show();

await FFMpegLibrary.Run(this, cmd, (s) =>
{
 logger?.Invoke(s);
 int n = Extract(s, "Duration:", ",");
 if (n != -1)
 {
 total = n;
 dialog.Max = n;
 }

 n = Extract(s, "time=", " bitrate=");
 if (n != -1)
 { 
 current = n;
 onProgress?.Invoke(current, total); 
 } 
});

dialog.Hide();
</string>



To extract time and duration below are the functions



public int Extract(String text, String start, String end)
 {
 int i = text.IndexOf(start); 
 if (i != -1)
 {
 text = text.Substring(i + start.Length);
 i = text.IndexOf(end);
 if (i != -1)
 {
 text = text.Substring(0, i);
 return parseTime(text);
 }
 }
 return -1;
 }

 public int parseTime(String time)
 {
 time = time.Trim();
 String[] tokens = time.Split(':');
 int hours = int.Parse(tokens[0]);
 int minutes = int.Parse(tokens[1]);
 float seconds = float.Parse(tokens[2]);
 int s = (int)seconds * 100;
 return hours * 360000 + minutes * 60100 + s;
 }




Any idea how to show progress in percentage on ProgressDialog ?