P3 Residual FFmpeg issues

6 messages Options
Embed this post
Permalink
sam lewis-2

P3 Residual FFmpeg issues

Reply Threaded More More options
Print post
Permalink
Hi,

I would like to try to fix this bug.

     "Select file(s) for batch processing..." dialogue lacks "All Supported files" and "FFmpeg-compatible files" filters

Any suggestions, please?

Thanks

Sam


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Richard Ash (audacity-help)

Re: P3 Residual FFmpeg issues

Reply Threaded More More options
Print post
Permalink
On Tue, 2009-11-03 at 21:34 +0800, sam lewis wrote:
> I would like to try to fix this bug.
>
>      "Select file(s) for batch processing..." dialogue lacks "All
> Supported files" and "FFmpeg-compatible files" filters
>
> Any suggestions, please?

I think that dialogue has a separate hard-coded list of filters, rather
than using the one that is generated for the open / import dialogues
automatically based on the importer plug-in system.

So I would like to see a patch to remove the hard-coded list and use the
same list as the open / import dialogues, so that when new formats /
importers are added in the future, we don't have to fix this again
because the list is automatic correct. The normal open / import dialogue
is probably a good thing to copy from ...

Richard


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Gale (Audacity Team)

Re: P3 Residual FFmpeg issues

Reply Threaded More More options
Print post
Permalink
In reply to this post by sam lewis-2

| From sam lewis <[hidden email]>
| Tue, 3 Nov 2009 21:34:54 +0800
| Subject: [Audacity-devel] P3 Residual FFmpeg issues
> I would like to try to fix this bug.
>
>      "Select file(s) for batch processing..." dialogue lacks "All Supported
> files" and "FFmpeg-compatible files" filters
>
> Any suggestions, please?

Hi Sam

Thanks for your interest. This obviously isn't of crucial importance
right now, though a fix would be handy. I'll downgrade it to P4 as it
isn't worthy of release noting. P3 suited us at the time (GSoC last
year) because it kept the FFmpeg issues together.

I agree with what Richard said - it should use the same automatically
generated list that the Open and Import windows have.

There are also oddities with the window placement itself (this is
separate and may be one for Ed, but it is irritating). If you launch
Audacity and go straight to File > Apply Chain > Apply to files,
the window is in  a very hard-to-see, low down position, not the
usual one for File > Open or > Import. The reason is I presume
that the window sits below "Apply Chain" in the dialogue behind,
but that seems an inadequate reason to me to do it. And if you
then use File > Open or > Import after a chain, that file open
window is itself at the odd, non-standard position.

If you do File > Open or > Import first, then the Select file(s)
for batch processing window takes the position of the normal
file open window anyway. I'd prefer Select file(s) for batch
processing just obeyed the rules of the normal file open window.




Gale
 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
sam lewis-2

Re: P3 Residual FFmpeg issues

Reply Threaded More More options
Print post
Permalink
Hi,

I attach the patch to remove original hard-coded file filter in BatchProcessDialog::OnApplyToFiles and use the same method as
AudacityProject::ShowOpenDialog. In fact, I copy some code from the later function.  As I observed, CleanSpeech projects are supposed to have different hard-coded file filter. Should I just keep it unchanged?


Thanks
Sam


On Wed, Nov 4, 2009 at 11:14 AM, Gale Andrews <[hidden email]> wrote:

| From sam lewis <[hidden email]>
| Tue, 3 Nov 2009 21:34:54 +0800
| Subject: [Audacity-devel] P3 Residual FFmpeg issues
> I would like to try to fix this bug
>
>      "Select file(s) for batch processing..." dialogue lacks "All Supported
> files" and "FFmpeg-compatible files" filters
>
> Any suggestions, please?

Hi Sam

Thanks for your interest. This obviously isn't of crucial importance
right now, though a fix would be handy. I'll downgrade it to P4 as it
isn't worthy of release noting. P3 suited us at the time (GSoC last
year) because it kept the FFmpeg issues together.

I agree with what Richard said - it should use the same automatically
generated list that the Open and Import windows have.

There are also oddities with the window placement itself (this is
separate and may be one for Ed, but it is irritating). If you launch
Audacity and go straight to File > Apply Chain > Apply to files,
the window is in  a very hard-to-see, low down position, not the
usual one for File > Open or > Import. The reason is I presume
that the window sits below "Apply Chain" in the dialogue behind,
but that seems an inadequate reason to me to do it. And if you
then use File > Open or > Import after a chain, that file open
window is itself at the odd, non-standard position.

If you do File > Open or > Import first, then the Select file(s)
for batch processing window takes the position of the normal
file open window anyway. I'd prefer Select file(s) for batch
processing just obeyed the rules of the normal file open window.




Gale


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel

patchfile (4K) Download Attachment
Richard Ash (audacity-help)

Re: P3 Residual FFmpeg issues

Reply Threaded More More options
Print post
Permalink
On Wed, 2009-11-04 at 23:32 +0800, sam lewis wrote:
> Hi,
>
> I attach the patch to remove original hard-coded file filter in
> BatchProcessDialog::OnApplyToFiles and use the same method as
> AudacityProject::ShowOpenDialog. In fact, I copy some code from the
> later function.

A couple of issues in the patch:
1. #include "Import/Import.h": no such file or directory. The
subdirectory is called "import" and on Linux file systems are case
sensitive (and Mac is moving that way), so "import" and "Import" are
different directories. This causes a compile failure.
2. +      _("Select file(s) for batch processing...");  
+   //wxString fileSelector = project->GetCleanSpeechMode() ?
+   //   _("Vocal files (*.wav;*.mp3)|*.wav;*.mp3|WAV files (*.wav)|*.wav|MP3 files (*.mp3)|*.mp3") :
+   //   _("All files (*.*)|*.*|WAV files (*.wav)|*.wav|AIFF files (*.aif)|*.aif|AU files (*.au)|*.au|MP3 files (*.mp3)|*.mp3|Ogg Vorbis files (*.ogg)|*.ogg|FLAC files (*.flac)|*.flac"
+   //    );
No point in leaving the incorrect code commented out - it's always there
in the CVS history if needed. If you feel you want a note that it used
to be different, then add a 1-line comment so people know to look in the
history for how it worked, e.g.
+   // CleanSpech used to hard-code a restricted file type list here


>   As I observed, CleanSpeech projects are supposed to have different
> hard-coded file filter. Should I just keep it unchanged?

Frankly, I couldn't care less as no-one is maintaining the CleanSpeech
code. I'm looking forward to the day when it can be pushed into a module
out of core Audacity and left to someone who is interested to look after
it, without polluting the Audacity code base with
not-quite-thought-through features that would have been better
implemented another way.

In this case the hard-coded list constituted a bug, because it would
include file types even if support for them was omitted from Audacity. A
better solution would just have been to disable the libraries supporting
the file types the project didn't want (e.g. no FLAC) at compile time
(or add a feature to do so at runtime). Neither of these is worth the
effort unless someone comes up with the interest to do a major re-vamp
of the cleanspeach idea.

With the above issues fixed this seems to work fine - I get the list of
file formats I expect, and choose from that list OK when I go to run a
chain. We should be able to cross this one off the list now.

Richard


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Gale (Audacity Team)

Re: P3 Residual FFmpeg issues

Reply Threaded More More options
Print post
Permalink

| From Richard Ash <[hidden email]>
| Sat, 07 Nov 2009 16:02:21 +0000
| Subject: [Audacity-devel] P3 Residual FFmpeg issues

> On Wed, 2009-11-04 at 23:32 +0800, sam lewis wrote:
> > Hi,
> >
> > I attach the patch to remove original hard-coded file filter in
> > BatchProcessDialog::OnApplyToFiles and use the same method as
> > AudacityProject::ShowOpenDialog. In fact, I copy some code from the
> > later function.
>
> ... With the above issues fixed this seems to work fine - I get the list of
> file formats I expect, and choose from that list OK when I go to run a
> chain. We should be able to cross this one off the list now.


Now crossed-off.  Thanks, Sam.



Gale


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel