Good day!
I'm new for video streaming but I'm really willing to work with that tool.
I use Ubuntu 12.11 and VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
I have an experimment with rtpplay tool and VLC.
Rtpplay tool sends rtp packets to VLC: ./rtpplay -T -v -f /home/xxx/file 10.10.133.143/15028
VLC receives the packets and stores it as mp4 file: vlc --file-logging --log-verbose=2 --logfile=/home/xxx/vlc_log_receiving.txt file:///home/xxx/sdp.sdp --sout '#standard{access=file,mux=mp4,dst=/home/xxx/result_4.mp4}'
I have the following sdp file:
v=0
o=- 15484852015065732607 15484852015065732607 IN IP4 ekaterina-P5GZ-MX
s=Unnamed
i=N/A
c=IN IP4 10.10.133.143
t=0 0
a=tool:vlc 2.0.8
a=recvonly
a=type:broadcast
a=charset:UTF-8
m=video 15028 RTP/AVP 96
b=RR:0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4d401f;sprop-parameter-sets=Z01AH+jAIAJNCAAAAwAIAAADAYB4wYjQ,aOlzLIA=;
So the problem is the following:
VLC player receives less bytes than rtpplay sends. As the result I have:
VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
[0x8e36908] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0xb5400618] main input error: ES_OUT_RESET_PCR called
MultiFramedRTPSource::doGetNextFrame1(): The total received frame size exceeds the client's buffer size (65536). 1391 bytes of trailing data will be dropped!
From the vlc log file we can see that buffer is too small for receiving some frame, but it is rised once it happends.
I tried to send mp4 file from VLC to VLC. The result is the same.
The log file is the following:
-- logger module started --
main debug: using interface module "logger"
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 0 items, index -1
main debug: TIMER module_need() : 0.864 ms - Total 0.864 ms / 1 intvls (Avg 0.864 ms)
main debug: adding item `sdp.sdp' ( file:///home/ekaterina/MPRTP/sdp.sdp )
main debug: looking for interface module: 1 candidate
main debug: Creating an input for 'sdp.sdp'
main debug: using interface module "globalhotkeys"
main debug: TIMER module_need() : 1.265 ms - Total 1.265 ms / 1 intvls (Avg 1.265 ms)
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main debug: looking for interface module: 6 candidates
main debug: meta ok for (null), need to fetch art
main debug: looking for meta fetcher module: 1 candidate
lua debug: Trying Lua scripts in /home/ekaterina/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/fetcher
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/fetcher/tvrage.luac
main debug: using meta fetcher module "lua"
main debug: TIMER module_need() : 0.992 ms - Total 0.992 ms / 1 intvls (Avg 0.992 ms)
main debug: removing module "lua"
main debug: searching art for sdp.sdp
main debug: looking for art finder module: 2 candidates
lua debug: Trying Lua scripts in /home/ekaterina/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder module matching "any" could be loaded
main debug: TIMER module_need() : 8.474 ms - Total 8.474 ms / 1 intvls (Avg 8.474 ms)
main debug: art not found for sdp.sdp
-- logger module started --
main debug: using interface module "logger"
main debug: TIMER module_need() : 0.542 ms - Total 0.542 ms / 1 intvls (Avg 0.542 ms)
main debug: adding item `sdp.sdp' ( file:///home/ekaterina/MPRTP/sdp.sdp )
main debug: Creating an input for 'sdp.sdp'
main debug: looking for interface module: 1 candidate
main debug: using interface module "globalhotkeys"
main debug: TIMER module_need() : 6.260 ms - Total 6.260 ms / 1 intvls (Avg 6.260 ms)
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main debug: looking for interface module: 6 candidates
main debug: meta ok for (null), need to fetch art
main debug: looking for meta fetcher module: 1 candidate
lua debug: Trying Lua scripts in /home/ekaterina/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/fetcher
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/fetcher/tvrage.luac
main debug: using meta fetcher module "lua"
main debug: TIMER module_need() : 1.098 ms - Total 1.098 ms / 1 intvls (Avg 1.098 ms)
main debug: removing module "lua"
main debug: searching art for sdp.sdp
main debug: looking for art finder module: 2 candidates
lua debug: Trying Lua scripts in /home/ekaterina/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder module matching "any" could be loaded
main debug: TIMER module_need() : 6.953 ms - Total 6.953 ms / 1 intvls (Avg 6.953 ms)
main debug: art not found for sdp.sdp
main debug: looking for extension module: 1 candidate
lua debug: Opening Lua Extension module
lua debug: Trying Lua scripts in /home/ekaterina/.local/share/vlc/lua/extensions
lua debug: Trying Lua scripts in /usr/lib/vlc/lua/extensions
lua debug: Trying Lua scripts in /usr/share/vlc/lua/extensions
main debug: using extension module "lua"
main debug: TIMER module_need() : 5.394 ms - Total 5.394 ms / 1 intvls (Avg 5.394 ms)
main debug: using interface module "qt4"
main debug: TIMER module_need() : 501.402 ms - Total 501.402 ms / 1 intvls (Avg 501.402 ms)
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: processing request item: null, node: Playlist, skip: 0
main debug: starting playback of the new playlist item
main debug: resyncing on sdp.sdp
main debug: sdp.sdp is at 0
main debug: creating new input thread
main debug: Creating an input for 'sdp.sdp'
qt4 debug: IM: Setting an input
main debug: using sout chain=`standard{access=file,mux=mp4,dst=/home/ekaterina/MPRTP/result_4.mp4}'
main debug: stream=`standard'
main debug: looking for sout stream module: 1 candidate
main debug: set config option: sout-standard-access to file
main debug: set config option: sout-standard-mux to mp4
main debug: set config option: sout-standard-dst to /home/ekaterina/MPRTP/result_4.mp4
main debug: looking for sout access module: 1 candidate
access_output_file debug: file access output opened (/home/ekaterina/MPRTP/result_4.mp4)
main debug: using sout access module "access_output_file"
main debug: TIMER module_need() : 1.647 ms - Total 1.647 ms / 1 intvls (Avg 1.647 ms)
main debug: looking for sout mux module: 1 candidate
mux_mp4 debug: Mp4 muxer opened
main debug: using sout mux module "mux_mp4"
main debug: TIMER module_need() : 0.427 ms - Total 0.427 ms / 1 intvls (Avg 0.427 ms)
stream_out_standard debug: using `file/mp4:///home/ekaterina/MPRTP/result_4.mp4'
main debug: using sout stream module "stream_out_standard"
main debug: TIMER module_need() : 9.784 ms - Total 9.784 ms / 1 intvls (Avg 9.784 ms)
main debug: using timeshift granularity of 50 MiB, in path '/tmp'
main debug: `file:///home/ekaterina/MPRTP/sdp.sdp' gives access `file' demux `' path `/home/ekaterina/MPRTP/sdp.sdp'
main debug: creating demux: access='file' demux='' location='/home/ekaterina/MPRTP/sdp.sdp' file='/home/ekaterina/MPRTP/sdp.sdp'
main debug: looking for access_demux module: 3 candidates
main debug: no access_demux module matching "file" could be loaded
main debug: TIMER module_need() : 0.214 ms - Total 0.214 ms / 1 intvls (Avg 0.214 ms)
main debug: creating access 'file' location='/home/ekaterina/MPRTP/sdp.sdp', path='/home/ekaterina/MPRTP/sdp.sdp'
main debug: looking for access module: 2 candidates
filesystem debug: opening file `/home/ekaterina/MPRTP/sdp.sdp'
main debug: using access module "filesystem"
main debug: TIMER module_need() : 0.184 ms - Total 0.184 ms / 1 intvls (Avg 0.184 ms)
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 369 bytes in 0s - 8789 KiB/s
main debug: looking for stream_filter module: 7 candidates
main debug: no stream_filter module matching "any" could be loaded
main debug: TIMER module_need() : 0.145 ms - Total 0.145 ms / 1 intvls (Avg 0.145 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 0.137 ms - Total 0.137 ms / 1 intvls (Avg 0.137 ms)
main debug: creating demux: access='file' demux='' location='/home/ekaterina/MPRTP/sdp.sdp' file='/home/ekaterina/MPRTP/sdp.sdp'
main debug: looking for demux module: 54 candidates
live555 debug: version 2012.05.17
live555 debug: RTP subsession 'video/H264'
main debug: selecting program id=0
live555 debug: setup start: 0.000000 stop:0.000000
live555 debug: play start: 0.000000 stop:0.000000
main debug: using demux module "live555"
main debug: TIMER module_need() : 0.829 ms - Total 0.829 ms / 1 intvls (Avg 0.829 ms)
main debug: looking for a subtitle file in /home/ekaterina/MPRTP/
main debug: looking for packetizer module: 21 candidates
packetizer_h264 debug: found NAL_SPS (sps_id=0)
packetizer_h264 debug: found NAL_PPS (pps_id=0 sps_id=0)
main debug: using packetizer module "packetizer_h264"
main debug: TIMER module_need() : 11.608 ms - Total 11.608 ms / 1 intvls (Avg 11.608 ms)
main debug: starting in sync mode
main debug: looking for meta reader module: 2 candidates
lua debug: Trying Lua scripts in /home/ekaterina/.local/share/vlc/lua/meta/reader
lua debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
main debug: no meta reader module matching "any" could be loaded
main debug: TIMER module_need() : 1.123 ms - Total 1.123 ms / 1 intvls (Avg 1.123 ms)
main debug: `file:///home/ekaterina/MPRTP/sdp.sdp' successfully opened
main debug: switching to async mode
main debug: Buffering 0%
main debug: Buffering 8%
main debug: Buffering 8%
main debug: Buffering 16%
main debug: Buffering 16%
main debug: Buffering 20%
main debug: Buffering 20%
main debug: Buffering 20%
packetizer_h264 debug: Seen SEI recovery point, 0 recovery frames
main debug: Buffering 20%
packetizer_h264 debug: Recovery from SEI recovery point complete
main debug: adding a new sout input (sout_input:0xb5403b08)
main debug: adding a new input
mux_mp4 debug: adding input
main debug: Buffering 29%
main debug: Buffering 29%
main debug: Buffering 45%
main debug: Buffering 45%
main debug: Buffering 45%
main debug: Buffering 45%
main debug: Buffering 54%
main debug: Buffering 54%
main debug: Buffering 66%
main debug: Buffering 66%
main debug: Buffering 66%
main debug: Buffering 74%
main debug: Buffering 74%
main debug: Buffering 87%
main debug: Buffering 87%
main debug: Buffering 87%
main debug: Stream buffering done (1041 ms in 916 ms)
main debug: Decoder buffering done in 0 ms
live555 debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP()
main error: ES_OUT_RESET_PCR called
main debug: Buffering 0%
main debug: Buffering 16%
main debug: Buffering 16%
main debug: Buffering 16%
main debug: Buffering 29%
main debug: Buffering 29%
main debug: Buffering 29%
main debug: Buffering 41%
main debug: Buffering 41%
main debug: Buffering 41%
main debug: Buffering 54%
main debug: Buffering 54%
main debug: Buffering 54%
main debug: Buffering 62%
main debug: Buffering 62%
main debug: Buffering 70%
main debug: Buffering 70%
main debug: Buffering 79%
main debug: Buffering 79%
main debug: Buffering 91%
main debug: Buffering 91%
main debug: Buffering 91%
main debug: Buffering 99%
main debug: Buffering 99%
main debug: Stream buffering done (1083 ms in 1000 ms)
main debug: Decoder buffering done in 0 ms
mux_mp4 warning: i_length <= 0
mux_mp4 warning: i_length <= 0
..........the same many times...........
live555 debug: lost 1391 bytes
live555 debug: increasing buffer size to 131072
mux_mp4 warning: i_length <= 0
mux_mp4 warning: i_length <= 0
What can be the problem?
Sorry if I miss some important information. Let me know in this case.
I tried to find the solution of that problem in the internet but I haven't any success...