[PATCH] Add WebM to the Matroska demuxer name
$subj Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2." Regards, Alex Converse
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump. Changing the long name should be ok though...
Reimar D?ffinger <Reimar.Doeffinger at gmx.de> writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous. The only way to add aliases is currently to duplicate the whole struct, and I consider that overkill for this case. Webm is just a subset of matroska anyway. Parsing does not depend on the name as it might for various mov-derivatives.
Changing the long name should be ok though...
Yes, that is for display purposes only. -- M?ns Rullg?rd mans at mansr.com
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch. you can do: ffmpeg -f mp4 -i <file>, ffmpeg -f mj2 -i <file> -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break. The correct solution is to make that field a proper array like we have for some other properties. To avoid breaking ABI, we could even add a list of aliases at the end of the struct. The single name field could be dropped at the next big break if we want to. -- M?ns Rullg?rd mans at mansr.com
On Thu, Jul 15, 2010 at 07:57:14PM +0100, M?ns Rullg?rd wrote:
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
The correct solution is to make that field a proper array like we have for some other properties. To avoid breaking ABI, we could even add a list of aliases at the end of the struct. The single name field could be dropped at the next big break if we want to.
I'd be in favour to keep the name as a unique identifier that is not supposed to change, unless we want to add something like a CODEC_ID equivalent for formats...
On 07/15/2010 11:57 AM, M?ns Rullg?rd wrote:
Baptiste Coudurier<baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
The correct solution is to make that field a proper array like we have for some other properties. To avoid breaking ABI, we could even add a list of aliases at the end of the struct. The single name field could be dropped at the next big break if we want to.
IMHO the correct solution is to use av_find_input_format. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 11:57 AM, M?ns Rullg?rd wrote:
Baptiste Coudurier<baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
The correct solution is to make that field a proper array like we have for some other properties. To avoid breaking ABI, we could even add a list of aliases at the end of the struct. The single name field could be dropped at the next big break if we want to.
IMHO the correct solution is to use av_find_input_format.
Are you suggesting apps call av_find_input_format() with all possible strings and check which ones return something? Doesn't sound very practical. -- M?ns Rullg?rd mans at mansr.com
On 07/15/2010 12:21 PM, M?ns Rullg?rd wrote:
Baptiste Coudurier<baptiste.coudurier at gmail.com> writes:
On 07/15/2010 11:57 AM, M?ns Rullg?rd wrote:
Baptiste Coudurier<baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: > $subj > > Some users are getting confused. We do a similar thing for > "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
The correct solution is to make that field a proper array like we have for some other properties. To avoid breaking ABI, we could even add a list of aliases at the end of the struct. The single name field could be dropped at the next big break if we want to.
IMHO the correct solution is to use av_find_input_format.
Are you suggesting apps call av_find_input_format() with all possible strings and check which ones return something? Doesn't sound very practical.
I don't see where your problem is. Apps use av_probe_input_format, if apps want to force input format, they can iterate over av_iformat_next and enumerate in a listbox if wanted, or use the format between the commas, AND they call av_find_input_format, the format between the commas only work with av_find_input_format, so using it will always work, and the full name will work as well. Besides regarding the API (not ABI) break if the name changes. Apps must use the format between commas ("mov" can be guaranteed to not be removed), that is not use a name with a comma in it, which is reasonable to me. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ?writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. ?It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
The correct solution is to make that field a proper array like we have for some other properties. ?To avoid breaking ABI, we could even add a list of aliases at the end of the struct. ?The single name field could be dropped at the next big break if we want to.
I don't see how a proper array is better than a comma delimited list for these purposes --Alex
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ?writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. ?It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
What if you want to make a list of all format? av_find_input_format() only works when you already know the name. Consider as an example a GUI app presenting a list (of long_names) to the user, then using av_find_input_format() to select the one the user chooses. Such an app would break if the name suddenly needs to be split before it can be used.
The correct solution is to make that field a proper array like we have for some other properties. ?To avoid breaking ABI, we could even add a list of aliases at the end of the struct. ?The single name field could be dropped at the next big break if we want to.
I don't see how a proper array is better than a comma delimited list for these purposes
Only a million times easier to parse. String processing is not something you want to be doing in C unless you really have to. -- M?ns Rullg?rd mans at mansr.com
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ?writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: > $subj > > Some users are getting confused. We do a similar thing for > "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. ?It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
What if you want to make a list of all format? ?av_find_input_format() only works when you already know the name. ?Consider as an example a GUI app presenting a list (of long_names) to the user, then using av_find_input_format() to select the one the user chooses. ?Such an app would break if the name suddenly needs to be split before it can be used.
Some existing names already need to be split.
The correct solution is to make that field a proper array like we have for some other properties. ?To avoid breaking ABI, we could even add a list of aliases at the end of the struct. ?The single name field could be dropped at the next big break if we want to.
I don't see how a proper array is better than a comma delimited list for these purposes
Only a million times easier to parse. ?String processing is not something you want to be doing in C unless you really have to.
Splitting on commas is pretty basic as far as string processing goes.
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ?writes:
> On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: >> $subj >> >> Some users are getting confused. We do a similar thing for >> "mov,mp4,m4a,3gp,3g2,mj2." > > And I've always considered it a bad idea. > Changing this field means the value you need to use for -f changes > (and MPlayer actually also relies on this name), so strictly speaking > this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. ?It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
What if you want to make a list of all format? ?av_find_input_format() only works when you already know the name. ?Consider as an example a GUI app presenting a list (of long_names) to the user, then using av_find_input_format() to select the one the user chooses. ?Such an app would break if the name suddenly needs to be split before it can be used.
Some existing names already need to be split.
So we need to fix them. Don't try appeal to tradition on me. Traditions are often wrong.
The correct solution is to make that field a proper array like we have for some other properties. ?To avoid breaking ABI, we could even add a list of aliases at the end of the struct. ?The single name field could be dropped at the next big break if we want to.
I don't see how a proper array is better than a comma delimited list for these purposes
Only a million times easier to parse. ?String processing is not something you want to be doing in C unless you really have to.
Splitting on commas is pretty basic as far as string processing goes.
Not as simple as iterating over an array. There are two basic ways of doing it: 1) make a copy of the string and use strtok_r (which Stefano was struggling with the other day), or 2) scan for commas and copy out only the relevant part. If you want the full list, it gets even more complicated. Storing an array directly requires no code at all. You can't win this argument. -- M?ns Rullg?rd mans at mansr.com
On 07/15/2010 12:35 PM, M?ns Rullg?rd wrote:
Alex Converse<alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd<mans at mansr.com>:
Alex Converse<alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd<mans at mansr.com>:
Baptiste Coudurier<baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote: > Reimar D?ffinger<Reimar.Doeffinger at gmx.de> writes: > >> On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: >>> $subj >>> >>> Some users are getting confused. We do a similar thing for >>> "mov,mp4,m4a,3gp,3g2,mj2." >> >> And I've always considered it a bad idea. >> Changing this field means the value you need to use for -f changes >> (and MPlayer actually also relies on this name), so strictly speaking >> this would require a major version bump. > > -f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
What if you want to make a list of all format? av_find_input_format() only works when you already know the name. Consider as an example a GUI app presenting a list (of long_names) to the user, then using av_find_input_format() to select the one the user chooses. Such an app would break if the name suddenly needs to be split before it can be used.
Some existing names already need to be split.
So we need to fix them. Don't try appeal to tradition on me. Traditions are often wrong.
No, no name need to be split, you can call av_find_input_format with the full name _with_ commas.
The correct solution is to make that field a proper array like we have for some other properties. To avoid breaking ABI, we could even add a list of aliases at the end of the struct. The single name field could be dropped at the next big break if we want to.
I don't see how a proper array is better than a comma delimited list for these purposes
Only a million times easier to parse. String processing is not something you want to be doing in C unless you really have to.
Splitting on commas is pretty basic as far as string processing goes.
Not as simple as iterating over an array. There are two basic ways of doing it: 1) make a copy of the string and use strtok_r (which Stefano was struggling with the other day), or 2) scan for commas and copy out only the relevant part. If you want the full list, it gets even more complicated. Storing an array directly requires no code at all. You can't win this argument.
There are already enough APIs for working with input formats, there is no need for an array that will be more complicated to extend. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
On Thu, Jul 15, 2010 at 3:39 PM, Baptiste Coudurier <baptiste.coudurier at gmail.com> wrote:
On 07/15/2010 12:35 PM, M?ns Rullg?rd wrote:
Alex Converse<alex.converse at gmail.com> ?writes:
2010/7/15 M?ns Rullg?rd<mans at mansr.com>:
Alex Converse<alex.converse at gmail.com> ?writes:
2010/7/15 M?ns Rullg?rd<mans at mansr.com>:
Baptiste Coudurier<baptiste.coudurier at gmail.com> ?writes:
> On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote: >> >> Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ? ?writes: >> >>> On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: >>>> >>>> $subj >>>> >>>> Some users are getting confused. We do a similar thing for >>>> "mov,mp4,m4a,3gp,3g2,mj2." >>> >>> And I've always considered it a bad idea. >>> Changing this field means the value you need to use for -f changes >>> (and MPlayer actually also relies on this name), so strictly >>> speaking >>> this would require a major version bump. >> >> -f matroska,webm would be nothing short of ridiculous. > > WTF, for demuxers, values are matched between commas. Mans, you even > reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. ?It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
What if you want to make a list of all format? ?av_find_input_format() only works when you already know the name. ?Consider as an example a GUI app presenting a list (of long_names) to the user, then using av_find_input_format() to select the one the user chooses. ?Such an app would break if the name suddenly needs to be split before it can be used.
Some existing names already need to be split.
So we need to fix them. ?Don't try appeal to tradition on me. Traditions are often wrong.
No, no name need to be split, you can call av_find_input_format with the full name _with_ commas.
More proof that this doesn't break ABI.
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote: > Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ?writes: > >> On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: >>> $subj >>> >>> Some users are getting confused. We do a similar thing for >>> "mov,mp4,m4a,3gp,3g2,mj2." >> >> And I've always considered it a bad idea. >> Changing this field means the value you need to use for -f changes >> (and MPlayer actually also relies on this name), so strictly speaking >> this would require a major version bump. > > -f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. ?It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
What if you want to make a list of all format? ?av_find_input_format() only works when you already know the name. ?Consider as an example a GUI app presenting a list (of long_names) to the user, then using av_find_input_format() to select the one the user chooses. ?Such an app would break if the name suddenly needs to be split before it can be used.
Some existing names already need to be split.
So we need to fix them. ?Don't try appeal to tradition on me. Traditions are often wrong.
I'm not saying that this is the best idea, merely that it doesn't break ABI as you have been falsely asserting.
The correct solution is to make that field a proper array like we have for some other properties. ?To avoid breaking ABI, we could even add a list of aliases at the end of the struct. ?The single name field could be dropped at the next big break if we want to.
I don't see how a proper array is better than a comma delimited list for these purposes
Only a million times easier to parse. ?String processing is not something you want to be doing in C unless you really have to.
Splitting on commas is pretty basic as far as string processing goes.
Not as simple as iterating over an array. ?There are two basic ways of doing it: 1) make a copy of the string and use strtok_r (which Stefano was struggling with the other day), or 2) scan for commas and copy out only the relevant part. ?If you want the full list, it gets even more complicated. ?Storing an array directly requires no code at all. ?You can't win this argument.
Fine I'll concede this point. Propose a patch for AVFORMAT 53 and let's continue with this patch under the current ABI until AVFORMAT 53 bumps.
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
> On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote: >> Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ?writes: >> >>> On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: >>>> $subj >>>> >>>> Some users are getting confused. We do a similar thing for >>>> "mov,mp4,m4a,3gp,3g2,mj2." >>> >>> And I've always considered it a bad idea. >>> Changing this field means the value you need to use for -f changes >>> (and MPlayer actually also relies on this name), so strictly speaking >>> this would require a major version bump. >> >> -f matroska,webm would be nothing short of ridiculous. > > WTF, for demuxers, values are matched between commas. Mans, you even > reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. ?It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
What if you want to make a list of all format? ?av_find_input_format() only works when you already know the name. ?Consider as an example a GUI app presenting a list (of long_names) to the user, then using av_find_input_format() to select the one the user chooses. ?Such an app would break if the name suddenly needs to be split before it can be used.
Some existing names already need to be split.
So we need to fix them. ?Don't try appeal to tradition on me. Traditions are often wrong.
I'm not saying that this is the best idea, merely that it doesn't break ABI as you have been falsely asserting.
I made a mistake, and I'm terribly sorry. I didn't intend to mislead anyone. No need to get aggressive.
The correct solution is to make that field a proper array like we have for some other properties. ?To avoid breaking ABI, we could even add a list of aliases at the end of the struct. ?The single name field could be dropped at the next big break if we want to.
I don't see how a proper array is better than a comma delimited list for these purposes
Only a million times easier to parse. ?String processing is not something you want to be doing in C unless you really have to.
Splitting on commas is pretty basic as far as string processing goes.
Not as simple as iterating over an array. ?There are two basic ways of doing it: 1) make a copy of the string and use strtok_r (which Stefano was struggling with the other day), or 2) scan for commas and copy out only the relevant part. ?If you want the full list, it gets even more complicated. ?Storing an array directly requires no code at all. ?You can't win this argument.
Fine I'll concede this point. Propose a patch for AVFORMAT 53 and let's continue with this patch under the current ABI until AVFORMAT 53 bumps.
I'd rather not spend time writing a patch that will be immediately rejected. -- M?ns Rullg?rd mans at mansr.com
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>: > Baptiste Coudurier <baptiste.coudurier at gmail.com> writes: > >> On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote: >>> Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ?writes: >>> >>>> On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: >>>>> $subj >>>>> >>>>> Some users are getting confused. We do a similar thing for >>>>> "mov,mp4,m4a,3gp,3g2,mj2." >>>> >>>> And I've always considered it a bad idea. >>>> Changing this field means the value you need to use for -f changes >>>> (and MPlayer actually also relies on this name), so strictly speaking >>>> this would require a major version bump. >>> >>> -f matroska,webm would be nothing short of ridiculous. >> >> WTF, for demuxers, values are matched between commas. Mans, you even >> reviewed that patch. > > I forgot about that, and now I come to think it was probably not such > a good idea. ?It will break any application which enumerates the > demuxers and does something with the name, and as such this should be > considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
What if you want to make a list of all format? ?av_find_input_format() only works when you already know the name. ?Consider as an example a GUI app presenting a list (of long_names) to the user, then using av_find_input_format() to select the one the user chooses. ?Such an app would break if the name suddenly needs to be split before it can be used.
Some existing names already need to be split.
So we need to fix them. ?Don't try appeal to tradition on me. Traditions are often wrong.
I'm not saying that this is the best idea, merely that it doesn't break ABI as you have been falsely asserting.
I made a mistake, and I'm terribly sorry. ?I didn't intend to mislead anyone. ?No need to get aggressive.
> The correct solution is to make that field a proper array like we have > for some other properties. ?To avoid breaking ABI, we could even add > a list of aliases at the end of the struct. ?The single name field > could be dropped at the next big break if we want to.
I don't see how a proper array is better than a comma delimited list for these purposes
Only a million times easier to parse. ?String processing is not something you want to be doing in C unless you really have to.
Splitting on commas is pretty basic as far as string processing goes.
Not as simple as iterating over an array. ?There are two basic ways of doing it: 1) make a copy of the string and use strtok_r (which Stefano was struggling with the other day), or 2) scan for commas and copy out only the relevant part. ?If you want the full list, it gets even more complicated. ?Storing an array directly requires no code at all. ?You can't win this argument.
Fine I'll concede this point. Propose a patch for AVFORMAT 53 and let's continue with this patch under the current ABI until AVFORMAT 53 bumps.
I'd rather not spend time writing a patch that will be immediately rejected.
So am I going to wind up burying this patch because we can't agree on what the ideal libavformat API should be? What's making me irritated here is the patch is not being held up because it is broken but because people dislike the established interfaces. Regards, Alex Converse
Alex Converse <alex.converse at gmail.com> writes:
So am I going to wind up burying this patch because we can't agree on what the ideal libavformat API should be?
No, go ahead. I was wrong about how a couple of things work, and no immediate breakage will result. -- M?ns Rullg?rd mans at mansr.com
On Thu, Jul 15, 2010 at 04:10:29PM -0400, Alex Converse wrote:
So am I going to wind up burying this patch because we can't agree on what the ideal libavformat API should be?
What's making me irritated here is the patch is not being held up because it is broken but because people dislike the established interfaces.
It is "broken" in so far as it _will_ break MPlayer, MPlayer uses the short name to decide whether to accept or reject an autodetection (since for some formats the lavf demuxers are not working well enough). This may not have been the intended use, but it seems likely to me other applications may have misused it in similar ways, since I am not aware of any other way to uniquely identify a _given_ AVInputFormat.
On Thu, Jul 15, 2010 at 4:30 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 04:10:29PM -0400, Alex Converse wrote:
So am I going to wind up burying this patch because we can't agree on what the ideal libavformat API should be?
What's making me irritated here is the patch is not being held up because it is broken but because people dislike the established interfaces.
It is "broken" in so far as it _will_ break MPlayer, MPlayer uses the short name to decide whether to accept or reject an autodetection (since for some formats the lavf demuxers are not working well enough). This may not have been the intended use, but it seems likely to me other applications may have misused it in similar ways, since I am not aware of any other way to uniquely identify a _given_ AVInputFormat.
Under the current ABI it is a comma separated list that is allowed to grow (though It grows quite infrequently). It seems like doing it the right way is possible under the current ABI (all you would have to do is compare the first name up until the first comma or NUL). Perhaps you can enlighten us on why mplayer feels it necessary to do it the way it does. Furthermore if you have a problem with a libavformat demuxer why not fix it rather than maintain your own set of demuxers only for mplayer that other players can't share. --Alex
On Thu, Jul 15, 2010 at 04:57:40PM -0400, Alex Converse wrote:
On Thu, Jul 15, 2010 at 4:30 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 04:10:29PM -0400, Alex Converse wrote:
So am I going to wind up burying this patch because we can't agree on what the ideal libavformat API should be?
What's making me irritated here is the patch is not being held up because it is broken but because people dislike the established interfaces.
It is "broken" in so far as it _will_ break MPlayer, MPlayer uses the short name to decide whether to accept or reject an autodetection (since for some formats the lavf demuxers are not working well enough). This may not have been the intended use, but it seems likely to me other applications may have misused it in similar ways, since I am not aware of any other way to uniquely identify a _given_ AVInputFormat.
Under the current ABI it is a comma separated list that is allowed to grow (though It grows quite infrequently). It seems like doing it the right way is possible under the current ABI (all you would have to do is compare the first name up until the first comma or NUL). Perhaps you can enlighten us on why mplayer feels it necessary to do it the way it does.
Probably for the same reason that av_guess_format does that? "Nobody" knows that the name isn't actually a name, but a comma-separated list of names and you'd have to parse them, which is not _quite_ as simple as your description sounds. Particularly since so far there is nothing that would allow me to assume that the order stays the same, is there?
Furthermore if you have a problem with a libavformat demuxer why not fix it rather than maintain your own set of demuxers only for mplayer that other players can't share.
Because my time is not unlimited? Sorry, but that question is about as stupid as asking "why don't you just fix all FFmpeg bugs?". Or did you fail to notice that I _have_ been fixing quite a few issues in order to get there? Not to mention the issues I can't do anything about, like the lavf mpegts demuxer patch to support LATM being refused because it breaks things with libavcodec?
On Thu, Jul 15, 2010 at 11:12:40PM +0200, Reimar D?ffinger wrote:
On Thu, Jul 15, 2010 at 04:57:40PM -0400, Alex Converse wrote:
On Thu, Jul 15, 2010 at 4:30 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 04:10:29PM -0400, Alex Converse wrote:
So am I going to wind up burying this patch because we can't agree on what the ideal libavformat API should be?
What's making me irritated here is the patch is not being held up because it is broken but because people dislike the established interfaces.
It is "broken" in so far as it _will_ break MPlayer, MPlayer uses the short name to decide whether to accept or reject an autodetection (since for some formats the lavf demuxers are not working well enough). This may not have been the intended use, but it seems likely to me other applications may have misused it in similar ways, since I am not aware of any other way to uniquely identify a _given_ AVInputFormat.
Under the current ABI it is a comma separated list that is allowed to grow (though It grows quite infrequently). It seems like doing it the right way is possible under the current ABI (all you would have to do is compare the first name up until the first comma or NUL). Perhaps you can enlighten us on why mplayer feels it necessary to do it the way it does.
Probably for the same reason that av_guess_format does that?
Btw. even av_find_input_format is rather questionable in my opinion. av_find_input_format(format->name) will return nothing for all formats that contain a ',' in name.
On 07/15/2010 02:37 PM, Reimar D?ffinger wrote:
On Thu, Jul 15, 2010 at 11:12:40PM +0200, Reimar D?ffinger wrote:
On Thu, Jul 15, 2010 at 04:57:40PM -0400, Alex Converse wrote:
On Thu, Jul 15, 2010 at 4:30 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 04:10:29PM -0400, Alex Converse wrote:
So am I going to wind up burying this patch because we can't agree on what the ideal libavformat API should be?
What's making me irritated here is the patch is not being held up because it is broken but because people dislike the established interfaces.
It is "broken" in so far as it _will_ break MPlayer, MPlayer uses the short name to decide whether to accept or reject an autodetection (since for some formats the lavf demuxers are not working well enough). This may not have been the intended use, but it seems likely to me other applications may have misused it in similar ways, since I am not aware of any other way to uniquely identify a _given_ AVInputFormat.
Under the current ABI it is a comma separated list that is allowed to grow (though It grows quite infrequently). It seems like doing it the right way is possible under the current ABI (all you would have to do is compare the first name up until the first comma or NUL). Perhaps you can enlighten us on why mplayer feels it necessary to do it the way it does.
Probably for the same reason that av_guess_format does that?
Btw. even av_find_input_format is rather questionable in my opinion. av_find_input_format(format->name) will return nothing for all formats that contain a ',' in name.
No, it will return the format. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
On Thu, Jul 15, 2010 at 02:46:28PM -0700, Baptiste Coudurier wrote:
On 07/15/2010 02:37 PM, Reimar D?ffinger wrote:
Under the current ABI it is a comma separated list that is allowed to grow (though It grows quite infrequently). It seems like doing it the right way is possible under the current ABI (all you would have to do is compare the first name up until the first comma or NUL). Perhaps you can enlighten us on why mplayer feels it necessary to do it the way it does.
Probably for the same reason that av_guess_format does that?
Btw. even av_find_input_format is rather questionable in my opinion. av_find_input_format(format->name) will return nothing for all formats that contain a ',' in name.
No, it will return the format.
Sorry, that case is indeed fine. I think it does have some strange behaviour like accepting m4a,3 for mov but not mp4,mov for example.
Reimar D?ffinger <Reimar.Doeffinger at gmx.de> writes:
On Thu, Jul 15, 2010 at 02:46:28PM -0700, Baptiste Coudurier wrote:
On 07/15/2010 02:37 PM, Reimar D?ffinger wrote:
Under the current ABI it is a comma separated list that is allowed to grow (though It grows quite infrequently). It seems like doing it the right way is possible under the current ABI (all you would have to do is compare the first name up until the first comma or NUL). Perhaps you can enlighten us on why mplayer feels it necessary to do it the way it does.
Probably for the same reason that av_guess_format does that?
Btw. even av_find_input_format is rather questionable in my opinion. av_find_input_format(format->name) will return nothing for all formats that contain a ',' in name.
No, it will return the format.
Sorry, that case is indeed fine. I think it does have some strange behaviour like accepting m4a,3 for mov but not mp4,mov for example.
It accepts the entire string as stored or any subsequence from the list. It does not accept arbitrary subsets. All very confusing. -- M?ns Rullg?rd mans at mansr.com
On Thu, Jul 15, 2010 at 5:12 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 04:57:40PM -0400, Alex Converse wrote:
On Thu, Jul 15, 2010 at 4:30 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 04:10:29PM -0400, Alex Converse wrote:
So am I going to wind up burying this patch because we can't agree on what the ideal libavformat API should be?
What's making me irritated here is the patch is not being held up because it is broken but because people dislike the established interfaces.
It is "broken" in so far as it _will_ break MPlayer, MPlayer uses the short name to decide whether to accept or reject an autodetection (since for some formats the lavf demuxers are not working well enough). This may not have been the intended use, but it seems likely to me other applications may have misused it in similar ways, since I am not aware of any other way to uniquely identify a _given_ AVInputFormat.
Under the current ABI it is a comma separated list that is allowed to grow (though It grows quite infrequently). It seems like doing it the right way is possible under the current ABI (all you would have to do is compare the first name up until the first comma or NUL). Perhaps you can enlighten us on why mplayer feels it necessary to do it the way it does.
Probably for the same reason that av_guess_format does that? "Nobody" knows that the name isn't actually a name, but a comma-separated list of names and you'd have to parse them, which is not _quite_ as simple as your description sounds. Particularly since so far there is nothing that would allow me to assume that the order stays the same, is there?
One of the demuxers in your list uses a comma separated list and its list has grown in recent memory.
Furthermore if you have a problem with a libavformat demuxer why not fix it rather than maintain your own set of demuxers only for mplayer that other players can't share.
Because my time is not unlimited? Sorry, but that question is about as stupid as asking "why don't you just fix all FFmpeg bugs?". Or did you fail to notice that I _have_ been fixing quite a few issues in order to get there?
Good for you, I don't understand why FFmpeg is being asked to bend over backwards for MPlayer's hacks.
Not to mention the issues I can't do anything about, like the lavf mpegts demuxer patch to support LATM being refused because it breaks things with libavcodec?
Why can't you do anything about?
On Thu, Jul 15, 2010 at 07:14:38PM -0400, Alex Converse wrote:
Furthermore if you have a problem with a libavformat demuxer why not fix it rather than maintain your own set of demuxers only for mplayer that other players can't share.
Because my time is not unlimited? Sorry, but that question is about as stupid as asking "why don't you just fix all FFmpeg bugs?". Or did you fail to notice that I _have_ been fixing quite a few issues in order to get there?
Good for you, I don't understand why FFmpeg is being asked to bend over backwards for MPlayer's hacks.
It isn't, I can just change the string in MPlayer. I'm saying there's a API and ABI change issue that I see a real chance of affecting real-world applications. If people don't care fine, but then we can just drop the effort of dealing with version numbers. If you just think it probably won't afffect enough applications to matter, fine as well, but please at least add something somewhere (like APIchanges, even if it isn't considered one) so that people have a chance to figure things out without having to read this list. And documenting that "name" is not really a name, particularly not in the meaning of a mostly stable identifier would be helpful, too.
On Fri, Jul 16, 2010 at 1:36 AM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 07:14:38PM -0400, Alex Converse wrote:
Furthermore if you have a problem with a libavformat demuxer why not fix it rather than maintain your own set of demuxers only for mplayer that other players can't share.
Because my time is not unlimited? Sorry, but that question is about as stupid as asking "why don't you just fix all FFmpeg bugs?". Or did you fail to notice that I _have_ been fixing quite a few issues in order to get there?
Good for you, I don't understand why FFmpeg is being asked to bend over backwards for MPlayer's hacks.
It isn't, I can just change the string in MPlayer. I'm saying there's a API and ABI change issue that I see a real chance of affecting real-world applications.
I'm saying it's not an ABI break, it's MPlayer (which doesn't even build atm) abusing stings that were never meant to be invariant.
If people don't care fine, but then we can just drop the effort of dealing with version numbers. If you just think it probably won't afffect enough applications to matter, fine as well, but please at least add something somewhere (like APIchanges, even if it isn't considered one) so that people have a chance to figure things out without having to read this list. And documenting that "name" is not really a name, particularly not in the meaning of a mostly stable identifier would be helpful, too.
Alex Converse <alex.converse at gmail.com> writes:
On Fri, Jul 16, 2010 at 1:36 AM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 07:14:38PM -0400, Alex Converse wrote:
Furthermore if you have a problem with a libavformat demuxer why not fix it rather than maintain your own set of demuxers only for mplayer that other players can't share.
Because my time is not unlimited? Sorry, but that question is about as stupid as asking "why don't you just fix all FFmpeg bugs?". Or did you fail to notice that I _have_ been fixing quite a few issues in order to get there?
Good for you, I don't understand why FFmpeg is being asked to bend over backwards for MPlayer's hacks.
It isn't, I can just change the string in MPlayer. I'm saying there's a API and ABI change issue that I see a real chance of affecting real-world applications.
I'm saying it's not an ABI break, it's MPlayer (which doesn't even build atm) abusing stings that were never meant to be invariant.
In case I wasn't clear earlier: I RETRACT ANY OBJECTIONS TO THE PATCH. I still dislike comma-separated values, but that shouldn't hold this up. -- M?ns Rullg?rd mans at mansr.com
2010/7/16 M?ns Rullg?rd <mans at mansr.com>:
Alex Converse <alex.converse at gmail.com> writes:
On Fri, Jul 16, 2010 at 1:36 AM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 07:14:38PM -0400, Alex Converse wrote:
Furthermore if you have a problem with a libavformat demuxer why not fix it rather than maintain your own set of demuxers only for mplayer that other players can't share.
Because my time is not unlimited? Sorry, but that question is about as stupid as asking "why don't you just fix all FFmpeg bugs?". Or did you fail to notice that I _have_ been fixing quite a few issues in order to get there?
Good for you, I don't understand why FFmpeg is being asked to bend over backwards for MPlayer's hacks.
It isn't, I can just change the string in MPlayer. I'm saying there's a API and ABI change issue that I see a real chance of affecting real-world applications.
I'm saying it's not an ABI break, it's MPlayer (which doesn't even build atm) abusing stings that were never meant to be invariant.
In case I wasn't clear earlier:
I RETRACT ANY OBJECTIONS TO THE PATCH.
Thank you
I still dislike comma-separated values, but that shouldn't hold this up.
I agree
On Fri, Jul 16, 2010 at 01:57:51PM -0400, Alex Converse wrote:
On Fri, Jul 16, 2010 at 1:36 AM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 07:14:38PM -0400, Alex Converse wrote:
Furthermore if you have a problem with a libavformat demuxer why not fix it rather than maintain your own set of demuxers only for mplayer that other players can't share.
Because my time is not unlimited? Sorry, but that question is about as stupid as asking "why don't you just fix all FFmpeg bugs?". Or did you fail to notice that I _have_ been fixing quite a few issues in order to get there?
Good for you, I don't understand why FFmpeg is being asked to bend over backwards for MPlayer's hacks.
It isn't, I can just change the string in MPlayer. I'm saying there's a API and ABI change issue that I see a real chance of affecting real-world applications.
I'm saying it's not an ABI break, it's MPlayer (which doesn't even build atm) abusing stings that were never meant to be invariant.
Do what you want, but you can use that argument for anything. Oh, we removed that function? Well it was never supposed to be there. Someone at least document the "name" to say what they think it means, since obviously it is neither what I originally thought (also out of lazyness) it meant, nor does it have much to do with a name.
Hi, On Thu, Jul 15, 2010 at 4:57 PM, Alex Converse <alex.converse at gmail.com> wrote:
you can enlighten us on why mplayer feels it necessary to do it the way it does.
Speaking for the devil, I at some point (long before FFmpeg had longname, but under the same current ABI) had a table of longnames in GStreamer that identified the codec that it was to set the longname for by ... name (the exact, comma-separated one). I also remember this breaking several times. But so point being, people use it for the strangest of things. Ronald
On Thu, Jul 15, 2010 at 03:05:51PM -0400, Alex Converse wrote:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ?writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. ?It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
Uh, the problem is that we have nothing else that could qualify as a unique identifier for the format. And av_find_input_format does not work for the question "is what the autodetection found the mov format demuxer?"
On Thu, Jul 15, 2010 at 09:21:08PM +0200, Reimar D?ffinger wrote:
On Thu, Jul 15, 2010 at 03:05:51PM -0400, Alex Converse wrote:
2010/7/15 M?ns Rullg?rd <mans at mansr.com>:
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> ?writes:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: > $subj > > Some users are getting confused. We do a similar thing for > "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. ?It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
Uh, the problem is that we have nothing else that could qualify as a unique identifier for the format.
Iam not against a format_id like codec_id [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The real ebay dictionary, page 1 "Used only once" - "Some unspecified defect prevented a second use" "In good condition" - "Can be repaird by experienced expert" "As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
On 07/15/2010 07:47 PM, Michael Niedermayer wrote:
On Thu, Jul 15, 2010 at 09:21:08PM +0200, Reimar D?ffinger wrote:
On Thu, Jul 15, 2010 at 03:05:51PM -0400, Alex Converse wrote:
2010/7/15 M?ns Rullg?rd<mans at mansr.com>:
Baptiste Coudurier<baptiste.coudurier at gmail.com> writes:
On 07/15/2010 10:32 AM, M?ns Rullg?rd wrote:
Reimar D?ffinger<Reimar.Doeffinger at gmx.de> writes:
> On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote: >> $subj >> >> Some users are getting confused. We do a similar thing for >> "mov,mp4,m4a,3gp,3g2,mj2." > > And I've always considered it a bad idea. > Changing this field means the value you need to use for -f changes > (and MPlayer actually also relies on this name), so strictly speaking > this would require a major version bump.
-f matroska,webm would be nothing short of ridiculous.
WTF, for demuxers, values are matched between commas. Mans, you even reviewed that patch.
I forgot about that, and now I come to think it was probably not such a good idea. It will break any application which enumerates the demuxers and does something with the name, and as such this should be considered an ABI break.
That strikes me as ABI abuse. *av_find_input_format() still works. You could make the same argument about longnames. Where do we guarantee that short name lists won't grow. I don't see anything in the doxy or any other annotation treating shortnames and long names differently in any ABI regard.
Uh, the problem is that we have nothing else that could qualify as a unique identifier for the format.
Iam not against a format_id like codec_id
I was thinking about that as well. It could be useful. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
Hi, On Thu, Jul 15, 2010 at 1:15 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2." [..] Changing the long name should be ok though...
Then we should probably modify ffplay/ffmpeg to use longname (if not null) for display also? Ronald
"Ronald S. Bultje" <rsbultje at gmail.com> writes:
Hi,
On Thu, Jul 15, 2010 at 1:15 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2." [..] Changing the long name should be ok though...
Then we should probably modify ffplay/ffmpeg to use longname (if not null) for display also?
The short name should always be shown IMO. It is useful. -- M?ns Rullg?rd mans at mansr.com
On Thu, Jul 15, 2010 at 1:15 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
r5118 did not come with a major bump.
Changing the long name should be ok though...
Alex Converse <alex.converse at gmail.com> writes:
On Thu, Jul 15, 2010 at 1:15 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
r5118 did not come with a major bump.
That was a mistake. -- M?ns Rullg?rd mans at mansr.com
On 07/15/2010 12:15 PM, M?ns Rullg?rd wrote:
Alex Converse<alex.converse at gmail.com> writes:
On Thu, Jul 15, 2010 at 1:15 PM, Reimar D?ffinger <Reimar.Doeffinger at gmx.de> wrote:
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
And I've always considered it a bad idea. Changing this field means the value you need to use for -f changes (and MPlayer actually also relies on this name), so strictly speaking this would require a major version bump.
r5118 did not come with a major bump.
That was a mistake.
I don't think so. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
On 07/14/2010 10:58 PM, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
Regards, Alex Converse
webm-name.diff
Index: libavformat/matroskadec.c =================================================================== --- libavformat/matroskadec.c (revision 24242) +++ libavformat/matroskadec.c (working copy) @@ -1899,8 +1899,8 @@ }
AVInputFormat matroska_demuxer = { - "matroska", - NULL_IF_CONFIG_SMALL("Matroska file format"), + "matroska,webm", + NULL_IF_CONFIG_SMALL("Matroska/WebM file format"), sizeof(MatroskaDemuxContext), matroska_probe, matroska_read_header,
Patch looks perfectly fine to me. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
On Thu, Jul 15, 2010 at 01:58:58AM -0400, Alex Converse wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
--- libavformat/matroskadec.c (revision 24242) +++ libavformat/matroskadec.c (working copy) @@ -1899,8 +1899,8 @@
- NULL_IF_CONFIG_SMALL("Matroska file format"), + NULL_IF_CONFIG_SMALL("Matroska/WebM file format"),
Quickly sneak in this harmless change before anybody notices ;) Diego
On Thu, Jul 15, 2010 at 1:58 AM, Alex Converse <alex.converse at gmail.com> wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
The majority seems to approve of this. Will apply in three days unless there are *new* objections.
Alex Converse <alex.converse at gmail.com> writes:
On Thu, Jul 15, 2010 at 1:58 AM, Alex Converse <alex.converse at gmail.com> wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
The majority seems to approve of this.
Will apply in three days unless there are *new* objections.
Please do. This should be plenty enough time to fix mplayer. -- M?ns Rullg?rd mans at mansr.com
On Tue, Jul 27, 2010 at 08:11:39AM +0100, M?ns Rullg?rd wrote:
Alex Converse <alex.converse at gmail.com> writes:
On Thu, Jul 15, 2010 at 1:58 AM, Alex Converse <alex.converse at gmail.com> wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
The majority seems to approve of this.
Will apply in three days unless there are *new* objections.
Please do. This should be plenty enough time to fix mplayer.
FFmpeg changes breaking MPlayer are of no particular consideration to me and neither should they be to you. These things are almost always easily fixed there since there is no attempt to be compatible with old versions, MPlayer won't even link to FFmpeg versions more than a few weeks old. However that I mistook this string as a unique identifier of the format combined with the fact that there is no other (public) API to identify a format makes me still believe that this has a high chance of breaking quite a few applications that contrary to MPlayer actually want to work with many/all "compatible" lavf versions. And if we do this kind of thing too often I can already see people say "no wonder you keep the same API version for so long, whenever you change the API you just redefine things to never have been part of the API". Anyway, I think I made my point enough now and intend to leave this as the last mail on the subject. At least it is now documented what this string means. However, if next time someone suggests removing an entry and just adjust the documented API instead of bumping major I will seriously consider eating them alive - you have been warned.
On Tue, Jul 27, 2010 at 3:06 AM, Alex Converse <alex.converse at gmail.com> wrote:
On Thu, Jul 15, 2010 at 1:58 AM, Alex Converse <alex.converse at gmail.com> wrote:
$subj
Some users are getting confused. We do a similar thing for "mov,mp4,m4a,3gp,3g2,mj2."
The majority seems to approve of this.
Will apply in three days unless there are *new* objections.
Applied
participants (7)
-
alex.converse@gmail.com -
baptiste.coudurier@gmail.com -
diego@biurrun.de -
mans@mansr.com -
michaelni@gmx.at -
Reimar.Doeffinger@gmx.de -
rsbultje@gmail.com