
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (87)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, 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 (...) -
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 (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)
Sur d’autres sites (9702)
-
Issue when streaming some TV channels threw ffMpeg
7 octobre 2016, par Raphael SerievicI am trying to stream a TV Tuner feed with ffMpeg through udp.
The ffMpeg command line I use is the following :
ffmpeg.exe -i udp://@239.255.255.9:1234 -map 0:p:1317:0 -profile:v baseline -crf 30 -preset ultrafast -vcodec libx264 -r 25 -vf scale=720:576-b:v 500k -f rtp udp://10.150.112.107:15048/ -map 0:p:1317:1 -acodec pcm_mulaw -strict experimental -ar 8k -ac 1 -b:a 128k -f rtp udp://10.150.112.107:15032/
Where :
- 1317 is the program id (channel)
- 10.150.112.107 is where I want to stream the TV channel
- 239.255.255.9 is where I receive the original TV channel’s feed from my TV Tuner
My problem is that with some program IDs it is working and with some others it is not : it is working with 1572 ("channel 10 hd") but not with 1317 ("7flix Sydney").
The output of this command-line for channel 1572 (where it works) is the following :
C:\Program Files (x86)\Tuner Manager\ServerModule> ffmpeg.exe
-i udp://@239.255.255.7:1234 -map 0:p:1572:0 -profile:v baseline -crf 30 -prese
t ultrafast -vcodec libx264 -r 25 -vf scale=720:576 - b:v 500k -f rtp udp://1
0.150.112.107:15048/ -map 0:p:1572:1 -acodec pcm_mulaw -strict experimental -ar
8k -ac 1 -b:a 128k -f rtp udp://10.150.112.107:15032/
ffmpeg version N-71924-ga2190de Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
libavutil 54. 23.101 / 54. 23.101
libavcodec 56. 37.100 / 56. 37.100
libavformat 56. 31.102 / 56. 31.102
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[NULL @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 00000000049cc980] Invalid frame dimensions 0x0.
[mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
Last message repeated 1 times
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
[mpeg2video @ 00000000049cc980] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[mpeg2video @ 00000000049cc980] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 00000000049cc980] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
Last message repeated 1 times
[mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
[mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
Last message repeated 1 times
[mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
[mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
[h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000049ce980] non-existing PPS 0 referenced
[h264 @ 00000000049ce980] decode_slice_header error
[h264 @ 00000000049ce980] no frame!
[mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
Last message repeated 2 times
[mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
[mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
Last message repeated 3 times
[mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
[mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
Last message repeated 3 times
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 2 (Unknow
n: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 3 (Unknow
n: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 4 (Unknow
n: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 5 (Unknow
n: none ([12][0][0][0] / 0x000C)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 8 (Unknow
n: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 9 (Unknow
n: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 10 (Unkno
wn: none ([12][0][0][0] / 0x000C)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 14 (Unkno
wn: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 15 (Unkno
wn: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 16 (Unkno
wn: none ([12][0][0][0] / 0x000C)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 25 (Unkno
wn: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 26 (Unkno
wn: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 27 (Unkno
wn: none ([12][0][0][0] / 0x000C)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 29 (Unkno
wn: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 30 (Unkno
wn: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000000000494d6c0] Could not find codec parameters for stream 31 (Unkno
wn: none ([12][0][0][0] / 0x000C)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'udp://@239.255.255.7:1234':
Duration: N/A, start: 64984.698511, bitrate: N/A
Program 1569
Metadata:
service_name : ONE
service_provider: TEN Sydney
Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:25[0x3e8]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:26[0x3f2]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:27[0x3fc]: Unknown: none ([12][0][0][0] / 0x000C)
Stream #0:23[0x202]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:24[0x2a0](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
eo, s16p, 192 kb/s
Stream #0:7[0x241](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Program 1573
Metadata:
service_name : TEN Digital
service_provider: TEN Sydney
Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:14[0x3ea]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:15[0x3f4]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:16[0x3fe]: Unknown: none ([12][0][0][0] / 0x000C)
Stream #0:17[0x200]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:18[0x28a](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, ster
eo, s16p, 256 kb/s
Stream #0:19[0x240](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Program 1574
Metadata:
service_name : TVSN
service_provider: TEN Sydney
Stream #0:6[0x206]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 5
0 tbc
Stream #0:28[0x2b2](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, ster
eo, s16p, 192 kb/s
Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:29[0x3eb]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:30[0x3f5]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:31[0x3ff]: Unknown: none ([12][0][0][0] / 0x000C)
Program 1575
Metadata:
service_name : ONE
service_provider: TEN Sydney
Stream #0:23[0x202]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:24[0x2a0](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
eo, s16p, 192 kb/s
Stream #0:7[0x241](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:25[0x3e8]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:26[0x3f2]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:27[0x3fc]: Unknown: none ([12][0][0][0] / 0x000C)
Program 1576
Metadata:
service_name : ELEVEN
service_provider: TEN Sydney
Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:8[0x3e9]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:9[0x3f3]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:10[0x3fd]: Unknown: none ([12][0][0][0] / 0x000C)
Stream #0:11[0x204]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:12[0x2a9](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, ster
eo, s16p, 192 kb/s
Stream #0:13[0x242](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Program 1577
Metadata:
service_name : SpreeTV
service_provider: TEN Sydney
Stream #0:0[0x208]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 5
0 tbc
Stream #0:1[0x2bc](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stere
o, s16p, 192 kb/s
Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:3[0x3ec]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:4[0x3f6]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:5[0x400]: Unknown: none ([12][0][0][0] / 0x000C)
Program 1572
Metadata:
service_name : TEN HD
service_provider: TEN Sydney
Stream #0:20[0x1ff]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv
, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:21[0x289](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side
), fltp, 448 kb/s
Stream #0:22[0x23f](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:14[0x3ea]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:15[0x3f4]: Unknown: none ([11][0][0][0] / 0x000B)
Stream #0:16[0x3fe]: Unknown: none ([12][0][0][0] / 0x000C)
[NULL @ 0000000005af6de0] Unable to find a suitable output format for 'pipe:'
pipe:: Invalid argumentThe output of this command-line for channel 1317 (where it does not works) is the following :
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\Administrator.TMC>"C:\Program Files (x86)\Tv Tuner Mana
ger\ServerModule\ffmpeg.exe" -i udp://@239.255.255.9:1234 -map 0:p:1317:0 -profi
le:v baseline -crf 30 -preset ultrafast -vcodec libx264 -r 25 -vf scale=720:576
-b:v 500k -f rtp udp://10.150.112.107:15048/ -map 0:p:1317:1 -acodec pcm_mulaw -
strict experimental -ar 8k -ac 1 -b:a 128k -f rtp udp://10.150.112.107:15032/
ffmpeg version N-71924-ga2190de Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
libavutil 54. 23.101 / 54. 23.101
libavcodec 56. 37.100 / 56. 37.100
libavformat 56. 31.102 / 56. 31.102
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
[NULL @ 0000000004789600] non-existing PPS 0 referenced
[h264 @ 0000000004789600] decode_slice_header error
[h264 @ 0000000004789600] no frame!
[mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
[NULL @ 000000000472a060] non-existing PPS 0 referenced
[h264 @ 000000000472a060] decode_slice_header error
[h264 @ 000000000472a060] no frame!
[mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
[h264 @ 000000000472a060] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 000000000472a060] decode_slice_header error
[h264 @ 000000000472a060] no frame!
[h264 @ 000000000472a060] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 000000000472a060] decode_slice_header error
[h264 @ 000000000472a060] no frame!
[mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
[mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
Last message repeated 1 times
[mpeg2video @ 000000000472c620] Invalid frame dimensions 0x0.
[h264 @ 0000000004789600] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0000000004789600] decode_slice_header error
[h264 @ 0000000004789600] no frame!
[mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
[mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
[h264 @ 000000000472a060] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 000000000472a060] decode_slice_header error
[h264 @ 000000000472a060] no frame!
[mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
[mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
Last message repeated 1 times
[mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
[mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
Last message repeated 1 times
[mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
[mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
Last message repeated 1 times
[mpeg2video @ 000000000472c620] Invalid frame dimensions 0x0.
[mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
Last message repeated 1 times
[mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
[mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
Last message repeated 2 times
[mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
[mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
[mpegts @ 0000000004710020] Could not find codec parameters for stream 3 (Unknow
n: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0000000004710020] Could not find codec parameters for stream 4 (Unknow
n: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'udp://@239.255.255.9:1234':
Duration: N/A, start: 77183.898689, bitrate: N/A
Program 1312
Metadata:
service_name : 7 Sydney
service_provider: Seven Network
Stream #0:0[0x201]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 14950 kb/s, 25 fps, 25 tbr, 90k tbn, 5
0 tbc
Stream #0:1[0x202](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stere
o, s16p, 256 kb/s
Stream #0:2[0x204](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
Program 1313
Metadata:
service_name : 7 Sydney
service_provider: Seven Network
Stream #0:0[0x201]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 14950 kb/s, 25 fps, 25 tbr, 90k tbn, 5
0 tbc
Stream #0:1[0x202](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stere
o, s16p, 256 kb/s
Stream #0:2[0x204](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
Program 1314
Metadata:
service_name : 7TWO Sydney
service_provider: Seven Network
Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:18[0x221]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 14950 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:10[0x222](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
eo, s16p, 192 kb/s
Stream #0:5[0x224](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
Program 1315
Metadata:
service_name : 7mate Sydney
service_provider: Seven Network
Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:13[0x231]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 14950 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:15[0x232](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
eo, s16p, 256 kb/s
Stream #0:12[0x234](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
Program 1316
Metadata:
service_name : 7HD Sydney
service_provider: Seven Network
Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:6[0x241]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 19
20x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:16[0x243](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, ster
eo, fltp, 384 kb/s
Stream #0:8[0x244](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
Program 1317
Metadata:
service_name : 7flix Sydney
service_provider: Seven Network
Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:11[0x251]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 12500 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:9[0x253](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stere
o, s16p, 128 kb/s
Stream #0:14[0x254](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
Program 1320
Metadata:
service_name : RACING.COM
service_provider: Seven Network
Stream #0:7[0x281]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 64
0x576 [SAR 8:5 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:17[0x282](eng): Audio: aac_latm (HE-AACv2) ([17][0][0][0] / 0x0011
), 48000 Hz, stereo, fltp
Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
Cannot map stream #0:3 - unsupported type.Thanks for your help
-
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
-
ffmpeg command for faster encoding at a decent bitrate with smaller file size
14 septembre 2016, par Blair HolmesI’m currently using an implementation of ffmpeg on my android app. I’m allowing users to take short videos within my app and then when they upload them to the server, I’m crunching them down with ffmpeg to decrease file size so they’re not passing huge amounts of data over the wire.
the problem is, it’s taking forever to encode the videos on the android device. These videos usually aren’t longer than 45 seconds and can take 20 minutes to encode. I’ve done some playing around with different switches / parameters on the ffmpeg command line and I now have it at a more comfortable time, but the file sizes are significantly bigger. I’m just not sure what codec I should use (fastest encoding but with decent quality output), how ffmpeg handles changing size (aspect ratio) in terms of speed of encoding etc.
Here are the two commands I’ve been using. This first one outputs the file size / quality that I want, but it just takes way too long to encode, not to mention it makes my device get really hot while it’s encoding for so long :
ffmpeg -i input.mp4 -b:v 1024k -c:a copy -vf scale=960:540 output.mp4
I’ve tweaked the bitrate some on that as well as changed the scale to a smaller size, but I don’t want to have to make the videos really small (in terms of scale) to accomplish a faster encoding. this second command goes a lot faster but makes the file size significantly bigger :
ffmpeg -i input.mp4 -vcodec libx264 -preset fast -c:a copy -s 960x540 output.mp4
I’d like to find a happy medium (smaller file size but faster encoding) keeping the video scale size close to the original. ffmpeg just has so many different parameters / switches that it’s difficult to wrap my head around what I should be doing.
EDIT : adding ffmpeg output.
ffmpeg -i input.mp4 -vcodec libx264 -crf 30 -preset veryfast -c:a copy -s 960x540 output.mp4
09-13 11:06:28.330 10881-10881/someapp D/home: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
09-13 11:06:28.330 10881-10881/someapp D/home: built with gcc 4.8 (GCC)
09-13 11:06:28.331 10881-10881/someapp D/home: 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=
09-13 11:06:28.331 10881-10881/someapp D/home: libavutil 55. 17.103 / 55. 17.103
09-13 11:06:28.331 10881-10881/someapp D/home: libavcodec 57. 24.102 / 57. 24.102
09-13 11:06:28.331 10881-10881/someapp D/home: libavformat 57. 25.100 / 57. 25.100
09-13 11:06:28.331 10881-10881/someapp D/home: libavdevice 57. 0.101 / 57. 0.101
09-13 11:06:28.331 10881-10881/someapp D/home: libavfilter 6. 31.100 / 6. 31.100
09-13 11:06:28.331 10881-10881/someapp D/home: libswscale 4. 0.100 / 4. 0.100
09-13 11:06:28.331 10881-10881/someapp D/home: libswresample 2. 0.101 / 2. 0.101
09-13 11:06:28.331 10881-10881/someapp D/home: libpostproc 54. 0.100 / 54. 0.100
09-13 11:06:28.430 10881-10881/someapp D/home: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/ExpeditionSpot/Videos/20160913110411.mp4':
09-13 11:06:28.430 10881-10881/someapp D/home: Metadata:
09-13 11:06:28.430 10881-10881/someapp D/home: major_brand : mp42
09-13 11:06:28.430 10881-10881/someapp D/home: minor_version : 0
09-13 11:06:28.430 10881-10881/someapp D/home: compatible_brands: isommp42
09-13 11:06:28.430 10881-10881/someapp D/home: creation_time : 2016-09-13 17:04:33
09-13 11:06:28.430 10881-10881/someapp D/home: com.android.version: 6.0.1
09-13 11:06:28.430 10881-10881/someapp D/home: Duration: 00:00:19.41, start: 0.000000, bitrate: 20222 kb/s
09-13 11:06:28.430 10881-10881/someapp D/home: Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080, 19963 kb/s, SAR 1:1 DAR 16:9, 30.03 fps, 30 tbr, 90k tbn, 180k tbc (default)
09-13 11:06:28.430 10881-10881/someapp D/home: Metadata:
09-13 11:06:28.430 10881-10881/someapp D/home: creation_time : 2016-09-13 17:04:33
09-13 11:06:28.430 10881-10881/someapp D/home: handler_name : VideoHandle
09-13 11:06:28.431 10881-10881/someapp D/home: Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s (default)
09-13 11:06:28.431 10881-10881/someapp D/home: Metadata:
09-13 11:06:28.431 10881-10881/someapp D/home: creation_time : 2016-09-13 17:04:33
09-13 11:06:28.431 10881-10881/someapp D/home: handler_name : SoundHandle
09-13 11:06:28.448 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] using SAR=1/1
09-13 11:06:28.448 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] using cpu capabilities: none!
09-13 11:06:28.516 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] profile High, level 3.1
09-13 11:06:28.516 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=27.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
09-13 11:06:28.532 10881-10881/someapp D/home: Output #0, mp4, to '/storage/emulated/0/ExpeditionSpot/.tmp/small-20160913110411.mp4':
09-13 11:06:28.532 10881-10881/someapp D/home: Metadata:
09-13 11:06:28.532 10881-10881/someapp D/home: major_brand : mp42
09-13 11:06:28.533 10881-10881/someapp D/home: minor_version : 0
09-13 11:06:28.533 10881-10881/someapp D/home: compatible_brands: isommp42
09-13 11:06:28.533 10881-10881/someapp D/home: com.android.version: 6.0.1
09-13 11:06:28.533 10881-10881/someapp D/home: encoder : Lavf57.25.100
09-13 11:06:28.533 10881-10881/someapp D/home: Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
09-13 11:06:28.533 10881-10881/someapp D/home: Metadata:
09-13 11:06:28.533 10881-10881/someapp D/home: creation_time : 2016-09-13 17:04:33
09-13 11:06:28.533 10881-10881/someapp D/home: handler_name : VideoHandle
09-13 11:06:28.533 10881-10881/someapp D/home: encoder : Lavc57.24.102 libx264
09-13 11:06:28.533 10881-10881/someapp D/home: Side data:
09-13 11:06:28.533 10881-10881/someapp D/home: unknown side data type 10 (24 bytes)
09-13 11:06:28.533 10881-10881/someapp D/home: Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 96 kb/s (default)
09-13 11:06:28.533 10881-10881/someapp D/home: Metadata:
09-13 11:06:28.533 10881-10881/someapp D/home: creation_time : 2016-09-13 17:04:33
09-13 11:06:28.533 10881-10881/someapp D/home: handler_name : SoundHandle
09-13 11:06:28.533 10881-10881/someapp D/home: Stream mapping:
09-13 11:06:28.533 10881-10881/someapp D/home: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
09-13 11:06:28.533 10881-10881/someapp D/home: Stream #0:1 -> #0:1 (copy)
09-13 11:06:28.533 10881-10881/someapp D/home: Press [q] to stop, [?] for help
09-13 11:06:29.102 10881-10881/someapp D/home: frame= 7 fps=0.0 q=0.0 size= 0kB time=00:00:01.04 bitrate= 0.4kbits/s speed=2.08x
09-13 11:06:29.699 10881-10881/someapp D/home: frame= 16 fps= 15 q=0.0 size= 0kB time=00:00:01.04 bitrate= 0.4kbits/s speed=0.998x
....
09-13 11:07:12.674 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] frame I:3 Avg QP:26.83 size: 21896
09-13 11:07:12.674 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] frame P:279 Avg QP:28.76 size: 5859
09-13 11:07:12.674 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] frame B:296 Avg QP:29.93 size: 863
09-13 11:07:12.674 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] consecutive B-frames: 18.3% 32.2% 23.9% 25.6%
09-13 11:07:12.674 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] mb I I16..4: 16.9% 54.2% 28.9%
09-13 11:07:12.674 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] mb P I16..4: 7.7% 9.1% 0.4% P16..4: 27.5% 11.1% 4.0% 0.0% 0.0% skip:40.1%
09-13 11:07:12.674 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] mb B I16..4: 0.8% 0.6% 0.0% B16..8: 10.9% 2.4% 0.1% direct: 1.8% skip:83.5% L0:35.8% L1:54.2% BI:10.0%
09-13 11:07:12.675 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] 8x8 transform intra:52.0% inter:41.3%
09-13 11:07:12.675 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] coded y,uvDC,uvAC intra: 28.9% 26.0% 2.1% inter: 6.4% 5.0% 0.0%
09-13 11:07:12.675 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] i16 v,h,dc,p: 57% 20% 17% 6%
09-13 11:07:12.675 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 23% 34% 1% 2% 1% 3% 2% 2%
09-13 11:07:12.675 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 21% 17% 2% 7% 4% 6% 4% 4%
09-13 11:07:12.675 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] i8c dc,h,v,p: 59% 16% 23% 2%
09-13 11:07:12.675 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] Weighted P-Frames: Y:16.8% UV:4.7%
09-13 11:07:12.675 10881-10881/someapp D/home: [libx264 @ 0xf71c4400] kb/s:812.09