Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (40)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (5376)

  • Error when using FFMpeg in a 64-bit .NET Framework 4.8 application with FFmpeg.AutoGen 7.0

    17 janvier, par auetic

    I'm facing an issue when trying to use FFmpeg in my .NET Framework 4.8 application (64-bit) with FFmpeg.AutoGen 7.0. When I try to call any FFmpeg method, such as ffmpeg.av_version_info() in the constructor, I encounter the next "Not supported method" error :

    


    


    System.NotSupportedException HResult=0x80131515 Mensaje = El método especificado no es compatible. Origen = FFmpeg.AutoGen.Bindings.DynamicallyLoaded Seguimiento de la pila : at FFmpeg.AutoGen.Bindings.DynamicallyLoaded.DynamicallyLoadedBindings.<>c.b__6_1165() at FFmpeg.AutoGen.Bindings.DynamicallyLoaded.DynamicallyLoadedBindings.<>c.b__6_454() at FFmpeg.AutoGen.Abstractions.ffmpeg.av_version_info()

    &#xA;

    &#xA;

    My binaries path contains :

    &#xA;

    &#xA;
      &#xA;
    1. FFmpeg/bin :
    2. &#xA;

    &#xA;

      &#xA;
    • avcodec-61.dll
    • &#xA;

    • avdevice-61.dll
    • &#xA;

    • avfilter-10.dll
    • &#xA;

    • avformat-61.dll
    • &#xA;

    • avutil-59.dll
    • &#xA;

    • postproc-58.dll
    • &#xA;

    • swresample-5.dll
    • &#xA;

    • swscale-8.dll
    • &#xA;

    &#xA;

      &#xA;
    1. FFmpeg/include
    2. &#xA;

    &#xA;

      &#xA;
    • libavcodec
    • &#xA;

    • libavdevice
    • &#xA;

    • libavfilter
    • &#xA;

    • libavformat
    • &#xA;

    • libavutil
    • &#xA;

    • libpostproc
    • &#xA;

    • libswrseample
    • &#xA;

    • libswscale
    • &#xA;

    &#xA;

    &#xA;

    I'm using the FFmpeg binaries obtained from GitHub (https://github.com/Ruslan-B/FFmpeg.AutoGen) and I'm specifically working with FFmpeg version 7.0. This is the code snippet :

    &#xA;

    public sealed unsafe partial class VideoPlayer : Form&#xA;{&#xA;    private bool _isPlaying = false;&#xA;    private Thread playbackThread;&#xA;    private int _videoStreamIndex;&#xA;    private AVFormatContext* _formatContext;&#xA;    private AVCodecContext* _codecContext;        &#xA;    private SwsContext* _swsContext;&#xA;&#xA;    public VideoPlayer()&#xA;    {&#xA;        InitializeComponent();  &#xA;        FFMpegBinariesHelper.RegisterFFMpegBinaries(); // FFmpeg registration&#xA;        DynamicallyLoadedBindings.Initialize();            &#xA;        Console.WriteLine($"FFmpeg version info: {ffmpeg.av_version_info()}"); // Error         occurs here&#xA;    }&#xA;}&#xA;

    &#xA;

  • FFmpeg container is unable to communicate to my application container in Quarkus [duplicate]

    28 avril, par Abhi11

    I'm working on a application where i am running different container such as clamav,postgres,my quarkus application.all the configuration is defined in docker compose file.now i want to perform some operation on file that's why want to use ffmpeg. i am using ffmpeg as separate container and connected via docker network.i want to execute some ffmpeg command for example check version and other advance.I'm getting error. Please help me to solve this.

    &#xA;

    My docker-compose.yml —

    &#xA;

    version: "3.8"&#xA;services:&#xA;  clamav:&#xA;    image: clamav/clamav:latest&#xA;    container_name: clamav&#xA;    ports:&#xA;      - "3310:3310"&#xA;    restart: always&#xA;    healthcheck:&#xA;      test: ["CMD", "clamdscan", "--version"]&#xA;      interval: 30s&#xA;      timeout: 10s&#xA;      retries: 5&#xA;    networks:&#xA;      - techtonic-antivirus-net&#xA;&#xA;  postgres-database:&#xA;    image: postgres:15&#xA;    container_name: postgres&#xA;    environment:&#xA;      POSTGRES_DB: antivirustt&#xA;      POSTGRES_USER: postgres&#xA;      POSTGRES_PASSWORD: postgres&#xA;    ports:&#xA;      - "5434:5432"`enter code here`&#xA;    restart: always&#xA;    volumes:&#xA;      - pgdata:/var/lib/postgresql/data&#xA;    networks:&#xA;      - techtonic-antivirus-net&#xA;&#xA;  # Add Redis container&#xA;  redis:&#xA;    image: redis:latestenter code here&#xA;    container_name: redis&#xA;    ports:&#xA;      - "6379:6379"&#xA;    restart: always&#xA;    networks:&#xA;      - techtonic-antivirus-net&#xA;&#xA;  ffmpeg:&#xA;    image: jrottenberg/ffmpeg:latest&#xA;    container_name: ffmpeg&#xA;    restart: always&#xA;    entrypoint: ["tail", "-f", "/dev/null"]  # Keeps the container running&#xA;    networks:&#xA;      - techtonic-antivirus-net&#xA;    healthcheck:&#xA;      test: ["CMD", "ffmpeg", "-version"]&#xA;      interval: 10s&#xA;      timeout: 5s&#xA;      retries: 3&#xA;&#xA;  techtonic-antivirus:&#xA;    build:&#xA;      context: .&#xA;      dockerfile: src/main/docker/Dockerfile.native-micro&#xA;    container_name: techtonic-antivirus&#xA;    depends_on:&#xA;      clamav:&#xA;        condition: service_healthy&#xA;      postgres-database:&#xA;        condition: service_started&#xA;      redis:&#xA;        condition: service_started&#xA;    ports:&#xA;      - "8080:8080"&#xA;    environment:&#xA;      - CLAMAV_HOST=${CLAMAV_HOST}&#xA;      - CLAMAV_PORT=${CLAMAV_PORT}&#xA;      - QUARKUS_PROFILE=${QUARKUS_PROFILE:-dev}&#xA;      - QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgres-database:5432/antivirustt&#xA;      - QUARKUS_DATASOURCE_USERNAME=postgres&#xA;      - QUARKUS_DATASOURCE_PASSWORD=postgres&#xA;      - QUARKUS_REDIS_HOSTS=redis://redis:6379&#xA;    restart: always&#xA;    volumes:&#xA;      - ffmpeg:/ffmpeg&#xA;      - /var/run/docker.sock:/var/run/docker.sock&#xA;    networks:&#xA;      - techtonic-antivirus-net&#xA;&#xA;volumes:&#xA;  pgdata:&#xA;  ffmpeg:&#xA;&#xA;networks:&#xA;  techtonic-antivirus-net:&#xA;

    &#xA;

    My Service code :

    &#xA;

    @Slf4j&#xA;@ApplicationScoped&#xA;public class CheckFFmpegStatus {&#xA;&#xA;    public static boolean isFFmpegReady() {&#xA;        try {&#xA;            // ProcessBuilder pb = new ProcessBuilder("docker", "exec", "ffmpeg", "ffmpeg", "-version");&#xA;            ProcessBuilder pb = new ProcessBuilder("ffmpeg", "-version");&#xA;            Process process = pb.start();&#xA;            int exitCode = process.waitFor();&#xA;            if (exitCode == 0) {&#xA;                log.info("✅ FFmpeg is ready and reachable inside the container.");&#xA;            } else {&#xA;                log.warn("⚠️ FFmpeg process exited with code: " &#x2B; exitCode);&#xA;            }&#xA;&#xA;            return exitCode == 0;&#xA;        } catch (IOException | InterruptedException e) {&#xA;            log.error("❌ Failed to check FFmpeg status", e);&#xA;            return false;&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

  • Camera app fails on android ffmpeg application

    22 mars 2021, par connor449

    I am trying to run a simple video recorder app on android. The code is below :

    &#xA;

    package com.example.camera&#xA;&#xA;//import android.R&#xA;import android.content.DialogInterface&#xA;import android.content.pm.PackageManager&#xA;import android.os.Build&#xA;import android.os.Bundle&#xA;import android.widget.Toast&#xA;import androidx.appcompat.app.AlertDialog&#xA;import androidx.appcompat.app.AppCompatActivity&#xA;import androidx.core.app.ActivityCompat&#xA;import androidx.core.content.ContextCompat&#xA;import com.arthenica.mobileffmpeg.FFmpeg&#xA;&#xA;&#xA;const val EXTRA_MESSAGE = "com.example.myfirstapp.MESSAGE"&#xA;&#xA;class MainActivity : AppCompatActivity() {&#xA;    override fun onCreate(savedInstanceState: Bundle?) {&#xA;        super.onCreate(savedInstanceState)&#xA;        setContentView(R.layout.activity_main)&#xA;        if (checkPermission()) {&#xA;            //main logic or main code&#xA;           FFmpeg.execute("-f android_camera -i 0:0 -r 30 -pixel_format bgr0 -t 00:00:05 /sdcard/test.mp4")&#xA;&#xA;            // . write your main code to execute, It will execute if the permission is already given.&#xA;        } else {&#xA;            requestPermission()&#xA;        }&#xA;    }&#xA;&#xA;    private fun checkPermission(): Boolean {&#xA;        return if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.CAMERA)&#xA;            != PackageManager.PERMISSION_GRANTED&#xA;        ) {&#xA;            // Permission is not granted&#xA;            false&#xA;        } else true&#xA;    }&#xA;&#xA;    private fun requestPermission() {&#xA;        ActivityCompat.requestPermissions(&#xA;            this, arrayOf(android.Manifest.permission.CAMERA),&#xA;            PERMISSION_REQUEST_CODE&#xA;        )&#xA;    }&#xA;&#xA;    override fun onRequestPermissionsResult(&#xA;        requestCode: Int,&#xA;        permissions: Array<string>,&#xA;        grantResults: IntArray&#xA;    ) {&#xA;        when (requestCode) {&#xA;            PERMISSION_REQUEST_CODE -> if (grantResults.size > 0 &amp;&amp; grantResults[0] == PackageManager.PERMISSION_GRANTED&#xA;            ) {&#xA;                Toast.makeText(applicationContext, "Permission Granted", Toast.LENGTH_SHORT)&#xA;                    .show()&#xA;&#xA;                // main logic&#xA;            } else {&#xA;                Toast.makeText(applicationContext, "Permission Denied", Toast.LENGTH_SHORT)&#xA;                    .show()&#xA;                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {&#xA;                    if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.CAMERA)&#xA;                        != PackageManager.PERMISSION_GRANTED&#xA;                    ) {&#xA;                        showMessageOKCancel("You need to allow access permissions",&#xA;                            DialogInterface.OnClickListener { dialog, which ->&#xA;                                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {&#xA;                                    requestPermission()&#xA;                                }&#xA;                            })&#xA;                    }&#xA;                }&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    private fun showMessageOKCancel(&#xA;        message: String,&#xA;        okListener: DialogInterface.OnClickListener&#xA;    ) {&#xA;        AlertDialog.Builder(this@MainActivity)&#xA;            .setMessage(message)&#xA;            .setPositiveButton("OK", okListener)&#xA;            .setNegativeButton("Cancel", null)&#xA;            .create()&#xA;            .show()&#xA;    }&#xA;&#xA;    companion object {&#xA;        private const val PERMISSION_REQUEST_CODE = 200&#xA;    }&#xA;}&#xA;&#xA;&#xA;</string>

    &#xA;

    The main command to call the video recorder is here :

    &#xA;

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

    &#xA;

    The app opens on my android 10 Motorola G Power. I tap 'allow' for allowing permissions. Then the app crashes and I keep getting this error :

    &#xA;

    2021-03-22 13:42:51.534 31138-31138/com.example.camera E/AndroidRuntime: FATAL EXCEPTION: main&#xA;    Process: com.example.camera, PID: 31138&#xA;    java.lang.IllegalStateException: Could not find method sendMessage(View) in a parent or ancestor Context for android:onClick attribute defined on view class com.google.android.material.button.MaterialButton with id &#x27;button2&#x27;&#xA;        at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.resolveMethod(AppCompatViewInflater.java:436)&#xA;        at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:393)&#xA;        at android.view.View.performClick(View.java:7161)&#xA;        at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:967)&#xA;        at android.view.View.performClickInternal(View.java:7133)&#xA;        at android.view.View.access$3500(View.java:804)&#xA;        at android.view.View$PerformClick.run(View.java:27416)&#xA;        at android.os.Handler.handleCallback(Handler.java:883)&#xA;        at android.os.Handler.dispatchMessage(Handler.java:100)&#xA;        at android.os.Looper.loop(Looper.java:241)&#xA;        at android.app.ActivityThread.main(ActivityThread.java:7617)&#xA;        at java.lang.reflect.Method.invoke(Native Method)&#xA;        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)&#xA;        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)&#xA;2021-03-22 13:42:51.546 31138-31138/com.example.camera I/Process: Sending signal. PID: 31138 SIG: 9&#xA;

    &#xA;

    What am I doing wrong ? Please advise.

    &#xA;

    edit

    &#xA;

    layout xml

    &#xA;

    &lt;?xml version="1.0" encoding="utf-8"?>&#xA;&#xA;&#xA;    &#xA;&#xA;    &#xA;&#xA;

    &#xA;