This is an ffmpeg architecture question, so I don't have a specific log. When concatenating involving only demuxing and muxing, I sometimes get "buffer underflow". Why underflow? It's not a real time process.
Am 29.09.23 um 16:33 schrieb Mark Filipak:
This is an ffmpeg architecture question, so I don't have a specific log.
but you have real outputs
When concatenating involving only demuxing and muxing, I sometimes get "buffer underflow". Why underflow? It's not a real time process.
you are long enough on the list to know that copy&paste of the whole input/output is required
On Fri, Sep 29, 2023 at 10:38 AM Reindl Harald <h.reindl@thelounge.net> wrote:
Am 29.09.23 um 16:33 schrieb Mark Filipak:
This is an ffmpeg architecture question, so I don't have a specific log.
but you have real outputs
When concatenating involving only demuxing and muxing, I sometimes get "buffer underflow". Why underflow? It's not a real time process.
you are long enough on the list to know that copy&paste of the whole input/output is required
Okay. I'll explain. When I tried ffmpeg -i "concat:c:\1.mp4|2.mp4 .." and that failed on "duplicate MOOV Atom", I converted the MP4s, 1: to MKVs, and 2: to MPEGs, and 3: to VOBs, and repeated with each of them. In one of them I got "buffer underflow". I woke up this morning -- I'm in the US -- asking myself, "buffer underflow? How is that possible?" I don't remember which of the concats: MKVs or MPEGs or VOBs, did that. So, I don't have a log. A log should not be required to ask: "How is a buffer underflow possible when it's not a real time process?"
On 9/29/23, Mark Filipak <markfilipak.imdb@gmail.com> wrote:
On Fri, Sep 29, 2023 at 10:38 AM Reindl Harald <h.reindl@thelounge.net> wrote:
Am 29.09.23 um 16:33 schrieb Mark Filipak:
This is an ffmpeg architecture question, so I don't have a specific log.
but you have real outputs
When concatenating involving only demuxing and muxing, I sometimes get "buffer underflow". Why underflow? It's not a real time process.
you are long enough on the list to know that copy&paste of the whole input/output is required
Okay. I'll explain. When I tried ffmpeg -i "concat:c:\1.mp4|2.mp4 .."
That is simple concat at file level, it almost never works correctly. Unless really streamed format is used, like mpegts.
and that failed on "duplicate MOOV Atom", I converted the MP4s, 1: to MKVs, and 2: to MPEGs, and 3: to VOBs, and repeated with each of them. In one of them I got "buffer underflow".
Now I wonder what is wrong using concat demuxer.
I woke up this morning -- I'm in the US -- asking myself, "buffer underflow? How is that possible?" I don't remember which of the concats: MKVs or MPEGs or VOBs, did that. So, I don't have a log. A log should not be required to ask: "How is a buffer underflow possible when it's not a real time process?"
Buffer overflow - something is too big in size. So can not be put into buffer. Buffer underflow - something is too small in size. So there is unused, wasteful space left. Also could mean decoder and/or demuxer did not processed whole buffer.
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On Fri, Sep 29, 2023 at 11:01 AM Paul B Mahol <onemda@gmail.com> wrote: -snip-
Buffer underflow - something is too small in size. So there is unused, wasteful space left.
That's not correct.
Also could mean decoder and/or demuxer did not processed whole buffer.
That's not underflow. That can be produced by underflow, but it's not underflow. Why would a process access a buffer before buffering is finished?
On 9/29/23, Mark Filipak <markfilipak.imdb@gmail.com> wrote:
On Fri, Sep 29, 2023 at 11:01 AM Paul B Mahol <onemda@gmail.com> wrote: -snip-
Buffer underflow - something is too small in size. So there is unused, wasteful space left.
That's not correct.
Also could mean decoder and/or demuxer did not processed whole buffer.
That's not underflow. That can be produced by underflow, but it's not underflow. Why would a process access a buffer before buffering is finished?
Clearly you know better and do not need help at all.
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On Fri, Sep 29, 2023 at 11:36 AM Paul B Mahol <onemda@gmail.com> wrote:
On 9/29/23, Mark Filipak <markfilipak.imdb@gmail.com> wrote:
On Fri, Sep 29, 2023 at 11:01 AM Paul B Mahol <onemda@gmail.com> wrote: -snip-
Buffer underflow - something is too small in size. So there is unused, wasteful space left.
That's not correct.
Also could mean decoder and/or demuxer did not processed whole buffer.
That's not underflow. That can be produced by underflow, but it's not underflow. Why would a process access a buffer before buffering is finished?
Clearly you know better ...
Clearly. I've written 8051 real time code and kernel.
... and do not need help at all.
I do need help. I didn't write ffmpeg.
On 9/29/23, Mark Filipak <markfilipak.imdb@gmail.com> wrote:
On Fri, Sep 29, 2023 at 11:36 AM Paul B Mahol <onemda@gmail.com> wrote:
On 9/29/23, Mark Filipak <markfilipak.imdb@gmail.com> wrote:
On Fri, Sep 29, 2023 at 11:01 AM Paul B Mahol <onemda@gmail.com> wrote: -snip-
Buffer underflow - something is too small in size. So there is unused, wasteful space left.
That's not correct.
Also could mean decoder and/or demuxer did not processed whole buffer.
That's not underflow. That can be produced by underflow, but it's not underflow. Why would a process access a buffer before buffering is finished?
Clearly you know better ...
Clearly. I've written 8051 real time code and kernel.
This have nothing to do with real time code and/or kernel.
... and do not need help at all.
I do need help. I didn't write ffmpeg. _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Semantics are a little different presumably but the concept is the same: presumably, an underflow condition exists when a consuming process may have the expectation of available data but cannot satisfy that consumption because of (presumably then unavailable, perhaps by error) lack of producer data. Fair guess? Welcome to corrections if incorrect. Did not write ffmpeg. Have written video software with underflow considerations. Can we please stop with the 'my code's bigger than yours' now? hv On 9/29/23 11:43, Paul B Mahol wrote:
On 9/29/23, Mark Filipak<markfilipak.imdb@gmail.com> wrote:
On Fri, Sep 29, 2023 at 11:36 AM Paul B Mahol<onemda@gmail.com> wrote:
On 9/29/23, Mark Filipak<markfilipak.imdb@gmail.com> wrote:
On Fri, Sep 29, 2023 at 11:01 AM Paul B Mahol<onemda@gmail.com> wrote: -snip-
Buffer underflow - something is too small in size. So there is unused, wasteful space left. That's not correct.
Also could mean decoder and/or demuxer did not processed whole buffer. That's not underflow. That can be produced by underflow, but it's not underflow. Why would a process access a buffer before buffering is finished? Clearly you know better ... Clearly. I've written 8051 real time code and kernel. This have nothing to do with real time code and/or kernel.
... and do not need help at all. I do need help. I didn't write ffmpeg.
On Fri, Sep 29, 2023 at 11:48 AM H. Vidal, Jr. <hvidal@tesseract-tech.com> wrote:
Semantics are a little different presumably but the concept is the same: presumably, an underflow condition exists when a consuming process may have the expectation of available data but cannot satisfy that consumption because of (presumably then unavailable, perhaps by error) lack of producer data.
Error? In a concat? All the source files exist. What about a consumer who is ...confused? getting a bad signal?
Fair guess?
Yup, absolutely.
Welcome to corrections if incorrect. Did not write ffmpeg. Have written video software with underflow considerations.
Can we please stop with the 'my code's bigger than yours' now?
Hehehe... That's good. ...I'm 77 years old. My code is not bigger than anyone's.
On 9/29/2023 8:42 AM, Mark Filipak wrote:
I do need help. I didn't write ffmpeg.
But you can pull down the code and read the concat muxer, which shouldn't be difficult if you've down real-time coding. There have been more than a couple of times when simply searching for the error message led me to the code and reading that lead me to what I needed to know. (I've even posted some of that research here.) To answer one question- Why "buffer underflow"? Maybe it's the wrong error message for a specific condition _but_ we'll never have a clue without seeing console output (which, as Harald points out, you should know is appropriate). z!
On Fri, Sep 29, 2023 at 12:05 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 9/29/2023 8:42 AM, Mark Filipak wrote:
I do need help. I didn't write ffmpeg.
But you can pull down the code
I could...
and read the concat muxer,
Yes...
which shouldn't be difficult if you've down real-time coding.
I don't read 'C'. My code is micro. -snip-
To answer one question- Why "buffer underflow"? Maybe it's the wrong error message for a specific condition _but_ we'll never have a clue without seeing console output (which, as Harald points out, you should know is appropriate).
(Sigh!) You're asking me to reproduce a couple of days of work, and in the right order. I'll try. But I've gotten "buffer underflow" errors in the past, many times, and never really thought about it. Now I'm thinking about and it doesn't make sense. But I'll try to reproduce it.
On 9/29/2023 9:29 AM, Mark Filipak wrote:
On Fri, Sep 29, 2023 at 12:05 PM Carl Zwanzig <cpz@tuunq.com> wrote:
But you can pull down the code I could...
and read the concat muxer, Yes...
which shouldn't be difficult if you've down real-time coding. I don't read 'C'. My code is micro.
It's not difficult (and many people haved use 'c' on all manner of tiny processors, I did for z-80s). You could also look at a 'c' language primer.... (or- at least put some effort into it; anyone who's written RT assembler code should be able to follow the flow and structure).
(Sigh!) You're asking me to reproduce a couple of days of work, and in the right order. I'll try. But I've gotten "buffer underflow" errors in the past, many times, and never really thought about it. Now I'm thinking about and it doesn't make sense. But I'll try to reproduce it.
You're asking everyone else what an ambiguous error message means with only the barest of information; often that gets only the barest of response. Later, z!
On Fri, Sep 29, 2023 at 12:05 PM Carl Zwanzig <cpz@tuunq.com> wrote: -snip- I'll try. Carl, please enlighten me: If I '-bsf:v setts...' that appears to only affect video. Duh... Is there a global 'setts'-type directive that will simultaneously fix up PTSs/DTSs/time_base for video, audio, subtitles, and chapters?
On 9/29/2023 9:45 AM, Mark Filipak wrote:
Carl, please enlighten me: If I '-bsf:v setts...' that appears to only affect video. Duh...
Is there a global 'setts'-type directive that will simultaneously fix up PTSs/DTSs/time_base for video, audio, subtitles, and chapters? I expect that three -bsf: options in a row would do the job but haven't
-bsf[:stream_specifier] bitstream_filters (output,per-stream) :a will do the audio, :s for subtitles, etc (that's in the doc) tried it. z! who only does enlightenment for them self, not for other people.
On Fri, Sep 29, 2023 at 12:59 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 9/29/2023 9:45 AM, Mark Filipak wrote:
Carl, please enlighten me: If I '-bsf:v setts...' that appears to only affect video. Duh...
-bsf[:stream_specifier] bitstream_filters (output,per-stream) :a will do the audio, :s for subtitles, etc (that's in the doc)
No, it's not in the doc. And the 'doc' are programmer documentations, not user documentation. I would like to help make actual user documentation but I've been rebuffed in the past. Also, you wrote "etc". (?. What else is there?)
Is there a global 'setts'-type directive that will simultaneously fix up PTSs/DTSs/time_base for video, audio, subtitles, and chapters? I expect that three -bsf: options in a row would do the job but haven't tried it.
It created a total train wreck.
On 9/29/23, Mark Filipak <markfilipak.imdb@gmail.com> wrote:
On Fri, Sep 29, 2023 at 12:59 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 9/29/2023 9:45 AM, Mark Filipak wrote:
Carl, please enlighten me: If I '-bsf:v setts...' that appears to only affect video. Duh...
-bsf[:stream_specifier] bitstream_filters (output,per-stream) :a will do the audio, :s for subtitles, etc (that's in the doc)
No, it's not in the doc. And the 'doc' are programmer documentations, not user documentation. I would like to help make actual user documentation but I've been rebuffed in the past.
Also, you wrote "etc". (?. What else is there?)
Is there a global 'setts'-type directive that will simultaneously fix up PTSs/DTSs/time_base for video, audio, subtitles, and chapters? I expect that three -bsf: options in a row would do the job but haven't tried it.
It created a total train wreck.
If you want to salvage something by yourself only, without reencoding, you have not enough skills.
On 9/29/2023 2:25 PM, Mark Filipak wrote:
On Fri, Sep 29, 2023 at 12:59 PM Carl Zwanzig<cpz@tuunq.com> wrote:
-bsf[:stream_specifier] bitstream_filters (output,per-stream) :a will do the audio, :s for subtitles, etc (that's in the doc)
No, it's not in the doc.
It surely is, that's where I quoted it from- https://ffmpeg.org/ffmpeg-all.html#Advanced-options and about 300 lines down (or search for "-bsf"). It's around line 1760 of doc/ffmpeg.texi in the source tree. (You could also look at https://ffmpeg.org/ffmpeg-bitstream-filters.html) Those are documentation for ffmpeg, pretty much the reference set unless you read the source code.
And the 'doc' are programmer documentations, not user documentation. Where did you get -that- idea? (User doc has been a thing for at least 50 years, I still have some of those books, and probably a lot longer.)
BTW, the text "underflow" only appears maybe 20 times in the copy of the source I have handy (I'm not going to update just for this). Possibly the most relevant ones are- libavformat/mpegenc.c: "buffer underflow st=%d bufi=%d size=%d\n", libavcodec/ratecontrol.c: av_log(s->avctx, AV_LOG_ERROR, "rc buffer underflow\n"); but we don't know _because_we_don't_have_the_console_output_. z!
On Fri, Sep 29, 2023 at 6:35 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 9/29/2023 2:25 PM, Mark Filipak wrote:
On Fri, Sep 29, 2023 at 12:59 PM Carl Zwanzig<cpz@tuunq.com> wrote:
-bsf[:stream_specifier] bitstream_filters (output,per-stream) :a will do the audio, :s for subtitles, etc (that's in the doc)
No, it's not in the doc.
It surely is, that's where I quoted it from- https://ffmpeg.org/ffmpeg-all.html#Advanced-options and about 300 lines down (or search for "-bsf"). It's around line 1760 of doc/ffmpeg.texi in the source tree.
Needed usage information for 'ffmpeg-bitstream-filters.html' is buried in 'ffmpeg-all.html'. Oh, that's brilliant. It's just another case that proves that programmers should not write user documentation.
On Fri, Sep 29, 2023 at 11:01 AM Paul B Mahol <onemda@gmail.com> wrote: -snip-
Now I wonder what is wrong using concat demuxer.
There you go, Paul. That's the right question.
participants (5)
-
Carl Zwanzig -
H. Vidal, Jr. -
Mark Filipak -
Paul B Mahol -
Reindl Harald