
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (55)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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. -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)
Sur d’autres sites (10699)
-
ffmpeg permission denied in android studio ?
16 avril 2023, par Rakesh SainiI want to merge an audio in video using ffmpeg of the following dependency but getting the permission denied error.


Cannot run program "/data/user/0/com.example.mytestapp/files/ffmpeg": error=13, Permission denied



Dependency I am using


implementation 'com.writingminds:FFmpegAndroid:0.3.2'



I am using following code to merge an audio into the video. I added the dependency and provided the path of the video. I also placed the ffpmeg.exe into the assets folder


package com.example.mytestapp.Activity;
 
 import androidx.annotation.NonNull;
 import androidx.appcompat.app.AppCompatActivity;
 
 import android.Manifest;
 import android.content.Context;
 import android.content.pm.PackageManager;
 import android.content.res.AssetManager;
 import android.os.Build;
 import android.os.Bundle;
 import android.os.Environment;
 import android.util.Log;
 import android.widget.Toast;
 
 import com.example.mytestapp.R;
 import com.github.hiteshsondhi88.libffmpeg.ExecuteBinaryResponseHandler;
 import com.github.hiteshsondhi88.libffmpeg.FFmpeg;
 import com.github.hiteshsondhi88.libffmpeg.exceptions.FFmpegCommandAlreadyRunningException;
 
 import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
 
 public class MainActivity3 extends AppCompatActivity {
 Context context;
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main3);
 
 }
 protected Boolean doInBackground() {
 String ffmpegPath = getApplicationContext().getFilesDir().getAbsolutePath() + "/ffmpeg";
 Log.e("called ", ffmpegPath);
 
 String vpath = " /storage/emulated/0/DCIM/Camera/VID_20230325_083306.mp4";
 String aPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/Seesekadil.mp3";
 
 String oPath = "/storage/emulated/0/DCIM/202304_15-223653rangeela.mp4";
 String[] cmd = {"-i", vpath, "-i", aPath, "-shortest", oPath};
 try {
 FFmpeg.getInstance(getApplicationContext()).execute(cmd, new ExecuteBinaryResponseHandler() {
 @Override
 public void onStart() {
 Log.e("Started", "yes");
 }
 
 @Override
 public void onProgress(String message) {
 // do nothing
 }
 
 @Override
 public void onFailure(String message) {
 Log.e("Failed ", "yes");
 }
 
 @Override
 public void onSuccess(String message) {
 Log.e("Success ", "yes");
 }
 
 @Override
 public void onFinish() {
 // do nothing
 }
 });
 } catch (FFmpegCommandAlreadyRunningException e) {
 e.printStackTrace();
 }
 
 return null;
 }
 
 @Override
 protected void onResume() {
 super.onResume();
 checkPermission();
 File file = new File(getApplicationContext().getFilesDir(), "ffmpeg");
 if (!file.canExecute()) {
 file.setExecutable(true);
 }
 doInBackground();
 
 }
 
 private void checkPermission() {
 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
 return;
 }
 // request camera permission if it has not been grunted.
 if (checkSelfPermission(Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED ||
 checkSelfPermission(Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED ||
 checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED
 ) {
 
 requestPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.RECORD_AUDIO, Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);
 }
 
 }
 
 @Override
 public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
 super.onRequestPermissionsResult(requestCode, permissions, grantResults);
 switch (requestCode) {
 case 1:
 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
 Toast.makeText(MainActivity3.this, "permission has been grunted.", Toast.LENGTH_SHORT).show();
 } else {
 Toast.makeText(MainActivity3.this, "[WARN] permission is not grunted.", Toast.LENGTH_SHORT).show();
 }
 break;
 }
 }
 
 }



-
Suggestion query : Someone should add 'percent-complete' to ffmpeg's status line
19 février 2018, par DaveI use the PC-platform’s ffmpeg (on Windows and Linux). I’ve always
wondered why, down on that bottom dynamic status line, it does NOT
show a ’percent-complete’ value.e.g. There’s already a line showing what time-line value is being worked
on, so I’d expect it would be straight-forward to grab total duration, compute percent-complete, and show it, right after the running time value. Or,
if based on frames, then show it in parentheses after the frame value.The reason I think it would be straight-forward is because I see it
discussed in detail, for ffmpeg on Android, here :
How to add progress bar to FFMPEG android
and it talks about time-values and frame-count based calculations.Any volunteers to tackle this ? ^ ;)
-
using default poster image with video and audio tags
23 décembre 2016, par Ravinder PayalI have a web-application where users can share music and videos ( will be saved on sme-server utilized by Web-Application ) and as we know some audio /video files have posters/thumbnails included/attached with them.
NOW, I want to show those posters with audio or video in HTML5.
I know about poster tag, but it needs a separate image file to show. However, I want to show image file attached with song (audio / video).
Any suggestion related anyjava-script
or HTML api will be appreciated.
I know about obtaining poster images withff-mpeg
(or similar libraries), but that will add an extra work load on my server. Thanks.Note :-I may consider any server side efficient solution alo.
Thanks in advance.