
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (78)
-
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 (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)
Sur d’autres sites (3821)
-
ffmpeg av_read_frame set timeout through callback, How to reduce the frequency of call callback func
1er décembre 2015, par ICYMYMi have set the timeout of av_read_frame, and it work, but i find that the frequency of the call to the callback function is very high, it’s about 15ms every call, is there a way to increase the interval between two calls ? or reduce call frequency of callback function.
c code like this :
int timeout_count = 0;
AVFormatContext *pFormatCtx = NULL;
pFormatCtx = avformat_alloc_context();
pFormatCtx->interrupt_callback.callback = interrupt_cb;
pFormatCtx->interrupt_callback.opaque = &timeout_count;
av_dict_set(&opts, "rtsp_transport", "tcp", 0);
if(avformat_open_input(&pFormatCtx, stream_url, NULL, &opts)!=0)
{
printf("open failed\n");
return -1;
}and the callback func code like this :
static int interrupt_cb(int *timeout_count)
{
(*timeout_count)++;
if(*timeout_count > 500){
return 1; // timeout
}
printf("timeout_count:%d\n", (*timeout_count));
return 0;
}is there a api to set the interval of call callback func ? thanks very much first !
-
How to call ffmpeg video command in android
22 mars 2021, par connor449I am trying to use this command :


FFmpeg.execute("-f android_camera -i 0:0 -r 30 -pixel_format bgr0 -t 00:00:05 <record file="file" path="path">");</record>


from this library :


https://github.com/tanersener/mobile-ffmpeg


The command tells the camera to start recording according to the specifications defined in the command.


As a brand new android developer, I have the following question :


Where/how do I add this command into my code ? I am following the basic tutorial on android that shows you how to make an app with a text field and a button. I want to use the button as a way to trigger this video command. Below is my code in
MainActivity.kt
:

package com.example.camera

import androidx.appcompat.app.AppCompatActivity
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.EditText
import com.arthenica.mobileffmpeg.FFmpeg;



const val EXTRA_MESSAGE = "com.example.myfirstapp.MESSAGE"

class MainActivity : AppCompatActivity() {
 override fun onCreate(savedInstanceState: Bundle?) {
 super.onCreate(savedInstanceState)
 setContentView(R.layout.activity_main)
 }

 /** Called when the user taps the Send button */
 fun sendMessage(view: View) {
 val editText = findViewById<edittext>(R.id.editText)
 val message = editText.text.toString()
 val intent = Intent(this, DisplayMessageActivity::class.java).apply {
 putExtra(EXTRA_MESSAGE, message)
 }
 

 startActivity(intent)
 }
}
</edittext>


Is this the right file to add the command in ? If so, how do I add it ? For now, I just want the video to start recording after I click the button on the app.


I tried this :


val intent = Intent(FFmpeg.execute("-f android_camera -i 0:0 -r 30 -pixel_format bgr0 -t 00:00:05"))



but I got this error :


e: /Users/AndroidStudioProjects/camera/app/src/main/java/com/example/camera/MainActivity.kt: (27, 22): None of the following functions can be called with the arguments supplied: 
public constructor Intent(p0: Intent!) defined in android.content.Intent
public constructor Intent(p0: String!) defined in android.content.Intent



-
fftools/ffmpeg : call check_recording_time() with actual frame pts
25 novembre 2022, par Anton Khirnov