I've recently started digging into some of the more advanced ffmpeg options in a quest to figure out why the xvid output from transcode looks better than ffmpeg. Am I the only one who finds the state of ffmpeg's documentation to be completely infuriating? For example, one of the better-documented ones: -umv E.V.. use unlimited motion vectors At least this tells me what it does. However, what it fails to tell me is that (at least with xvid) it requires a parameter. What should that parameter be? is it int, float, hash value? Is it like quant where lower is better, or will it give better results if I set it to 1000? What's the range? When I ask in #ffmpeg on freenode about what some of these options do (like -partitions and its ilk, which have NO mention in the man page), I'm told to check the source (which would be a lot of help if options like this were documented), or to read the documentation for mencoder (which doesn't cover most of these, and for other things like -vhq there are no analogues in ffmpeg). The other option, of course, is "write it yourself" -- which I might be inclined to do if there was any information available to use as a basis. So with that said, why isn't there better documentation about all of these options, which modes use them, and most importantly what kind of effects they'll have on output video? -Chris
Hi On Sat, Jul 22, 2006 at 07:55:55PM -0700, Chris Petersen wrote:
I've recently started digging into some of the more advanced ffmpeg options in a quest to figure out why the xvid output from transcode looks better than ffmpeg. Am I the only one who finds the state of ffmpeg's documentation to be completely infuriating?
For example, one of the better-documented ones:
-umv E.V.. use unlimited motion vectors
At least this tells me what it does. However, what it fails to tell me is that (at least with xvid) it requires a parameter. What should that parameter be? is it int, float, hash value? Is it like quant where lower is better, or will it give better results if I set it to 1000? What's the range?
umv does not have a parameter, its a limitation of the current parser that it does, you can either write -umv 1 or -flags +umv all parameter types of all options are also documented in the ffmpeg -h output furthermore umv is a h263 specific option and has no effect on xvid you should have noticed that by the fact that the output will be unaffected by it or if you looked at the source, simply a grep UMV would have resulted in: {"umv", "use unlimited motion vectors", 0, FF_OPT_TYPE_CONST, CODEC_FLAG_H263P_UMV, INT_MIN, INT_MAX, V|E, "flags"}, and the H263P should have hinted on the h263 specificness ...
When I ask in #ffmpeg on freenode about what some of these options do (like -partitions and its ilk, which have NO mention in the man page), I'm told to check the source (which would be a lot of help if options like this were documented),
you have to read and _understand_ the source, and also look at the various specifications for the various standards
or to read the documentation for mencoder (which doesn't cover most of these,
they might have slightly different names in mencoder
and for other things like -vhq there are no analogues in ffmpeg). The other option, of course, is "write it yourself" -- which I might be inclined to do if there was any information available to use as a basis.
the source is the information of course, the simple fact that ffmpeg can use an option is proof that there is enough information in the source to define exactly what an option does
So with that said, why isn't there better documentation about all of these options, which modes use them, and most importantly what kind of effects they'll have on output video?
you awnsered that yourself already, its hard to write [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In the past you could go to a library and read, borrow or copy any book Today you'd get arrested for mere telling someone where the library is
umv does not have a parameter, its a limitation of the current parser that it does, you can either write -umv 1 or -flags +umv all parameter types of all options are also documented in the ffmpeg -h output furthermore umv is a h263 specific option and has no effect on xvid you should have noticed that by the fact that the output will be unaffected by it or if you looked at the source, simply a grep UMV would have resulted in: {"umv", "use unlimited motion vectors", 0, FF_OPT_TYPE_CONST, CODEC_FLAG_H263P_UMV, INT_MIN, INT_MAX, V|E, "flags"}, and the H263P should have hinted on the h263 specificness ...
I read the "(h263+)" in the man page as "this technique comes from h.263" not "this option is limited to h.263 encoding". However, that might explain why ffmpeg was trying to gobble up the next parameter when I used -umv, then. I had to specify a number or it gobbled up the next param and complained that "1" was an invalid file (1 being the value of the next parameter). Perhaps since because it wasn't used for xvid, it was just treating it as a generic parameter and expecting a value. Might be handy to get some better error handling for stuff like this -- also to inform people of non-applicable options (would certainly have saved me from asking at least this question).
you have to read and _understand_ the source, and also look at the various specifications for the various standards
Understanding the source is not the same as understanding what the various codec options do. However, I'm not a C coder. I haven't done any serious coding with C in well over 10 years. As a user, I shouldn't *have* to be able to understand the source of a program in order to use it.
and for other things like -vhq there are no analogues in ffmpeg). The other option, of course, is "write it yourself" -- which I might be inclined to do if there was any information available to use as a basis.
the source is the information of course, the simple fact that ffmpeg can use an option is proof that there is enough information in the source to define exactly what an option does
That's my point. There *is* no -vhq option in ffmpeg, but transcode and mplayer both seem to rely heavily on it. I've poked through mplayer's code and found the various xvid options it sets for the various vhq levels, but trying to port those back to ffmpeg is not easy (the closet analogue I could find is -mbd in ffmpeg, which isn't quite as granular). Transcode is a whole other nightmare. My knowledge of C isn't good enough to see what's going on -- most of their options appear to be obscured by plugin api and other stuff like that. -Chris
Hi On Sun, Jul 23, 2006 at 01:17:46AM -0700, Chris Petersen wrote:
umv does not have a parameter, its a limitation of the current parser that it does, you can either write -umv 1 or -flags +umv all parameter types of all options are also documented in the ffmpeg -h output furthermore umv is a h263 specific option and has no effect on xvid you should have noticed that by the fact that the output will be unaffected by it or if you looked at the source, simply a grep UMV would have resulted in: {"umv", "use unlimited motion vectors", 0, FF_OPT_TYPE_CONST, CODEC_FLAG_H263P_UMV, INT_MIN, INT_MAX, V|E, "flags"}, and the H263P should have hinted on the h263 specificness ...
I read the "(h263+)" in the man page as "this technique comes from h.263" not "this option is limited to h.263 encoding".
h.263+ is a later "version" of the h.263 standard [...]
you have to read and _understand_ the source, and also look at the various specifications for the various standards
Understanding the source is not the same as understanding what the various codec options do. However, I'm not a C coder. I haven't done any serious coding with C in well over 10 years. As a user, I shouldn't *have* to be able to understand the source of a program in order to use it.
docs suck and your c knowledege sucks -> learn c and write docs or find someone else to do it for you, or dont use ffmpeg, or live with the situation as is which is sucky mostly nonexistent docs ... its the same with the handling of nonsense combinations of options like -umv + xvid, fix it, find someone else to fix it or live with it as is ... [...]
Transcode is a whole other nightmare. My knowledge of C isn't good enough to see what's going on -- most of their options appear to be
iam sure someone here could suggest some good books to learn C :) [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In the past you could go to a library and read, borrow or copy any book Today you'd get arrested for mere telling someone where the library is
h.263+ is a later "version" of the h.263 standard
Yes. Just saying that it's not entirely clear. There is at least one technique (quantisation method) that comes from h263 but is used by xvid.
docs suck and your c knowledege sucks -> learn c and write docs or find someone else to do it for you, or dont use ffmpeg, or live with the situation as is which is sucky mostly nonexistent docs ... its the same with the handling of nonsense combinations of options like -umv + xvid, fix it, find someone else to fix it or live with it as is ...
[...]
Transcode is a whole other nightmare. My knowledge of C isn't good enough to see what's going on -- most of their options appear to be
iam sure someone here could suggest some good books to learn C :)
This epitomizes the worst of what open source does to its users. Let me put this in the context that it sounds to me: "Hi, I have a problem, I've searched the web and done my best to poke through the source to find an answer, but the information just isn't there in a format I can understand" "Sorry, you're obviously too stupid to see the answer. Why don't you become an expert coder so that you can write our documentation for us, or just go use some inferior product" Now, aside from the fact that your documentation is often WRONG or MISSING (I'll provide an example in a sec), wouldn't a better answer have been: "Yes, I'm aware that we've been a bit slow in keeping our documentation up to date. Would you be interested in helping to fix that? I can introduce you to the people who manage the various portions of the code so you can get all of the information you need." Had you asked like that, I might have even considered helping out (I'm not great at writing documentation, but I do like to fix things that are broken and I'm usually pretty good at tedium), despite the fact that I don't have a lot of time for new tasks. I work full time, manage two extremely popular open source projects, mentor 2 students for google's summer of code and have a life that my wife likes me to keep up with. But now, you've been extremely rude and risked losing someone who could have been a great help in making ffmpeg into something that non-coders could actually USE without having to ask hundreds of stupid questions. As for the example I mentioned, here it is: -aic E.V.. h263 advanced intra coding / mpeg4 ac prediction This option actually has an entry in the man page, but it fails to mention the mpeg4 info that ffmpeg's default commandline help mentions. And in my use of this, it requires a parameter, which neither piece of documentation mentions. I don't think the parameter does anything, but if I don't include one, ffmpeg gobbles up the next parameter and complains about its numeric value as if it was a file. So please, just because I've chosen to pursue other languages instead of C, don't assume that I don't know what I'm doing, and don't immediately jump to the conclusion that the fault is somehow mine for not seeing things properly. Take some responsibility for the fact that your project has faults and could use some help, and don't immediately alienate people who point that out and might be willing to help. -Chris
On Sun, Jul 23, 2006 at 12:22:34PM -0700, Chris Petersen wrote:
Transcode is a whole other nightmare. My knowledge of C isn't good enough to see what's going on -- most of their options appear to be
iam sure someone here could suggest some good books to learn C :)
This epitomizes the worst of what open source does to its users. Let me put this in the context that it sounds to me:
And you epitomize what users of "open source" software do to its developers: whine and bitch incessantly because what you have been _given_ does not live up to your ideal expectations. If the current state of the software is not sufficient for you, you're welcome to hire someone to fix the deficiencies, to write the documentation, to figure out how to use the software for you, etc. These are the benefits that you get from the software being free; however they still might cost you money. Think speech not beer etc.
"Hi, I have a problem, I've searched the web and done my best to poke through the source to find an answer, but the information just isn't there in a format I can understand"
"Sorry, you're obviously too stupid to see the answer. Why don't you become an expert coder so that you can write our documentation for us, or just go use some inferior product"
Now, aside from the fact that your documentation is often WRONG or MISSING (I'll provide an example in a sec), wouldn't a better answer have been:
"Yes, I'm aware that we've been a bit slow in keeping our documentation up to date. Would you be interested in helping to fix that? I can introduce you to the people who manage the various portions of the code so you can get all of the information you need."
Yes it may be nicer. However, I think you were the one who already talked to me on IRC before mailing the list, and you were already acting annoying and whiny like I owed you an answer then... AND I AM NOT EVEN ONE OF THE DEVELOPERS!
Had you asked like that, I might have even considered helping out (I'm not great at writing documentation, but I do like to fix things that are broken and I'm usually pretty good at tedium), despite the fact that I don't have a lot of time for new tasks. I work full time, manage two extremely popular open source projects, mentor 2 students for google's summer of code and have a life that my wife likes me to keep up with. But now, you've been extremely rude and risked losing someone who could have been a great help in making ffmpeg into something that non-coders could actually USE without having to ask hundreds of stupid questions.
Even more epitomizing the whiny user: trying to convince others how important you are and what a horror it is that they've "lost" you.
So please, just because I've chosen to pursue other languages instead of C, don't assume that I don't know what I'm doing, and don't immediately jump to the conclusion that the fault is somehow mine for not seeing things properly. Take some responsibility for the fact that your project has faults and could use some help, and don't immediately alienate people who point that out and might be willing to help.
They'd probably be happy to have your help if you want to give it, but you're not going to convince anyone to help you in exchange for getting some hypothetical future help improving the project... Rich
And you epitomize what users of "open source" software do to its developers: whine and bitch incessantly because what you have been _given_ does not live up to your ideal expectations. If the current state of the software is not sufficient for you, you're welcome to hire someone to fix the deficiencies, to write the documentation, to figure out how to use the software for you, etc. These are the benefits that you get from the software being free; however they still might cost you money. Think speech not beer etc.
Please don't confuse frustration with "incessant bitching". I don't expect open source software to work perfectly, but what I do expect is some professionalism from its developers (and its community). As a developer who is part of a large open source project, I would personally welcome someone who complained a bit but seemed genuinely interested in helping out if only given the proper direction. In fact, I would *love* for someone to help document some of my code, or tell me where it's inconsistent. That's all that I've been doing here -- perhaps I should have just filed an impersonal bug report instead of trying to start a conversation that is quickly turning into an insult war
Yes it may be nicer. However, I think you were the one who already talked to me on IRC before mailing the list, and you were already acting annoying and whiny like I owed you an answer then... AND I AM NOT EVEN ONE OF THE DEVELOPERS!
funny, I don't remember the conversation going like that. In fact, I remember you being quite helpful, as far as IRC goes for dealing with frustrated users.
Even more epitomizing the whiny user: trying to convince others how important you are and what a horror it is that they've "lost" you.
again. If the tables were turned, I would be sad to lose out on someone helping to enhance one of my own projects. But then again, I do my best to avoid that situation. I seriously didn't want this to turn into an insult war. Yes, I'm a frustrated user. Yes, I think (know) that there are some severe flaws in the ffmpeg documentation that I wish would get fixed. Perhaps I would be willing to help fix them, but no I'm not going to do it all on my own by poking my nose around sourcecode that I have no previous knowledge of or time to decipher in detail. I apologize if you or anyone else thinks that I come off as "whiny" but if I'm the last user in a long string of what you see as "incessant bitching" then perhaps it's time to reexamine what causes all of this frustration among the user base. And lastly, in order to avoid this conversation going any further in the wrong direction, this is my last reply to anyone about this topic unless someone with actual knowledge of the issue decides to open a REAL discussion about the options available to help improve ffmpeg's user documentation, which despite your insults I am still interested in contributing to -- within the scope of my abilities. -Chris
On Mon, Jul 24, 2006 at 12:23:41AM -0700, Chris Petersen wrote:
And you epitomize what users of "open source" software do to its developers: whine and bitch incessantly because what you have been _given_ does not live up to your ideal expectations. If the current state of the software is not sufficient for you, you're welcome to hire someone to fix the deficiencies, to write the documentation, to figure out how to use the software for you, etc. These are the benefits that you get from the software being free; however they still might cost you money. Think speech not beer etc.
Please don't confuse frustration with "incessant bitching". I don't expect open source software to work perfectly, but what I do expect is some professionalism from its developers (and its community). As a
That depends on the way in which the user handles a situation.
inconsistent. That's all that I've been doing here -- perhaps I should have just filed an impersonal bug report instead of trying to start a conversation that is quickly turning into an insult war
Yes I think that would have been much better. Or offering to help write documentation or something.
Yes it may be nicer. However, I think you were the one who already talked to me on IRC before mailing the list, and you were already acting annoying and whiny like I owed you an answer then... AND I AM NOT EVEN ONE OF THE DEVELOPERS!
funny, I don't remember the conversation going like that. In fact, I remember you being quite helpful, as far as IRC goes for dealing with frustrated users.
I was very polite there I thought, but it struck me that you were complaining to me about the state of ffmpeg. And now when I see you flaming (albeit fairly mildly) about the docs and support, it irritates me. I have no wish to continue an "insult war" either. Please just realize that the lack of responsiveness you're seeing has something to do with the attitude you're projecting in asking for help. Rich
participants (3)
-
dalias@aerifal.cx -
lists@forevermore.net -
michaelni@gmx.at