FFmpeg capture RTSP stream only audio, black screen
I have a Foscam IP camera for which i have access to the RTSP address.
If i use VLC, the stream is working fine.
I wanted to capture it using FFmpeg, using the command ffmpeg -i <address> -codec copy -t 10 out.mov
. All i get though is audio with a black screen.
From the logs i get
Input file #0 (rtsp://*:554/videoMain):
Input stream #0:0 (video): 226 packets read (2300933 bytes);
Input stream #0:1 (audio): 169 packets read (81120 bytes);
Total: 395 packets (2382053 bytes) demuxed
Output file #0 (camera.mov):
Output stream #0:0 (video): 1 packets muxed (81865 bytes);
Output stream #0:1 (audio): 168 packets muxed (80640 bytes);
Total: 169 packets (162505 bytes) muxed
0 frames successfully decoded, 0 decoding errors
So, i don't know why only 1 packet gets muxed from the video stream.
Anyone had this issue?
ffmpeg streaming ip-camera rtsp
add a comment |
I have a Foscam IP camera for which i have access to the RTSP address.
If i use VLC, the stream is working fine.
I wanted to capture it using FFmpeg, using the command ffmpeg -i <address> -codec copy -t 10 out.mov
. All i get though is audio with a black screen.
From the logs i get
Input file #0 (rtsp://*:554/videoMain):
Input stream #0:0 (video): 226 packets read (2300933 bytes);
Input stream #0:1 (audio): 169 packets read (81120 bytes);
Total: 395 packets (2382053 bytes) demuxed
Output file #0 (camera.mov):
Output stream #0:0 (video): 1 packets muxed (81865 bytes);
Output stream #0:1 (audio): 168 packets muxed (80640 bytes);
Total: 169 packets (162505 bytes) muxed
0 frames successfully decoded, 0 decoding errors
So, i don't know why only 1 packet gets muxed from the video stream.
Anyone had this issue?
ffmpeg streaming ip-camera rtsp
Which codec does the camera use? Quicktime (.mov) does not support all codecs.
– Eugen Rieck
Jan 26 at 21:05
Share full log.
– Gyan
Jan 27 at 5:01
@EugenRieck i forgot to mention that i actually had it going once, and .mov worked just fine. Recently i discovered that ommiting the -t option will make it work but i need to stop it manually.
– user3808318
Jan 27 at 7:41
@Gyan pastebin.com/ybPUb5Md
– user3808318
Jan 27 at 7:41
Looks like a very large GOP ... try-t 60
and report back
– Eugen Rieck
Jan 27 at 9:31
add a comment |
I have a Foscam IP camera for which i have access to the RTSP address.
If i use VLC, the stream is working fine.
I wanted to capture it using FFmpeg, using the command ffmpeg -i <address> -codec copy -t 10 out.mov
. All i get though is audio with a black screen.
From the logs i get
Input file #0 (rtsp://*:554/videoMain):
Input stream #0:0 (video): 226 packets read (2300933 bytes);
Input stream #0:1 (audio): 169 packets read (81120 bytes);
Total: 395 packets (2382053 bytes) demuxed
Output file #0 (camera.mov):
Output stream #0:0 (video): 1 packets muxed (81865 bytes);
Output stream #0:1 (audio): 168 packets muxed (80640 bytes);
Total: 169 packets (162505 bytes) muxed
0 frames successfully decoded, 0 decoding errors
So, i don't know why only 1 packet gets muxed from the video stream.
Anyone had this issue?
ffmpeg streaming ip-camera rtsp
I have a Foscam IP camera for which i have access to the RTSP address.
If i use VLC, the stream is working fine.
I wanted to capture it using FFmpeg, using the command ffmpeg -i <address> -codec copy -t 10 out.mov
. All i get though is audio with a black screen.
From the logs i get
Input file #0 (rtsp://*:554/videoMain):
Input stream #0:0 (video): 226 packets read (2300933 bytes);
Input stream #0:1 (audio): 169 packets read (81120 bytes);
Total: 395 packets (2382053 bytes) demuxed
Output file #0 (camera.mov):
Output stream #0:0 (video): 1 packets muxed (81865 bytes);
Output stream #0:1 (audio): 168 packets muxed (80640 bytes);
Total: 169 packets (162505 bytes) muxed
0 frames successfully decoded, 0 decoding errors
So, i don't know why only 1 packet gets muxed from the video stream.
Anyone had this issue?
ffmpeg streaming ip-camera rtsp
ffmpeg streaming ip-camera rtsp
asked Jan 26 at 19:55
user3808318user3808318
1
1
Which codec does the camera use? Quicktime (.mov) does not support all codecs.
– Eugen Rieck
Jan 26 at 21:05
Share full log.
– Gyan
Jan 27 at 5:01
@EugenRieck i forgot to mention that i actually had it going once, and .mov worked just fine. Recently i discovered that ommiting the -t option will make it work but i need to stop it manually.
– user3808318
Jan 27 at 7:41
@Gyan pastebin.com/ybPUb5Md
– user3808318
Jan 27 at 7:41
Looks like a very large GOP ... try-t 60
and report back
– Eugen Rieck
Jan 27 at 9:31
add a comment |
Which codec does the camera use? Quicktime (.mov) does not support all codecs.
– Eugen Rieck
Jan 26 at 21:05
Share full log.
– Gyan
Jan 27 at 5:01
@EugenRieck i forgot to mention that i actually had it going once, and .mov worked just fine. Recently i discovered that ommiting the -t option will make it work but i need to stop it manually.
– user3808318
Jan 27 at 7:41
@Gyan pastebin.com/ybPUb5Md
– user3808318
Jan 27 at 7:41
Looks like a very large GOP ... try-t 60
and report back
– Eugen Rieck
Jan 27 at 9:31
Which codec does the camera use? Quicktime (.mov) does not support all codecs.
– Eugen Rieck
Jan 26 at 21:05
Which codec does the camera use? Quicktime (.mov) does not support all codecs.
– Eugen Rieck
Jan 26 at 21:05
Share full log.
– Gyan
Jan 27 at 5:01
Share full log.
– Gyan
Jan 27 at 5:01
@EugenRieck i forgot to mention that i actually had it going once, and .mov worked just fine. Recently i discovered that ommiting the -t option will make it work but i need to stop it manually.
– user3808318
Jan 27 at 7:41
@EugenRieck i forgot to mention that i actually had it going once, and .mov worked just fine. Recently i discovered that ommiting the -t option will make it work but i need to stop it manually.
– user3808318
Jan 27 at 7:41
@Gyan pastebin.com/ybPUb5Md
– user3808318
Jan 27 at 7:41
@Gyan pastebin.com/ybPUb5Md
– user3808318
Jan 27 at 7:41
Looks like a very large GOP ... try
-t 60
and report back– Eugen Rieck
Jan 27 at 9:31
Looks like a very large GOP ... try
-t 60
and report back– Eugen Rieck
Jan 27 at 9:31
add a comment |
0
active
oldest
votes
Your Answer
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%2f1398790%2fffmpeg-capture-rtsp-stream-only-audio-black-screen%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f1398790%2fffmpeg-capture-rtsp-stream-only-audio-black-screen%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
Which codec does the camera use? Quicktime (.mov) does not support all codecs.
– Eugen Rieck
Jan 26 at 21:05
Share full log.
– Gyan
Jan 27 at 5:01
@EugenRieck i forgot to mention that i actually had it going once, and .mov worked just fine. Recently i discovered that ommiting the -t option will make it work but i need to stop it manually.
– user3808318
Jan 27 at 7:41
@Gyan pastebin.com/ybPUb5Md
– user3808318
Jan 27 at 7:41
Looks like a very large GOP ... try
-t 60
and report back– Eugen Rieck
Jan 27 at 9:31