Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

No errors, not working #62

Closed
Closed

Description

@samdev-7

Describe the bug
My code

import pylivestream.api as stream
stream.stream_file(ini_file="config.ini", video_file="video.mp4", websites=["youtube"])

Output:

Press Enter to go live on ['youtube'],looping file video.mp4
Or Ctrl C to abort.

 ffmpeg -loglevel error -re -i video.mp4 -codec:v libx264 -pix_fmt yuv420p -preset veryfast -b:v 20000k -g 120.0 -codec:a aac -b:a 128k -ar 44100 -m
axrate 20000k -bufsize 10000k -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/<private key>

Then nothing happens...
System Parameters

  • Operating system (Linux, Mac, Windows)
    Linux
  • FFmpeg version
    ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers

Activity

  1. scivision commented on Nov 15, 2020

    @scivision
    Owner

    Note: please refresh/change your YouTube Live stream id as pasting it here means anyone can copy your key and stream anything on your Youtube Live (!)

    It could be that the YouTube Live stream key was not correct. Please try copy and pasting that FFmpeg command into your Terminal and see what results. That's in effect the same thing PyLivestream does

  2. scivision commented on Nov 15, 2020

    @scivision
    Owner

    If the stream key is not correct, there will be no errors. YouTube or other service provider just silently discards your RTMP packets from FFmpeg, so FFmpeg doesn't know something is wrong, and so neither does PyLivestream.

  3. samdev-7 commented on Nov 16, 2020

    @samdev-7
    Author

    I confirm that my stream key is correct, i tested the same key with pure ffmpeg and it works.

  4. Repository owner locked and limited conversation to collaborators on Dec 1, 2022
  5. converted this issue into a discussion #99 on Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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