ffmpeg meets unknow timestamps error
I use ffmpeg concat to merge multiple ts files, I use following command
ffmpeg -y -f concat -i filelist.txt -c copy output.mkv
all ts files' path is put in filelist.txt, most of time it runs well, but when processing some ts files, ffmpeg gives following errors
[matroska @ 044bf9c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 044bf9c0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
I guess the error is caused by those ts files missing timestamps? but since error message said "deprecated and will stop working in the future", so my question is Currently if there is a way or some ffmpeg command flags to suppress this error and just merge those ts files without reencoding, Thanks!
ffmpeg
add a comment |
I use ffmpeg concat to merge multiple ts files, I use following command
ffmpeg -y -f concat -i filelist.txt -c copy output.mkv
all ts files' path is put in filelist.txt, most of time it runs well, but when processing some ts files, ffmpeg gives following errors
[matroska @ 044bf9c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 044bf9c0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
I guess the error is caused by those ts files missing timestamps? but since error message said "deprecated and will stop working in the future", so my question is Currently if there is a way or some ffmpeg command flags to suppress this error and just merge those ts files without reencoding, Thanks!
ffmpeg
1
Output to MP4 and then remux that to MKV.
– Gyan
Dec 16 '18 at 10:07
Thanks! Does that need reencoding? I want to do this job without reencoding
– J1B
Dec 17 '18 at 6:14
No re-encoding.
– Gyan
Dec 17 '18 at 7:33
Thanks again, I tried, the file is merged, but "[mp4 @ 03e4eba0] pts has no value" this error message repeated a lot , Is it caused by timestamp error, Does it affect output file?
– J1B
Dec 17 '18 at 8:49
Most of the time, no.
– Gyan
Dec 17 '18 at 8:49
add a comment |
I use ffmpeg concat to merge multiple ts files, I use following command
ffmpeg -y -f concat -i filelist.txt -c copy output.mkv
all ts files' path is put in filelist.txt, most of time it runs well, but when processing some ts files, ffmpeg gives following errors
[matroska @ 044bf9c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 044bf9c0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
I guess the error is caused by those ts files missing timestamps? but since error message said "deprecated and will stop working in the future", so my question is Currently if there is a way or some ffmpeg command flags to suppress this error and just merge those ts files without reencoding, Thanks!
ffmpeg
I use ffmpeg concat to merge multiple ts files, I use following command
ffmpeg -y -f concat -i filelist.txt -c copy output.mkv
all ts files' path is put in filelist.txt, most of time it runs well, but when processing some ts files, ffmpeg gives following errors
[matroska @ 044bf9c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 044bf9c0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
I guess the error is caused by those ts files missing timestamps? but since error message said "deprecated and will stop working in the future", so my question is Currently if there is a way or some ffmpeg command flags to suppress this error and just merge those ts files without reencoding, Thanks!
ffmpeg
ffmpeg
edited Dec 17 '18 at 6:15
J1B
asked Dec 16 '18 at 1:38
J1BJ1B
184
184
1
Output to MP4 and then remux that to MKV.
– Gyan
Dec 16 '18 at 10:07
Thanks! Does that need reencoding? I want to do this job without reencoding
– J1B
Dec 17 '18 at 6:14
No re-encoding.
– Gyan
Dec 17 '18 at 7:33
Thanks again, I tried, the file is merged, but "[mp4 @ 03e4eba0] pts has no value" this error message repeated a lot , Is it caused by timestamp error, Does it affect output file?
– J1B
Dec 17 '18 at 8:49
Most of the time, no.
– Gyan
Dec 17 '18 at 8:49
add a comment |
1
Output to MP4 and then remux that to MKV.
– Gyan
Dec 16 '18 at 10:07
Thanks! Does that need reencoding? I want to do this job without reencoding
– J1B
Dec 17 '18 at 6:14
No re-encoding.
– Gyan
Dec 17 '18 at 7:33
Thanks again, I tried, the file is merged, but "[mp4 @ 03e4eba0] pts has no value" this error message repeated a lot , Is it caused by timestamp error, Does it affect output file?
– J1B
Dec 17 '18 at 8:49
Most of the time, no.
– Gyan
Dec 17 '18 at 8:49
1
1
Output to MP4 and then remux that to MKV.
– Gyan
Dec 16 '18 at 10:07
Output to MP4 and then remux that to MKV.
– Gyan
Dec 16 '18 at 10:07
Thanks! Does that need reencoding? I want to do this job without reencoding
– J1B
Dec 17 '18 at 6:14
Thanks! Does that need reencoding? I want to do this job without reencoding
– J1B
Dec 17 '18 at 6:14
No re-encoding.
– Gyan
Dec 17 '18 at 7:33
No re-encoding.
– Gyan
Dec 17 '18 at 7:33
Thanks again, I tried, the file is merged, but "[mp4 @ 03e4eba0] pts has no value" this error message repeated a lot , Is it caused by timestamp error, Does it affect output file?
– J1B
Dec 17 '18 at 8:49
Thanks again, I tried, the file is merged, but "[mp4 @ 03e4eba0] pts has no value" this error message repeated a lot , Is it caused by timestamp error, Does it affect output file?
– J1B
Dec 17 '18 at 8:49
Most of the time, no.
– Gyan
Dec 17 '18 at 8:49
Most of the time, no.
– Gyan
Dec 17 '18 at 8:49
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%2f1384934%2fffmpeg-meets-unknow-timestamps-error%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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f1384934%2fffmpeg-meets-unknow-timestamps-error%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
1
Output to MP4 and then remux that to MKV.
– Gyan
Dec 16 '18 at 10:07
Thanks! Does that need reencoding? I want to do this job without reencoding
– J1B
Dec 17 '18 at 6:14
No re-encoding.
– Gyan
Dec 17 '18 at 7:33
Thanks again, I tried, the file is merged, but "[mp4 @ 03e4eba0] pts has no value" this error message repeated a lot , Is it caused by timestamp error, Does it affect output file?
– J1B
Dec 17 '18 at 8:49
Most of the time, no.
– Gyan
Dec 17 '18 at 8:49