Home
[RDK Central Wiki]
CMF
[Code Releases]
I can trasfer the file recorded by recoder by following the parameter RDK fomulate like http://10.118.202.162:8081/vldms/dvr?rec_id=2017092917&segmentId=0
But I don't know how to transfer the file in same way,I see MediaUrl.cpp under rmfstreamer directory,this function bool MediaUrl::is_file_media() is not implemented yet
Can anyone answer it
6 Comments
Ganesh Sahu
Hi Pierce Wang,
From your query it seems you are looking to play any content from gateway (attached via a USB device) in a client device. Please elaborate more on this if this assumption is not correct.
Thanks
Ganesh
Unknown User (pwang01)
Your assumption is correct,I am looking to play content from gateway via USB device to any client device like VLC,Windows Media Player.In RMF_MediaStream.cpp::createSource this function,It define QAM ,TUNE,
DVB,DVR_Locator,etc,but I can't see it defines File_locator inside it.
Unknown User (pwang01)
Hi,get any update?
Ganesh Sahu
File locators can't be directly streamed, however in test environments we can map a file to Source ID and stream using HN Source. Let's take following scenario in a Raspberry Pi Hybrid platform where a MPEG2 transport stream is streamed.
modulation:8 frequency:252 /opt/www/received_spts1.ts 2007
<program sourceid="4701" carrier_frequency="252" modulation_mode="8" program_number="-1" virtual_channel_number="3"></program>
http://<IP_OF_RASPBERRYPI_GATEWAY>:8080/hnStreamStart?live=ocap://0x125d
Note: We need to have a MPEG2 licence for playing the content in Raspberry Pi.
Unknown User (pwang01)
Thanks for your reply !!!
Z-Jack Lin
Hi Ganesh:
Our environment is different from your instruction, so please refer to our successful live link and comment later. Thanks.
1. RDK (A Yocto Project 1.6 based Distro) 2.0 brcm97271ip-refboard ttyS0
brcm97271ip-refboard login: root (automatic login)
2, ,/
,'/___, BOLT v1.27 TTI BLS0 (STB-3771) version 1.0.0.1
.'__ ,' (2017-10-31 09:57:01 root@william-VirtualBox)
/,'
Board: BCM97271WLAN3771
SYS_CTRL: product=7271, family=7271b0, strap=00000c18,00000000
3.CPU: 4x B53 (64-bit) [420f1000] 1656 MHz
SCB: 486 MHz
SYSIF: 1104 MHz
DDR0 @ 1856MHz
4.
rdkv2.1_b17.1_20170504_moca2_docsis3.tgz
refsw_release_unified_20170329_3pip_tti.tgz
refsw_release_unified_20170329.tgz
5. no /usr/bin/tune.config or /opt/www/received_spts1.ts
6. one similar file which not provided by RDK
TunerConfigStart
name=BCMcommon
i2c_addr=0x68
type=DVBC
i2c_bus=3
gpio=56
inputband=1
parallel=0
use_spi=1
spi_index=1
TunerConfigEnd
7. Our live channel setup as below
(a) /etc/sidb.xml
<program sourceid="700" carrier_frequency="333" modulation_mode="32" program_number="700" bandwidth="6" symbol_rate="6900000" tuner_type="2" ca_pid1="0" ca_pid2="0" ca_pid3="0" />
(b) 700=HEX2BC & the code in DLNAServerMain.cpp
DLNAServerPrivate::on_Browse( GUPnPService *service, GUPnPServiceAction *action, gpointer user_data )
char *tempsourceid[] = { "3B9", "3BA", "32A", "2FB", "246", "2BC" };
for( int i= 0; i < 6; ++i )
{
http://127.0.0.1:8081/vldms/tuner?ocap_locator=ocap://0x1" (
sprintf( url, "http://%s:%s/vldms/tuner?ocap_locator=ocap://0x%s", g_ipAddrBuffer,
streamingPort.c_str(), tempsourceid[i]);
(c) Media player, VLC, smplayer can play content by using the following url.
http://192.168.100.101:8081/vldms/tuner?ocap_locator=ocap://0x2BC
################################################################
How should we create similar codes basing on your instructions and our environment? and only ts format can be used as streaming??
Open /usr/bin/tune.config and edit following line to point to desired file. (we can map multiple files in similar manner)
modulation:8 frequency:252 /opt/www/received_spts1.ts 2007
################################################################
Best regards
Jack