[FFmpeg-user] how to correctly configure parameters of ffmpeg?

Плесовских Ксения kples at mail.ru
Wed Dec 14 10:00:41 EET 2016


Hi. I try to start stream with ffmpeg via ffserver and have the error "conversion failed". What I doing wrong?
Here is the output from console. 


PS C:\WINDOWS\system32> cd c:\ffmpeg\bin
PS C:\ffmpeg\bin> .\ffmpeg -threads 0 -y -i rtsp://mpv.cdn3.bigCDN.com/bigCDN/mp4:bigbuckbunnyiphone_400.mp4 -i rtsp://m
pv.cdn3.bigCDN.com/bigCDN/mp4:bigbuckbunnyiphone_400.mp4 -i rtsp://mpv.cdn3.bigCDN.com/bigCDN/mp4:bigbuckbunnyiphone_400
.mp4 -i rtsp://mpv.cdn3.bigCDN.com/bigCDN/mp4:bigbuckbunnyiphone_400.mp4 -filter_complex "nullsrc=size=1920x1080 [base];
>> [0:v] setpts=PTS-STARTPTS, scale=960x540 [upperleft];
>> [1:v] setpts=PTS-STARTPTS, scale=960x540 [upperright];
>> [2:v] setpts=PTS-STARTPTS, scale=960x540 [lowerleft];
>> [3:v] setpts=PTS-STARTPTS, scale=960x540 [lowerright];
>> [base][upperleft] overlay=shortest=1 [tmp1];
>> [tmp1][upperright] overlay=shortest=1:x=960 [tmp2];
>> [tmp2][lowerleft] overlay=shortest=1:y=540 [tmp3];
>> [tmp3][lowerright] overlay=shortest=1:x=960:y=540
>> "-an -vcodec libx264 -f mpegts http://127.0.0.1:8090/feed2.ffm
ffmpeg version N-78410-g588e2e3 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth
--enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --ena
ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-lib
twolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libw
ebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink
--enable-zlib
libavutil 55. 17.100 / 55. 17.100
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, rtsp, from 'rtsp://mpv.cdn3.bigCDN.com/bigCDN/mp4:bigbuckbunnyiphone_400.mp4':
Metadata:
title : bigbuckbunnyiphone_400.mp4
Duration: 00:09:56.46, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #0:1: Video: h264 (Constrained Baseline), yuv420p, 320x180, 24 tbr, 90k tbn, 180k tbc
Input #1, rtsp, from 'rtsp://mpv.cdn3.bigCDN.com/bigCDN/mp4:bigbuckbunnyiphone_400.mp4':
Metadata:
title : bigbuckbunnyiphone_400.mp4
Duration: 00:09:56.46, start: 0.000000, bitrate: N/A
Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #1:1: Video: h264 (Constrained Baseline), yuv420p, 320x180, 24 tbr, 90k tbn, 180k tbc
Input #2, rtsp, from 'rtsp://mpv.cdn3.bigCDN.com/bigCDN/mp4:bigbuckbunnyiphone_400.mp4':
Metadata:
title : bigbuckbunnyiphone_400.mp4
Duration: 00:09:56.46, start: 0.000000, bitrate: N/A
Stream #2:0: Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #2:1: Video: h264 (Constrained Baseline), yuv420p, 320x180, 24 tbr, 90k tbn, 180k tbc
Input #3, rtsp, from 'rtsp://mpv.cdn3.bigCDN.com/bigCDN/mp4:bigbuckbunnyiphone_400.mp4':
Metadata:
title : bigbuckbunnyiphone_400.mp4
Duration: 00:09:56.46, start: 0.000000, bitrate: N/A
Stream #3:0: Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #3:1: Video: h264 (Constrained Baseline), yuv420p, 320x180, 24 tbr, 90k tbn, 180k tbc
[libx264 @ 03e797c0] using SAR=1/1
[libx264 @ 03e797c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 03e797c0] profile High, level 4.0
Output #0, mpegts, to 'http://127.0.0.1:8090/feed2.ffm':
Metadata:
title : bigbuckbunnyiphone_400.mp4
encoder : Lavf57.25.100
Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default
)
Metadata:
encoder : Lavc57.24.102 libx264
Side data:
unknown side data type 10 (24 bytes)
Stream mapping:
Stream #0:1 (h264) -> setpts
Stream #1:1 (h264) -> setpts
Stream #2:1 (h264) -> setpts
Stream #3:1 (h264) -> setpts
overlay -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[rtsp @ 03361400] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[rtsp @ 03aec200] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[rtsp @ 03a3ec60] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[rtsp @ 03d4e180] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[rtsp @ 03aec200] max delay reached. need to consume packetbitrate=N/A speed= 0x
[NULL @ 0343b540] RTP: missed 1 packets
[rtsp @ 03a3ec60] max delay reached. need to consume packetbitrate=N/A speed= 0x
[NULL @ 03a940a0] RTP: missed 1 packets
[rtsp @ 03361400] max delay reached. need to consume packet
[NULL @ 033649c0] RTP: missed 1 packets
[rtsp @ 03aec200] max delay reached. need to consume packet
[NULL @ 0343b540] RTP: missed 1 packets
[rtsp @ 03aec200] max delay reached. need to consume packet
[NULL @ 0343b540] RTP: missed 5 packets
[rtsp @ 03aec200] max delay reached. need to consume packet
[NULL @ 03aefd00] RTP: missed 1 packets
[h264 @ 03e76f60] concealing 60 DC, 60 AC, 60 MV errors in P frame
[h264 @ 050ea040] concealing 60 DC, 60 AC, 60 MV errors in P frame=N/A speed= 0x
[rtsp @ 03361400] max delay reached. need to consume packet
[NULL @ 033649c0] RTP: missed 1 packets
[rtsp @ 03361400] max delay reached. need to consume packet
[NULL @ 033649c0] RTP: missed 40 packets
[rtsp @ 03361400] max delay reached. need to consume packetbitrate=N/A speed= 0x
[NULL @ 033649c0] RTP: missed 1 packets
[rtsp @ 03361400] max delay reached. need to consume packet
[NULL @ 03367860] RTP: missed 1 packets
[h264 @ 03e79fc0] concealing 60 DC, 60 AC, 60 MV errors in P frame
[rtsp @ 03361400] max delay reached. need to consume packetbitrate=N/A speed= 0x
[NULL @ 03367860] RTP: missed 1 packets
[rtsp @ 03a3ec60] max delay reached. need to consume packet
[NULL @ 03a940a0] RTP: missed 1 packets
av_interleaved_write_frame(): Unknown error
Error writing trailer of http://127.0.0.1:8090/feed2.ffm: Error number -10053 occurredframe= 52 fps=8.8 q=28.0 Lsize=
2kB time=00:00:00.00 bitrate=N/A speed= 0x
video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 67.607727%
[libx264 @ 03e797c0] frame I:4 Avg QP:13.48 size: 6723
[libx264 @ 03e797c0] frame P:44 Avg QP:18.21 size: 9220
[libx264 @ 03e797c0] frame B:4 Avg QP:13.00 size: 68
[libx264 @ 03e797c0] consecutive B-frames: 88.5% 3.8% 0.0% 7.7%
[libx264 @ 03e797c0] mb I I16..4: 53.1% 46.6% 0.3%
[libx264 @ 03e797c0] mb P I16..4: 15.3% 40.0% 0.1% P16..4: 11.6% 2.0% 0.7% 0.0% 0.0% skip:30.4%
[libx264 @ 03e797c0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0% L0:100.0% L1
: 0.0% BI: 0.0%
[libx264 @ 03e797c0] 8x8 transform intra:68.7% inter:87.3%
[libx264 @ 03e797c0] coded y,uvDC,uvAC intra: 4.4% 11.0% 0.2% inter: 7.0% 15.3% 0.0%
[libx264 @ 03e797c0] i16 v,h,dc,p: 50% 36% 8% 7%
[libx264 @ 03e797c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 15% 47% 0% 0% 0% 0% 0% 0%
[libx264 @ 03e797c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 21% 36% 3% 4% 3% 2% 2% 2%
[libx264 @ 03e797c0] i8c dc,h,v,p: 72% 18% 10% 1%
[libx264 @ 03e797c0] Weighted P-Frames: Y:81.8% UV:45.5%
[libx264 @ 03e797c0] ref P L0: 68.7% 26.8% 4.4% 0.1% 0.0%
[libx264 @ 03e797c0] kb/s:1664.75
Conversion failed!


and conf file from ffserver

Port 8090
RTSPPort 8544
# Address on which the server is bound. Only useful if you have
# several network interfaces.
#RTSPBindAddress 127.0.0.1
#HTTPBindAddress 0.0.0.0
# Number of simultaneous HTTP connections that can be handled. It has
# to be defined *before* the MaxClients parameter, since it defines the
# MaxClients maximum limit.
MaxHTTPConnections 2000
# Number of simultaneous requests that can be handled. Since FFServer
# is very fast, it is more likely that you will want to leave this high
# and use MaxBandwidth, below.
MaxClients 1000
# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients.
MaxBandwidth 10000
# Access log file (uses standard Apache log file format)
# '-' is the standard output.
CustomLog -
<Feed feed2.ffm>
File temp/feed2.ffm
FileMaxSize 50M
#ACL allow 127.0.0.1
</Feed>
<Stream test.h264>
Feed feed2.ffm
Format rtp
VideoCodec libx264
#VideoCodec copy
VideoFrameRate 24
VideoSize 480x320
#VideoBitRate 256
VideoBitRate 1000
#VideoBufferSize 4000
#VideoQMin 1
#VideoQMax 1
#VideoGopSize 30
AVPresetVideo default
AVPresetVideo baseline
AVOptionVideo flags +global_header
#AudioSampleRate 44100
#AudioBitRate 64
#AudioCodec libmp3lame
NoAudio
StartSendOnKey
#AudioCodec libfaac
#AudioBitRate 32
#AudioChannels 2
#AudioSampleRate 22050
#AVOptionAudio flags +global_header
</Stream>
# Server status
<Stream status.html>
Format status
# Only allow local people to get the status
#ACL allow localhost
#ACL allow 192.168.0.0 192.168.255.255
#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
</Stream>


More information about the ffmpeg-user mailing list