FFmpeg streaming to youtube help needed for kids radio project
I have tried many codes but not one was fit for my needs so i am asking now for help, i have a video that i want to stream (with no audio on it) and desktop audio from the Pi (running Ubuntu Mate 16.04) as i would play the mp3's on vlc (or any other sugestions are welcome as i would use vlc only because it has repeat and shufle)
The kids radio stream is already live but as its a non profit project my Desktop windows mashine is eating to much money by running 24/7 so i got me the Pi3b+ for this job.
Thanks in advance
Ivan
Happy Pi Owner
ffmpeg ubuntu-mate youtube raspberrypi streaming
|
show 7 more comments
I have tried many codes but not one was fit for my needs so i am asking now for help, i have a video that i want to stream (with no audio on it) and desktop audio from the Pi (running Ubuntu Mate 16.04) as i would play the mp3's on vlc (or any other sugestions are welcome as i would use vlc only because it has repeat and shufle)
The kids radio stream is already live but as its a non profit project my Desktop windows mashine is eating to much money by running 24/7 so i got me the Pi3b+ for this job.
Thanks in advance
Ivan
Happy Pi Owner
ffmpeg ubuntu-mate youtube raspberrypi streaming
update with this code i got the stream running with low CPU usage : $ ffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX will try to implement the desktop audio now...
– Ivan Bombash Stokic
Mar 14 at 11:39
You could try pavucontrol if you're using pulseaudio.
– llogan
Mar 14 at 17:33
have pavucontrol installed but cant get the code to run...
– Ivan Bombash Stokic
Mar 14 at 20:33
ffmpeg -re -stream_loop -1 -f pulse -i default -y flv -ar 11025 -acodec libmp3lame -ab 320k ouput.mp3 -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX and i get this error [NULL @ 0x12e7c20] Unable to find a suitable output format for 'flv' flv: Invalid argument
– Ivan Bombash Stokic
Mar 14 at 20:34
Tryffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -f pulse -i default -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX
– llogan
Mar 14 at 20:44
|
show 7 more comments
I have tried many codes but not one was fit for my needs so i am asking now for help, i have a video that i want to stream (with no audio on it) and desktop audio from the Pi (running Ubuntu Mate 16.04) as i would play the mp3's on vlc (or any other sugestions are welcome as i would use vlc only because it has repeat and shufle)
The kids radio stream is already live but as its a non profit project my Desktop windows mashine is eating to much money by running 24/7 so i got me the Pi3b+ for this job.
Thanks in advance
Ivan
Happy Pi Owner
ffmpeg ubuntu-mate youtube raspberrypi streaming
I have tried many codes but not one was fit for my needs so i am asking now for help, i have a video that i want to stream (with no audio on it) and desktop audio from the Pi (running Ubuntu Mate 16.04) as i would play the mp3's on vlc (or any other sugestions are welcome as i would use vlc only because it has repeat and shufle)
The kids radio stream is already live but as its a non profit project my Desktop windows mashine is eating to much money by running 24/7 so i got me the Pi3b+ for this job.
Thanks in advance
Ivan
Happy Pi Owner
ffmpeg ubuntu-mate youtube raspberrypi streaming
ffmpeg ubuntu-mate youtube raspberrypi streaming
asked Mar 14 at 9:00
Ivan Bombash StokicIvan Bombash Stokic
63
63
update with this code i got the stream running with low CPU usage : $ ffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX will try to implement the desktop audio now...
– Ivan Bombash Stokic
Mar 14 at 11:39
You could try pavucontrol if you're using pulseaudio.
– llogan
Mar 14 at 17:33
have pavucontrol installed but cant get the code to run...
– Ivan Bombash Stokic
Mar 14 at 20:33
ffmpeg -re -stream_loop -1 -f pulse -i default -y flv -ar 11025 -acodec libmp3lame -ab 320k ouput.mp3 -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX and i get this error [NULL @ 0x12e7c20] Unable to find a suitable output format for 'flv' flv: Invalid argument
– Ivan Bombash Stokic
Mar 14 at 20:34
Tryffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -f pulse -i default -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX
– llogan
Mar 14 at 20:44
|
show 7 more comments
update with this code i got the stream running with low CPU usage : $ ffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX will try to implement the desktop audio now...
– Ivan Bombash Stokic
Mar 14 at 11:39
You could try pavucontrol if you're using pulseaudio.
– llogan
Mar 14 at 17:33
have pavucontrol installed but cant get the code to run...
– Ivan Bombash Stokic
Mar 14 at 20:33
ffmpeg -re -stream_loop -1 -f pulse -i default -y flv -ar 11025 -acodec libmp3lame -ab 320k ouput.mp3 -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX and i get this error [NULL @ 0x12e7c20] Unable to find a suitable output format for 'flv' flv: Invalid argument
– Ivan Bombash Stokic
Mar 14 at 20:34
Tryffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -f pulse -i default -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX
– llogan
Mar 14 at 20:44
update with this code i got the stream running with low CPU usage : $ ffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX will try to implement the desktop audio now...
– Ivan Bombash Stokic
Mar 14 at 11:39
update with this code i got the stream running with low CPU usage : $ ffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX will try to implement the desktop audio now...
– Ivan Bombash Stokic
Mar 14 at 11:39
You could try pavucontrol if you're using pulseaudio.
– llogan
Mar 14 at 17:33
You could try pavucontrol if you're using pulseaudio.
– llogan
Mar 14 at 17:33
have pavucontrol installed but cant get the code to run...
– Ivan Bombash Stokic
Mar 14 at 20:33
have pavucontrol installed but cant get the code to run...
– Ivan Bombash Stokic
Mar 14 at 20:33
ffmpeg -re -stream_loop -1 -f pulse -i default -y flv -ar 11025 -acodec libmp3lame -ab 320k ouput.mp3 -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX and i get this error [NULL @ 0x12e7c20] Unable to find a suitable output format for 'flv' flv: Invalid argument
– Ivan Bombash Stokic
Mar 14 at 20:34
ffmpeg -re -stream_loop -1 -f pulse -i default -y flv -ar 11025 -acodec libmp3lame -ab 320k ouput.mp3 -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX and i get this error [NULL @ 0x12e7c20] Unable to find a suitable output format for 'flv' flv: Invalid argument
– Ivan Bombash Stokic
Mar 14 at 20:34
Try
ffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -f pulse -i default -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX
– llogan
Mar 14 at 20:44
Try
ffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -f pulse -i default -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX
– llogan
Mar 14 at 20:44
|
show 7 more comments
1 Answer
1
active
oldest
votes
Streaming the file in a loop with desktop audio to youtube works. Thanks to all!
ffmpeg -re -f alsa -i default -re -stream_loop -1 -i "/home/pi/Documents/Youtube/video720p.mp4" -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-xxxx
ffmpeg version 4.1, if you have a older ffmpeg version the loop command may not work...
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1125546%2fffmpeg-streaming-to-youtube-help-needed-for-kids-radio-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Streaming the file in a loop with desktop audio to youtube works. Thanks to all!
ffmpeg -re -f alsa -i default -re -stream_loop -1 -i "/home/pi/Documents/Youtube/video720p.mp4" -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-xxxx
ffmpeg version 4.1, if you have a older ffmpeg version the loop command may not work...
New contributor
add a comment |
Streaming the file in a loop with desktop audio to youtube works. Thanks to all!
ffmpeg -re -f alsa -i default -re -stream_loop -1 -i "/home/pi/Documents/Youtube/video720p.mp4" -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-xxxx
ffmpeg version 4.1, if you have a older ffmpeg version the loop command may not work...
New contributor
add a comment |
Streaming the file in a loop with desktop audio to youtube works. Thanks to all!
ffmpeg -re -f alsa -i default -re -stream_loop -1 -i "/home/pi/Documents/Youtube/video720p.mp4" -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-xxxx
ffmpeg version 4.1, if you have a older ffmpeg version the loop command may not work...
New contributor
Streaming the file in a loop with desktop audio to youtube works. Thanks to all!
ffmpeg -re -f alsa -i default -re -stream_loop -1 -i "/home/pi/Documents/Youtube/video720p.mp4" -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-xxxx
ffmpeg version 4.1, if you have a older ffmpeg version the loop command may not work...
New contributor
New contributor
answered 2 days ago
Ivan Bombash StokicIvan Bombash Stokic
63
63
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1125546%2fffmpeg-streaming-to-youtube-help-needed-for-kids-radio-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
update with this code i got the stream running with low CPU usage : $ ffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX will try to implement the desktop audio now...
– Ivan Bombash Stokic
Mar 14 at 11:39
You could try pavucontrol if you're using pulseaudio.
– llogan
Mar 14 at 17:33
have pavucontrol installed but cant get the code to run...
– Ivan Bombash Stokic
Mar 14 at 20:33
ffmpeg -re -stream_loop -1 -f pulse -i default -y flv -ar 11025 -acodec libmp3lame -ab 320k ouput.mp3 -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -c copy -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX and i get this error [NULL @ 0x12e7c20] Unable to find a suitable output format for 'flv' flv: Invalid argument
– Ivan Bombash Stokic
Mar 14 at 20:34
Try
ffmpeg -re -stream_loop -1 -i /home/pi/Documents/Youtube/video.mp4 -f pulse -i default -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-XXXX
– llogan
Mar 14 at 20:44