2> redirect won`t work in file or in rxvt run in file.

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#16 Post by technosaurus »

you _shouldn't_ see anything on the command line if you are redirecting stderr to a file because ffmpeg sporadically uses write(2,...) to output a lot to stderr, vice the traditional stdin which is write(1,...)

I don't know their reasoning for this - just that it makes it a PITA to parse the output.

piping through cat seems to work though

ffmpeg [parameters] 2>/dev/stdin |cat > [file]
or the equivalent
ffmpeg [parameters] 2>&1 |cat > [file]

if you want also to _see_ the output use tee instead of cat
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#17 Post by sunburnt »

Success!! Thanks technosaurus!

The problem... I had the code for this in a function, I put it in the main code...
Now I`m thinking some of the other suggestions will work also...

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#18 Post by jpeps »

technosaurus wrote: ffmpeg [parameters] 2>&1 |cat > [file]

if you want also to _see_ the output use tee instead of cat
without the redirection symbol 'tee file'

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#19 Post by sunburnt »

Speech codecs: amr, vpx, speex, and z and bz filtered out of the GUI list.
And the video and audio codecs are separated into two lists.

I don`t see a codec for Mpeg 2, is it still illegal to have it without paying?
And I don`t see the Flash codec, it`s popular (web) but it`s loosing favor I hear.
How about codecs for Ipod, PSP, and other portable video devices?
Are there any other codecs I should be looking for? wma, wmv, mp4, mov, etc.?

Thanks guys... Now I need to write code to make the GUI`s varying radio boxes.

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#20 Post by big_bass »

Quite a few people posted here with good info
but I took this as a puzzle only (I like puzzles) and was bored :D
since this thread was solved but that -e command still bugged me

its easy without the -e
that changes how the command line is read
giving you a named window


I got this one to work

Code: Select all

 xterm -hold -e  "ffmpeg  | cat >/tmp/4"


I saw that amigo said to use the " " around the command and
piping to cat from technosaurus

but with rxvt it wouldnt work ?
Joe

Post Reply