Page 1 of 1

RTMP with FFMPEG + NGINX Doesn't play in VLC

Posted: 15 Feb 2015 09:35
by ronag
I've got a RTMP stream setup with FFMPEG -> NGINX which I can play just fine with FFPLAY. However, it does not work with VLC.

Code: Select all

main debug: VLC media player - 2.1.5 Rincewind main debug: Copyright © 1996-2014 the VideoLAN team main debug: revision 2.1.4-59-g5f258d5 main debug: configured with ../extras/package/macosx/../../../configure '--prefix=/Users/fkuehne/Desktop/videolan/gits/vlc-2.1/release/vlc_install_dir' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-growl' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-realrtsp' '--enable-libass' '--enable-macosx-audio' '--enable-macosx-eyetv' '--enable-macosx-qtkit' '--enable-macosx-vout' '--disable-caca' '--disable-skins2' '--disable-xcb' '--disable-sdl' '--disable-samplerate' '--disable-macosx-dialog-provider' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk' '--build=x86_64-apple-darwin10' '--with-macosx-version-min=10.6' 'build_alias=x86_64-apple-darwin10' 'CC=xcrun clang' 'CXX=xcrun clang++' 'OBJC=xcrun clang' main debug: processing request item: rtmp://test.mydomain.hu/live, node: Playlist, skip: 0 main debug: resyncing on rtmp://test.mydomain.hu/live main debug: rtmp://test.mydomain.hu/live is at 0 main debug: starting playback of the new playlist item main debug: resyncing on rtmp://test.mydomain.hu/live main debug: rtmp://test.mydomain.hu/live is at 0 main debug: creating new input thread main debug: Creating an input for 'rtmp://test.mydomain.hu/live' main debug: using timeshift granularity of 50 MiB, in path '/tmp' main debug: `rtmp://test.mydomain.hu/live' gives access `rtmp' demux `' path `test.mydomain.hu/live' main debug: creating demux: access='rtmp' demux='' location='test.mydomain.hu/live' file='(null)' main debug: looking for access_demux module matching "rtmp": 14 candidates main debug: no access_demux modules matched main debug: creating access 'rtmp' location='test.mydomain.hu/live', path='(null)' main debug: looking for access module matching "rtmp": 18 candidates avcodec error: Failed to open rtmp://test.mydomain.hu/live: Input/output error main debug: no access modules matched main error: open of `rtmp://test.mydomain.hu/live' failed main debug: dead input main debug: changing item without a request (current 0/1) main debug: nothing to play
What might be causing this problem?

Re: RTMP with FFMPEG + NGINX Doesn't play in VLC

Posted: 15 Feb 2015 11:11
by Jean-Baptiste Kempf
Use VLC 2.2.0

Re: RTMP with FFMPEG + NGINX Doesn't play in VLC

Posted: 15 Feb 2015 16:03
by ronag
Same problem with 2.2.

Code: Select all

core debug: VLC media player - 2.2.0-rc2 Weatherwax core debug: Copyright © 1996-2015 the VideoLAN team core debug: revision 2.2.0-rc2-213-g277f152 core debug: configured with ../extras/package/macosx/../../../configure '--prefix=/Users/buildbot/slave/vlc-stable-bin-osx-x86_64/build/build/vlc_install_dir' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-growl' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-realrtsp' '--enable-libass' '--enable-macosx-eyetv' '--enable-macosx-qtkit' '--enable-macosx-avfoundation' '--disable-skins2' '--disable-xcb' '--disable-caca' '--disable-sdl' '--disable-samplerate' '--disable-macosx-dialog-provider' '--build=x86_64-apple-darwin10' '--with-macosx-version-min=10.6' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk' 'build_alias=x86_64-apple-darwin10' 'CC=xcrun clang' 'CFLAGS=-g' 'LDFLAGS=' 'CXX=xcrun clang++' 'OBJC=xcrun clang' core debug: processing request item: rtmp://test.mydomain.hu/live, node: Playlist, skip: 0 core debug: resyncing on rtmp://test.mydomain.hu/live core debug: rtmp://test.mydomain.hu/live is at 0 core debug: starting playback of the new playlist item core debug: resyncing on rtmp://test.mydomain.hu/live core debug: rtmp://test.mydomain.hu/live is at 0 core debug: creating new input thread core debug: Creating an input for 'rtmp://test.mydomain.hu/live' core debug: requesting art for rtmp://test.mydomain.hu/live core debug: using timeshift granularity of 50 MiB, in path '/tmp' core debug: looking for meta fetcher module matching "any": 1 candidates core debug: `rtmp://test.mydomain.hu/live' gives access `rtmp' demux `' path `test.mydomain.hu/live' lua debug: Trying Lua scripts in /Users/ronagy/Library/Application Support/org.videolan.vlc/lua/meta/fetcher core debug: specified demux `any' core debug: creating demux: access='rtmp' demux='any' location='test.mydomain.hu/live' file='(null)' lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/lua/meta/fetcher core debug: looking for access_demux module matching "rtmp": 14 candidates core debug: no access_demux modules matched core debug: creating access 'rtmp' location='test.mydomain.hu/live', path='(null)' core debug: looking for access module matching "rtmp": 18 candidates avcodec debug: CPU flags: 0x0007d3db lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/fetcher/tvrage.luac lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/fetcher/tvrage.luac lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/share/lua/meta/fetcher core debug: no meta fetcher modules matched core debug: searching art for rtmp://test.mydomain.hu/live core debug: looking for art finder module matching "any": 2 candidates lua debug: Trying Lua scripts in /Users/ronagy/Library/Application Support/org.videolan.vlc/lua/meta/art lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/lua/meta/art lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/00_musicbrainz.luac lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/00_musicbrainz.luac avcodec error: Failed to open rtmp://test.mydomain.hu/live: Input/output error lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/01_googleimage.luac core debug: no access modules matched core error: open of `rtmp://test.mydomain.hu/live' failed lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/01_googleimage.luac lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/02_frenchtv.luac lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/02_frenchtv.luac lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/03_lastfm.luac lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/03_lastfm.luac lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/share/lua/meta/art core debug: no art finder modules matched core debug: art not found for rtmp://test.mydomain.hu/live macosx warning: variable stereo-mode doesn't exist or isn't handled core debug: finished input core debug: dead input core debug: changing item without a request (current 0/1) core debug: nothing to play

Re: RTMP with FFMPEG + NGINX Doesn't play in VLC

Posted: 15 Feb 2015 16:06
by ronag
And also with 3.0.

Re: RTMP with FFMPEG + NGINX Doesn't play in VLC

Posted: 15 Feb 2015 16:16
by Jean-Baptiste Kempf
avcodec error: Failed to open rtmp://test.mydomain.hu/live: Input/output error

Re: RTMP with FFMPEG + NGINX Doesn't play in VLC

Posted: 15 Feb 2015 16:25
by ronag
Yes, I can see that. But it works fine with ffplay.

Code: Select all

ffplay -i rtmp://test.mydomain.hu/live ffplay version N-69574-g7dad2f7 Copyright (c) 2003-2015 the FFmpeg developers built with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libx264 libavutil 54. 18.100 / 54. 18.100 libavcodec 56. 21.102 / 56. 21.102 libavformat 56. 19.100 / 56. 19.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 9.103 / 5. 9.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [flv @ 0x7fb5b580e400] Stream discovered after head already parsed [flv @ 0x7fb5b580e400] Stream discovered after head already parsed Input #0, flv, from 'rtmp://test.mydomain.hu/live':B sq= 0B f=0/0 Metadata: Server : NGINX RTMP (github.com/arut/nginx-rtmp-module) displayWidth : 1280 displayHeight : 720 fps : 50 profile : level : Duration: 00:00:00.00, start: 2679.722000, bitrate: N/A Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 63 kb/s Stream #0:1: Data: none Stream #0:2: Video: h264 (High), yuv420p, 1280x720, 50 fps, 50 tbr, 1k tbn, 100 tbc 2682.57 A-V: -2.386 fd= 14 aq= 13KB vq= 10KB sq= 0B f=0/0
So I'm wondering what the difference is?