Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No errors, not working #62

Closed
samdev-7 opened this issue Nov 14, 2020 · 3 comments
Closed

No errors, not working #62

samdev-7 opened this issue Nov 14, 2020 · 3 comments

Comments

@samdev-7
Copy link

samdev-7 commented Nov 14, 2020

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
@scivision
Copy link
Owner

scivision commented Nov 15, 2020

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

@scivision
Copy link
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.

@samdev-7
Copy link
Author

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

@scivision scivision reopened this Nov 16, 2020
Repository owner locked and limited conversation to collaborators Dec 1, 2022
@scivision scivision converted this issue into discussion #99 Dec 1, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants