Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (17)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (5051)
-
FFmpeg RTSP crash
19 septembre 2016, par bot1131357I am trying to rtsp stream between two consoles on my computer.
On console 1 I have :
ffmpeg -rtbufsize 100M -re -f dshow -s 320x240 -i video="BisonCam, NB Pro" -r 10 -an -f rtsp -rtsp_transport tcp rtsp://127.0.0.1:8554/demoOn console 2 I have :
ffplay -rtsp_flags listen -i rtsp://127.0.0.1:8554/demoWhen I run execute both commands, my webcam LED lights up. But then immediately after ffmpeg crashes. Has anyone encountered the same thing ? I could really use some help here.
This is my ffmpeg configuration on a Windows 10 machine :
ffmpeg version N-81391-g2a3720b Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 29.100 / 55. 29.100
libavcodec 57. 54.100 / 57. 54.100
libavformat 57. 47.101 / 57. 47.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 52.100 / 6. 52.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'Update
I tried to stream from a video file, just to be sure that the issue is not related to the webcam.
#Console 1
ffmpeg -i out.mp4 -f rtsp -rtsp_transport tcp rtsp://localhost:8888/live.sdp
#Console 2
ffplay -rtsp_flags listen rtsp://localhost:8888/live.sdp?tcpThe output for both consoles are as follows :
Console 1 :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.47.101
Duration: 00:01:02.57, start: 0.000000, bitrate: 172 kb/s
Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p, 320x240, 169 kb/s, 30 fps, 30 tbr, 10000k tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
[rtsp @ 00000000024c1700] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, rtsp, to 'rtsp://localhost:8888/live.sdp':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.47.101
Stream #0:0(und): Video: mpeg4, yuv420p, 320x240, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc57.54.100 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
Press [q] to stop, [?] for helpConsole 2 :
[rtsp @ 00000000001ccde0] WARNING: Path /live.sdp differs from expected /live.sdp?tcp
Last message repeated 1 times
[rtsp @ 00000000001ccde0] Updating control URI to rtsp://localhost:8888/live.sdp
[rtsp @ 00000000001ccde0] Could not find codec parameters for stream 0 (Video: mpeg4 (Simple Profile), none, 320x240 [SAR 1:1 DAR 4:3]): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://localhost:8888/live.sdp?tcp':
Metadata:
title : No Name
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mpeg4 (Simple Profile), none, 320x240 [SAR 1:1 DAR 4:3], 30 tbr, 90k tbn, 30 tbc
nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0The same crash happened with ffmpeg.exe, and ffplay continued waiting for data. I tried the same commands on a Linux virtual machine, and it worked fine.
Any ideas ?
Update
Here’s what I’ve got from gdb :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.47.101
Duration: 00:01:02.57, start: 0.000000, bitrate: 172 kb/s
Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p, 320x240, 169 kb/s, 30 fps, 30 tbr, 10000k tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
[New Thread 15408.0x3f28]
[New Thread 15408.0x86c]
[New Thread 15408.0x23c8]
[New Thread 15408.0xf48]
[New Thread 15408.0x354c]
[New Thread 15408.0xf24]
[New Thread 15408.0x1e4c]
[New Thread 15408.0x257c]
[New Thread 15408.0x22a4]
[New Thread 15408.0xc88]
[New Thread 15408.0x40bc]
[New Thread 15408.0x1520]
[New Thread 15408.0x2584]
[New Thread 15408.0x1a64]
[New Thread 15408.0x3934]
[New Thread 15408.0x4010]
[New Thread 15408.0x3d28]
[New Thread 15408.0x288c]
[New Thread 15408.0x1e50]
[New Thread 15408.0x630]
[New Thread 15408.0x4128]
[New Thread 15408.0x3fa0]
[New Thread 15408.0x20ec]
[New Thread 15408.0x4bcc]
[New Thread 15408.0x17b4]
[New Thread 15408.0x1204]
[New Thread 15408.0x2dc8]
[rtsp @ 0000000000e458e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[New Thread 15408.0x1d14]
Output #0, rtsp, to 'rtsp://localhost:8888/live.sdp':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.47.101
Stream #0:0(und): Video: mpeg4, yuv420p, 320x240, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc57.54.100 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
Program received signal SIGSEGV, Segmentation fault.
0x00007ff82d95292f in avpriv_mpegts_parse_close () from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dllAnd the backtrace :
(gdb) bt
#0 0x00007ff82d95292f in avpriv_mpegts_parse_close () from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dll
#1 0x00007ff82d956a1b in avformat-57!av_get_output_timestamp () from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dll
#2 0x00007ff82d9a5dbe in ff_rtsp_parse_line () from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dll
#3 0x00007ff82d955e6d in avformat-57!av_interleaved_write_frame () from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dll
#4 0x000000014001af78 in ?? ()
#5 0x000000014001bda9 in ?? ()
#6 0x000000014001e642 in ?? ()
#7 0x00000001400201f1 in ?? ()
#8 0x000000014004bd47 in ?? ()
#9 0x00000001400013ed in ?? ()
#10 0x000000014000152b in ?? ()
#11 0x00007ff85e2b8102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#12 0x00007ff85edac264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#13 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)Update 2
Here’s using ffmpeg_g.exe
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.47.101
Duration: 00:01:02.57, start: 0.000000, bitrate: 172 kb/s
Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p, 320x240, 169 kb/s, 30 fps, 30 tbr, 10000k tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
[New Thread 14052.0x3560]
[New Thread 14052.0x24b4]
[New Thread 14052.0x3554]
[New Thread 14052.0x1a3c]
[New Thread 14052.0x2e64]
[New Thread 14052.0xd0c]
[New Thread 14052.0x29e4]
[New Thread 14052.0x3724]
[New Thread 14052.0x36f8]
[New Thread 14052.0x36f0]
[New Thread 14052.0x78]
[New Thread 14052.0x1578]
[New Thread 14052.0x36a0]
[New Thread 14052.0x3688]
[New Thread 14052.0x369c]
[New Thread 14052.0x1f84]
[New Thread 14052.0x2094]
[New Thread 14052.0x2f14]
[New Thread 14052.0x2c54]
[New Thread 14052.0x3624]
[New Thread 14052.0x2d44]
[New Thread 14052.0x3424]
[New Thread 14052.0x1dd4]
[New Thread 14052.0x20c4]
[New Thread 14052.0x34d8]
[New Thread 14052.0x34e4]
[New Thread 14052.0x3528]
[rtsp @ 0000000000f75a80] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[New Thread 14052.0x3564]
Output #0, rtsp, to 'rtsp://localhost:8888/live.sdp':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.47.101
Stream #0:0(und): Video: mpeg4, yuv420p, 320x240, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc57.54.100 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
Program received signal SIGSEGV, Segmentation fault.
0x00007ffeecd8292f in avpriv_mpegts_parse_close ()
from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dll
(gdb) bt
#0 0x00007ffeecd8292f in avpriv_mpegts_parse_close ()
from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dll
#1 0x00007ffeecd86a1b in avformat-57!av_get_output_timestamp ()
from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dll
#2 0x00007ffeecdd5dbe in ff_rtsp_parse_line ()
from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dll
#3 0x00007ffeecd85e6d in avformat-57!av_interleaved_write_frame
()
from E:\Dev\Library\ffmpeg-20160819-2a3720b-win64-shared\bin\avformat-57.dll
#4 0x000000014001af78 in ?? ()
#5 0x000000014001bda9 in ?? ()
#6 0x000000014001e642 in ?? ()
#7 0x00000001400201f1 in ?? ()
#8 0x000000014004bd47 in ?? ()
#9 0x00000001400013ed in ?? ()
---Type <return> to continue, or q <return> to quit---
</return></return>Update 3
After building my own ffmpeg using the
--enable-debugflag, I’m back at it again. Still getting the same error though. Any ideas ? At this point, it seems like there’s something wrong with my computer settings.ffmpeg version N-81392-ga453bbb Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.1 (GCC) 20160211
configuration: --prefix=/home/ytan/Dev/build-mingw/ffmpeg/ --enable-cross-compile --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw64 --pkg-config-flags=--static --enable-shared --disable-static --enable-libvpx --enable-libvorbis --enable-libmp3lame --enable-openssl --enable-pic --enable-debug --extra-ldlibflags='-static -pthread'
libavutil 55. 29.100 / 55. 29.100
libavcodec 57. 54.100 / 57. 54.100
libavformat 57. 47.101 / 57. 47.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 52.100 / 6. 52.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
[New Thread 6352.0x1e6c]
[New Thread 6352.0x12fc]
[New Thread 6352.0x1f70]
[New Thread 6352.0x17b0]
[New Thread 6352.0xdac]
Input #0, dshow, from 'video=BisonCam, NB Pro':
Duration: N/A, start: 377578.440000, bitrate: N/A
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 30 fps, 30 tbr, 10000k tbn, 10000k tbc
[New Thread 6352.0x544]
[New Thread 6352.0x1d00]
[New Thread 6352.0x1f14]
[New Thread 6352.0x1bb0]
[New Thread 6352.0xf08]
[New Thread 6352.0x7c8]
[New Thread 6352.0x12d0]
[New Thread 6352.0x504]
[New Thread 6352.0x1a74]
[libvpx @ 0000000002f0dc40] v1.6.0-384-g4a25b59
[rtsp @ 0000000002f0aac0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[New Thread 6352.0x11dc]
Output #0, rtsp, to 'rtsp://127.0.0.1:8554/demo':
Metadata:
encoder : Lavf57.47.101
Stream #0:0: Video: vp8 (libvpx), yuv420p, 320x240, q=-1--1, 100 kb/s, 10 fps, 90k tbn, 10 tbc
Metadata:
encoder : Lavc57.54.100 libvpx
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> vp8 (libvpx))
Press [q] to stop, [?] for help
Program received signal SIGSEGV, Segmentation fault.
0x00007ff894fd08af in avpriv_mpegts_parse_close () from E:\Dev\Library\ffmpeg\bin\avformat-57.dll
(gdb) bt
#0 0x00007ff894fd08af in avpriv_mpegts_parse_close () from E:\Dev\Library\ffmpeg\bin\avformat-57.dll
#1 0x00007ff894fd499b in avformat-57!av_get_output_timestamp () from E:\Dev\Library\ffmpeg\bin\avformat-57.dll
#2 0x00007ff89502dbae in ff_rtsp_parse_line () from E:\Dev\Library\ffmpeg\bin\avformat-57.dll
#3 0x00007ff894fd3ded in avformat-57!av_interleaved_write_frame () from E:\Dev\Library\ffmpeg\bin\avformat-57.dll
#4 0x000000014001ab18 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) thread apply all bt
Thread 19 (Thread 6352.0x11dc):
#0 0x00007ff8c4804e74 in ntdll!ZwRemoveIoCompletion () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c0663e49 in Tcpip4_WSHStringToAddress () from C:\Windows\system32\mswsock.dll
#2 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#3 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#4 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 18 (Thread 6352.0x1a74):
#0 0x00007ff8c4808404 in ntdll!ZwWaitForAlertByThreadId () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c47c7810 in ntdll!RtlSleepConditionVariableCS () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c0e2bb47 in SleepConditionVariableCS () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff896f59420 in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#4 0x00007ff896f5935f in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#5 0x00007ff8c38ab097 in msvcrt!_beginthreadex () from C:\Windows\system32\msvcrt.dll
#6 0x00007ff8c38ab16c in msvcrt!_endthreadex () from C:\Windows\system32\msvcrt.dll
#7 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#8 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#9 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 17 (Thread 6352.0x504):
#0 0x00007ff8c4808404 in ntdll!ZwWaitForAlertByThreadId () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c47c7810 in ntdll!RtlSleepConditionVariableCS () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c0e2bb47 in SleepConditionVariableCS () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff896f59420 in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#4 0x00007ff896f5935f in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#5 0x00007ff8c38ab097 in msvcrt!_beginthreadex () from C:\Windows\system32\msvcrt.dll
---Type <return> to continue, or q <return> to quit---
#6 0x00007ff8c38ab16c in msvcrt!_endthreadex () from C:\Windows\system32\msvcrt.dll
#7 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#8 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#9 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 16 (Thread 6352.0x12d0):
#0 0x00007ff8c4808404 in ntdll!ZwWaitForAlertByThreadId () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c47c7810 in ntdll!RtlSleepConditionVariableCS () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c0e2bb47 in SleepConditionVariableCS () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff896f59420 in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#4 0x00007ff896f5935f in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#5 0x00007ff8c38ab097 in msvcrt!_beginthreadex () from C:\Windows\system32\msvcrt.dll
#6 0x00007ff8c38ab16c in msvcrt!_endthreadex () from C:\Windows\system32\msvcrt.dll
#7 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#8 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#9 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 15 (Thread 6352.0x7c8):
#0 0x00007ff8c4808404 in ntdll!ZwWaitForAlertByThreadId () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c47c7810 in ntdll!RtlSleepConditionVariableCS () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c0e2bb47 in SleepConditionVariableCS () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff896f59420 in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#4 0x00007ff896f5935f in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#5 0x00007ff8c38ab097 in msvcrt!_beginthreadex () from C:\Windows\system32\msvcrt.dll
#6 0x00007ff8c38ab16c in msvcrt!_endthreadex () from C:\Windows\system32\msvcrt.dll
#7 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#8 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
---Type <return> to continue, or q <return> to quit---
#9 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 14 (Thread 6352.0xf08):
#0 0x00007ff8c4808404 in ntdll!ZwWaitForAlertByThreadId () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c47c7810 in ntdll!RtlSleepConditionVariableCS () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c0e2bb47 in SleepConditionVariableCS () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff896f59420 in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#4 0x00007ff896f5935f in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#5 0x00007ff8c38ab097 in msvcrt!_beginthreadex () from C:\Windows\system32\msvcrt.dll
#6 0x00007ff8c38ab16c in msvcrt!_endthreadex () from C:\Windows\system32\msvcrt.dll
#7 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#8 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#9 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 13 (Thread 6352.0x1bb0):
#0 0x00007ff8c4808404 in ntdll!ZwWaitForAlertByThreadId () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c47c7810 in ntdll!RtlSleepConditionVariableCS () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c0e2bb47 in SleepConditionVariableCS () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff896f59420 in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#4 0x00007ff896f5935f in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#5 0x00007ff8c38ab097 in msvcrt!_beginthreadex () from C:\Windows\system32\msvcrt.dll
#6 0x00007ff8c38ab16c in msvcrt!_endthreadex () from C:\Windows\system32\msvcrt.dll
#7 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#8 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#9 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
---Type <return> to continue, or q <return> to quit---
Thread 12 (Thread 6352.0x1f14):
#0 0x00007ff8c4808404 in ntdll!ZwWaitForAlertByThreadId () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c47c7810 in ntdll!RtlSleepConditionVariableCS () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c0e2bb47 in SleepConditionVariableCS () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff896f59420 in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#4 0x00007ff896f5935f in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#5 0x00007ff8c38ab097 in msvcrt!_beginthreadex () from C:\Windows\system32\msvcrt.dll
#6 0x00007ff8c38ab16c in msvcrt!_endthreadex () from C:\Windows\system32\msvcrt.dll
#7 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#8 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#9 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 11 (Thread 6352.0x1d00):
#0 0x00007ff8c4808404 in ntdll!ZwWaitForAlertByThreadId () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c47c7810 in ntdll!RtlSleepConditionVariableCS () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c0e2bb47 in SleepConditionVariableCS () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff896f59420 in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#4 0x00007ff896f5935f in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#5 0x00007ff8c38ab097 in msvcrt!_beginthreadex () from C:\Windows\system32\msvcrt.dll
#6 0x00007ff8c38ab16c in msvcrt!_endthreadex () from C:\Windows\system32\msvcrt.dll
#7 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#8 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#9 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 10 (Thread 6352.0x544):
#0 0x00007ff8c4808404 in ntdll!ZwWaitForAlertByThreadId () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c47c7810 in ntdll!RtlSleepConditionVariableCS () from C:\Windows\SYSTEM32\ntdll.dll
---Type <return> to continue, or q <return> to quit---
#2 0x00007ff8c0e2bb47 in SleepConditionVariableCS () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff896f59420 in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#4 0x00007ff896f5935f in avfilter_graph_parse_ptr () from E:\Dev\Library\ffmpeg\bin\avfilter-6.dll
#5 0x00007ff8c38ab097 in msvcrt!_beginthreadex () from C:\Windows\system32\msvcrt.dll
#6 0x00007ff8c38ab16c in msvcrt!_endthreadex () from C:\Windows\system32\msvcrt.dll
#7 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#8 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#9 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 9 (Thread 6352.0xdac):
#0 0x00007ff8c48058a4 in ntdll!ZwWaitForMultipleObjects () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c0e53b2f in WaitForMultipleObjectsEx () from C:\Windows\system32\KernelBase.dll
#2 0x00007ff8a2d4428b in ksproxy!DllUnregisterServer () from C:\Windows\System32\ksproxy.ax
#3 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#4 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#5 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 8 (Thread 6352.0x17b0):
#0 0x00007ff8c4804dd4 in ntdll!ZwWaitForSingleObject () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c0e2aadf in WaitForSingleObjectEx () from C:\Windows\system32\KernelBase.dll
#2 0x00007ff8a2d5a8bb in ksproxy!KsResolveRequiredAttributes () from C:\Windows\System32\ksproxy.ax
#3 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#4 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#5 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 7 (Thread 6352.0x1f70):
---Type <return> to continue, or q <return> to quit---
#0 0x00007ff8c4804dd4 in ntdll!ZwWaitForSingleObject () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c0e2aadf in WaitForSingleObjectEx () from C:\Windows\system32\KernelBase.dll
#2 0x00007ff896241b63 in ?? () from C:\Windows\System32\quartz.dll
#3 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#4 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#5 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 6 (Thread 6352.0x12fc):
#0 0x00007ff8c48058a4 in ntdll!ZwWaitForMultipleObjects () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c0e53b2f in WaitForMultipleObjectsEx () from C:\Windows\system32\KernelBase.dll
#2 0x00007ff8c0e53a2e in WaitForMultipleObjects () from C:\Windows\system32\KernelBase.dll
#3 0x00007ff8a2d5b312 in ksproxy!KsResolveRequiredAttributes () from C:\Windows\System32\ksproxy.ax
#4 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#5 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#6 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 5 (Thread 6352.0x1e6c):
#0 0x00007ff8c32a1f74 in USER32!InvalidateRect () from C:\Windows\system32\user32.dll
#1 0x00007ff8c3292e15 in USER32!GetMessageW () from C:\Windows\system32\user32.dll
#2 0x00007ff89628ac1d in QUARTZ!AMGetErrorTextW () from C:\Windows\System32\quartz.dll
#3 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#4 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#5 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 4 (Thread 6352.0x1a7c):
#0 0x00007ff8c4808464 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SYSTEM32\ntdll.dll
---Type <return> to continue, or q <return> to quit---
#1 0x00007ff8c478b2e8 in ntdll!RtlAcquireSRWLockShared () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#3 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#4 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 3 (Thread 6352.0x13b0):
#0 0x00007ff8c4808464 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c478b2e8 in ntdll!RtlAcquireSRWLockShared () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#3 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#4 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 2 (Thread 6352.0x214c):
#0 0x00007ff8c4808464 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff8c478b2e8 in ntdll!RtlAcquireSRWLockShared () from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff8c3e58102 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
#3 0x00007ff8c47bc264 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#4 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 1 (Thread 6352.0xc70):
#0 0x00007ff894fd08af in avpriv_mpegts_parse_close () from E:\Dev\Library\ffmpeg\bin\avformat-57.dll
#1 0x00007ff894fd499b in avformat-57!av_get_output_timestamp () from E:\Dev\Library\ffmpeg\bin\avformat-57.dll
#2 0x00007ff89502dbae in ff_rtsp_parse_line () from E:\Dev\Library\ffmpeg\bin\avformat-57.dll
#3 0x00007ff894fd3ded in avformat-57!av_interleaved_write_frame () from E:\Dev\Library\ffmpeg\bin\avformat-57.dll
#4 0x000000014001ab18 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
</return></return></return></return></return></return></return></return></return></return></return></return> -
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.mp4I’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.mp4I’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 -
FFMPEG reconnect input if error
15 septembre 2016, par Alkitab SuhanoI’m finding a way to make ffmpeg reconnect if any error occurered. For my case I restream from hls to rtmp for example
ffmpeg -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2000 -i "input" -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -f flv rtmp://outputFFMpeg always disconnected every 10 minutes. I searched on google and can’t find stable solution for this job.
P.S. OS is linux (Centos 7 64bit)
Thank you,
Akitab