How to use a picture as the main screen in 24/7 youtube stream code?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hello, you can modify the video pathway to add the image like this. VIDEO_SOURCE="/home/ubuntu/image.jpg"
Hello, you can modify the video pathway to add the image like this.
See lesshello, I using this code: #! /bin/bash VBR="1500k" FPS="24" QUAL="superfast" YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" KEY="4bu8-ebf9-a0kt-wrz7-5xve" VIDEO_SOURCE="/home/user/in.jpg" AUDIO_SOURCE="http://37.102.101.202/radio/8000/radio.mp3" ffmpeg \ -re -f lavfi -i "movie=filename=$VIDEO_SOURCE:Read more
hello, I using this code:
#! /bin/bash
VBR=”1500k”
FPS=”24″
QUAL=”superfast”
YOUTUBE_URL=”rtmp://a.rtmp.youtube.com/live2″
KEY=”4bu8-ebf9-a0kt-wrz7-5xve”
VIDEO_SOURCE=”/home/user/in.jpg”
AUDIO_SOURCE=”http://37.102.101.202/radio/8000/radio.mp3″
ffmpeg \
-re -f lavfi -i “movie=filename=$VIDEO_SOURCE:loop=0, setpts=N/(FRAME_RATE*TB)” \
-thread_queue_size 512 -i “$AUDIO_SOURCE” \
-map 0:v:0 -map 1:a:0 \
-map_metadata:g 1:g \
-vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \
-acodec libmp3lame -ar 44100 -threads 6 -qscale:v 3 -b:a 320000 -bufsize 512k \
-f flv “$YOUTUBE_URL/$KEY”
But the stream is not work. Could you help me to check, I don’ t know how to fix it.
Thanks.
Hello dany, Please use GIF file and try it again. makesure your path is correct.
Hello dany, Please use GIF file and try it again. makesure your path is correct.
See lessThanks MinexTuts, I will try.
Thanks MinexTuts, I will try.
See less