
Recherche avancée
Médias (91)
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Echoplex (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Discipline (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Letting you (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
999 999 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (91)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (4340)
-
Android FFmpeg mp41 fps drop
4 mai 2020, par Yiğit Can YILMAZI am using FFmpeg to trim videos in my project. It's working well with most of the videos. But, I am having problems with some videos that have isomiso2avc1mp41 format. I am not familiar with video proccessing part but when i watch video it seems like having fps drop problem.



I have tried some methods like addding
-framerate 24
or-r 24
to FFmpeg execution commands to set fps rate and converting mp41 to mp42 by using-brand mp42
but I could not achieved to overcame this problem. Can anyone help me to figure this out, please ?


Thanks



this my code snippet :



String[] cropCommand = {"-y", "-i", inputFile, "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-c", "copy", outputFile};

 Log.i("cropcommand", Arrays.toString(cropCommand));
 final int finalHeight = height;
 final int finalWidht = width;
 FFmpeg.getInstance(context).execute(cropCommand, new ExecuteBinaryResponseHandler() {

 @Override
 public void onFailure(String message) {
 // callback.onCancel();

 }

 @Override
 public void onProgress(String message) {
 super.onProgress(message);
 Log.e("ffmpeg", message);
 }

 @Override
 public void onSuccess(String s) {

 Log.i("videosize", "output " + String.valueOf(getFileSize(outputFile)));

 }

 @Override
 public void onStart() {
 Log.i("videosize", "input " + String.valueOf(getFileSize(inputFile)));

 }
 });
 } catch (FFmpegCommandAlreadyRunningException e) {
 e.printStackTrace();
 // callback.onCancel();
 }




and this is log of trial with issue :



D/FFmpeg: Running publishing updates method
E/ffmpeg: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
 built with gcc 4.8 (GCC)
 configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
 libavutil 55. 17.103 / 55. 17.103
 libavcodec 57. 24.102 / 57. 24.102
 libavformat 57. 25.100 / 57. 25.100
 libavdevice 57. 0.101 / 57. 0.101
 libavfilter 6. 31.100 / 6. 31.100
 libswscale 4. 0.100 / 4. 0.100
 libswresample 2. 0.101 / 2. 0.101
E/ffmpeg: libpostproc 54. 0.100 / 54. 0.100
E/ffmpeg: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20190724-WA0012.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.23.100
 Duration: 00:04:01.95, start: 0.000000, bitrate: 410 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 274 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
 Metadata:
 handler_name : ISO Media file produced by Google Inc. Created on: 07/17/2019.
E/ffmpeg: Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
 Metadata:
 handler_name : ISO Media file produced by Google Inc. Created on: 07/17/2019.
 Output #0, mp4, to '/storage/emulated/0/Spoorcu/SPOORCU20200504102627.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
E/ffmpeg: compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.25.100
 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 274 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
 Metadata:
 handler_name : ISO Media file produced by Google Inc. Created on: 07/17/2019.
 Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 127 kb/s (default)
 Metadata:
E/ffmpeg: handler_name : ISO Media file produced by Google Inc. Created on: 07/17/2019.
 Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
E/ffmpeg: frame= 1177 fps=0.0 q=-1.0 Lsize= 2089kB time=00:00:45.02 bitrate= 380.1kbits/s speed= 606x 
 video:1338kB audio:708kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.144393%
I/videosize: output 2089
I/tangpeng: bitrate=3000000
E/tmessages: time = 955



-
Can't connect to ffserver when running on android device
11 décembre 2016, par Antonio C GI am working on an android app. This will run a ffserver (on the device, not another computer). The server is running and I can access the status page, everything seems ok. But when I try to send the video using ffmpeg I always get connection refused.
This is my ffserver.conf file :
HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog /data/user/0/com.antonio.droidcast/files/log.txt
NoDefaults
<feed>
File /data/user/0/com.antonio.droidcast/cache/feed1.ffm
FileMaxSize 200M
ACL allow 127.0.0.1
</feed>
<stream>
Format mp4
Feed feed1.ffm
VideoCodec libx264
VideoFrameRate 30
VideoBitRate 512
VideoSize 320x240
AVOptionVideo crf 23
AVOptionVideo preset medium
AVOptionVideo flags +global_header
AudioCodec aac
Strict -2
AudioBitRate 128
AudioChannels 2
AudioSampleRate 44100
AVOptionAudio flags +global_header
</stream>I connect to server using this command :
ffmpeg -i VIDEO_PATH2 http://localhost:8090/feed1.ffm
And this is the ouput I get :
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument '/storage/emulated/0/Download/video1.mp4'.
Reading option 'http://localhost:8090/feed1.ffm' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file /storage/emulated/0/Download/video1.mp4.
Successfully parsed a group of options.
Opening an input file: /storage/emulated/0/Download/video1.mp4.
[file @ 0xf5f5e060] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] Unknown dref type 0x08206c7275 size 12
Last message repeated 1 times
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] Before avformat_find_stream_info() pos: 5446 bytes read:32768 seeks:0
[h264 @ 0xf5f49000] user data:"x264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00"
[h264 @ 0xf5f49000] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf5f58000] After avformat_find_stream_info() pos: 6081 bytes read:98304 seeks:2 frames:3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/video1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.25.100
Duration: 00:02:45.59, start: 0.128000, bitrate: 24 kb/s
Stream #0:0(eng), 2, 1/450000: Video: h264 (High), 4 reference frames (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 7451717/900000, 0 kb/s, 0.06 fps, 0.06 tbr, 450k tbn, 0.12 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng), 1, 1/8000: Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 29 kb/s (default)
Metadata:
handler_name : SoundHandler
Successfully opened the file.
Parsing a group of options: output file http://localhost:8090/feed1.ffm.
Successfully parsed a group of options.
Opening an output file: http://localhost:8090/feed1.ffm.
[http @ 0xf5f5e1e0] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0xf5f5e3c0] Connection to tcp://localhost:8090 failed: Connection refused
http://localhost:8090/feed1.ffm: Connection refusedDoes anybody know what could be wrong ?
Just to be clear, I recompiled ffserver and ffmpeg for android. They both seem to be ok as I can execute commands. Both binaries are part of the app, so everything runs inside the phone.Thanks.
-
Android FFmpeg sometimes works and sometimes crashes
20 novembre 2013, par Pawel CalaI compiled FFmpeg for Android ( https://gitorious.org/android-ffmpeg ) but when I'm trying to do some operations ( f.e filters cropping, transpose, trim etc ) it crashes in 5 on 10 cases.
Error logs are not the same so I assume that it might be caused by memory issues.
I'm using OSX, NDK android-ndk-r9b : darwing x86_64.
Native ffmpeg method is passing args to ffmpeg.c main method. It's executed in AsyncTask in Activity.
Thanks in advanceEDIT :
I forgot to mention that programs algorithm runs like that :
Press Button - > Open Camera Intent - > Start recording - > After recording copy file to project folder ( on SD card ) - > Open edit activity + Start asynctaskEDIT2 :
Tested on HTC ONE with different video resolutionsVersion and config of ffmpeg
11-20 12:15:23.001: I/ff-log(19091): ffmpeg version 0.10.2.git
11-20 12:15:23.001: I/ff-log(19091): Copyright (c) 2000-2012 the FFmpeg developers
11-20 12:15:23.001: I/ff-log(19091): built on Nov 20 2013 12:12:46 with gcc 4.6 20120106 (prerelease)
11-20 12:15:23.001: I/ff-log(19091): configuration: --target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --cpu=armv7-a --disable-ffplay --disable-ffserver --disable-network --disable-avdevice --enable-protocol=file --enable-hwaccel=mpeg4_vaapi --enable-hwaccel=h264_vaapi --sysroot=/Users/dpc/Developer/android-ndk-r9b/platforms/android-9/arch-arm --disable-decoder=h264_vdpau --prefix=build/armv7-a --disable-asm --enable-small --disable-everything --enable-decoder=mjpeg --enable-parser=mjpeg --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=h263 --enable-muxer=yuv4mpegpipe --enable-muxer=mov --enable-demuxer=mpegvideo --enable-demuxer=mjpeg --enable-demuxer=image2 --enable-demuxer=mp4 --enable-demuxer=aac --enable-demuxer=ac3 --enable-demuxer=mp3 --enable-demuxer=yuv4mpegpipe --enable-demuxer=mov --enable-decoder=mpegvideo --enable-decoder=mpeg4 --enable-decoder=mp3 --enable-decoder=ac3 --enable-decoder=aac --enable-decoder=h264 --enable-decoder=h263 --enable-decoder=rawvideo --enable-decoder=yuv4 --enable-decoder=png --enableSample comand :
1-20 12:15:22.991: I/FFMPEG(19091): CMD:-i file:/storage/emulated/0/.project/videos/mac_video_tmp.mp4 -vf crop=1079:1079:0:420 -vcodec mpeg4 -sameq -acodec copy file:/storage/emulated/0/.project/videos/croppedVid.mp4
Some output errors :
1st type :
11-20 12:15:23.011: I/ff-log(19091): libavutil 51. 46.100 / 51. 46.100
11-20 12:15:23.011: I/ff-log(19091): libavcodec 54. 14.101 / 54. 14.101
11-20 12:15:23.011: I/ff-log(19091): libavformat 54. 3.100 / 54. 3.100
11-20 12:15:23.011: I/ff-log(19091): libavfilter 2. 70.100 / 2. 70.100
11-20 12:15:23.011: I/ff-log(19091): libswscale 2. 1.100 / 2. 1.100
11-20 12:15:23.011: I/ff-log(19091): libswresample 0. 11.100 / 0. 11.100
11-20 12:15:23.011: I/ff-log(19091): before parsing options
11-20 12:15:23.011: I/ff-log(19091): before parsing options
11-20 12:15:23.011: I/ff-log(19091): parse options
11-20 12:15:23.011: I/ff-log(19091): prepare app arguments !!! NOT defined(_WIN32) && !defined(__MINGW32CE__) !
11-20 12:15:23.011: I/ff-log(19091): after prepare app arguments
11-20 12:15:23.011: I/ff-log(19091): ffurl_open: file:/storage/emulated/0/.project/videos/mac_video_tmp.mp4, 1
11-20 12:15:23.011: I/ff-log(19091): ffurl_alloc: file:/storage/emulated/0/.project/videos/mac_video_tmp.mp4, 1
11-20 12:15:23.011: I/ff-log(19091): ffurl_alloc: file
11-20 12:15:23.011: I/ff-log(19091): ffurl_open alloc: 0
11-20 12:15:23.011: I/ff-log(19091): ffurl_connect
11-20 12:15:23.011: I/ff-log(19091): ffurl_open connect: 0
11-20 12:15:23.011: I/ff-log(19091): Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
11-20 12:15:23.011: I/ff-log(19091): ISO: File Type Major Brand: isom
11-20 12:15:23.021: I/ff-log(19091): File position before avformat_find_stream_info() is 8458240
11-20 12:15:23.041: A/libc(19091): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 19091 (t.android.utils)Second type :
11-20 12:17:04.800: I/ff-log(19632): libavutil 51. 46.100 / 51. 46.100
11-20 12:17:04.800: I/ff-log(19632): libavcodec 54. 14.101 / 54. 14.101
11-20 12:17:04.800: I/ff-log(19632): libavformat 54. 3.100 / 54. 3.100
11-20 12:17:04.800: I/ff-log(19632): libavfilter 2. 70.100 / 2. 70.100
11-20 12:17:04.800: I/ff-log(19632): libswscale 2. 1.100 / 2. 1.100
11-20 12:17:04.800: I/ff-log(19632): libswresample 0. 11.100 / 0. 11.100
11-20 12:17:04.800: I/ff-log(19632): before parsing options
11-20 12:17:04.800: I/ff-log(19632): before parsing options
11-20 12:17:04.800: I/ff-log(19632): parse options
11-20 12:17:04.800: I/ff-log(19632): prepare app arguments !!! NOT defined(_WIN32) && !defined(__MINGW32CE__) !
11-20 12:17:04.800: I/ff-log(19632): after prepare app arguments
11-20 12:17:04.800: I/ff-log(19632): opt_output_file ܞ�f��f��f��f���flated/0/.project/videos/mac_video_tmp.mp4
11-20 12:17:04.800: I/ff-log(19632): ffurl_alloc: ܞ�f��f��f��f���flated/0/.project/videos/mac_video_tmp.mp4, 0
11-20 12:17:04.800: I/ff-log(19632): ffurl_alloc: file
11-20 12:17:04.800: I/ff-log(19632): ffurl_open: ܞ�f��f��f��f���flated/0/.project/videos/mac_video_tmp.mp4, 2
11-20 12:17:04.800: I/ff-log(19632): ffurl_alloc: ܞ�f��f��f��f���flated/0/.project/videos/mac_video_tmp.mp4, 2
11-20 12:17:04.800: I/ff-log(19632): ffurl_alloc: file
11-20 12:17:04.800: I/ff-log(19632): ffurl_open alloc: 0
11-20 12:17:04.800: I/ff-log(19632): ffurl_connect
11-20 12:17:04.800: I/ff-log(19632): ffurl_open connect: -2
11-20 12:17:04.800: I/ff-log(19632): ffurl_open FAIL
11-20 12:17:04.800: I/ff-log(19632): ܞ�f��f��f��f���flated/0/.project/videos/mac_video_tmp.mp4: No such file or directory( CHARSER IS AS IT'S IN OUTPUT LOGCAT )
3rd type :
11-20 12:18:23.243: I/ff-log(19867): libavutil 51. 46.100 / 51. 46.100
11-20 12:18:23.243: I/ff-log(19867): libavcodec 54. 14.101 / 54. 14.101
11-20 12:18:23.243: I/ff-log(19867): libavformat 54. 3.100 / 54. 3.100
11-20 12:18:23.243: I/ff-log(19867): libavfilter 2. 70.100 / 2. 70.100
11-20 12:18:23.243: I/ff-log(19867): libswscale 2. 1.100 / 2. 1.100
11-20 12:18:23.243: I/ff-log(19867): libswresample 0. 11.100 / 0. 11.100
11-20 12:18:23.243: I/ff-log(19867): before parsing options
11-20 12:18:23.243: I/ff-log(19867): before parsing options
11-20 12:18:23.243: I/ff-log(19867): parse options
11-20 12:18:23.243: I/ff-log(19867): prepare app arguments !!! NOT defined(_WIN32) && !defined(__MINGW32CE__) !
11-20 12:18:23.243: I/ff-log(19867): after prepare app arguments
11-20 12:18:23.243: I/ff-log(19867): Unknown decoder '��f('
11-20 12:18:23.243: I/ff-log(19867): exit_program 1
11-20 12:18:23.243: I/ff-log(19867): exit_program 1
11-20 12:18:23.243: I/ff-log(19867): exit_program 2
11-20 12:18:23.253: A/libc(19867): @@@ ABORTING: invalid address or address of corrupt block 0x1d3422d passed to dlfree
11-20 12:18:23.253: A/libc(19867): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 20393 (AsyncTask #2)4th type :
11-20 12:20:07.214: I/ff-log(20660): libavutil 51. 46.100 / 51. 46.100
11-20 12:20:07.214: I/ff-log(20660): libavcodec 54. 14.101 / 54. 14.101
11-20 12:20:07.214: I/ff-log(20660): libavformat 54. 3.100 / 54. 3.100
11-20 12:20:07.214: I/ff-log(20660): libavfilter 2. 70.100 / 2. 70.100
11-20 12:20:07.214: I/ff-log(20660): libswscale 2. 1.100 / 2. 1.100
11-20 12:20:07.214: I/ff-log(20660): libswresample 0. 11.100 / 0. 11.100
11-20 12:20:07.214: I/ff-log(20660): before parsing options
11-20 12:20:07.214: I/ff-log(20660): before parsing options
11-20 12:20:07.214: I/ff-log(20660): parse options
11-20 12:20:07.214: I/ff-log(20660): prepare app arguments !!! NOT defined(_WIN32) && !defined(__MINGW32CE__) !
11-20 12:20:07.214: I/ff-log(20660): after prepare app arguments
11-20 12:20:07.214: I/ff-log(20660): Unknown decoder ''
11-20 12:20:07.214: I/ff-log(20660): exit_program 1
11-20 12:20:07.214: A/libc(20660): Fatal signal 11 (SIGSEGV) at 0x2d007165 (code=1), thread 21017 (AsyncTask #2)