Skip to content

Live Streaming how is supposed to work? #3

@GiuseppeP

Description

@GiuseppeP

I'm trying this project, it works fine for file sharing, but when I try to live streming I don't understand how should I send it the stream.

I run:
python3 PyPPSPP.py --tracker IP_tracker --livesrc
then in another shell (and with different UDP Port):
python3 PyPPSPP.py --tracker IP_tracker --live --swarmid ID_from_livesrc

I tried both TCP and UDP, but the results is:

[INFO] 2018-10-18 12:00:10,883 connection_made callback
[INFO] 2018-10-18 12:00:10,884 File found. Checking integrity
[WARNING] 2018-10-18 12:00:10,884 Given file test is empty!
[INFO] 2018-10-18 12:00:10,884 Root Hash calculation failed. Creating new file
[INFO] 2018-10-18 12:00:10,905 Created empty file and started chunk selection
[INFO] 2018-10-18 12:00:10,906 Created Swarm with ID: 192407989539a163bb7d61f185665b49b3666f1b; Our UUID: 004edef1-55b3-419a-b06b-f4a1b678d277
[WARNING] 2018-10-18 12:00:10,932 Received data from tracker for unknown swarm! Swarm ID:192407989539a163bb7d61f185665b49b3666f1b
*[ERROR] 2018-10-18 12:00:11,907 Exception in callback Swarm.ChunkRequest()
handle: <TimerHandle when=28588.194920896 Swarm.ChunkRequest()>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/events.py", line 125, in _run
self._callback(self._args)
File "/home/giuseppe/ppspp/PyPPSPP-master/PyPPSPP/Swarm.py", line 454, in ChunkRequest
raise AssertionError("Live Source and missing chunks!")
AssertionError: Live Source and missing chunks!

[INFO] 2018-10-18 12:00:13,908 # Have/Missing 0/27419; Down ch/s: 0; Speed up/down: 0/0 Bps; Members Known/Valid: 0/0

I have to sent the stream to the UDP port of livesrc or I have to pass it a standard MP4 file ? In this case it fail because in a live streaming the file change its size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions