
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (40)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne 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 2011Documentation 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, parUnlike 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 aueticI'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()




My binaries path contains :




- 

- FFmpeg/bin :




- 

- avcodec-61.dll
- avdevice-61.dll
- avfilter-10.dll
- avformat-61.dll
- avutil-59.dll
- postproc-58.dll
- swresample-5.dll
- swscale-8.dll


















- 

- FFmpeg/include




- 

- libavcodec
- libavdevice
- libavfilter
- libavformat
- libavutil
- libpostproc
- libswrseample
- libswscale




















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 :


public sealed unsafe partial class VideoPlayer : Form
{
 private bool _isPlaying = false;
 private Thread playbackThread;
 private int _videoStreamIndex;
 private AVFormatContext* _formatContext;
 private AVCodecContext* _codecContext; 
 private SwsContext* _swsContext;

 public VideoPlayer()
 {
 InitializeComponent(); 
 FFMpegBinariesHelper.RegisterFFMpegBinaries(); // FFmpeg registration
 DynamicallyLoadedBindings.Initialize(); 
 Console.WriteLine($"FFmpeg version info: {ffmpeg.av_version_info()}"); // Error occurs here
 }
}



-
FFmpeg container is unable to communicate to my application container in Quarkus [duplicate]
28 avril, par Abhi11I'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.


My docker-compose.yml —


version: "3.8"
services:
 clamav:
 image: clamav/clamav:latest
 container_name: clamav
 ports:
 - "3310:3310"
 restart: always
 healthcheck:
 test: ["CMD", "clamdscan", "--version"]
 interval: 30s
 timeout: 10s
 retries: 5
 networks:
 - techtonic-antivirus-net

 postgres-database:
 image: postgres:15
 container_name: postgres
 environment:
 POSTGRES_DB: antivirustt
 POSTGRES_USER: postgres
 POSTGRES_PASSWORD: postgres
 ports:
 - "5434:5432"`enter code here`
 restart: always
 volumes:
 - pgdata:/var/lib/postgresql/data
 networks:
 - techtonic-antivirus-net

 # Add Redis container
 redis:
 image: redis:latestenter code here
 container_name: redis
 ports:
 - "6379:6379"
 restart: always
 networks:
 - techtonic-antivirus-net

 ffmpeg:
 image: jrottenberg/ffmpeg:latest
 container_name: ffmpeg
 restart: always
 entrypoint: ["tail", "-f", "/dev/null"] # Keeps the container running
 networks:
 - techtonic-antivirus-net
 healthcheck:
 test: ["CMD", "ffmpeg", "-version"]
 interval: 10s
 timeout: 5s
 retries: 3

 techtonic-antivirus:
 build:
 context: .
 dockerfile: src/main/docker/Dockerfile.native-micro
 container_name: techtonic-antivirus
 depends_on:
 clamav:
 condition: service_healthy
 postgres-database:
 condition: service_started
 redis:
 condition: service_started
 ports:
 - "8080:8080"
 environment:
 - CLAMAV_HOST=${CLAMAV_HOST}
 - CLAMAV_PORT=${CLAMAV_PORT}
 - QUARKUS_PROFILE=${QUARKUS_PROFILE:-dev}
 - QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgres-database:5432/antivirustt
 - QUARKUS_DATASOURCE_USERNAME=postgres
 - QUARKUS_DATASOURCE_PASSWORD=postgres
 - QUARKUS_REDIS_HOSTS=redis://redis:6379
 restart: always
 volumes:
 - ffmpeg:/ffmpeg
 - /var/run/docker.sock:/var/run/docker.sock
 networks:
 - techtonic-antivirus-net

volumes:
 pgdata:
 ffmpeg:

networks:
 techtonic-antivirus-net:



My Service code :


@Slf4j
@ApplicationScoped
public class CheckFFmpegStatus {

 public static boolean isFFmpegReady() {
 try {
 // ProcessBuilder pb = new ProcessBuilder("docker", "exec", "ffmpeg", "ffmpeg", "-version");
 ProcessBuilder pb = new ProcessBuilder("ffmpeg", "-version");
 Process process = pb.start();
 int exitCode = process.waitFor();
 if (exitCode == 0) {
 log.info("✅ FFmpeg is ready and reachable inside the container.");
 } else {
 log.warn("⚠️ FFmpeg process exited with code: " + exitCode);
 }

 return exitCode == 0;
 } catch (IOException | InterruptedException e) {
 log.error("❌ Failed to check FFmpeg status", e);
 return false;
 }
 }
}



-
Camera app fails on android ffmpeg application
22 mars 2021, par connor449I am trying to run a simple video recorder app on android. The code is below :


package com.example.camera

//import android.R
import android.content.DialogInterface
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
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)
 if (checkPermission()) {
 //main logic or main code
 FFmpeg.execute("-f android_camera -i 0:0 -r 30 -pixel_format bgr0 -t 00:00:05 /sdcard/test.mp4")

 // . write your main code to execute, It will execute if the permission is already given.
 } else {
 requestPermission()
 }
 }

 private fun checkPermission(): Boolean {
 return if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.CAMERA)
 != PackageManager.PERMISSION_GRANTED
 ) {
 // Permission is not granted
 false
 } else true
 }

 private fun requestPermission() {
 ActivityCompat.requestPermissions(
 this, arrayOf(android.Manifest.permission.CAMERA),
 PERMISSION_REQUEST_CODE
 )
 }

 override fun onRequestPermissionsResult(
 requestCode: Int,
 permissions: Array<string>,
 grantResults: IntArray
 ) {
 when (requestCode) {
 PERMISSION_REQUEST_CODE -> if (grantResults.size > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED
 ) {
 Toast.makeText(applicationContext, "Permission Granted", Toast.LENGTH_SHORT)
 .show()

 // main logic
 } else {
 Toast.makeText(applicationContext, "Permission Denied", Toast.LENGTH_SHORT)
 .show()
 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
 if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.CAMERA)
 != PackageManager.PERMISSION_GRANTED
 ) {
 showMessageOKCancel("You need to allow access permissions",
 DialogInterface.OnClickListener { dialog, which ->
 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
 requestPermission()
 }
 })
 }
 }
 }
 }
 }

 private fun showMessageOKCancel(
 message: String,
 okListener: DialogInterface.OnClickListener
 ) {
 AlertDialog.Builder(this@MainActivity)
 .setMessage(message)
 .setPositiveButton("OK", okListener)
 .setNegativeButton("Cancel", null)
 .create()
 .show()
 }

 companion object {
 private const val PERMISSION_REQUEST_CODE = 200
 }
}


</string>


The main command to call the video recorder is here :


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



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 :


2021-03-22 13:42:51.534 31138-31138/com.example.camera E/AndroidRuntime: FATAL EXCEPTION: main
 Process: com.example.camera, PID: 31138
 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 'button2'
 at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.resolveMethod(AppCompatViewInflater.java:436)
 at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:393)
 at android.view.View.performClick(View.java:7161)
 at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:967)
 at android.view.View.performClickInternal(View.java:7133)
 at android.view.View.access$3500(View.java:804)
 at android.view.View$PerformClick.run(View.java:27416)
 at android.os.Handler.handleCallback(Handler.java:883)
 at android.os.Handler.dispatchMessage(Handler.java:100)
 at android.os.Looper.loop(Looper.java:241)
 at android.app.ActivityThread.main(ActivityThread.java:7617)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:941)
2021-03-22 13:42:51.546 31138-31138/com.example.camera I/Process: Sending signal. PID: 31138 SIG: 9



What am I doing wrong ? Please advise.


edit


layout xml


<?xml version="1.0" encoding="utf-8"?>