Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 29 Nov 2014, 02:36
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
2> redirect won`t work in file or in rxvt run in file.
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [20 Posts]   Goto page: Previous 1, 2
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4380

PostPosted: Sat 18 Dec 2010, 20:09    Post subject:  

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

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Sat 18 Dec 2010, 22:41    Post subject:  

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...
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sat 18 Dec 2010, 23:00    Post subject:  

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'
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Sun 19 Dec 2010, 02:27    Post subject:  

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.
Back to top
View user's profile Send private message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Thu 23 Dec 2010, 19:41    Post subject:  

Quite a few people posted here with good info
but I took this as a puzzle only (I like puzzles) and was bored Very Happy
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:
 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

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [20 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0498s ][ Queries: 13 (0.0052s) ][ GZIP on ]