
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (92)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (17800)
-
Use opencv to encode into flv, playable by flash player
13 février 2012, par Hemang ShahI've compiled ffmpeg with libx264 using configure options given at 1.
This results in the following codecs being available in ffmpeg :
$ ffmpeg -codecs | grep "264\|flv"
ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
built on Feb 10 2012 13:54:15 with gcc 4.6.1
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
DEVSD flv Flash Video (FLV) / Sorenson Spark / Sorenson H.263
D V D h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
D V D h264_vdpau H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
EV libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
EV libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGBAfter this, I compiled opencv. Here is partial cmake result :
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: NO
-- FFMPEG: YES
-- codec: YES
-- format: YES
-- util: YES
-- swscale: YES
-- gentoo-style: YES
-- GStreamer: YES
-- UniCap: NO
-- PvAPI: NO
-- V4L/V4L2: /1
-- Xine: NONow, using opencv's VideoWriter, I tried to encode into flv with the following FOURCC codes :
FLV1, X264While the FLV1 results in a video file not playable by flash player, but playabe by vlc ; X264 produces no results at all.
Here is the console output for X264, resulting in a 0 byte file.Output #0, flv, to 'd.flv' :
Stream #0.0 : Video : [0][0][0][0] / 0x0000, yuv420p, 320x240, q=2-31, 4915 kb/s, 90k tbn, 24 tbcDo you see anything amiss or incorrect ?
thanks, -
FFmpeg Android Video cropping speed and perfomance [duplicate]
5 octobre 2016, par kishore jethavaThis question already has an answer here :
-
Fast Video Compression on Android
2 answers
FFmpeg
15 seconds video takes 15 seconds to crop.
How can we reduce this cropping time with command or some other tricks ?I have refereed this question but didn’t helped.
Here is code
final FFmpeg ffmpeg = FFmpeg.getInstance(getActivity());
try {
ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
@Override
public void onStart() {}
@Override
public void onFailure() {}
@Override
public void onSuccess() {
Log.i(TAG, "FFMPEG Success ");
try {
/*Logic for cropping the original video to a square video depending of the orientation of the original video*/
//Command for cropping square video
String[] cmd = {"-i", "path/source.mp4", "-vf", "scale=720:ih*720/iw, crop="720:720:0:0, "-preset","ultrafast","-strict","experimental","-vcodec","libx264","-preset","ultrafast","path/destination.mp4"};
// Execute cropping of video
ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {
@Override
public void onStart() {
}
@Override
public void onProgress(String message) {
Log.i("Square", "progress : " +message);
}
@Override
public void onFailure(String message) {
Log.i("Square", "total fail : " + message);
}
@Override
public void onSuccess(String message) {
Log.i("Square", "Cropped video created.");
}
@Override
public void onFinish() {
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// Handle if FFmpeg is already running
}
}
});
} catch (FFmpegNotSupportedException e) {
// Handle if FFmpeg is not supported by device
}Logcat
D/FFmpeg: Running publishing updates method
I/Square: progress : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
I/Square: progress : built with gcc 4.8 (GCC)
I/Square: progress : 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=
I/Square: progress : libavutil 55. 17.103 / 55. 17.103
I/Square: progress : libavcodec 57. 24.102 / 57. 24.102
I/Square: progress : libavformat 57. 25.100 / 57. 25.100
I/Square: progress : libavdevice 57. 0.101 / 57. 0.101
I/Square: progress : libavfilter 6. 31.100 / 6. 31.100
I/Square: progress : libswscale 4. 0.100 / 4. 0.100
I/Square: progress : libswresample 2. 0.101 / 2. 0.101
I/Square: progress : libpostproc 54. 0.100 / 54. 0.100
I/Square: progress : Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Content/source.mp4':
I/Square: progress : Metadata:
I/Square: progress : major_brand : mp42
I/Square: progress : minor_version : 0
I/Square: progress : compatible_brands: isommp42
I/Square: progress : creation_time : 2016-10-05 05:19:12
I/Square: progress : com.android.version: 6.0.1
I/Square: progress : Duration: 00:00:15.91, start: 0.000000, bitrate: 6174 kb/s
I/Square: progress : Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 326 kb/s, 1.59 fps, 30 tbr, 90k tbn, 15 tbc (default)
I/Square: progress : Metadata:
I/Square: progress : rotate : 90
I/Square: progress : creation_time : 2016-10-05 05:19:12
I/Square: progress : handler_name : VideoHandle
I/Square: progress : Side data:
I/Square: progress : displaymatrix: rotation of -90.00 degrees
I/Square: progress : Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 12 kb/s (default)
I/Square: progress : Metadata:
I/Square: progress : creation_time : 2016-10-05 05:19:12
I/Square: progress : handler_name : SoundHandle
I/Square: progress : [libx264 @ 0xf7544400] using SAR=1/1
I/Square: progress : [libx264 @ 0xf7544400] using cpu capabilities: none!
I/Square: progress : [libx264 @ 0xf7544400] profile Constrained Baseline, level 3.1
I/Square: progress : [libx264 @ 0xf7544400] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
I/Square: progress : [aac @ 0xf7544c00] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
I/Square: progress : Output #0, mp4, to '/storage/emulated/0/Content/destination.mp4':
I/Square: progress : Metadata:
I/Square: progress : major_brand : mp42
I/Square: progress : minor_version : 0
I/Square: progress : compatible_brands: isommp42
I/Square: progress : com.android.version: 6.0.1
I/Square: progress : encoder : Lavf57.25.100
I/Square: progress : Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 638x638 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
I/Square: progress : Metadata:
I/Square: progress : handler_name : VideoHandle
I/Square: progress : creation_time : 2016-10-05 05:19:12
I/Square: progress : encoder : Lavc57.24.102 libx264
I/Square: progress : Side data:
I/Square: progress : unknown side data type 10 (24 bytes)
I/Square: progress : Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 8000 Hz, mono, fltp, 48 kb/s (default)
I/Square: progress : Metadata:
I/Square: progress : creation_time : 2016-10-05 05:19:12
I/Square: progress : handler_name : SoundHandle
I/Square: progress : encoder : Lavc57.24.102 aac
I/Square: progress : Stream mapping:
I/Square: progress : Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
I/Square: progress : Stream #0:1 -> #0:1 (aac (native) -> aac (native))
I/Square: progress : Press [q] to stop, [?] for help
I/Square: progress : frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:05.24 bitrate= 0.1kbits/s speed=10.2x
I/Square: progress : frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:10.24 bitrate= 0.1kbits/s speed= 10x
I/Square: progress : frame= 0 fps=0.0 q=0.0 size= 19kB time=00:00:14.84 bitrate= 10.5kbits/s speed=9.73x
I/Square: progress : frame= 8519 fps=205 q=23.0 size= 3734kB time=00:04:43.53 bitrate= 107.9kbits/s dup=8516 drop=0 speed=6.84x
I/Square: progress : frame= 8537 fps=203 q=25.0 size= 3734kB time=00:04:44.13 bitrate= 107.7kbits/s dup=8516 drop=0 speed=6.77x
I/Square: progress : frame= 8556 fps=201 q=25.0 size= 3735kB time=00:04:44.76 bitrate= 107.4kbits/s dup=8516 drop=0 speed= 6.7x
I/Square: progress : frame= 8575 fps=199 q=25.0 size= 3843kB time=00:04:45.40 bitrate= 110.3kbits/s dup=8516 drop=0 speed=6.64x
I/Square: progress : frame= 8594 fps=198 q=25.0 size= 3844kB time=00:04:46.03 bitrate= 110.1kbits/s dup=8516 drop=0 speed=6.58x
I/Square: progress : frame= 8614 fps=196 q=25.0 size= 3844kB time=00:04:46.70 bitrate= 109.8kbits/s dup=8516 drop=0 speed=6.52x
I/Square: progress : frame= 8633 fps=194 q=25.0 size= 3844kB time=00:04:47.33 bitrate= 109.6kbits/s dup=8516 drop=0 speed=6.45x
I/Square: progress : frame= 8652 fps=192 q=25.0 size= 3844kB time=00:04:47.96 bitrate= 109.4kbits/s dup=8516 drop=0 speed= 6.4x
I/Square: progress : frame= 8672 fps=190 q=26.0 size= 3844kB time=00:04:48.63 bitrate= 109.1kbits/s dup=8516 drop=0 speed=6.34x
I/Square: progress : frame= 8691 fps=189 q=25.0 size= 3845kB time=00:04:49.26 bitrate= 108.9kbits/s dup=8516 drop=0 speed=6.28x
I/Square: progress : frame= 8711 fps=187 q=26.0 size= 3845kB time=00:04:49.93 bitrate= 108.6kbits/s dup=8516 drop=0 speed=6.23x
I/Square: progress : frame= 8731 fps=185 q=26.0 size= 3845kB time=00:04:50.60 bitrate= 108.4kbits/s dup=8516 drop=0 speed=6.17x
I/Square: progress : frame= 8750 fps=184 q=26.0 size= 3845kB time=00:04:51.23 bitrate= 108.2kbits/s dup=8516 drop=0 speed=6.12x
I/Square: progress : frame= 8770 fps=182 q=26.0 size= 3846kB time=00:04:51.90 bitrate= 107.9kbits/s dup=8516 drop=0 speed=6.07x
I/Square: progress : frame= 8791 fps=181 q=26.0 size= 3846kB time=00:04:52.60 bitrate= 107.7kbits/s dup=8516 drop=0 speed=6.02x
I/Square: progress : frame= 8811 fps=179 q=26.0 size= 3846kB time=00:04:53.26 bitrate= 107.4kbits/s dup=8516 drop=0 speed=5.97x
I/Square: progress : frame= 8831 fps=178 q=26.0 size= 3971kB time=00:04:53.93 bitrate= 110.7kbits/s dup=8516 drop=0 speed=5.92x
I/Square: progress : frame= 8851 fps=177 q=26.0 size= 4214kB time=00:04:54.60 bitrate= 117.2kbits/s dup=8516 drop=0 speed=5.88x
I/Square: progress : frame= 8871 fps=175 q=25.0 size= 4451kB time=00:04:55.26 bitrate= 123.5kbits/s dup=8516 drop=0 speed=5.83x
I/Square: progress : frame= 8891 fps=174 q=26.0 size= 4705kB time=00:04:55.93 bitrate= 130.2kbits/s dup=8516 drop=0 speed=5.78x
I/Square: progress : frame= 8911 fps=172 q=26.0 size= 4963kB time=00:04:56.60 bitrate= 137.1kbits/s dup=8516 drop=0 speed=5.74x
I/Square: progress : frame= 8932 fps=171 q=26.0 size= 5226kB time=00:04:57.30 bitrate= 144.0kbits/s dup=8516 drop=0 speed= 5.7x
I/Square: progress : frame= 8952 fps=170 q=26.0 size= 5475kB time=00:04:57.96 bitrate= 150.5kbits/s dup=8516 drop=0 speed=5.65x
I/Square: progress : frame= 8972 fps=169 q=26.0 size= 5730kB time=00:04:58.63 bitrate= 157.2kbits/s dup=8516 drop=0 speed=5.61x
I/Square: progress : frame= 8992 fps=167 q=26.0 size= 5970kB time=00:04:59.30 bitrate= 163.4kbits/s dup=8516 drop=0 speed=5.57x
I/Square: progress : frame= 8993 fps=167 q=-1.0 Lsize= 9456kB time=00:04:59.76 bitrate= 258.4kbits/s dup=8516 drop=0 speed=5.56x
I/Square: progress : video:9350kB audio:68kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.404826%
I/Square: progress : [libx264 @ 0xf7544400] frame I:36 Avg QP:10.64 size:107101
I/Square: progress : [libx264 @ 0xf7544400] frame P:8957 Avg QP:13.80 size: 638
I/Square: progress : [libx264 @ 0xf7544400] mb I I16..4: 100.0% 0.0% 0.0%
I/Square: progress : [libx264 @ 0xf7544400] mb P I16..4: 0.4% 0.0% 0.0% P16..4: 4.3% 0.0% 0.0% 0.0% 0.0% skip:95.3%
I/Square: progress : [libx264 @ 0xf7544400] coded y,uvDC,uvAC intra: 78.5% 24.5% 12.4% inter: 2.6% 0.2% 0.0%
I/Square: progress : [libx264 @ 0xf7544400] i16 v,h,dc,p: 28% 12% 42% 18%
I/Square: progress : [libx264 @ 0xf7544400] i8c dc,h,v,p: 59% 15% 22% 4%
I/Square: progress : [libx264 @ 0xf7544400] kb/s:255.50
I/Square: progress : [aac @ 0xf7544c00] Qavg: 65536.000
I/Square: Cropped video created.
I/Square: finished -
Fast Video Compression on Android
-
Video HLS with AVPlayer
5 octobre 2016, par Charlie227I’ve converted .MOV video using this command line :
ffmpeg -re -i 123.mov -vcodec copy -map 0 -f segment -segment_list 123.m3u8 \-segment_list_flags +live -segment_time 3 123%03d.ts
output :
ffmpeg version N-81872-gbe1d324 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
libavutil 55. 32.100 / 55. 32.100
libavcodec 57. 60.101 / 57. 60.101
libavformat 57. 51.102 / 57. 51.102
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 63.100 / 6. 63.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 2.100 / 2. 2.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '123.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2016-09-26T19:34:01.000000Z
Duration: 00:00:20.00, start: 0.000000, bitrate: 1210 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 540x960, 1088 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
Metadata:
creation_time : 2016-09-26T19:34:01.000000Z
handler_name : Core Media Data Handler
encoder : H.264
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 114 kb/s (default)
Metadata:
creation_time : 2016-09-26T19:34:01.000000Z
handler_name : Core Media Data Handler
Output #0, segment, to '123%03d.ts':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
encoder : Lavf57.51.102
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 540x960, q=2-31, 1088 kb/s, 30 fps, 30 tbr, 90k tbn, 600 tbc (default)
Metadata:
creation_time : 2016-09-26T19:34:01.000000Z
handler_name : Core Media Data Handler
encoder : H.264
Stream #0:1(und): Audio: mp2, 44100 Hz, stereo, s16, 384 kb/s (default)
Metadata:
creation_time : 2016-09-26T19:34:01.000000Z
handler_name : Core Media Data Handler
encoder : Lavc57.60.101 mp2
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
frame= 1 fps=1.0 q=-1.0 size=N/A time=00:00:01.00 bitrate=N/A speed=0.996x
frame= 32 fps= 16 q=-1.0 size=N/A time=00:00:02.00 bitrate=N/A speed=0.987x
frame= 47 fps= 19 q=-1.0 size=N/A time=00:00:02.52 bitrate=N/A speed=0.996x
frame= 63 fps= 21 q=-1.0 size=N/A time=00:00:03.01 bitrate=N/A speed=0.993x
frame= 77 fps= 22 q=-1.0 size=N/A time=00:00:03.54 bitrate=N/A speed=0.998x
frame= 93 fps= 23 q=-1.0 size=N/A time=00:00:04.03 bitrate=N/A speed=0.995x
frame= 108 fps= 24 q=-1.0 size=N/A time=00:00:04.56 bitrate=N/A speed=0.999x
frame= 123 fps= 24 q=-1.0 size=N/A time=00:00:05.05 bitrate=N/A speed=0.997x
frame= 139 fps= 25 q=-1.0 size=N/A time=00:00:05.55 bitrate=N/A speed=0.996x
frame= 154 fps= 25 q=-1.0 size=N/A time=00:00:06.04 bitrate=N/A speed=0.994x
frame= 169 fps= 26 q=-1.0 size=N/A time=00:00:06.57 bitrate=N/A speed=0.997x
frame= 184 fps= 26 q=-1.0 size=N/A time=00:00:07.09 bitrate=N/A speed=0.999x
frame= 199 fps= 26 q=-1.0 size=N/A time=00:00:07.59 bitrate=N/A speed=0.998x
frame= 230 fps= 27 q=-1.0 size=N/A time=00:00:08.58 bitrate=N/A speed=0.995x
frame= 261 fps= 27 q=-1.0 size=N/A time=00:00:09.60 bitrate=N/A speed=0.996x
frame= 275 fps= 27 q=-1.0 size=N/A time=00:00:10.12 bitrate=N/A speed=0.998x
frame= 306 fps= 27 q=-1.0 size=N/A time=00:00:11.14 bitrate=N/A speed=0.999x
frame= 337 fps= 28 q=-1.0 size=N/A time=00:00:12.13 bitrate=N/A speed=0.997x
frame= 352 fps= 28 q=-1.0 size=N/A time=00:00:12.65 bitrate=N/A speed=0.998x
frame= 367 fps= 28 q=-1.0 size=N/A time=00:00:13.15 bitrate=N/A speed=0.997x
frame= 382 fps= 28 q=-1.0 size=N/A time=00:00:13.67 bitrate=N/A speed=0.999x
frame= 412 fps= 28 q=-1.0 size=N/A time=00:00:14.69 bitrate=N/A speed=0.999x
frame= 428 fps= 28 q=-1.0 size=N/A time=00:00:15.19 bitrate=N/A speed=0.998x
frame= 443 fps= 28 q=-1.0 size=N/A time=00:00:15.68 bitrate=N/A speed=0.998x
frame= 473 fps= 28 q=-1.0 size=N/A time=00:00:16.70 bitrate=N/A speed=0.998x
frame= 488 fps= 28 q=-1.0 size=N/A time=00:00:17.22 bitrate=N/A speed=0.999x
frame= 519 fps= 28 q=-1.0 size=N/A time=00:00:18.24 bitrate=N/A speed=0.999x
frame= 550 fps= 29 q=-1.0 size=N/A time=00:00:19.24 bitrate=N/A speed=0.998x
frame= 565 fps= 29 q=-1.0 size=N/A time=00:00:19.76 bitrate=N/A speed=0.999x
frame= 601 fps= 30 q=-1.0 Lsize=N/A time=00:00:20.02 bitrate=N/A speed= 1x
video:2663kB audio:939kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknownThe final video is available here, i’m able to read it from Safari on Mac OS, but it doesn’t work on iOS using AVPlayer or Safari.
I also tried to play it using this sample code provided by Apple, however i get the following error :
"The decoder required for this media cannot be found"Any help is appreciated
edit 1
I’ve edit the command line, and now i’m able to play the video using AVPlayer, but there is no sound...
ffmpeg -i 123.mov -c:a libfdk_aac -profile:a aac_he -b:a 64k -c:v h264 -preset slow -map 0 -an -flags -global_header -f hls -hls_time 2 123%03d.ts
OUTPUT :
ffmpeg version N-81883-gbeb877b Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
configuration: --enable-gpl --enable-nonfree --enable-shared --enable-libfdk-aac --enable-libx264 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
libavutil 55. 32.100 / 55. 32.100
libavcodec 57. 60.101 / 57. 60.101
libavformat 57. 51.102 / 57. 51.102
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 63.100 / 6. 63.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 2.100 / 2. 2.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '123.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2016-09-26T19:34:01.000000Z
Duration: 00:00:20.00, start: 0.000000, bitrate: 1210 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 540x960, 1088 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
Metadata:
creation_time : 2016-09-26T19:34:01.000000Z
handler_name : Core Media Data Handler
encoder : H.264
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 114 kb/s (default)
Metadata:
creation_time : 2016-09-26T19:34:01.000000Z
handler_name : Core Media Data Handler
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (123%03d.ts) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Codec AVOption profile () specified for output file #0 (123%03d.ts) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[libx264 @ 0x14ca8a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x14ca8a0] profile High, level 3.1
Output #0, hls, to '123%03d.ts':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
encoder : Lavf57.51.102
Stream #0:0(und): Video: h264 (libx264), yuv420p, 540x960, q=-1--1, 30 fps, 90k tbn, 30 tbc (default)
Metadata:
creation_time : 2016-09-26T19:34:01.000000Z
handler_name : Core Media Data Handler
encoder : Lavc57.60.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 600 fps= 79 q=-1.0 Lsize=N/A time=00:00:19.90 bitrate=N/A dup=1 drop=0 speed=2.63x
video:3542kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x14ca8a0] frame I:18 Avg QP:21.70 size: 13958
[libx264 @ 0x14ca8a0] frame P:326 Avg QP:23.78 size: 7702
[libx264 @ 0x14ca8a0] frame B:256 Avg QP:24.83 size: 3380
[libx264 @ 0x14ca8a0] consecutive B-frames: 26.8% 46.0% 8.5% 18.7%
[libx264 @ 0x14ca8a0] mb I I16..4: 21.5% 71.7% 6.9%
[libx264 @ 0x14ca8a0] mb P I16..4: 14.9% 29.6% 1.5% P16..4: 32.2% 5.4% 2.2% 0.0% 0.0% skip:14.1%
[libx264 @ 0x14ca8a0] mb B I16..4: 3.0% 4.4% 0.3% B16..8: 37.9% 4.5% 0.4% direct: 5.0% skip:44.6% L0:50.0% L1:47.1% BI: 2.9%
[libx264 @ 0x14ca8a0] 8x8 transform intra:64.3% inter:82.5%
[libx264 @ 0x14ca8a0] direct mvs spatial:97.7% temporal:2.3%
[libx264 @ 0x14ca8a0] coded y,uvDC,uvAC intra: 30.0% 44.4% 4.9% inter: 10.1% 20.7% 0.4%
[libx264 @ 0x14ca8a0] i16 v,h,dc,p: 29% 33% 13% 26%
[libx264 @ 0x14ca8a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 24% 18% 4% 5% 6% 8% 5% 6%
[libx264 @ 0x14ca8a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 35% 11% 4% 6% 5% 9% 4% 6%
[libx264 @ 0x14ca8a0] i8c dc,h,v,p: 36% 29% 23% 12%
[libx264 @ 0x14ca8a0] Weighted P-Frames: Y:0.9% UV:0.3%
[libx264 @ 0x14ca8a0] ref P L0: 80.5% 9.7% 6.1% 2.0% 1.3% 0.2%
[libx264 @ 0x14ca8a0] ref B L0: 92.2% 5.5% 2.0% 0.3%
[libx264 @ 0x14ca8a0] ref B L1: 99.0% 1.0%
[libx264 @ 0x14ca8a0] kb/s:1450.98