Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Log vlc output? [sovled]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
stupidkid
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 247
Location: 127.0.0.1

PostPosted: Thu Feb 08, 2007 11:38 pm    Post subject: Log vlc output? [sovled] Reply with quote

I'm running VLC on a server as a way to stream radio. So I would run
vlc -vvv <input> <output options>

Whenever someone connects, I can see it display to the terminal. But is there a way to log this so I can see which IP's connected?

Thanks.
_________________
How many people can read hex if you and dead people can read hex?


Last edited by stupidkid on Fri Feb 09, 2007 2:34 pm; edited 3 times in total
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Feb 08, 2007 11:58 pm    Post subject: Reply with quote

Like all programs, you can redirect the output to some file, or pipe it through tee to log it and see the output on the screen.
Code:
vlc -vvv <input> <output options> | tee logfile.txt

_________________
KDE
Back to top
View user's profile Send private message
stupidkid
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 247
Location: 127.0.0.1

PostPosted: Fri Feb 09, 2007 12:24 am    Post subject: Reply with quote

Err, apparently tee doesn't log the whole thing. For example all I see is

Remote control interface initialized. Type `help' for help.
status change: ( new input: http://172.16.0.65:8080 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )

And not stuff like

Code:
[00000275] asf private debug:      |    + 'Content Description' GUID 0x75b22633-0x668e-0x11cf-0xa6d900aa0062ce6c size:112pos:30
[00000275] asf private debug:      |    + 'Stream Bitrate Propoerties' GUID 0x7bf875ce-0x468d-0x11d1-0x8d82006097c9a2b2 size:38pos:142
[00000275] asf private debug:      |    + 'File Properties' GUID 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104pos:180
[00000275] asf private debug:      |    + 'Header Extension' GUID 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:1961pos:284
[00000275] asf private debug:      |    |    + 'Language List' GUID 0x7c4346a9-0xefe0-0x4bfc-0xb229393ede415c85 size:39pos:330
[00000275] asf private debug:      |    |    + 'Extended Stream Properties' GUID 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:202pos:369
[00000275] asf private debug:      |    |    + 'Extended Stream Properties' GUID 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:88pos:571
[00000275] asf private debug:      |    |    + 'Unknown' GUID 0x26f18b5d-0x4584-0x47ec-0x9f5f0e651f0452c9 size:26pos:659
[00000275] asf private debug:      |    |    + 'Metadata' GUID 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca size:218pos:685
[00000275] asf private debug:      |    |    + 'Padding' GUID 0x1806d474-0xcadf-0x4509-0xa4ba9aabcb96aae8 size:1296pos:903
[00000275] asf private debug:      |    |    + 'Advanced Mutual Exclusion' GUID 0xa08649cf-0x4775-0x4670-0x8a166e35357566cd size:46pos:2199
[00000275] asf private debug:      |    + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:114pos:2245
[00000275] asf private debug:      |    + 'Extended content description' GUID 0xd2d0a440-0xe307-0x11d2-0x97f000a0c95ea850 size:162pos:2359
[00000275] asf private debug:      |    + 'Codec List' GUID 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:170pos:2521
[00000275] asf private debug:      |    + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:114pos:457
[00000275] asf private debug:      + 'Data' GUID 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:50pos:2691
[00000276] asf demuxer debug: found 2 streams
[00000276] asf demuxer debug: ignoring not selected stream(ID:2) (by access)
[00000257] main input debug: selecting program id=0
[00000276] asf demuxer debug: added new audio stream(codec:0x161,ID:1)
[00000276] main demuxer debug: using demux2 module "asf"
[00000280] main packetizer debug: looking for packetizer module: 15 candidates
[00000280] main packetizer debug: using packetizer module "packetizer_copy"
[00000257] main input debug: stream out mode -> no decoder thread
[00000257] main input debug: starting in sync mode
[00000272] access_mms access warning: unimplemented query in control
[00000257] main input debug: meta information:
[00000257] main input debug:   - 'Title' = 'WHJE Live Webstream'
[00000257] main input debug:   - 'Author' = 'WHJE 91.3'
[00000257] main input debug:   - 'Copyright' = '2006 CCS'
[00000257] main input debug:   - track[0]:
[00000257] main input debug:      - 'Codec Name' = 'Windows Media Audio 9'
[00000257] main input debug:      - 'Codec Description' = ' 32 kbps, 32 kHz, stereo 1-pass CBR'
[00000257] main input debug: `http://172.16.0.65:8080' successfully opened


Thanks for your suggestion, I'm I doing something wrong?
_________________
How many people can read hex if you and dead people can read hex?


Last edited by stupidkid on Fri Feb 09, 2007 12:32 am; edited 1 time in total
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Fri Feb 09, 2007 1:15 am    Post subject: Reply with quote

there are a couple different streams that hit the screen I think its pretty much limited to stdout and stderr
I would read the REDIRECTION section of you shell, it most cases bash
Code:
man bash

this help file is huge so the best way to find it is:
to begin the search hit: /
type: REDIRECTION
and hit: n (next) twice until you get to this section

Quote:
REDIRECTION
Before a command is executed, its input and output may be redirected using a special notation interpreted by the shell. Redirection may also be
used to open and close files for the current shell execution environment. The following redirection operators may precede or appear anywhere
within a simple command or may follow a command. Redirections are processed in the order they appear, from left to right.


According to this example you might want to try something like this:

Quote:
Note that the order of redirections is significant. For example, the command

Code:
ls > dirlist 2>&1


directs both standard output and standard error to the file dirlist

_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Fri Feb 09, 2007 9:56 am    Post subject: Reply with quote

Stupid vlc, using stderr for debug output is bad practice. Anyway, as coolsnowmen pointed out, use
Code:
vlc -vvv <input> <output options> 2>&1 | tee logfile.txt
to get stderr as well - every output will be logged then.
_________________
KDE
Back to top
View user's profile Send private message
stupidkid
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 247
Location: 127.0.0.1

PostPosted: Fri Feb 09, 2007 2:34 pm    Post subject: Reply with quote

Thanks that worked.
_________________
How many people can read hex if you and dead people can read hex?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
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