Page 1 of 1
Problem saving stream (RTMP)
Posted: 09 Nov 2009 18:44
by beavaman
hi there,
when i want to open and convert a videostream (RTMP), VLC 1.0.3 (latest version) quits the conversion process within a few minutes, so i end up with a partly downloaded (and converted) file.
what i select:
1)
Media -->
Convert/Save -->
Network
2) Protocol:
RTMP
3) Address:
rtmp://edge02.fms.dutchview.nl:1935/hetgesprek/20080516160000AMS_2_1_1311
4) click
Convert/Save
5) Destination file:
C:\directory\filename.asf
6) Profile:
Video - WMV + WMA (ASF)
7) check
Dump raw input
i tried different output settings besides ASF and WMV, and also the "Stream Output way" (which has slightly different output options), but it abruptly ends everytime. any ideas how i can capture this video? i'd like to have the file as lossless/uncompressed as possible.
link to watch video online: http://www.hetgesprek.nl/archief/1105/
link to paste in VLC (URL): rtmp://edge02.fms.dutchview.nl:1935/hetgesprek/20080516160000AMS_2_1_1311
Re: Problem saving stream (RTMP)
Posted: 10 Nov 2009 08:21
by Jean-Baptiste Kempf
What if you just play the url and use the record button?
Re: Problem saving stream (RTMP)
Posted: 29 Dec 2009 23:32
by duyle.vn
Hi beavaman,
I don't have the answer, but would like to ask you something.
I was wondering how did you find out the RMTP url as rtmp://edge02.fms.dutchview.nl:1935/hetgesprek/20080516160000AMS_2_1_1311 ? I tried a couple of times, but couldn't figure that out. Please let me know.
Thank you,
DL
Re: Problem saving stream (RTMP)
Posted: 30 Dec 2009 19:26
by VLC_help
You can use Wireshark to sniff out URLs.
Re: Problem saving stream (RTMP)
Posted: 02 Jan 2010 18:58
by tazztone
to view the stream url you can also right-click on the page the video gets played and "view page source" (if you use firefox) and find the link to the stream.
Re: Problem saving stream (RTMP)
Posted: 02 Jan 2010 20:29
by duyle.vn
Thanks all for the tips of sniffing URLs by Wireshark and viewing source codes (html/xml/action script). But it doesn't work in my case.
I wanted to use VLC to play (and save) a live TV in this website (
http://xemtivi.net). I found that the url is referred by a XML file. I extracted the XML file and found the rtmp URL. Then, I tried to play VLC with such rtmp URL, but it didn't show anything. The log of VLC said that the connection hasn't been made, and it seems like I got a wrong URL? Or may be VLC does not support a live RTMP?
Please let me know.
Thanks,
XML file:
http://vtc.com.vn/XMLFile.aspx?id=3&tp=l
RTMP url: rtmp://118.143.234.130/live/vtv32
Re: Problem saving stream (RTMP)
Posted: 03 Jan 2010 15:35
by VLC_help
access_rtmp debug: rtmp: host='118.143.234.130' port=1935 path='/live'
main debug: net: connecting to 118.143.234.130 port 1935
main debug: connection: Resource temporarily unavailable
qt4 debug: IM: Setting an input
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
main debug: connection succeeded (socket = 1232)
main debug: thread (rtmp control thread) created at priority 1 (../../../.././modules/access/rtmp/access.c:214)
main debug: thread started
access_rtmp debug: _error 1.0
access_rtmp debug: null
access_rtmp debug: object
access_rtmp debug: key: level value: error
access_rtmp debug: key: code value: NetConnection.Connect.Rejected
access_rtmp debug: key: description value: Connection failed.
access_rtmp debug: key: description value: [ Server.Reject ] : Rejecting connection from file:///mac.flv to rtmp://118.143.234.130/live.
access_rtmp debug: end of object
access_rtmp debug: close 0.0
access_rtmp debug: null
You get the same messages?
Re: Problem saving stream (RTMP)
Posted: 03 Jan 2010 17:11
by duyle.vn
Hi,
I think I got pretty much the same output. Even though it looks like the connection is made and "
Operation now in progress", it still doesn't work. Here's the full output (sorry if it's too long).
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file /home/abc/.cache/vlc/plugins-04041e.dat
[00000001] main libvlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main libvlc debug: module bank initialized, found 271 modules
[00000001] main libvlc debug: opening config file (/home/abc/.config/vlc/vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000369] main interaction debug: thread started
[00000369] main interaction debug: thread 3080743824 (Interaction control) created at priority 0 (interface/interaction.c:382)
[00000371] main input debug: Creating an input for 'Media Library'
[00000371] main input debug: Input is a meta file: disabling unneeded options
[00000371] main input debug: `file/xspf-open:///home/abc/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/abc/.local/share/vlc/ml.xspf'
[00000371] main input debug: creating access 'file' path='/home/abc/.local/share/vlc/ml.xspf'
[00000372] main access debug: looking for access module: 3 candidates
[00000372] access_mmap access debug: opening file /home/abc/.local/share/vlc/ml.xspf
[00000372] main access debug: using access module "access_mmap"
[00000372] main access debug: TIMER module_Need() : 0.932 ms - Total 0.932 ms / 1 intvls (Avg 0.932 ms)
[00000376] main stream debug: Using AStream*Block
[00000376] main stream debug: pre buffering
[00000376] main stream debug: received first data for our buffer
[00000372] access_mmap access debug: at end of memory mapped file
[00000371] main input debug: creating demux: access='file' demux='xspf-open' path='/home/abc/.local/share/vlc/ml.xspf'
[00000377] main demux debug: looking for demux module: 1 candidate
[00000377] playlist demux debug: using XSPF playlist reader
[00000377] main demux debug: using demux module "playlist"
[00000377] main demux debug: TIMER module_Need() : 4.874 ms - Total 4.874 ms / 1 intvls (Avg 4.874 ms)
[00000371] main input debug: `file/xspf-open:///home/abc/.local/share/vlc/ml.xspf' successfully opened
[00000392] main xml debug: looking for xml module: 2 candidates
[00000392] main xml debug: using xml module "xml"
[00000392] main xml debug: TIMER module_Need() : 1.111 ms - Total 1.111 ms / 1 intvls (Avg 1.111 ms)
[00000372] access_mmap access debug: at end of memory mapped file
[00000377] playlist demux warning: invalid <playlist> attribute:"xmlns:vlc"
[00000377] playlist demux debug: parsed 0 tracks successfully
[00000392] main xml debug: removing module "xml"
[00000371] main input debug: EOF reached
[00000371] main input debug: control type=1
[00000377] main demux debug: removing module "playlist"
[00000372] main access debug: removing module "access_mmap"
[00000371] main input debug: TIMER input launching for 'Media Library' : 17.969 ms - Total 17.969 ms / 1 intvls (Avg 17.969 ms)
[00000394] main preparser debug: thread started
[00000394] main preparser debug: waiting for thread initialization
[00000394] main preparser debug: thread 3070794640 (preparser) created at priority 0 (playlist/thread.c:79)
[00000395] main fetcher debug: thread started
[00000395] main fetcher debug: waiting for thread initialization
[00000395] main fetcher debug: thread 3062401936 (fetcher) created at priority 0 (playlist/thread.c:108)
[00000370] main playlist debug: thread started
[00000370] main playlist debug: waiting for thread initialization
[00000370] main playlist debug: rebuilding array of current - root Playlist
[00000370] main playlist debug: rebuild done - 0 items, index -1
[00000370] main playlist debug: thread 3054009232 (playlist) created at priority 0 (playlist/thread.c:117)
[00000396] main interface debug: looking for interface module: 1 candidate
[00000396] main interface debug: using interface module "hotkeys"
[00000396] main interface debug: TIMER module_Need() : 0.377 ms - Total 0.377 ms / 1 intvls (Avg 0.377 ms)
[00000396] main interface debug: thread started
[00000396] main interface debug: thread 3045616528 (interface) created at priority 0 (interface/interface.c:168)
[00000398] main interface debug: looking for interface module: 1 candidate
[00000398] main interface debug: using interface module "inhibit"
[00000398] main interface debug: TIMER module_Need() : 3.026 ms - Total 3.026 ms / 1 intvls (Avg 3.026 ms)
[00000398] main interface debug: thread started
[00000398] main interface debug: thread 3037223824 (interface) created at priority 0 (interface/interface.c:168)
[00000400] main interface debug: looking for interface module: 1 candidate
[00000400] main interface debug: using interface module "screensaver"
[00000400] main interface debug: TIMER module_Need() : 0.327 ms - Total 0.327 ms / 1 intvls (Avg 0.327 ms)
[00000400] main interface debug: thread started
[00000400] main interface debug: thread 3028831120 (interface) created at priority 0 (interface/interface.c:168)
[00000370] main playlist debug: adding item `vtv32' ( rtmp://118.143.234.130/live/vtv32 )
[00000370] main playlist debug: rebuilding array of current - root Playlist
[00000370] main playlist debug: rebuild done - 1 items, index -1
[00000402] main interface debug: looking for interface module: 22 candidates
[00000402] main interface debug: using interface module "signals"
[00000402] main interface debug: TIMER module_Need() : 15.581 ms - Total 15.581 ms / 1 intvls (Avg 15.581 ms)
[00000402] main interface debug: thread started
[00000402] main interface debug: thread 3012045712 (interface) created at priority 0 (interface/interface.c:168)
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00000404] main interface debug: looking for interface module: 4 candidates
[00000404] main interface debug: using interface module "qt4"
[00000404] main interface debug: TIMER module_Need() : 47.521 ms - Total 47.521 ms / 1 intvls (Avg 47.521 ms)
[00000404] main interface debug: thread started
[00000404] main interface debug: thread 2985307024 (interface) created at priority 0 (interface/interface.c:168)
[00000370] main playlist debug: starting new item
[00000370] main playlist debug: processing request item null node Playlist skip 0
[00000370] main playlist debug: creating new input thread
[00000408] main input debug: Creating an input for 'vtv32'
[00000408] main input debug: thread started
[00000408] main input debug: waiting for thread initialization
[00000408] main input debug: `rtmp://118.143.234.130/live/vtv32' gives access `rtmp' demux `' path `118.143.234.130/live/vtv32'
[00000408] main input debug: creating demux: access='rtmp' demux='' path='118.143.234.130/live/vtv32'
[00000409] main demux debug: looking for access_demux module: 0 candidates
[00000409] main demux warning: no access_demux module matched "rtmp"
[00000409] main demux debug: TIMER module_Need() : 0.164 ms - Total 0.164 ms / 1 intvls (Avg 0.164 ms)
[00000408] main input debug: creating access 'rtmp' path='118.143.234.130/live/vtv32'
[00000410] main access debug: looking for access module: 1 candidate
[00000410] access_rtmp access debug: rtmp: host='118.143.234.130' port=1935 path='/live/vtv32'
[00000410] main access debug: net: connecting to 118.143.234.130 port 1935
[00000410] main access debug: connection: Operation now in progress
[00000408] main input debug: thread 2976668560 (input) created at priority 10 (input/input.c:370)
[00000410] main access debug: connection succeeded (socket = 12)
[00000412] main generic debug: thread started
[00000412] main generic debug: thread 2967452560 (rtmp control thread) created at priority 10 (access.c:212)
[00000412] access_rtmp generic debug: _error 1.0
[00000412] access_rtmp generic debug: null
[00000412] access_rtmp generic debug: object
[00000412] access_rtmp generic debug: key: level value: error
[00000412] access_rtmp generic debug: key: code value: NetConnection.Connect.Rejected
[00000412] access_rtmp generic debug: key: description value: Connection failed.
[00000412] access_rtmp generic debug: key: description value: [ Server.Reject ] : Rejecting connection from file:///mac.flv to rtmp://118.143.234.130/live/vtv32.
[00000412] access_rtmp generic debug: end of object
[00000412] access_rtmp generic debug: close 0.0
[00000412] access_rtmp generic debug: null
[00000404] qt4 interface debug: Error while initializing qt-specific localization
[00000404] qt4 interface debug: Updating the stream status: 3
Re: Problem saving stream (RTMP)
Posted: 04 Jan 2010 15:45
by VLC_help
Then the server rejects the connection for some reason.
Re: Problem saving stream (RTMP)
Posted: 04 Jan 2010 16:04
by duyle.vn
Then the server rejects the connection for some reason.
Is there a way we can see how and why the connection has been rejected? Since I tried to use another app to capture/download rtmp flash and it works fine with the website and the rtmp url, so I suspect whether or not the connection issue belongs to VLC. Please correct me if I'm wrong.
The download app:
http://www.how-to-capture-streaming-med ... reams.html
Re: Problem saving stream (RTMP)
Posted: 05 Jan 2010 14:43
by VLC_help
I am guessing the URL isn't enough but some additional data should be send to server.
Re: Problem saving stream (RTMP)
Posted: 05 Jan 2010 18:00
by duyle.vn
I think it's hard to tell how the connection is rejected by using Wireshark to sniff its traffic, since it seems the transmitted data is encrypted.
I downloaded and decompiled the server side player and can see its code (Action Script). I don't know if that helps since I don't have knowledge of the AS. But take a look if you have a chance, and hope you may find something. If so, please let me know.
The code:
http://jump.fm/WGCDF
Re: Problem saving stream (RTMP)
Posted: 07 Jan 2010 18:51
by VLC_help
I don't know if that helps since I don't have knowledge of the AS.
I haven't studied it either.
Re: Problem saving stream (RTMP)
Posted: 13 Jan 2010 23:05
by duyle.vn
Hi, I have a slightly related question, hence post it here instead of open another topic.
Suppose everything goes well, is the stream content temporally cached and stored as a file before it's streamed or it's just buffered in memory?
Thanks,
Re: Problem saving stream (RTMP)
Posted: 14 Jan 2010 18:56
by VLC_help
Suppose everything goes well, is the stream content temporally cached and stored as a file before it's streamed or it's just buffered in memory?
VLC doesn't cache to HD if that is what you asked.