[PATCH] mpeg4videodec: silence "Invalid and inefficient vfw-avi packed B frames detected" warning
--- I mentioned it on IRC, and it wasn't really clear why this message is needed. On the other hand, this is printed with virtually every AVI file, and raises more questions than it answers, so I guess this is up to discussion. --- libavcodec/mpeg4videodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index 9ff7574..c8a7d00 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -1912,7 +1912,7 @@ static int decode_user_data(MpegEncContext *s, GetBitContext *gb){ s->divx_build= build; s->divx_packed= e==3 && last=='p'; if(s->divx_packed && !s->showed_packed_warning) { - av_log(s->avctx, AV_LOG_WARNING, "Invalid and inefficient vfw-avi packed B frames detected\n"); + av_log(s->avctx, AV_LOG_VERBOSE, "Invalid and inefficient vfw-avi packed B frames detected\n"); s->showed_packed_warning=1; } } -- 1.8.4.rc3
On 29.08.2013, at 00:29, wm4 <nfxjfg@googlemail.com> wrote:
--- I mentioned it on IRC, and it wasn't really clear why this message is needed. On the other hand, this is printed with virtually every AVI file, and raises more questions than it answers, so I guess this is up to discussion.
The reason the warning is that files with this feature were written by broken software, the files are incorrect and waste space. IIRC programs like virtualdub can fix these broken files, at least losslessly, possibly even in-place.
On Thu, Aug 29, 2013 at 04:38:30AM +0200, Reimar Döffinger wrote:
On 29.08.2013, at 00:29, wm4 <nfxjfg@googlemail.com> wrote:
--- I mentioned it on IRC, and it wasn't really clear why this message is needed. On the other hand, this is printed with virtually every AVI file, and raises more questions than it answers, so I guess this is up to discussion.
The reason the warning is that files with this feature were written by broken software, the files are incorrect and waste space.
they arent valid mpeg4 in avi they could be considered valid divx in avi though if "you" simply define that to be valid for divx
IIRC programs like virtualdub can fix these broken files, at least losslessly, possibly even in-place.
can someone confirm that ? (iam asking as this seems almost the only use the warning would have to an end user) [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Everything should be made as simple as possible, but not simpler. -- Albert Einstein
On Thu, Aug 29, 2013 at 04:44:21PM +0200, Michael Niedermayer wrote:
On Thu, Aug 29, 2013 at 04:38:30AM +0200, Reimar Döffinger wrote:
On 29.08.2013, at 00:29, wm4 <nfxjfg@googlemail.com> wrote:
--- I mentioned it on IRC, and it wasn't really clear why this message is needed. On the other hand, this is printed with virtually every AVI file, and raises more questions than it answers, so I guess this is up to discussion.
The reason the warning is that files with this feature were written by broken software, the files are incorrect and waste space.
they arent valid mpeg4 in avi they could be considered valid divx in avi though if "you" simply define that to be valid for divx
IIRC programs like virtualdub can fix these broken files, at least losslessly, possibly even in-place.
can someone confirm that ?
(iam asking as this seems almost the only use the warning would have to an end user)
I just tested with avidemux. It asks "Packed Bitstream detected. Do you want me to unpack it?". If you answer yes and just save the file you get a fixed one. Tested with http://samples.mplayerhq.hu/V-codecs/MPEG4/pegasus-1958-chiptune.avi I am quite certain virtualdub has the same feature, and in a similarly easy to use way.
Le duodi 12 fructidor, an CCXXI, Reimar Döffinger a écrit :
I just tested with avidemux. It asks "Packed Bitstream detected. Do you want me to unpack it?". If you answer yes and just save the file you get a fixed one. Tested with http://samples.mplayerhq.hu/V-codecs/MPEG4/pegasus-1958-chiptune.avi I am quite certain virtualdub has the same feature, and in a similarly easy to use way.
Do you think it would be relevant to have a bitstream filter to do the job inside ffmpeg? I do not propose to do it myself, but opening a trac ticket to keep it on the TODO list would be a good idea. Regards, -- Nicolas George
On Thu, Aug 29, 2013 at 08:07:08PM +0200, Nicolas George wrote:
Le duodi 12 fructidor, an CCXXI, Reimar Döffinger a écrit :
I just tested with avidemux. It asks "Packed Bitstream detected. Do you want me to unpack it?". If you answer yes and just save the file you get a fixed one. Tested with http://samples.mplayerhq.hu/V-codecs/MPEG4/pegasus-1958-chiptune.avi I am quite certain virtualdub has the same feature, and in a similarly easy to use way.
Do you think it would be relevant to have a bitstream filter to do the job inside ffmpeg? I do not propose to do it myself, but opening a trac ticket to keep it on the TODO list would be a good idea.
That was suggested by Michael last time: http://ffmpeg.org/pipermail/ffmpeg-devel/2008-November/054385.html
Le duodi 12 fructidor, an CCXXI, Reimar Döffinger a écrit :
That was suggested by Michael last time: http://ffmpeg.org/pipermail/ffmpeg-devel/2008-November/054385.html
Thanks for the pointer. Trac ticket created: https://ffmpeg.org/trac/ffmpeg/ticket/2913 Regards, -- Nicolas George
On Thu, 29 Aug 2013 20:09:33 +0200 Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Thu, Aug 29, 2013 at 08:07:08PM +0200, Nicolas George wrote:
Le duodi 12 fructidor, an CCXXI, Reimar Döffinger a écrit :
I just tested with avidemux. It asks "Packed Bitstream detected. Do you want me to unpack it?". If you answer yes and just save the file you get a fixed one. Tested with http://samples.mplayerhq.hu/V-codecs/MPEG4/pegasus-1958-chiptune.avi I am quite certain virtualdub has the same feature, and in a similarly easy to use way.
Do you think it would be relevant to have a bitstream filter to do the job inside ffmpeg? I do not propose to do it myself, but opening a trac ticket to keep it on the TODO list would be a good idea.
That was suggested by Michael last time: http://ffmpeg.org/pipermail/ffmpeg-devel/2008-November/054385.html
Anyway I'm pretty sure no user wants to run a file through ffmpeg before playing it, just to get rid of the warning.
On Thu, Aug 29, 2013 at 08:29:40PM +0200, wm4 wrote:
On Thu, 29 Aug 2013 20:09:33 +0200 Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Thu, Aug 29, 2013 at 08:07:08PM +0200, Nicolas George wrote:
Le duodi 12 fructidor, an CCXXI, Reimar Döffinger a écrit :
I just tested with avidemux. It asks "Packed Bitstream detected. Do you want me to unpack it?". If you answer yes and just save the file you get a fixed one. Tested with http://samples.mplayerhq.hu/V-codecs/MPEG4/pegasus-1958-chiptune.avi I am quite certain virtualdub has the same feature, and in a similarly easy to use way.
Do you think it would be relevant to have a bitstream filter to do the job inside ffmpeg? I do not propose to do it myself, but opening a trac ticket to keep it on the TODO list would be a good idea.
That was suggested by Michael last time: http://ffmpeg.org/pipermail/ffmpeg-devel/2008-November/054385.html
Anyway I'm pretty sure no user wants to run a file through ffmpeg before playing it, just to get rid of the warning.
I agree (well not with _noone_ but with something close to that) anyone against applying the patch? [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Avoid a single point of failure, be that a person or equipment.
Le duodi 12 fructidor, an CCXXI, Michael Niedermayer a écrit :
Anyway I'm pretty sure no user wants to run a file through ffmpeg before playing it, just to get rid of the warning. I agree (well not with _noone_ but with something close to that) anyone against applying the patch?
If the user does not want to see the warning, they can disable warnings. It is only printed once, after all, not for all frames like it did at some time. Regards, -- Nicolas George
On Thu, 29 Aug 2013 21:10:02 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, Michael Niedermayer a écrit :
Anyway I'm pretty sure no user wants to run a file through ffmpeg before playing it, just to get rid of the warning. I agree (well not with _noone_ but with something close to that) anyone against applying the patch?
If the user does not want to see the warning, they can disable warnings. It is only printed once, after all, not for all frames like it did at some time.
Seeking (resetting the decoder) causes the warning to be printed again. Disabling warnings is not an option, because warnings are supposed to signal that something might be wrong.
Le duodi 12 fructidor, an CCXXI, wm4 a écrit :
Seeking (resetting the decoder) causes the warning to be printed again. Disabling warnings is not an option, because warnings are supposed to signal that something might be wrong.
So it is printed once after each seek. How is that a problem? It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic. Regards, -- Nicolas George
On Thu, 29 Aug 2013 21:31:54 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, wm4 a écrit :
Seeking (resetting the decoder) causes the warning to be printed again. Disabling warnings is not an option, because warnings are supposed to signal that something might be wrong.
So it is printed once after each seek. How is that a problem?
It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic.
The warning is completely meaningless and confusing.
Regards,
Le duodi 12 fructidor, an CCXXI, wm4 a écrit :
The warning is completely meaningless
It has already been explained in this discussion that it is not true. Please stop wasting people's time.
and confusing.
Then please suggest a better wording. Regards, -- Nicolas George
On 8/29/13, wm4 <nfxjfg@googlemail.com> wrote:
On Thu, 29 Aug 2013 21:31:54 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, wm4 a ecrit :
Seeking (resetting the decoder) causes the warning to be printed again. Disabling warnings is not an option, because warnings are supposed to signal that something might be wrong.
So it is printed once after each seek. How is that a problem?
It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic.
The warning is completely meaningless and confusing.
Perhaps warning can be printed only if error recognition is set to some reasonable value?
On Thu, Aug 29, 2013 at 07:48:32PM +0000, Paul B Mahol wrote:
On 8/29/13, wm4 <nfxjfg@googlemail.com> wrote:
On Thu, 29 Aug 2013 21:31:54 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, wm4 a ecrit :
Seeking (resetting the decoder) causes the warning to be printed again. Disabling warnings is not an option, because warnings are supposed to signal that something might be wrong.
So it is printed once after each seek. How is that a problem?
It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic.
The warning is completely meaningless and confusing.
Perhaps warning can be printed only if error recognition is set to some reasonable value?
One of the reasons for the warning is to make people stop using the tools that create these broken files. Ideally also to fix them. However I think it is badly worded for that purpose. In the link I gave I suggested at least pointing to tools to fix it. What would be a reasonable way? 'Video uses a non-standard and wasteful way to store B-frames ("packed B-frames"). Consider using a tool like VirtualDub or avidemux to fix it.' Is it really a problem if it's printed always when seeking? I don't see the big deal with warning messages for files that definitely are badly done. Reimar
Le duodi 12 fructidor, an CCXXI, Reimar Döffinger a écrit :
One of the reasons for the warning is to make people stop using the tools that create these broken files. Ideally also to fix them. However I think it is badly worded for that purpose. In the link I gave I suggested at least pointing to tools to fix it. What would be a reasonable way? 'Video uses a non-standard and wasteful way to store B-frames ("packed B-frames"). Consider using a tool like VirtualDub or avidemux to fix it.'
It seems very reasonable to me. Another reasonable option would be to have a FAQ entry with the links to the tools to fix it, and the warning sending to the FAQ. I wish I had known the exact issue and how to fix it when I tried to play this kind of files on an old netbook. Regards, -- Nicolas George
On Thu, 29 Aug 2013 21:55:17 +0200 Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Thu, Aug 29, 2013 at 07:48:32PM +0000, Paul B Mahol wrote:
On 8/29/13, wm4 <nfxjfg@googlemail.com> wrote:
On Thu, 29 Aug 2013 21:31:54 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, wm4 a ecrit :
Seeking (resetting the decoder) causes the warning to be printed again. Disabling warnings is not an option, because warnings are supposed to signal that something might be wrong.
So it is printed once after each seek. How is that a problem?
It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic.
The warning is completely meaningless and confusing.
Perhaps warning can be printed only if error recognition is set to some reasonable value?
One of the reasons for the warning is to make people stop using the tools that create these broken files. Ideally also to fix them.
This doesn't work, you'll just annoy your users because you want to make a point. Most people who want to play (or transcode) a video couldn't care less how the original video was created.
However I think it is badly worded for that purpose. In the link I gave I suggested at least pointing to tools to fix it. What would be a reasonable way? 'Video uses a non-standard and wasteful way to store B-frames ("packed B-frames"). Consider using a tool like VirtualDub or avidemux to fix it.'
Well, at least one file that prints the warning actually shows VirtualDub as creator, so that'd be confusing too. And again, users couldn't care less.
Is it really a problem if it's printed always when seeking? I don't see the big deal with warning messages for files that definitely are badly done.
This warning seems to be printed relatively often, and it would be nice if warnings would be printed only in cases there is an actual problem. Yes, ffmpeg has to tolerate broken tools and files by still being able decoding them. That's stupid, but hey, it's its job.
On Thu, Aug 29, 2013 at 10:07:29PM +0200, wm4 wrote:
On Thu, 29 Aug 2013 21:55:17 +0200 Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Thu, Aug 29, 2013 at 07:48:32PM +0000, Paul B Mahol wrote:
On 8/29/13, wm4 <nfxjfg@googlemail.com> wrote:
On Thu, 29 Aug 2013 21:31:54 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, wm4 a ecrit :
Seeking (resetting the decoder) causes the warning to be printed again. Disabling warnings is not an option, because warnings are supposed to signal that something might be wrong.
So it is printed once after each seek. How is that a problem?
It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic.
The warning is completely meaningless and confusing.
Perhaps warning can be printed only if error recognition is set to some reasonable value?
One of the reasons for the warning is to make people stop using the tools that create these broken files. Ideally also to fix them.
This doesn't work, you'll just annoy your users because you want to make a point. Most people who want to play (or transcode) a video couldn't care less how the original video was created.
It's not like the message jumps out of your monitor and tries to devour you alive. This is useful information about a video that can have potential issues. And as was pointed out, the way this file was created is very relevant. In part due to performance, in part because for example this format isn't working with the new VDPAU API (I am told). Also, if users are easily annoyed by programs trying to give them useful information, they can set the log level to fatal.
However I think it is badly worded for that purpose. In the link I gave I suggested at least pointing to tools to fix it. What would be a reasonable way? 'Video uses a non-standard and wasteful way to store B-frames ("packed B-frames"). Consider using a tool like VirtualDub or avidemux to fix it.'
Well, at least one file that prints the warning actually shows VirtualDub as creator, so that'd be confusing too. And again, users couldn't care less.
I don't know why you think you can speak for "users" in general, I gave examples why some are likely to care. Also I don't see why it is relevant that the file was created by VirtualDub, it can still fix it (I suspect it has to do with the codec used, but making the message novel-sized to explain all the details seems hardly a good idea).
Is it really a problem if it's printed always when seeking? I don't see the big deal with warning messages for files that definitely are badly done.
This warning seems to be printed relatively often, and it would be nice if warnings would be printed only in cases there is an actual problem.
It's not unlikely people will have real-world issues with those files. Though I would have no objections with changing it to INFO, if people think that might be more appropriate. I am against making it not be displayed by default, and I am certainly against removing it completely, and I would prefer it to be more useful for users.
Yes, ffmpeg has to tolerate broken tools and files by still being able decoding them. That's stupid, but hey, it's its job.
I don't know why it has to do so silently though, warning users about tools/files that are questionable has been FFmpeg policy since a long time, because it 1) helps developers of tools to avoid such mistakes 2) gives users an option to fix their tools or use better ones 3) helps users avoid storing data in formats that have a higher-than-average risk of breaking in the future with the last one being the most critical one.
----- Original Message ----- From: "Reimar Döffinger" <Reimar.Doeffinger@gmx.de> To: "FFmpeg development discussions and patches" <ffmpeg-devel@ffmpeg.org> Sent: Friday, August 30, 2013 2:58 PM Subject: Re: [FFmpeg-devel] [PATCH] mpeg4videodec: silence "Invalid and inefficient vfw-avi packed B frames detected" warning On Thu, Aug 29, 2013 at 10:07:29PM +0200, wm4 wrote:
On Thu, 29 Aug 2013 21:55:17 +0200 Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Thu, Aug 29, 2013 at 07:48:32PM +0000, Paul B Mahol wrote:
On 8/29/13, wm4 <nfxjfg@googlemail.com> wrote:
On Thu, 29 Aug 2013 21:31:54 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, wm4 a ecrit :
Seeking (resetting the decoder) causes the warning to be printed again. Disabling warnings is not an option, because warnings are supposed to signal that something might be wrong.
So it is printed once after each seek. How is that a problem?
It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic.
The warning is completely meaningless and confusing.
Perhaps warning can be printed only if error recognition is set to some reasonable value?
One of the reasons for the warning is to make people stop using the tools that create these broken files. Ideally also to fix them.
This doesn't work, you'll just annoy your users because you want to make a point. Most people who want to play (or transcode) a video couldn't care less how the original video was created.
It's not like the message jumps out of your monitor and tries to devour you alive. This is useful information about a video that can have potential issues. And as was pointed out, the way this file was created is very relevant. In part due to performance, in part because for example this format isn't working with the new VDPAU API (I am told). Also, if users are easily annoyed by programs trying to give them useful information, they can set the log level to fatal.
For me and in rare cases, the warnings are only useful during development. The end users I deal with have no interest or would not even know what the warnings mean. On top of that, since I have multiple videos running at the same time, you might not even have a clue what video triggered the warning. So I set av_set_log_callback but only thing that is useful to me is the fatal errors which I can filter. log level is bypassed if you set the callback which is the way it should be. Outside of fatal errors, I would just compile the rest out for release if I could. I
Le quartidi 14 fructidor, an CCXXI, Don Moir a écrit :
Outside of fatal errors, I would just compile the rest out for release if I could.
Why do you think users of release versions would not be interested to know their file are inefficient and could be enhanced? Regards, -- Nicolas George
Le quartidi 14 fructidor, an CCXXI, Don Moir a écrit :
Outside of fatal errors, I would just compile the rest out for release if I could.
Why do you think users of release versions would not be interested to know their file are inefficient and could be enhanced?
For end users I deal with: 1) they are not just sitting watching a video but performing a show of one type or another 2) they would have no clue what the warnings are all about 3) there are a lot of spurious warnings I don't have much of a clue about but I get the scope of it 4) they display multiple videos at same time for various reasons and would not even know what video the warnings are coming from sometimes (without some leg work by me to figure it out and all for nothing becasuse of above) These people are not developers and don't have any idea about things like this. Mostly they use quality videos. I could give an option and worry about thread safety and locking but it would be pointless.
Le septidi 17 fructidor, an CCXXI, Don Moir a écrit :
For end users I deal with:
1) they are not just sitting watching a video but performing a show of one type or another
2) they would have no clue what the warnings are all about
3) there are a lot of spurious warnings I don't have much of a clue about but I get the scope of it
4) they display multiple videos at same time for various reasons and would not even know what video the warnings are coming from sometimes (without some leg work by me to figure it out and all for nothing becasuse of above)
They are the users you deal with, they are in no way the only users of FFmpeg. FFmpeg is for all its users, not just the small subset you are interested in. Surely you can realize that people may be interested in knowing that their videos will not play on some low-end players and how to repair them, even if you do not have to use these low-end players yourself.
These people are not developers and don't have any idea about things like this. Mostly they use quality videos.
And quality hardware, and quality software. Lucky them. But you do not have to be a developer to be annoyed by a video stuttering on an old CPU.
I could give an option and worry about thread safety and locking but it would be pointless.
False analogy. Regards, -- Nicolas George
Le septidi 17 fructidor, an CCXXI, Don Moir a écrit :
For end users I deal with:
1) they are not just sitting watching a video but performing a show of one type or another
2) they would have no clue what the warnings are all about
3) there are a lot of spurious warnings I don't have much of a clue about but I get the scope of it
4) they display multiple videos at same time for various reasons and would not even know what video the warnings are coming from sometimes (without some leg work by me to figure it out and all for nothing becasuse of above)
They are the users you deal with, they are in no way the only users of FFmpeg. FFmpeg is for all its users, not just the small subset you are interested in.
Yes of course and never implied otherwise... Just said I have no need of the warnings and users I deal with don't either. They are busy doing a show and probably not even at a computer but controlling show external device. I am not trying to dictate how someone should use ffmpeg. If some wants to analyze their videos there are simple tools to do this.
Surely you can realize that people may be interested in knowing that their videos will not play on some low-end players and how to repair them, even if you do not have to use these low-end players yourself.
Low end players or low end computers ?? again lots of tools already to analyze if thats what they want... And they don't need to be burdoned by it when doing a live show... I always develop on a low end computer compared to the standards of the day. Keeps me in touch with reality. I have a very fast machine right next to me that I only use for additional testing but not developement.
These people are not developers and don't have any idea about things like this. Mostly they use quality videos.
And quality hardware, and quality software. Lucky them.
Actually a broad range... But most doing live video entertainment, laser shows, etc, are not going to be using a half ass machine that might crap out during the middle of a show.
But you do not have to be a developer to be annoyed by a video stuttering on an old CPU.
Thats right and like I said I use a slower machine for dev to keep an eye on things... Again people doing live entertainment are pretty much not going to use a junk computer.
I could give an option and worry about thread safety and locking but it would be pointless.
False analogy.
Not at all... I get the impression that you think everyone sits around with some command line player displaying warnings while the video plays in another window. Its not like that all for me and users... Overlays, thumbnails, Multiple videos to multiple screens, controlled from who knows where.
On Sat, Aug 31, 2013 at 06:16:19AM -0400, Don Moir wrote:
----- Original Message ----- From: "Reimar Döffinger" <Reimar.Doeffinger@gmx.de> To: "FFmpeg development discussions and patches" <ffmpeg-devel@ffmpeg.org> Sent: Friday, August 30, 2013 2:58 PM Subject: Re: [FFmpeg-devel] [PATCH] mpeg4videodec: silence "Invalid and inefficient vfw-avi packed B frames detected" warning
On Thu, Aug 29, 2013 at 10:07:29PM +0200, wm4 wrote:
On Thu, 29 Aug 2013 21:55:17 +0200 Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Thu, Aug 29, 2013 at 07:48:32PM +0000, Paul B Mahol wrote:
On 8/29/13, wm4 <nfxjfg@googlemail.com> wrote:
On Thu, 29 Aug 2013 21:31:54 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, wm4 a ecrit : > Seeking (resetting the decoder) causes the warning to be printed again. > Disabling warnings is not an option, because warnings are supposed to > signal that something might be wrong.
So it is printed once after each seek. How is that a problem?
It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic.
The warning is completely meaningless and confusing.
Perhaps warning can be printed only if error recognition is set to some reasonable value?
One of the reasons for the warning is to make people stop using the tools that create these broken files. Ideally also to fix them.
This doesn't work, you'll just annoy your users because you want to make a point. Most people who want to play (or transcode) a video couldn't care less how the original video was created.
It's not like the message jumps out of your monitor and tries to devour you alive. This is useful information about a video that can have potential issues. And as was pointed out, the way this file was created is very relevant. In part due to performance, in part because for example this format isn't working with the new VDPAU API (I am told). Also, if users are easily annoyed by programs trying to give them useful information, they can set the log level to fatal.
For me and in rare cases, the warnings are only useful during development. The end users I deal with have no interest or would not even know what the warnings mean.
On top of that, since I have multiple videos running at the same time, you might not even have a clue what video triggered the warning.
So I set av_set_log_callback but only thing that is useful to me is the fatal errors which I can filter. log level is bypassed if you set the callback which is the way it should be.
Outside of fatal errors, I would just compile the rest out for release if I could.
I can't figure out what you are trying to tell me. That some users are not interested? I never doubted that. I am mostly saying that a) There are good reasons to be quite certain that there _are_ users that care (which btw. could just be users that need a message to search for, which does not require understanding it). b) I currently fail to see how a user getting annoyed by that message could be considered a reasonable user, especially since it is possible to disable c) That I think it might be more correct to have this as "info" message. Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had 1) Making the message less technical and more helpful (for the users that care, why should users not caring about messages be relevant there?) 2) Possibly adjusting the level, which also makes it easier for users to filter depending on what they care about, though at some level it's always going to be just a matter of opinion.
----- Original Message ----- From: "Reimar Döffinger" <Reimar.Doeffinger@gmx.de> To: "FFmpeg development discussions and patches" <ffmpeg-devel@ffmpeg.org> Sent: Tuesday, September 03, 2013 3:03 PM Subject: Re: [FFmpeg-devel] [PATCH] mpeg4videodec: silence "Invalid and inefficient vfw-avi packed B frames detected" warning On Sat, Aug 31, 2013 at 06:16:19AM -0400, Don Moir wrote:
----- Original Message ----- From: "Reimar Döffinger" <Reimar.Doeffinger@gmx.de> To: "FFmpeg development discussions and patches" <ffmpeg-devel@ffmpeg.org> Sent: Friday, August 30, 2013 2:58 PM Subject: Re: [FFmpeg-devel] [PATCH] mpeg4videodec: silence "Invalid and inefficient vfw-avi packed B frames detected" warning
On Thu, Aug 29, 2013 at 10:07:29PM +0200, wm4 wrote:
On Thu, 29 Aug 2013 21:55:17 +0200 Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Thu, Aug 29, 2013 at 07:48:32PM +0000, Paul B Mahol wrote:
On 8/29/13, wm4 <nfxjfg@googlemail.com> wrote:
On Thu, 29 Aug 2013 21:31:54 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, wm4 a ecrit : > Seeking (resetting the decoder) causes the warning to be printed again. > Disabling warnings is not an option, because warnings are supposed to > signal that something might be wrong.
So it is printed once after each seek. How is that a problem?
It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic.
The warning is completely meaningless and confusing.
Perhaps warning can be printed only if error recognition is set to some reasonable value?
One of the reasons for the warning is to make people stop using the tools that create these broken files. Ideally also to fix them.
This doesn't work, you'll just annoy your users because you want to make a point. Most people who want to play (or transcode) a video couldn't care less how the original video was created.
It's not like the message jumps out of your monitor and tries to devour you alive. This is useful information about a video that can have potential issues. And as was pointed out, the way this file was created is very relevant. In part due to performance, in part because for example this format isn't working with the new VDPAU API (I am told). Also, if users are easily annoyed by programs trying to give them useful information, they can set the log level to fatal.
For me and in rare cases, the warnings are only useful during development. The end users I deal with have no interest or would not even know what the warnings mean.
On top of that, since I have multiple videos running at the same time, you might not even have a clue what video triggered the warning.
So I set av_set_log_callback but only thing that is useful to me is the fatal errors which I can filter. log level is bypassed if you set the callback which is the way it should be.
Outside of fatal errors, I would just compile the rest out for release if I could.
I can't figure out what you are trying to tell me. That some users are not interested? I never doubted that. I am mostly saying that a) There are good reasons to be quite certain that there _are_ users that care (which btw. could just be users that need a message to search for, which does not require understanding it). b) I currently fail to see how a user getting annoyed by that message could be considered a reasonable user, especially since it is possible to disable c) That I think it might be more correct to have this as "info" message.
Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS I expect the name calling to happen next :)
1) Making the message less technical and more helpful (for the users that care, why should users not caring about messages be relevant there?) 2) Possibly adjusting the level, which also makes it easier for users to filter depending on what they care about, though at some level it's always going to be just a matter of opinion.
Nobody I deal with cares about the warnings, would complain if I offered, and they would not even be paying attention to it. They are busy doing other things beside sitting on there ass... Normally standing and keeping the show running without even looking at the computer.. They control with a controller like Numark etc If they need to do it so bad they would do it offline with any tool they choose You have your opinion, I have mine
On Tue, Sep 03, 2013 at 04:35:35PM -0400, Don Moir wrote:
Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS
I expect the name calling to happen next :)
Yes, because you don't give any useful explanation. It sounds like "me hate warnings, me crush warnings". Why would you want to _compile_ them out? I would imagine they add some size to the binary, so it would be interesting in some resource-constrained cases. But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider. We do already have the NULL_IF_CONFIG_SMALL macro for example, but the av_log needs to handle NULL arguments.
1) Making the message less technical and more helpful (for the users that care, why should users not caring about messages be relevant there?) 2) Possibly adjusting the level, which also makes it easier for users to filter depending on what they care about, though at some level it's always going to be just a matter of opinion.
Nobody I deal with cares about the warnings, would complain if I offered, and they would not even be paying attention to it. They are busy doing other things beside sitting on there ass... Normally standing and keeping the show running without even looking at the computer.. They control with a controller like Numark etc
If they need to do it so bad they would do it offline with any tool they choose
You have your opinion, I have mine
WTF does this have to do with opinions? I am asking for what the actual _problems_ are and offering possible solutions. If your users don't care about warnings, then just don't show it to them, that's absolutely trivial to do (as far as I can tell, it seems to work fine in MPlayer at least), whether ffmpeg command-line or library or whatever is used. In what way would these users have any relevance whatsoever to how we word message and at what level we print them? You tell me over and over your users don't care about warnings. I understood that the first time. On the other hand I _still_ have no clue what you are trying to tell me or otherwise accomplish by repeating that over and over again, while not actually responding to the questions I do ask.
----- Original Message ----- From: "Reimar Döffinger" <Reimar.Doeffinger@gmx.de> To: "FFmpeg development discussions and patches" <ffmpeg-devel@ffmpeg.org> Sent: Sunday, September 08, 2013 1:48 PM Subject: Re: [FFmpeg-devel] [PATCH] mpeg4videodec: silence "Invalid and inefficient vfw-avi packed B frames detected" warning
On Tue, Sep 03, 2013 at 04:35:35PM -0400, Don Moir wrote:
Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS
I expect the name calling to happen next :)
Yes, because you don't give any useful explanation. It sounds like "me hate warnings, me crush warnings". Why would you want to _compile_ them out?
It should be enough to say that I have no need for the warnings... For me just wasteful calls even I don't do anything with them. There are some cases where I might have 10 videos playing at same time. Sometime you get alot of calls for warnings for even one video and the more videos the more calls. I don't like to waste even if somewhat trivial. My original comment about this was passive, but if there was an easy way to flag them out I would. At least some if not most of you, dwell on the details that may be useful for a developer and thats fine. I focus on the entertainment business where details like warnings are not important. Clearly most people watch video and listen to music for entertainment reasons. Maybe you forget. I don't know.
But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider.
Possibly not to trivial not sure. One thing is the fatals would have to be separated.
I would imagine they add some size to the binary, so it would be interesting in some resource-constrained cases. But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider. We do already have the NULL_IF_CONFIG_SMALL macro for example, but the av_log needs to handle NULL arguments.
Size is not much of an issue but size would be reduced.
1) Making the message less technical and more helpful (for the users that care, why should users not caring about messages be relevant there?) 2) Possibly adjusting the level, which also makes it easier for users to filter depending on what they care about, though at some level it's always going to be just a matter of opinion.
Nobody I deal with cares about the warnings, would complain if I offered, and they would not even be paying attention to it. They are busy doing other things beside sitting on there ass... Normally standing and keeping the show running without even looking at the computer.. They control with a controller like Numark etc
If they need to do it so bad they would do it offline with any tool they choose
You have your opinion, I have mine
WTF does this have to do with opinions? I am asking for what the actual _problems_ are and offering possible solutions. If your users don't care about warnings, then just don't show it to them, that's absolutely trivial to do (as far as I can tell, it seems to work fine in MPlayer at least), whether ffmpeg command-line or library or whatever is used. In what way would these users have any relevance whatsoever to how we word message and at what level we print them?
Yes correct and I do not display the warnings. If a there was a trivial way to compile them out I would do that.
You tell me over and over your users don't care about warnings. I understood that the first time. On the other hand I _still_ have no clue what you are trying to tell me or otherwise accomplish by repeating that over and over again, while not actually responding to the questions I do ask.
Not trying to tell you anything Reimar. Have a nice day.
On Tue, Sep 03, 2013 at 04:35:35PM -0400, Don Moir wrote:
Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS
I expect the name calling to happen next :)
But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider.
Possibly not to trivial not sure. One thing is the fatals would have to be separated.
This seems to work for me but have not tried with GCC. in log.h #ifdef _NOWARNINGS inline void av_log(void *avc1, int level, const char *fmt,...){} #else void av_log(void *avc1, int level, const char *fmt,...); #endif in log.c av_log (...) would need #ifdef fatals still need to be separate
On Sun, Sep 08, 2013 at 08:31:52PM -0400, Don Moir wrote:
On Tue, Sep 03, 2013 at 04:35:35PM -0400, Don Moir wrote:
Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS
I expect the name calling to happen next :)
But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider.
Possibly not to trivial not sure. One thing is the fatals would have to be separated.
This seems to work for me but have not tried with GCC.
in log.h
#ifdef _NOWARNINGS inline void av_log(void *avc1, int level, const char *fmt,...){} #else void av_log(void *avc1, int level, const char *fmt,...); #endif
in log.c av_log (...) would need #ifdef
fatals still need to be separate
Yes, that's exactly where the problem lies. So you have to filter out those you do not want. And then it still needs to be more efficient than the function call. Then you have to be careful not to mess too much with the public headers. However it seems like the below would work, it would just needs someone to add properly to configure. It does cause the binary tools to act really weird though, for example it causes "ffprobe -h" to print a bit of help and then a huge number of empty lines... diff --git a/configure b/configure index 4ff97b4..8d93240 100755 --- a/configure +++ b/configure @@ -4819,6 +4819,7 @@ cat > $TMPH <<EOF #define EXTERN_ASM ${extern_prefix} #define SLIBSUF "$SLIBSUF" #define HAVE_MMX2 HAVE_MMXEXT +#define AV_LOG_MIN_LEVEL AV_LOG_FATAL EOF test -n "$assert_level" && diff --git a/libavutil/log.h b/libavutil/log.h index 7ea95fa..41d21a6 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -180,6 +180,18 @@ typedef struct AVClass { void av_log(void *avcl, int level, const char *fmt, ...) av_printf_format(3, 4); void av_vlog(void *avcl, int level, const char *fmt, va_list); +#ifdef AV_LOG_MIN_LEVEL +static inline void av_log_internal(void *avcl, int level, const char *fmt, ...) av_printf_format(3, 4); +static inline void av_log_internal(void *avcl, int level, const char *fmt, ...) { + if (level <= AV_LOG_MIN_LEVEL) { + va_list va; + va_start(va, fmt); + av_vlog(avcl, level, fmt, va); + va_end(va); + } +} +#define av_log(avcl, ...) av_log_internal(avcl, __VA_ARGS__) +#endif int av_log_get_level(void); void av_log_set_level(int); void av_log_set_callback(void (*)(void*, int, const char*, va_list));
On Mon, Sep 09, 2013 at 09:22:07PM +0200, Reimar Döffinger wrote:
On Sun, Sep 08, 2013 at 08:31:52PM -0400, Don Moir wrote:
On Tue, Sep 03, 2013 at 04:35:35PM -0400, Don Moir wrote:
Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS
I expect the name calling to happen next :)
But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider.
Possibly not to trivial not sure. One thing is the fatals would have to be separated.
This seems to work for me but have not tried with GCC.
in log.h
#ifdef _NOWARNINGS inline void av_log(void *avc1, int level, const char *fmt,...){} #else void av_log(void *avc1, int level, const char *fmt,...); #endif
in log.c av_log (...) would need #ifdef
fatals still need to be separate
Yes, that's exactly where the problem lies. So you have to filter out those you do not want. And then it still needs to be more efficient than the function call. Then you have to be careful not to mess too much with the public headers. However it seems like the below would work, it would just needs someone to add properly to configure. It does cause the binary tools to act really weird though, for example it causes "ffprobe -h" to print a bit of help and then a huge number of empty lines...
Btw. this reduces size of the stripped ffmpeg binary by about 238kB or almost 2.5%.
----- Original Message ----- From: "Reimar Döffinger" <Reimar.Doeffinger@gmx.de> To: "FFmpeg development discussions and patches" <ffmpeg-devel@ffmpeg.org> Sent: Monday, September 09, 2013 3:36 PM Subject: Re: [FFmpeg-devel] [PATCH] mpeg4videodec: silence "Invalid andinefficient vfw-avi packed B frames detected" warning On Mon, Sep 09, 2013 at 09:22:07PM +0200, Reimar Döffinger wrote:
On Sun, Sep 08, 2013 at 08:31:52PM -0400, Don Moir wrote:
On Tue, Sep 03, 2013 at 04:35:35PM -0400, Don Moir wrote:
Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS
I expect the name calling to happen next :)
But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider.
Possibly not to trivial not sure. One thing is the fatals would have to be separated.
This seems to work for me but have not tried with GCC.
in log.h
#ifdef _NOWARNINGS inline void av_log(void *avc1, int level, const char *fmt,...){} #else void av_log(void *avc1, int level, const char *fmt,...); #endif
in log.c av_log (...) would need #ifdef
fatals still need to be separate
Yes, that's exactly where the problem lies. So you have to filter out those you do not want. And then it still needs to be more efficient than the function call. Then you have to be careful not to mess too much with the public headers. However it seems like the below would work, it would just needs someone to add properly to configure. It does cause the binary tools to act really weird though, for example it causes "ffprobe -h" to print a bit of help and then a huge number of empty lines...
Btw. this reduces size of the stripped ffmpeg binary by about 238kB or almost 2.5%.
Yeah cool and also elimination of possibly many thousands of on going unneeded functions calls. By the way this completely optimizes things out if that was not apparent. No function call, no arguements, nothing... (does for me and should for any reasonable compiler). inline void av_log(void *avc1, int level, const char *fmt,...){}
On Mon, Sep 09, 2013 at 09:22:07PM +0200, Reimar Döffinger wrote:
On Sun, Sep 08, 2013 at 08:31:52PM -0400, Don Moir wrote:
On Tue, Sep 03, 2013 at 04:35:35PM -0400, Don Moir wrote:
Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS
I expect the name calling to happen next :)
But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider.
Possibly not to trivial not sure. One thing is the fatals would have to be separated.
This seems to work for me but have not tried with GCC.
in log.h
#ifdef _NOWARNINGS inline void av_log(void *avc1, int level, const char *fmt,...){} #else void av_log(void *avc1, int level, const char *fmt,...); #endif
in log.c av_log (...) would need #ifdef
fatals still need to be separate
Yes, that's exactly where the problem lies. So you have to filter out those you do not want. And then it still needs to be more efficient than the function call. Then you have to be careful not to mess too much with the public headers.
However it seems like the below would work, it would just needs someone to add properly to configure.
use below as you see fit diff --git a/configure b/configure index 4ff97b4..5d18f95 100755 --- a/configure +++ b/configure @@ -2482,6 +2482,9 @@ for opt do --enable-debug=*) debuglevel="$optval" ;; + --avlog-limit=*) + avloglimit="$optval" + ;; --disable-programs) disable $PROGRAM_LIST ;; @@ -4819,6 +4822,7 @@ cat > $TMPH <<EOF #define EXTERN_ASM ${extern_prefix} #define SLIBSUF "$SLIBSUF" #define HAVE_MMX2 HAVE_MMXEXT +#define AV_LOG_MIN_LEVEL $avloglimit EOF test -n "$assert_level" && [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Breaking DRM is a little like attempting to break through a door even though the window is wide open and the only thing in the house is a bunch of things you dont want and which you would get tomorrow for free anyway
On Mon, Sep 09, 2013 at 10:43:08PM +0200, Michael Niedermayer wrote:
On Mon, Sep 09, 2013 at 09:22:07PM +0200, Reimar Döffinger wrote:
On Sun, Sep 08, 2013 at 08:31:52PM -0400, Don Moir wrote:
On Tue, Sep 03, 2013 at 04:35:35PM -0400, Don Moir wrote:
Though for some reason this yet again seems to have degenerated into an IMO fairly pointless back and forth, with no attention or comments that would allow me to understand the issue and where I might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS
I expect the name calling to happen next :)
But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider.
Possibly not to trivial not sure. One thing is the fatals would have to be separated.
This seems to work for me but have not tried with GCC.
in log.h
#ifdef _NOWARNINGS inline void av_log(void *avc1, int level, const char *fmt,...){} #else void av_log(void *avc1, int level, const char *fmt,...); #endif
in log.c av_log (...) would need #ifdef
fatals still need to be separate
Yes, that's exactly where the problem lies. So you have to filter out those you do not want. And then it still needs to be more efficient than the function call. Then you have to be careful not to mess too much with the public headers.
However it seems like the below would work, it would just needs someone to add properly to configure.
use below as you see fit
It's not that easy. With the current code at least you need to make sure that AV_LOG_MIN_LEVEL doesn't get defined at all by default (note that the extra intermediate function might have some overhead, so I would prefer it not to be used by default). I also think it would be nice if configure could ensure a valid syntax instead of letting you discover typos only during compilation, though that might be less of an issue...
On Tue, Sep 10, 2013 at 07:01:25PM +0200, Reimar Döffinger wrote:
On Mon, Sep 09, 2013 at 10:43:08PM +0200, Michael Niedermayer wrote:
On Mon, Sep 09, 2013 at 09:22:07PM +0200, Reimar Döffinger wrote:
On Sun, Sep 08, 2013 at 08:31:52PM -0400, Don Moir wrote:
On Tue, Sep 03, 2013 at 04:35:35PM -0400, Don Moir wrote:
>Though for some reason this yet again seems to have degenerated into >an IMO fairly pointless back and forth, with no attention >or comments that would allow me to understand the issue and where I >might have misunderstood the problem on the two suggestions I had
Yes exactly. All I said was I would compile out the warnings if good... just a switch mind you.. just a comment and not to generate endless BS
I expect the name calling to happen next :)
But since it's not something that could be done trivially with a macro or so I'm not sure it's worth it, but it's interesting to consider.
Possibly not to trivial not sure. One thing is the fatals would have to be separated.
This seems to work for me but have not tried with GCC.
in log.h
#ifdef _NOWARNINGS inline void av_log(void *avc1, int level, const char *fmt,...){} #else void av_log(void *avc1, int level, const char *fmt,...); #endif
in log.c av_log (...) would need #ifdef
fatals still need to be separate
Yes, that's exactly where the problem lies. So you have to filter out those you do not want. And then it still needs to be more efficient than the function call. Then you have to be careful not to mess too much with the public headers.
However it seems like the below would work, it would just needs someone to add properly to configure.
use below as you see fit
It's not that easy. With the current code at least you need to make sure that AV_LOG_MIN_LEVEL doesn't get defined at all by default (note that the extra intermediate function might have some overhead, so I would prefer it not to be used by default). I also think it would be nice if configure could ensure a valid syntax instead of letting you discover typos only during compilation, though that might be less of an issue...
Don't bother, it's actually not so hard, I'll hack something up.
On Fri, 30 Aug 2013 20:58:24 +0200 Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Thu, Aug 29, 2013 at 10:07:29PM +0200, wm4 wrote:
On Thu, 29 Aug 2013 21:55:17 +0200 Reimar Döffinger <Reimar.Doeffinger@gmx.de> wrote:
On Thu, Aug 29, 2013 at 07:48:32PM +0000, Paul B Mahol wrote:
On 8/29/13, wm4 <nfxjfg@googlemail.com> wrote:
On Thu, 29 Aug 2013 21:31:54 +0200 Nicolas George <nicolas.george@normalesup.org> wrote:
Le duodi 12 fructidor, an CCXXI, wm4 a ecrit : > Seeking (resetting the decoder) causes the warning to be printed again. > Disabling warnings is not an option, because warnings are supposed to > signal that something might be wrong.
So it is printed once after each seek. How is that a problem?
It informs about a problem that can have practical consequences (try playing this kind of files with a limited CPU) and can be fixed (although not with ffmpeg for now). That is exactly what a warning is made for. Simply removing it would be idiotic.
The warning is completely meaningless and confusing.
Perhaps warning can be printed only if error recognition is set to some reasonable value?
One of the reasons for the warning is to make people stop using the tools that create these broken files. Ideally also to fix them.
This doesn't work, you'll just annoy your users because you want to make a point. Most people who want to play (or transcode) a video couldn't care less how the original video was created.
It's not like the message jumps out of your monitor and tries to devour you alive. This is useful information about a video that can have potential issues. And as was pointed out, the way this file was created is very relevant.
Just trying to reduce the general noise. If it's so controversial, I can as well give up on it. However, my point stands that this message is not really very informative, so it should be improved. (I think there was some suggestions in this thread.)
In part due to performance, in part because for example this format isn't working with the new VDPAU API (I am told).
It's the first time I hear about a VDPAU issue.
[...]
Yes, ffmpeg has to tolerate broken tools and files by still being able decoding them. That's stupid, but hey, it's its job.
I don't know why it has to do so silently though, warning users about tools/files that are questionable has been FFmpeg policy since a long time, because it 1) helps developers of tools to avoid such mistakes 2) gives users an option to fix their tools or use better ones 3) helps users avoid storing data in formats that have a higher-than-average risk of breaking in the future
with the last one being the most critical one.
There are many cases where it does that silently; even recently added workarounds didn't print any warnings. Well, maybe they are not as critical as this case in your opinion.
wm4 <nfxjfg <at> googlemail.com> writes:
this is printed with virtually every AVI file
This is not true. Carl Eugen
participants (7)
-
Carl Eugen Hoyos -
Don Moir -
Michael Niedermayer -
Nicolas George -
Paul B Mahol -
Reimar Döffinger -
wm4