Hi,

> Guess, someone has to open/learn QTdesigner now... ;)

So it's impossible to change dvbcut GUI elements without Qtdesinger?

> And normally for a given pipe command not all muxers make sense, so 
> it is dangerous to let the user choose among all with a combo box (at least 
> for the preset pipe commands). For instance dvdauthor only will work with DVD 
> NAV-Pakets (muxer 0 and 2)...

That is true but any sort of postprocessing should be possible
with the pipe..

> That would be the best solution... a file menu entry "Export to pipe" (like 
> "Export video"), which opens a dialog with a file/directory selection field, 

You mean for the dvdauthor output (-o option)?
The chosen file/directory could be embedded in the command
string using $1 (or similar), but it should be kept as general
as possible.  (sorry, haven't looked at your patch in detail,
maybe that's already the case)

> a combo box with the available pipe commands (editable/viewable in an 
> additional text field) and an additonal checkbox&textfield for an optional  
> post processing command. Actually I already had that idea, too... ;) 

Sounds good.

> No idea how to do this... does execl return the child return code?

No.  You would have to check the result from the waitpid() call.
If it's 127, then there was a fatal error (probable cause:
executable not found or not really executable).

> I use now system() (what exactly is the difference to exec()?)

system() always uses the shell with all its features and baggage.

> to check for 
> the pipe command with 'which' and only proceed if the commmand is found!

I really don't think this is necessary, but that is a question
of taste.  "which" AFAIK isn't universally available.
Besides, it doesn't really guarantee that execution will succeed.
The only way top find out is to try.

> Therefore one can now again give a pipe comand without specifying the full 
> path (if it's in the systems $PATH).

That was already possible (because the execl() call used the shell,
and that in turn uses PATH).

Regards,
Wolfram.


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to