I’m having an issue streaming due to either the internet speed or the high resolution of the video, so I decided to change it to an image with a picture. Please teach me what code should I replace from the circled area I made of the pic I uploaded. I’ve already uploaded my image to my server, and know the route. So just need to know what code should I change to. I think this will also help loads of people having the same streaming issue. Thanks.
How do I use an image to do the VPS youtube live streaming? What code should I change from the tutorial?
Share
for some reason I can't see the pic I uploaded.
for some reason I can’t see the pic I uploaded.
See lessSorry for this site issue, it is due to browser level cashing of the site. We are try to fix that soon as possible. You can easily add the image file using the same script. Only you have to do change the file format for video path. VIDEO_SOURCE="/home/ubuntu/live 2.gif" You can use GIF, JPG, PNG forRead more
Sorry for this site issue, it is due to browser level cashing of the site. We are try to fix that soon as possible.
You can easily add the image file using the same script. Only you have to do change the file format for video path.
VIDEO_SOURCE="/home/ubuntu/live 2.gif"
You can use GIF, JPG, PNG format to replace the video path from an image.
See lessThe pic I uploaded disappeared, so i will do it again here.
The pic I uploaded disappeared, so i will do it again here.
See lessThank you, but I've changed it to VIDEO_SOURCE="/home/ubuntu/water-815271_1920.jpg" but what I've got is here listed below. chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1Read more
Thank you, but I’ve changed it to
VIDEO_SOURCE=”/home/ubuntu/water-815271_1920.jpg”
but what I’ve got is here listed below.
chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=48 keyint_min=4 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1500 vbv_bufsize=512 nal_hrd=none filler=0 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, flv, to ‘rtmp://a.rtmp.youtube.com/live2/va7t-dw08-qqka-5sg1-036t’:
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
encoder : Lavf58.29.100
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1920×1218 [SAR 1:1 DAR 320:203], q=-1–1, 1500 kb/s, 24 fps, 1k tbn, 24 tbc
Metadata:
encoder : Lavc58.54.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/1500000 buffer size: 512000 vbv_delay: -1
Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, stereo, fltp, 320 kb/s
Metadata:
encoder : Lavc58.54.100 libmp3lame
Can you try to use gif file instead of jpg? I tested that using gif image file.
Can you try to use gif file instead of jpg? I tested that using gif image file.
See lessWow that was strange. I just wrote an extremely long comment but after I clicked submit my comment didn't show up. Grrrr... well I'm not writing all that over again. Regardless, just wanted to say excellent blog!
Wow that was strange. I just wrote an extremely long comment but after I clicked
See lesssubmit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Regardless, just wanted to
say excellent blog!
Thank you for your great comment. This site has some issue of the cashing. Sorry for the unpleasant experience you have to face.
Thank you for your great comment. This site has some issue of the cashing. Sorry for the unpleasant experience you have to face.
See lessUpdate: I resolved it by lower the bitrate and it's that easy. Hope this help.
Update: I resolved it by lower the bitrate and it’s that easy. Hope this help.
See lessI just converted my file to .png. It looked like it was working, but the stream stopped before I check my video streaming. Then I tried to open my putty again and it didn't work since then, I'm now still trying to figure out why, sorry to cause this loads of questions, but I truly believe that it wiRead more
I just converted my file to .png. It looked like it was working, but the stream stopped before I check my video streaming. Then I tried to open my putty again and it didn’t work since then, I’m now still trying to figure out why, sorry to cause this loads of questions, but I truly believe that it will also help others. Thanks a lot.
See lessI restarted my vps and this time it worked, however, I'm still experiencing the "poor" connection status and "YouTube is not receiving enough video to maintain smooth streaming. As such, viewers will experience buffering." So it is still lagging and not able to run smoothly. I guess it's not about tRead more
I restarted my vps and this time it worked, however, I’m still experiencing the “poor” connection status and “YouTube is not receiving enough video to maintain smooth streaming. As such, viewers will experience buffering.”
So it is still lagging and not able to run smoothly. I guess it’s not about the video resolution, cause a png doesn’t take up much of the speed. Then somehow it was too slow and even showed “no data” then ended the stream automatically.
The script should be update. I will give updated version of the script when i finished the testing of the script.
The script should be update. I will give updated version of the script when i finished the testing of the script.
See less