[rtmpdump] Request - settable Windows application title
NhJm
nhjm449 at gmail.com
Wed Dec 1 02:22:07 CET 2010
rtmpdump outputs messages to STDERR by default, which using a plain
">" will not capture. (It will, however, output the video data to
STDOUT if you specify "-" as the FLV output file.)
STDOUT and STDERR are two separate output streams, represented by 1
and 2, respectively. (And in case you're curious, 0 is STDIN, but
that's not used for output!)
">file.txt" = capture STDOUT (it will pretend that you specified a 1)
"1>file.txt" = capture STDOUT
"2>file.txt" = capture STDERR
Note that you can combine these redirectors.
ie. "rtmpdump ... 1>stdout.txt 2>stderr.txt"
If you're curious about how to output both streams to one file:
">file.txt 2>&1" = redirect STDERR to STDOUT and then capture STDOUT
ie. "rtmpdump ... >stdboth.txt 2>&1"
And if you're interested in NOT erasing the data in the txt file each
time you run the program, you can use ">>" instead of ">" to append
instead of truncate.
See http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true
if you care to learn more.
Anyways, all you should probably worry about is doing "rtmpdump -r
blah blah blah -o blah 2>stderr.txt"
Hoping this helps,
NhJm
P.S. *nix has "&>" that redirects both STDOUT/STDERR w/o the "2>&1" stuff.
On Tue, Nov 30, 2010 at 6:17 PM, gxdata <gxdata at iinet.net.au> wrote:
> Stefan
>
> I don’t understand rtmpdump’s abilities for redirection – for instance,
> rtmpdump –h > info.txt just doesn’t work.
>
> So, I didn’t expect error flags could be captured.
>
>
>
> What do you mean by the shorthand rtmpdump … 1>logfile.txt / 2>errfile.txt ?
> Is the final 1 (or 2) a parameter indicative of logging and error reporting,
> respectively? I don’t see it in the logs.
>
>
>
> (for me, a simple test can be obtained by using the .bat generated by iVN in
> debug mode, for something small like The Owl 7Mb. The batch file has auth
> and all params).
>
>
>
> Is this conversation more appropriate at stream-recorder iView?
>
> Ian Thomas
> Scientific Software
>
>
>
> ________________________________
>
> From: rtmpdump-bounces at mplayerhq.hu [mailto:rtmpdump-bounces at mplayerhq.hu]
> On Behalf Of Stef
> Sent: Wednesday, December 01, 2010 3:43 AM
>
> To: rtmpdump discussion and development
> Subject: Re: [rtmpdump] Request - settable Windows application title
>
>
>
> Send them to a log file? Yes.
>
> rtmpdump .... 1>logfile.txt
>
> Redirects the console "standard output" (stdout) messages to "logfile.txt"
>
> rtmpdump .... 2>errfile.txt
>
> Redirects the console "error output" (stderr) messages to "errfile.txt"
>
> Regards,
> Stefan Zakarias.
>
> On 1/12/2010 1:43 AM, gxdata wrote:
>
> Can I retain the error messages from rtmpdump?
>
>
>
> Ian Thomas
> Scientific Software
>
> ________________________________
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1170 / Virus Database: 426/3286 - Release Date: 11/28/10
>
> _______________________________________________
> rtmpdump mailing list
> rtmpdump at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump
>
>
More information about the rtmpdump
mailing list