FFmpeg: Tee Muxer not saving a local copy
Tee Muxer is this very awesome feature but has a minimal amount of documentation and examples to help explain it.
I am trying to stream to multiple streaming servers (Facebook & Youtube for now) and save a local copy, it streamed to Facebook but I have two problems here:
1- I can't save a local copy of the live stream to a custom location
2- YouTube isn't receiving my video saying that it's 65kx65k pixels as shown in this picture.
Note: I doubt there's a problem in filter_complex because it used to save locally before live-streaming through tee mux.
This is my command, I'll paste it almost as it is so that you can tell where's the issue:
ffmpeg -f dshow -i video="video-input-device":audio="audio-input-device"
-i "logo.png"
-filter_complex "crop=1360:768:0:0[cropped];[cropped]pad=ceil(iw/2)*2:ceil(ih/2)*2[scaledagain];[scaledagain]scale=1360x768[unscaled];[unscaled]scale=1280:-2,overlay=0:0[output]"
-c:a aac -strict experimental -ab 128k -ac 2 -ar 44100 -bt 500k
-c:v libx264 -preset ultrafast -tune zerolatency -b:v 1500K -bufsize 750K -minrate 1000K -maxrate 2000K -framerate 30 -threads 0
-f tee -map [output] -map 0:a "C:UsersUserDesktopoutput.flv|[f=flv]youtubeRtmpLink/key|[f=flv]facebookRtmpLink/key"
Is there any workaround the problem of a local copy in a custom location?
Thank you so much for your time and help.
ffmpeg streaming
add a comment |
Tee Muxer is this very awesome feature but has a minimal amount of documentation and examples to help explain it.
I am trying to stream to multiple streaming servers (Facebook & Youtube for now) and save a local copy, it streamed to Facebook but I have two problems here:
1- I can't save a local copy of the live stream to a custom location
2- YouTube isn't receiving my video saying that it's 65kx65k pixels as shown in this picture.
Note: I doubt there's a problem in filter_complex because it used to save locally before live-streaming through tee mux.
This is my command, I'll paste it almost as it is so that you can tell where's the issue:
ffmpeg -f dshow -i video="video-input-device":audio="audio-input-device"
-i "logo.png"
-filter_complex "crop=1360:768:0:0[cropped];[cropped]pad=ceil(iw/2)*2:ceil(ih/2)*2[scaledagain];[scaledagain]scale=1360x768[unscaled];[unscaled]scale=1280:-2,overlay=0:0[output]"
-c:a aac -strict experimental -ab 128k -ac 2 -ar 44100 -bt 500k
-c:v libx264 -preset ultrafast -tune zerolatency -b:v 1500K -bufsize 750K -minrate 1000K -maxrate 2000K -framerate 30 -threads 0
-f tee -map [output] -map 0:a "C:UsersUserDesktopoutput.flv|[f=flv]youtubeRtmpLink/key|[f=flv]facebookRtmpLink/key"
Is there any workaround the problem of a local copy in a custom location?
Thank you so much for your time and help.
ffmpeg streaming
add a comment |
Tee Muxer is this very awesome feature but has a minimal amount of documentation and examples to help explain it.
I am trying to stream to multiple streaming servers (Facebook & Youtube for now) and save a local copy, it streamed to Facebook but I have two problems here:
1- I can't save a local copy of the live stream to a custom location
2- YouTube isn't receiving my video saying that it's 65kx65k pixels as shown in this picture.
Note: I doubt there's a problem in filter_complex because it used to save locally before live-streaming through tee mux.
This is my command, I'll paste it almost as it is so that you can tell where's the issue:
ffmpeg -f dshow -i video="video-input-device":audio="audio-input-device"
-i "logo.png"
-filter_complex "crop=1360:768:0:0[cropped];[cropped]pad=ceil(iw/2)*2:ceil(ih/2)*2[scaledagain];[scaledagain]scale=1360x768[unscaled];[unscaled]scale=1280:-2,overlay=0:0[output]"
-c:a aac -strict experimental -ab 128k -ac 2 -ar 44100 -bt 500k
-c:v libx264 -preset ultrafast -tune zerolatency -b:v 1500K -bufsize 750K -minrate 1000K -maxrate 2000K -framerate 30 -threads 0
-f tee -map [output] -map 0:a "C:UsersUserDesktopoutput.flv|[f=flv]youtubeRtmpLink/key|[f=flv]facebookRtmpLink/key"
Is there any workaround the problem of a local copy in a custom location?
Thank you so much for your time and help.
ffmpeg streaming
Tee Muxer is this very awesome feature but has a minimal amount of documentation and examples to help explain it.
I am trying to stream to multiple streaming servers (Facebook & Youtube for now) and save a local copy, it streamed to Facebook but I have two problems here:
1- I can't save a local copy of the live stream to a custom location
2- YouTube isn't receiving my video saying that it's 65kx65k pixels as shown in this picture.
Note: I doubt there's a problem in filter_complex because it used to save locally before live-streaming through tee mux.
This is my command, I'll paste it almost as it is so that you can tell where's the issue:
ffmpeg -f dshow -i video="video-input-device":audio="audio-input-device"
-i "logo.png"
-filter_complex "crop=1360:768:0:0[cropped];[cropped]pad=ceil(iw/2)*2:ceil(ih/2)*2[scaledagain];[scaledagain]scale=1360x768[unscaled];[unscaled]scale=1280:-2,overlay=0:0[output]"
-c:a aac -strict experimental -ab 128k -ac 2 -ar 44100 -bt 500k
-c:v libx264 -preset ultrafast -tune zerolatency -b:v 1500K -bufsize 750K -minrate 1000K -maxrate 2000K -framerate 30 -threads 0
-f tee -map [output] -map 0:a "C:UsersUserDesktopoutput.flv|[f=flv]youtubeRtmpLink/key|[f=flv]facebookRtmpLink/key"
Is there any workaround the problem of a local copy in a custom location?
Thank you so much for your time and help.
ffmpeg streaming
ffmpeg streaming
edited Jan 25 at 17:29
Sano
asked Jan 25 at 17:11
SanoSano
145
145
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Add -flags +global_header
as the tee docs say.
And for local saving, escape the path elements
"C:UsersUserDesktopoutput.flv"
--> "C:\Users\User\Desktop\output.flv"
Man you're a life saver, thank you so much for your contribution for ffmpeg students and the community, it worked, even for youtube somehow
– Sano
Jan 25 at 17:44
add a comment |
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1398482%2fffmpeg-tee-muxer-not-saving-a-local-copy%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
Add -flags +global_header
as the tee docs say.
And for local saving, escape the path elements
"C:UsersUserDesktopoutput.flv"
--> "C:\Users\User\Desktop\output.flv"
Man you're a life saver, thank you so much for your contribution for ffmpeg students and the community, it worked, even for youtube somehow
– Sano
Jan 25 at 17:44
add a comment |
Add -flags +global_header
as the tee docs say.
And for local saving, escape the path elements
"C:UsersUserDesktopoutput.flv"
--> "C:\Users\User\Desktop\output.flv"
Man you're a life saver, thank you so much for your contribution for ffmpeg students and the community, it worked, even for youtube somehow
– Sano
Jan 25 at 17:44
add a comment |
Add -flags +global_header
as the tee docs say.
And for local saving, escape the path elements
"C:UsersUserDesktopoutput.flv"
--> "C:\Users\User\Desktop\output.flv"
Add -flags +global_header
as the tee docs say.
And for local saving, escape the path elements
"C:UsersUserDesktopoutput.flv"
--> "C:\Users\User\Desktop\output.flv"
answered Jan 25 at 17:39
GyanGyan
15.7k21847
15.7k21847
Man you're a life saver, thank you so much for your contribution for ffmpeg students and the community, it worked, even for youtube somehow
– Sano
Jan 25 at 17:44
add a comment |
Man you're a life saver, thank you so much for your contribution for ffmpeg students and the community, it worked, even for youtube somehow
– Sano
Jan 25 at 17:44
Man you're a life saver, thank you so much for your contribution for ffmpeg students and the community, it worked, even for youtube somehow
– Sano
Jan 25 at 17:44
Man you're a life saver, thank you so much for your contribution for ffmpeg students and the community, it worked, even for youtube somehow
– Sano
Jan 25 at 17:44
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1398482%2fffmpeg-tee-muxer-not-saving-a-local-copy%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