View Single Post
  #2  
Old 05-09-2017, 03:32 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: Create rtmp link


There may be simpler way to get parameters than you did.

By the way, where from did you get that data?

This is what I got from rtmpdumphelper + rtmpdump & co:

command.txt:


rtmpdump -r "rtmp://media3.scctv.net/live"
-a "live"
-f "WIN 25,0,0,171"
-W "http://static2.sawlive.tv/player.swf"
-p "http://www.sawlive.tv/v/scctv"
--live
-y "scctv_300"
-o "2017-05-09_10-16-30_scctv_300.flv"


here is batch file I made out of that data:

rtmpdump -v -r "rtmp://media3.scctv.net/live" ^
-a "live" ^
-f "WIN 25,0,0,171" ^
-W "http://static2.sawlive.tv/player.swf" ^
-p "http://www.sawlive.tv/v/scctv" ^
-y "scctv_300"| ffplay -


and here is output from cmd window while I watch "Seattle Community Colleges Television":


C:\>rtmpdump -v -r "rtmp://media3.scctv.net/live" -a "live" -f "WIN 25,0,0,171" -W "http://static2.sawlive.tv/player.swf" -p "http://www.sawlive.tv/v/scctv" -y "scctv_300" | ffplay -
ffplay version 3.2.4 Copyright (c) 2003-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...0 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
Starting Live Streamfd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
INFO: Metadata:
INFO: presetname Custom
INFO: creationdate Mon May 8 10:17:50 2017
INFO: videodevice DVMC-DA2
INFO: framerate 29.97
INFO: width 640.00
INFO: height 480.00
INFO: videocodecid avc1
INFO: videodatarate 300.00
INFO: avclevel 31.00
INFO: avcprofile 66.00
INFO: videokeyframe_frequency 5.00
INFO: audiodevice First 2 channels
INFO: audiosamplerate 48000.00
INFO: audiochannels 2.00
INFO: audioinputvolume 75.00
INFO: audiocodecid mp4a
INFO: audiodatarate 96.00
[flv @ 04edd980] video stream discovered after head already parsed sq= 0B f=0/0
[flv @ 04edd980] audio stream discovered after head already parsed
Input #0, flv, from 'pipe:':aq= 0KB vq= 0KB sq= 0B f=0/0 B sq= 0B f=0/0
Metadata:
author :
copyright :
description :
keywords :
rating :
title :
presetname : Custom
creationdate : Mon May 8 10:17:50 2017
:
videodevice : DVMC-DA2
avclevel : 31
avcprofile : 66
videokeyframe_frequency: 5
audiodevice : First 2 channels
audiochannels : 2
audioinputvolume: 75
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p(tv, progressive), 640x480 [SAR 1:1 DAR 4:3], 30.30 fps, 29 tbr, 1k tbn, 59.94 tbc
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp
9.60 A-V: -0.008 fd= 0 aq= 19KB vq= 50KB sq= 0B f=0/0 1KB sq= 0B f=0/0


Here is rtmp stream:

http://www.sawlive.tv/v/scctv

here is not,

http://www.sawlive.tv/v/cbs-news

http://cbsnewshd-lh.akamaihd.net/z/C...g=LGHBCDVMCQZL
http://cbsnewshd-lh.akamaihd.net/i/C...g=LGHBCDVMCQZL
http://cbsnewshd-lh.akamaihd.net/i/C...1300&rebase=on
Reply With Quote