Wednesday, January 31, 2007

Watching Japanese TV in Dublin

ssh terebi mkfifo pipe ssh terebi cat pipe | mplayer -

then in another window
ssh terebi mencoder -oac lavc -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=100:acodec=ac3:abitrate=64 /dev/video0 -o pipe

gives me watchable live tv.

I think I should really be using some variety of vlc but that's another day's work

2 comments:

Anonymous said...

Shouldn't

ssh terebi mencoder -oac lavc -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=100:acodec=ac3:abitrate=64 /dev/video0 -o - | mplayer

just work?

Fergal Daly said...

You would imagine so but it doesn't, it just sits there. I think it may be something about mencoder's progress output or something, I dunno.

The other handy thing about it is doing something like

while `true`; do ssh terebi cat pipe|mplayer -; done

and then in another shell work on the mencoder args.