You are not logged in.

#1 2013-11-11 23:35:35

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Realtime Dialog boxes in Bash Scripting

I would like to try and push the output of FFMPEG and HandBrake into a dialog window using the dialog command.

I noticed there is a tailbox option but I cannot find much information on how to use this.

Does anyone have any examples I could work off?

I thought maybe using something like the below would work.  But it doesn't.

ffmpeg -i 02.ts -acodec pcm_s16le -ac 2 02.wav | dialog --title "Extracing" --tailbox 10 75

What would be the best way to this to create something like this?

Offline

#2 2013-11-11 23:47:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,332
Website

Re: Realtime Dialog boxes in Bash Scripting

Tailbox requires a file parameter.  So you'll need to do one of the following:

ffmpeg -i 02.ts -acodec pcm_s16le -ac 2 02.wav > outfile &
dialog --title "Extracing" --tailbox outfile 10 75
dialog --title "Extracing" --tailbox <(ffmpeg -i 02.ts -acodec pcm_s16le -ac 2 02.wav) 10 75

In the first case, you may need to use `mkfifo outfile` then change the > to a >>.

EDIT: wait, why are you trying to use tailbox?  Progress box is exactly what you want.

Last edited by Trilby (2013-11-11 23:53:00)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-11-12 00:10:42

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: Realtime Dialog boxes in Bash Scripting

Hmm.. I see that it just spews out of the box and doesn't following the box's width or length.  That is a shame sad  Back to the drawing board.

Offline

Board footer

Powered by FluxBB