[FFmpeg-user] Use ffserver rtsp streaming but ffplay cannot play.
Skul2002
wkdeorb2002 at gmail.com
Fri Jun 26 06:12:37 CEST 2015
Hi. All
I trying to rtsp streaming using ffserver.
But cannot play in Client
On Ubuntu 14.04, I use ffserver and ffmpeg.
*ffserver.conf : *
==================================================
Port 8090
RTSPPort 5454
BindAddress 0.0.0.0
RTSPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 10
MaxBandwidth 40000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 1G
</Feed>
<Stream live.rtsp>
Format rtp
Feed feed1.ffm
AudioCodec libfaac
# AudioCodec libmp3lame
Strict -2
AudioBitRate 192
AudioChannels 2
AudioSampleRate 44100
AVOptionAudio flags +global_header
VideoCodec libx264
VideoFrameRate 30
VideoBitRate 2000
VideoSize 1024x720
# PixelFormat yuv420p
AVOptionVideo flags +global_header
</Stream>
==================================================
*ffserver*
==================================================
*./ffserver -f ffserver.conf *
ffserver version git-2015-06-22-4e926fb Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-nonfree --enable-version3
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 42.101 / 56. 42.101
libavformat 56. 37.100 / 56. 37.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 17.100 / 5. 17.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
ffserver_Ex.conf:1: Port option is deprecated. Use HTTPPort instead.
ffserver_Ex.conf:4: BindAddress option is deprecated. Use HTTPBindAddress
instead.
ffserver_Ex.conf:12: NoDaemon option has no effect. You should remove it.
ffserver_Ex.conf:36: Setting default value for video bit rate tolerance =
500000. Use NoDefaults to disable it.
ffserver_Ex.conf:36: Setting default value for video rate control equation =
tex^qComp. Use NoDefaults to disable it.
ffserver_Ex.conf:36: Setting default value for video max rate = 4000000. Use
NoDefaults to disable it.
ffserver_Ex.conf:36: Setting default value for video buffer size = 4000000.
Use NoDefaults to disable it.
ffserver_Ex.conf:58: Setting default value for video bit rate tolerance =
500000. Use NoDefaults to disable it.
ffserver_Ex.conf:58: Setting default value for video rate control equation =
tex^qComp. Use NoDefaults to disable it.
ffserver_Ex.conf:58: Setting default value for video max rate = 4000000. Use
NoDefaults to disable it.
ffserver_Ex.conf:58: Setting default value for video buffer size = 4000000.
Use NoDefaults to disable it.
Fri Jun 26 12:06:41 2015 FFserver started.
Fri Jun 26 12:20:06 2015 192.168.0.10 - - [GET] "/feed1.ffm HTTP/1.1" 200
57423
Fri Jun 26 12:20:13 2015 192.168.0.10:31714 - - "PLAY live.rtsp/streamid=0
RTP/UDP"
Fri Jun 26 12:20:13 2015 192.168.0.10:31716 - - "PLAY live.rtsp/streamid=1
RTP/UDP"
==================================================
*ffmpeg*
==================================================
*./ffmpeg -i sample.mp4 http://192.168.0.10:8090/feed1.ffm*
ffmpeg version git-2015-06-22-4e926fb Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-nonfree --enable-version3
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 42.101 / 56. 42.101
libavformat 56. 37.100 / 56. 37.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 17.100 / 5. 17.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2014-10-25 06:27:37
Duration: 00:54:56.95, start: 0.000000, bitrate: 3203 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p,
640x480, 3074 kb/s, 29.97 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2014-10-25 06:27:37
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 124 kb/s (default)
Metadata:
creation_time : 2014-10-25 06:27:37
handler_name : SoundHandle
[libx264 @ 0x33edc60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x33edc60] profile High, level 3.1
[libx264 @ 0x33edc60] 264 - core 146 r2 121396c - H.264/MPEG-4 AVC codec -
Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1
ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2
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=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2000 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4000 vbv_bufsize=4000
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, ffm, to 'http://192.168.0.10:8090/feed1.ffm':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2015-06-26 12:11:08
encoder : Lavf56.37.100
Stream #0:0(eng): Audio: aac (libfaac), 44100 Hz, stereo, s16, 192 kb/s
(default)
Metadata:
creation_time : 2014-10-25 06:27:37
handler_name : SoundHandle
encoder : Lavc56.42.101 libfaac
Stream #0:1(eng): Video: h264 (libx264), yuv420p, 1024x720, q=-1--1,
2000 kb/s, 30 fps, 1000k tbn, 30 tbc (default)
Metadata:
creation_time : 2014-10-25 06:27:37
handler_name : VideoHandle
encoder : Lavc56.42.101 libx264
Stream mapping:
Stream #0:1 -> #0:0 (aac (native) -> aac (libfaac))
Stream #0:0 -> #0:1 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 78 fps=0.0 q=26.0 size= 128kB time=00:00:02.94 bitrate=
355.6kbits/
...
...
...
==================================================
*ffplay*
==================================================
*./ffplay rtsp://192.168.0.10:5454/live.rtsp*
ffplay version git-2015-06-22-4e926fb Copyright (c) 2003-2015 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-nonfree --enable-version3
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 42.101 / 56. 42.101
libavformat 56. 37.100 / 56. 37.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 17.100 / 5. 17.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 *That's
it. Not work.*
==================================================
Why cannot play?
And if change the "AudioCodec libmp3lame", Play only audio.
Or if insert a "NoAudio", Play only video.
I need help. Thanks for reading.
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Use-ffserver-rtsp-streaming-but-ffplay-cannot-play-tp4671170.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
More information about the ffmpeg-user
mailing list