Opened 8 years ago
Closed 8 years ago
#6169 closed defect (invalid)
ffmpeg is not receiving stream from ffserver
Reported by: | cold1746 | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | ffserver |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
i created a ffserver successfully but its not reciving the stream
ffplay rtsp://ip:port/test1
Attachments (1)
Change History (9)
by , 8 years ago
Attachment: | ffserver2.conf added |
---|
comment:1 by , 8 years ago
when server is started its showing like this
Codecs do not match for stream 0
]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
i giving feed via ffmepg -i http://ip:port/feed1.ffm
and its showing udp timeout retrying with tcp in ffplay
comment:2 by , 8 years ago
Priority: | critical → normal |
---|
Command line(s) including complete, uncut console output missing.
comment:4 by , 8 years ago
Please provide the command line(s) you tested together with the complete, uncut console output to make this a valid ticket.
follow-up: 6 comment:5 by , 8 years ago
ffserver -d -f ffserver2.conf ffserver version N-83251-gee8e00b Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609 configuration: --prefix=/home/pas/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/pas/ffmpeg_build/include --extra-ldflags=-L/home/pas/ffmpeg_build/lib --bindir=/home/pas/bin --extra-cflags=-I/home/pas/blackmagicsdk/Linux/include --extra-ldflags=-L/home/pas/blackmagicsdk/Linux/include --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-ffplay --enable-decklink libavutil 55. 45.100 / 55. 45.100 libavcodec 57. 75.100 / 57. 75.100 libavformat 57. 65.100 / 57. 65.100 libavdevice 57. 2.100 / 57. 2.100 libavfilter 6. 71.100 / 6. 71.100 libswscale 4. 3.101 / 4. 3.101 libswresample 2. 4.100 / 2. 4.100 libpostproc 54. 2.100 / 54. 2.100 ffserver2.conf:55: Setting default value for video bit rate tolerance = 250000. Use NoDefaults to disable it. ffserver2.conf:55: Setting default value for video rate control equation = tex^qComp. Use NoDefaults to disable it. ffserver2.conf:55: Setting default value for video max rate = 2000000. Use NoDefaults to disable it. Tue Feb 21 16:48:45 2017 Codecs do not match for stream 0 Tue Feb 21 16:48:45 2017 [ffm @ 0x27bcf00]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Tue Feb 21 16:48:45 2017 [ffm @ 0x27bcf00]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Tue Feb 21 16:48:45 2017 FFserver started.
ffmpeg -re -i c.avi http://172.28.107.160:1234/feed1.ffm ffmpeg version N-83251-gee8e00b Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609 configuration: --prefix=/home/pas/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/pas/ffmpeg_build/include --extra-ldflags=-L/home/pas/ffmpeg_build/lib --bindir=/home/pas/bin --extra-cflags=-I/home/pas/blackmagicsdk/Linux/include --extra-ldflags=-L/home/pas/blackmagicsdk/Linux/include --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-ffplay --enable-decklink libavutil 55. 45.100 / 55. 45.100 libavcodec 57. 75.100 / 57. 75.100 libavformat 57. 65.100 / 57. 65.100 libavdevice 57. 2.100 / 57. 2.100 libavfilter 6. 71.100 / 6. 71.100 libswscale 4. 3.101 / 4. 3.101 libswresample 2. 4.100 / 2. 4.100 libpostproc 54. 2.100 / 54. 2.100 [avi @ 0x3f73ca0] mov tag found in avi (fourcc apch) Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from 'c.avi': Metadata: encoder : Lavf56.40.101 Duration: 00:01:00.00, start: 0.000000, bitrate: 167913 kb/s Stream #0:0: Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 166474 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s No pixel format specified, yuv422p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x3fb94a0] using SAR=64/45 [libx264 @ 0x3fb94a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0x3fb94a0] profile High 4:2:2 Intra, level 3.0, 4:2:2 8-bit Output #0, ffm, to 'http://172.28.107.160:1234/feed1.ffm': Metadata: creation_time : now encoder : Lavf57.65.100 Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 128 kb/s Metadata: encoder : Lavc57.75.100 libmp3lame Stream #0:1: Video: h264 (libx264), yuv422p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 1000 kb/s, 24 fps, 1000k tbn, 25 tbc Metadata: encoder : Lavc57.75.100 libx264 Side data: cpb: bitrate max/min/avg: 2000000/0/1000000 buffer size: 3276000 vbv_delay: -1 Stream mapping: Stream #0:1 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame)) Stream #0:0 -> #0:1 (prores (native) -> h264 (libx264)) Press [q] to stop, [?] for help frame= 14 fps=0.0 q=0.0 size= 4kB time=00:00:00.39 bitrate= 83.4kbits/sframe= 26 fps= 26 q=0.0 size= 4kB time=00:00:00.88 bitrate= 36.8kbits/sframe= 39 fps= 26 q=0.0 size= 4kB time=00:00:01.38 bitrate= 23.6kbits/sframe= 51 fps= 25 q=23.0 size= 20kB time=00:00:01.88 bitrate= 87.1kbits/frame= 64 fps= 25 q=21.0 size= 76kB time=00:00:02.40 bitrate= 258.9kbits/frame= 76 fps= 25 q=20.0 size= 132kB time=00:00:02.90 bitrate= 372.8kbits/frame= 90 fps= 25 q=19.0 size= 204kB time=00:00:03.42 bitrate= 488.2kbits/frame= 102 fps= 25 q=26.0 size= 328kB time=00:00:03.91 bitrate= 685.6kbits/frame= 115 fps= 25 q=17.0 size= 424kB time=00:00:04.41 bitrate= 786.6kbits/frame= 127 fps= 25 q=30.0 size= 548kB time=00:00:04.93 bitrate= 909.1kbits/frame= 140 fps= 25 q=33.0 size= 728kB time=00:00:05.43 bitrate=1097.4kbits/frame= 152 fps= 25 q=35.0 size= 852kB time=00:00:05.93 bitrate=1176.8kbits/frame= 165 fps= 25 q=38.0 size= 964kB time=00:00:06.45 bitrate=1223.7kbits/frame= 177 fps= 25 q=40.0 size= 1088kB time=00:00:06.94 bitrate=1282.5kbits/frame= 191 fps= 25 q=40.0 size= 1212kB time=00:00:07.47 bitrate=1328.8kbits/frame= 203 fps= 25 q=39.0 size= 1268kB time=00:00:07.96 bitrate=1303.6kbits/frame= 216 fps= 25 q=40.0 size= 1328kB time=00:00:08.46 bitrate=1285.2kbits/frame= 228 fps= 25 q=40.0 size= 1400kB time=00:00:08.98 bitrate=1276.1kbits/frame= 241 fps= 25 q=41.0 size= 1476kB time=00:00:09.48 bitrate=1275.0kbits/frame= 254 fps= 25 q=40.0 size= 1536kB time=00:00:10.00 bitrate=1257.5kbits/frame= 267 fps= 25 q=40.0 size= 1592kB time=00:00:10.50 bitrate=1241.8kbits/frame= 279 fps= 25 q=40.0 size= 1648kB time=00:00:10.99 bitrate=1227.5kbits/frame= 292 fps= 25 q=40.0 size= 1704kB time=00:00:11.52 bitrate=1211.6kbits/frame= 305 fps= 25 q=40.0 size= 1772kB time=00:00:12.04 bitrate=1205.3kbits/frame= 318 fps= 25 q=40.0 size= 1848kB time=00:00:12.56 bitrate=1204.7kbits/frame= 330 fps= 25 q=41.0 size= 1916kB time=00:00:13.06 bitrate=1201.6kbits/frame= 343 fps= 25 q=42.0 size= 1988kB time=00:00:13.55 bitrate=1201.1kbits/frame= 355 fps= 25 q=42.0 size= 2076kB time=00:00:14.08 bitrate=1207.8kbits/frame= 366 fps= 25 q=-1.0 Lsize= 2456kB time=00:00:14.60 bitrate=1378.1kbits/s dup=15 drop=0 speed=0.988x video:2199kB audio:228kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.207963% [libx264 @ 0x3fb94a0] frame I:366 Avg QP:33.18 size: 6151 [libx264 @ 0x3fb94a0] mb I I16..4: 41.5% 56.0% 2.5% [libx264 @ 0x3fb94a0] final ratefactor: 34.38 [libx264 @ 0x3fb94a0] 8x8 transform intra:56.0% [libx264 @ 0x3fb94a0] coded y,uvDC,uvAC intra: 22.7% 49.2% 15.7% [libx264 @ 0x3fb94a0] i16 v,h,dc,p: 62% 13% 8% 17% [libx264 @ 0x3fb94a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 19% 22% 4% 4% 6% 3% 5% 3% [libx264 @ 0x3fb94a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 18% 12% 5% 7% 9% 4% 5% 3% [libx264 @ 0x3fb94a0] i8c dc,h,v,p: 67% 8% 19% 7% [libx264 @ 0x3fb94a0] kb/s:1230.21 Exiting normally, received signal 2.
ffplay rtsp://172.28.107.160:9990/test1 ffplay version 2.2.16 Copyright (c) 2003-2015 the FFmpeg developers built on Feb 16 2017 10:09:00 with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609 configuration: libavutil 52. 66.100 / 52. 66.100 libavcodec 55. 52.102 / 55. 52.102 libavformat 55. 33.100 / 55. 33.100 libavdevice 55. 10.100 / 55. 10.100 libavfilter 4. 2.100 / 4. 2.100 libswscale 2. 5.102 / 2. 5.102 [rtsp @ 0x7f2a6c009280] UDP timeout, retrying with TCP 0B f=0/0
comment:6 by , 8 years ago
Replying to cold1746:
ffplay rtsp://172.28.107.160:9990/test1
Why are you trying rtsp
after setting the stream format to rtp
?
comment:7 by , 8 years ago
https://www.ffmpeg.org/ffserver.html
defining rtp is necessory i gone through this for rtsp streaming
comment:8 by , 8 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
configuration file of ffserver