Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 1.85 KB

testnet-rinkeby-b_ot.md

File metadata and controls

81 lines (52 loc) · 1.85 KB

GO-LIVEPEER RINKEBY TESTNET

  • Impersonate the livepeer user:
su - livepeer
  • Export the library path:
export LD_LIBRARY_PATH=/usr/local/lib/
  • Change into the go-livepeer directory:
cd "$HOME/go-livepeer"
  • Start a screen session for the broadcaster:
screen

Hit <ENTER> a few times to get to a command prompt.

  • Run the following command to start the broadcaster:
./livepeer -v 99 ./livepeer -network rinkeby -broadcaster -orchAddr 127.0.0.1:8935 -cliAddr 127.0.0.1:7936 -httpAddr 127.0.0.1:8936
  • Once the broadcaster is running, hold <CTRL> and type <A> then <D> to leave the screen session running in the background.

  • Start another screen session for the orchestrator / transcoder:

screen

Hit <ENTER> a few times to get to a command prompt.

  • Run the following command to start the orchestrator / transcoder:
./livepeer -v 99 -network rinkeby -orchestrator -transcoder -pricePerUnit 1 -nvidia 0 -initializeRound -serviceAddr 127.0.0.1:8935
  • Once the orchestrator / transcoder is running, hold <CTRL> and type <A> then <D> to leave the screen session running in the background.

--

  • At this point, you can log out if you like, or you can also log in with multiple windows if you wish to monitor both processes.

  • You can list the screen sessions with the command:

screen -x
  • To access the screen session, specify the session ID as an arg:
screen -x xxxx

You can always leave the screen session running in the background by holding <CTRL> and then typing <A> followed by <D>.

  • stream into port 1935 using ffmpeg
ffmpeg -re -stream_loop -1 -i SomeVideo.mp4 -c:a copy -c:v copy -f flv rtmp://localhost:1935/movie
  • playback from port 8935 using ffplay
ffplay http://localhost:8935/stream/movie.m3u8