Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (73)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (7942)

  • How to get camera permission android [duplicate]

    22 mars 2021, par connor449

    I am trying to get permission to record video with ffmpeg on an android device.

    


    Here is my code from AndroidManifest.xml :

    


    <manifest package="com.example.camera">&#xA;    &#xA;    &#xA;&#xA;    &#xA;        <activity>&#xA;            &#xA;            &#xA;        </activity>        <activity>&#xA;            &#xA;                <action></action>&#xA;&#xA;                <category></category>&#xA;            &#xA;        </activity>&#xA;    &#xA;&#xA;Here is the specific camera command in &#x27;MainActivity.kt`:&#xA;</manifest>

    &#xA;

       FFmpeg.execute("-f android_camera -i 0:0 -r 30 -pixel_format bgr0 -t 00:00:05")&#xA;

    &#xA;

    &#xA;

    &#xA;

    Here is my error :

    &#xA;

    021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1638402! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1638403! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1835009! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1835010! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1638407! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1638408! count 0, type 0&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1638402! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1638403! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1835009! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1835010! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1638407! count 0, type 3&#xA;2021-03-22 12:40:41.679 25156-25156/com.example.camera E/ACameraMetadata: filterDurations: malformed duration key 1638408! count 0, type 0&#xA;2021-03-22 12:40:41.681 25156-25156/com.example.camera E/ACameraManager: openCamera: connect camera device failed: Status(-8, EX_SERVICE_SPECIFIC): &#x27;1: validateClientPermissionsLocked:1041: Caller "" (PID 10222, UID 25156) cannot open camera "0" without camera permission&#x27;&#xA;2021-03-22 12:40:41.681 25156-25323/com.example.camera E/mobile-ffmpeg: [android_camera @ 0x7267a03e00] Failed to open camera with id 0, error: ACAMERA_ERROR_PERMISSION_DENIED.&#xA;2021-03-22 12:40:41.681 25156-25323/com.example.camera E/mobile-ffmpeg: [android_camera @ 0x7267a03e00] Failed to open camera.&#xA;2021-03-22 12:40:41.682 25156-25323/com.example.camera E/mobile-ffmpeg: [android_camera @ 0x7267a03e00] Failed to open android_camera.&#xA;2021-03-22 12:40:41.682 25156-25323/com.example.camera E/mobile-ffmpeg: 0:0: Generic error in an external library&#xA;2021-03-22 12:40:41.707 25156-25156/com.example.camera W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@4ac3524&#xA;

    &#xA;

    What am I doing wrong ? Every source I look at suggest the permissions I added above but it doesn't work.

    &#xA;

  • Android catching camera preview frames while recording video

    23 février 2017, par L'Esperanza

    I have camera object and code of recording video :

    Camera c = Camera.open(CameraInfo.CAMERA_FACING_BACK);
    c.lock();
    c.setPreviewCallback(mPreviewCallback); // catching frames
    c.startPreview();
    ...
    MediaRecorder r = new MediaRecorder();
    r.setCamera(c);
    r.setVideoSource(MediaRecorder.VideoSource.CAMERA);
    r.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
    r.setOutputFile(new File(Environment.getExternalStorageDirectory(), "video.mp4").getPath());
    r.setVideoFrameRate(10);
    r.setVideoSize(640, 480);
    r.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
    r.setPreviewDisplay(holder.getSurface());
    r.prepare();
    r.start();

    My code also doesn’t work. String r.start() throws IllegalStateException because of I didn’t called method c.unlock() before calling r.setCamera(c). So my question is : How to catch camera preview frames during recording video via MediaRecorder in Android v4.0 and later without (or instead of) using FFmpeg libraries and MediaMuxer & MediaCodec API ?

  • IP Camera RTSP video encryption

    5 juin 2018, par Abdullah Shafiq

    I have an IP Camera which supports RTSP. I have connected it to anOdroid(Single Board Computer). I want get that RTSP feed, encrypt it and then send again using RTSP. What is the best way to achieve this ?