
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (60)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 -
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
Sur d’autres sites (11920)
-
Can we Stream Live Audio from Android phone using FFmpeg ?
17 août 2023, par UdayIm using ffmpeg_kit_flutter package to Stream data to the RTSP server in Flutter.


IOS : Working


Android : Its not working


Command Used :


'ffmpeg -f avfoundation -i ":0" -acodec aac -f rtsp -rtsp_transport tcp "$Url"'



When i ran a "
ffmpeg -devices
" command on android, it returns follwing response, through which i got to know android doesn't support avfoundation but android hasandroid_camera
,
Does thisandroid_camera
support audio too ?

Command : 'ffmpeg -devices'


Response :


I/flutter (10620): logs: libavutil 57. 28.100 / 57. 28.100
I/flutter (10620): logs: libavcodec 59. 37.100 / 59. 37.100
I/flutter (10620): logs: libavformat 59. 27.100 / 59. 27.100
I/flutter (10620): logs: libavdevice 59. 7.100 / 59. 7.100
I/flutter (10620): logs: libavfilter 8. 44.100 / 8. 44.100
I/flutter (10620): logs: libswscale 6. 7.100 / 6. 7.100
I/flutter (10620): logs: libswresample 4. 7.100 / 4. 7.100
I/flutter (10620): logs:Devices:
I/flutter (10620): D. = Demuxing supported
I/flutter (10620): .E = Muxing supported
I/flutter (10620): --
I/flutter (10620): logs: D android_camera 
I/flutter (10620): logs: D lavfi 
I/flutter (10620): logs: DE video4linux2,v4l2



Commands which I tried in Android


FFmpegKit.execute('-y -f android_camera -i 0:1 -r 30 -c:a aac -f rtsp -rtsp_transport tcp "$Url"');

FFmpegKit.execute('-y -f android_camera -i 0:1 -r 30 -c:a libmp3lame -qscale:a 2 "/storage/emulated/0/Download/androidvideo.mp3"');

FFmpegKit.execute('-y -f android_camera -i 0:0 -r 30 -c:a wavpack -b:a 64k "/storage/emulated/0/Download/androidvideo.wav"');



This command records video but no audio in it.


FFmpegKit.execute('-video_size hd720 -f android_camera -camera_index 1 -i anything -r 10 -t 00:00:15 "$dir/androidvideo.mp4”');



-
Android ffmpeg command shows java.io.IOException : Error running exec()
26 mai 2023, par JamalI would like to use
ffmpeg
binary executable in my Android project.for this purpose I have used pre built ffmpeg Android binary from this(https://github.com/hiteshsondhi88/ffmpeg-android/releases/download/v0.3.3/prebuilt-binaries.zip) link.


As per procedure I have to place the
executable
file into/data/data/com.example.rampedsample
directory, herecom.example.rampedsample
is my project packageName.I couldn't find this location in my device as it is un rooted.So I pasted that executable intoAndroid emulator
'scom.example.rampedsample
directory usingDDMS
perspective.


In my Activity used the below code



try {
 Process p = Runtime.getRuntime().exec("/data/data/com.example.rampedsample/ffmpeg "+Environment.getExternalStorageDirectory()+"/Movies/ramp_video.mp4"
 +" -map 0:v -codec copy "+Environment.getExternalStorageDirectory()+"/Movies/ramp_video2.mp4");


 } catch (IOException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 }




AndroidManifest permission








error



04-13 16:59:55.314: W/System.err(11387): java.io.IOException: Error running exec(). Command: [/data/data/com.example.rampedsample/ffmpeg, /mnt/sdcard/Movies/ramp_video.mp4, -map, 0:v, -codec, copy, /mnt/sdcard/Movies/ramp_video2.mp4] Working Directory: null Environment: null
04-13 16:59:55.314: W/System.err(11387): at java.lang.ProcessManager.exec(ProcessManager.java:211)
04-13 16:59:55.355: W/System.err(11387): at java.lang.Runtime.exec(Runtime.java:168)
04-13 16:59:55.355: W/System.err(11387): at java.lang.Runtime.exec(Runtime.java:241)
04-13 16:59:55.355: W/System.err(11387): at java.lang.Runtime.exec(Runtime.java:184)
04-13 16:59:55.355: W/System.err(11387): at com.example.rampedsample.MainActivity.onCreate(MainActivity.java:18)
04-13 16:59:55.355: W/System.err(11387): at android.app.Activity.performCreate(Activity.java:5008)
04-13 16:59:55.355: W/System.err(11387): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)



-
How to install JavaCV on Android and use FrameGrabber
16 mars 2023, par MarkCould someone tell me where I'm doing wrong ? These are the steps that I have followed :


- 

-
Downloaded the adt-bundle-windows from android developer website


-
Created a new project and a libs/armeabi folder


-
Extract all the *.so files from javacv-android-arm.jar, opencv-2.4.3-android-arm.zip, and ffmpeg-1.0-android-arm.zip directly into the newly created "libs/armeabi" folder, without creating any new subdirectories.


(A part that I don't understand is "Extract all the *.so files from javacv-android-arm.jar", I simply inserted the javacv-android-arm.jar file inside libs/armeabi folder)


-
Navigated to Project > Properties > Java Build Path > Libraries and click "Add JARs...".


-
Selected both javacpp.jar and javacv.jar from the newly created "libs" folder.














After that I have downloaded OpenCV2.4.3 from here and ffmpeg from here and extracted the files on my C :/ root.
Finally after setting my system path...,


C:\opencv\build\x64\vc10\bin;C:\ffmpeg-64\bin;C:\Program Files\Java\jdk1.7.0_10\bin



...if I try to use simply FrameGrabber in my Android application...


import com.googlecode.javacv.FFmpegFrameGrabber;
import com.googlecode.javacpp.Loader;
import com.googlecode.javacv.*;
import com.googlecode.javacv.cpp.*;
import static com.googlecode.javacv.cpp.opencv_core.*;
import static com.googlecode.javacv.cpp.opencv_imgproc.*;
import static com.googlecode.javacv.cpp.opencv_calib3d.*;
import static com.googlecode.javacv.cpp.opencv_objdetect.*;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {

 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main);
 
 FFmpegFrameGrabber i = new FFmpegFrameGrabber("/mnt/sdcard/SinglePerson.avi"); 
 }



...I get the following errors :


01-29 17:59:26.976: E/AndroidRuntime(30656): FATAL EXCEPTION: main
01-29 17:59:26.976: E/AndroidRuntime(30656): java.lang.NoClassDefFoundError: com.googlecode.javacv.FFmpegFrameGrabber
01-29 17:59:26.976: E/AndroidRuntime(30656): at com.example.xxxxxxxxx.MainActivity.onCreate(MainActivity.java:23)
01-29 17:59:26.976: E/AndroidRuntime(30656): at android.app.Activity.performCreate(Activity.java:4465)
01-29 17:59:26.976: E/AndroidRuntime(30656): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
01-29 17:59:26.976: E/AndroidRuntime(30656): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
01-29 17:59:26.976: E/AndroidRuntime(30656): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
01-29 17:59:26.976: E/AndroidRuntime(30656): at android.app.ActivityThread.access$600(ActivityThread.java:123)
01-29 17:59:26.976: E/AndroidRuntime(30656): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
01-29 17:59:26.976: E/AndroidRuntime(30656): at android.os.Handler.dispatchMessage(Handler.java:99)
01-29 17:59:26.976: E/AndroidRuntime(30656): at android.os.Looper.loop(Looper.java:137)
01-29 17:59:26.976: E/AndroidRuntime(30656): at android.app.ActivityThread.main(ActivityThread.java:4424)
01-29 17:59:26.976: E/AndroidRuntime(30656): at java.lang.reflect.Method.invokeNative(Native Method)
01-29 17:59:26.976: E/AndroidRuntime(30656): at java.lang.reflect.Method.invoke(Method.java:511)
01-29 17:59:26.976: E/AndroidRuntime(30656): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-29 17:59:26.976: E/AndroidRuntime(30656): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-29 17:59:26.976: E/AndroidRuntime(30656): at dalvik.system.NativeStart.main(Native Method)



Someone can help me please ?


-