You are not logged in.
rtmpdump can be used to receive and play rtmp-streams in vlc or mplayer.
If you want to watch some HD TV channels, copy the script into your /bin folder, chmod+x and run it.
You'll need zenity (for the dialogues), rtmpdump (which is probably in squeeze) and of course vlc player. The script also supports flvstreamer, so please check the code and uncomment the lines where needed.
http://crunchbanglinux.org/pastebin/1631
Feel free to add more stations. Have fun 
Edits:
May 03:
changed PLAYER variable for mplayer (thanks Stanie)
added flvstreamer as alternative for rtmpdump (check the code)
added lower def. channels/another server
now closes on cancel
general clean-up and comments
May 02:
fixed one link
Last edited by machinebacon (2012-05-02 17:34:11)
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
wait a sec.. free tv? i'm gonna have to check this out...
Offline
@roald: Y U NO SLEEP?
don't forget to apt-get install rtmpdump
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
^ aaaahhhh, these forums are damn addictive man. gotta get some sleep indeed. just one more reply... only one more smoke...
Offline
Agree to that smoke, once more
Does the script work in the Netherlands?
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
Thanks, works but kind of laggy, wonder if theres anything to do to fix that
Offline
^ That's due to the network speed, I guess. I'll put together one for the normal definition channels, soon.
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
Really cool!
although I'm getting this error with a number of channels such as HBO 
(process:6119): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Warning: call to signal(13, 0x1)
INFO: Connected...
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
[0xe9ac80] main stream error: cannot pre fill bufferLast edited by Carl (2012-05-01 22:36:14)
Offline
Thanks for the feedback, Carl. I'll look into it, though I suppose the problem is not on our side 
Edit: try the other servers and/or keep it open for a while.
Last edited by machinebacon (2012-05-01 22:56:16)
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
Thanks for the feedback, Carl. I'll look into it, though I suppose the problem is not on our side
Edit: try the other servers and/or keep it open for a while.
Will do 
Offline
Wow I'd be set if I spoke german 
Offline
I've never bothered with streaming before, tbh.
@bacon
Would be cool if I could somehow get this working on my phone. Then I'd get on-the-go TV like those Japs/Koreans do.
... but how does one find channels?
I tried searching for "rtmp channel list" or whatever, but so far I don't get much hits, and none in the z.######.stream formats that are listed in your script.
Point & Squirt
Offline
@slob
generally for streaming rtmp: you "just" need to find an online stream (can also be a video) from which you extract the rtmp address using a package sniffer like wireshark or tcpdump. As vlc is not able to play rtmp://.... files, you need rtmpdump to collect the stream and pipe it to the player or into a file.
How to find channels: google for xmbc rtmp or rtmpgui
Or click http://bit.ly/Ix9LQu
The z.#####.stream is not the 'general' format for all rtmp-streams, but one type of provider. You'll soon see what I mean:)
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
Thank you! This is pretty neat, except my box can't handle the HD data speed. Maybe some day you add low quality links?
generally for streaming rtmp: you "just" need to find an online stream (can also be a video) from which you extract the rtmp address using a package sniffer like wireshark or tcpdump.
Ahh there's the rub. That's where I got stuck playing around with rtmpdump - delighted you've got it. 
How to find channels: google for xmbc rtmp or rtmpgui
Or click http://bit.ly/Ix9LQu
Had no idea such sites existed! Should have known better...
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
Thanks machinebacon, I like it!!! And I will (try to) patiently wait for non HD channels.
Just a few questions.
On my old iron I have always had better video results with mplayer than vlc. Even with rtmpdumpTV vlc was a little jerky so I tried using mplayer. The video quality was good but sound was out of sync 
Any suggestion how to fix it? For now I use vlc in non full screen mode or tv-maxe (sopcast) for some channels.
BTW is it possible to choose another player like smplayer or umplayer? It didn't work for me. I wasn't able to get past caching...
And one last thing - zenity dialog box can only be closed by closing terminal. If you open the script by double-clicking on it, you won't be able to close it without terminal command or taskmanager.
A secure alternative to Dropbox with complete privacy = SpiderOak. Join it using my referral and get a total of 3 GB to start with.
Offline
Hello Stanie,
no idea which players support the incoming rtmp stream - I only know that "recent" VLC is capable of doing so, and mplayer, but you can also just pipe into a file and watch it later. As for mplayer and VLC, you can try to play around with the buffer size of rtmpdump (adding the option --buffer IN_MILLISECONDS) and the audio sync of your player. You can also try to add decoding options if the output is chunky, like for mplayer (sorry for the full quote)
xv (X11 only)
Uses the XVideo extension of XFree86 4.x to enable hardware ac
celerated playback. If you cannot use a hardware specific drivâ€
er, this is probably the best option. For information about
what colorkey is used and how it is drawn run MPlayer with -v
option and look out for the lines tagged with [xv common] at the
beginning.
adaptor=<number>
Select a specific XVideo adaptor (check xvinfo results).
port=<number>
Select a specific XVideo port.
ck=<cur|use|set>
Select the source from which the colorkey is taken (deâ€
fault: cur).
cur The default takes the colorkey currently set in
Xv.
use Use but do not set the colorkey from MPlayer
(use -colorkey option to change it).
set Same as use but also sets the supplied colorkey.
ck-method=<man|bg|auto>
Sets the colorkey drawing method (default: man).
man Draw the colorkey manually (reduces flicker in
some cases).
bg Set the colorkey as window background.
auto Let Xv draw the colorkey.
x11 (X11 only)
Shared memory video output driver without hardware acceleration
that works whenever X11 is present.
xover (X11 only)
Adds X11 support to all overlay based video output drivers.
Currently only supported by tdfx_vid.
<vo_driver>
Select the driver to use as source to overlay on top of
X11.
vdpau (with -vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau, ffh264vdpau or
ffodivxvdpau)
Video output that uses VDPAU to decode video via hardware. Also
supports displaying of software-decoded video.
sharpen=<-1-1>
For positive values, apply a sharpening algorithm to the
video, for negative values a blurring algorithm (deâ€
fault: 0).
denoise=<0-1>
Apply a noise reduction algorithm to the video (default:
0, no noise reduction).
deint=<0-4>
Select the deinterlacer (default: 0). All modes > 0 reâ€
spect -field-dominance.
0 no deinterlacing
1 Show only first field, similar to -vf field.
2 Bob deinterlacing, similar to -vf tfields=1.
3 motion adaptive temporal deinterlacing May lead
to A/V desync with slow video hardware and/or
high resolution. This is the default if "D" is
used to enable deinterlacing.
4 motion adaptive temporal deinterlacing with
edge-guided spatial interpolation Needs fast
video hardware.
chroma-deint
Makes temporal deinterlacers operate both on luma and
chroma (default). Use nochroma-deint to solely use luma
and speed up advanced deinterlacing. Useful with slow
video memory.
pullup
Try to skip deinterlacing for progressive frames, useful
for watching telecined content, needs fast video hardâ€
ware for high resolutions. Only works with motion adapâ€
tive temporal deinterlacing.
colorspace
Select the color space for YUV to RGB conversion. In
general BT.601 should be used for standard definition
(SD) content and BT.709 for high definition (HD) conâ€
tent. Using incorrect color space results in slightly
under or over saturated and shifted colors.
0 Guess the color space based on video resolution.
Video with width >= 1280 or height > 576 is asâ€
sumed to be HD and BT.709 color space will be
used.
1 Use ITU-R BT.601 color space (default).
2 Use ITU-R BT.709 color space.
3 Use SMPTE-240M color space.
hqscaling
0 Use default VDPAU scaling (default).
1-9 Apply high quality VDPAU scaling (needs capable
hardware).
force-mixer
Forces the use of the VDPAU mixer, which implements all
above options (default). Use noforce-mixer to allow
displaying BGRA colorspace. (Disables all above options
and the hardware equalizer if image format BGRA is actuâ€
ally used.)
xvmc (X11 with FFmpeg MPEG-1/2 decoder only)
Video output driver that uses the XvMC (X Video Motion Compensaâ€
tion) extension of XFree86 4.x to speed up MPEG-1/2 and VCR2 deâ€
coding.
adaptor=<number>
Select a specific XVideo adaptor (check xvinfo results).
port=<number>
Select a specific XVideo port.
(no)benchmark
Disables image display. Necessary for proper benchmarkâ€
ing of drivers that change image buffers on monitor reâ€
trace only (nVidia). Default is not to disable image
display (nobenchmark).
(no)bobdeint
Very simple deinterlacer. Might not look better than
-vf tfields=1, but it is the only deinterlacer for xvmc
(default: nobobdeint).
(no)queue
Queue frames for display to allow more parallel work of
the video hardware. May add a small (not noticeable)
constant A/V desync (default: noqueue).
(no)sleep
Use sleep function while waiting for rendering to finish
(not recommended on Linux) (default: nosleep).
ck=cur|use|set
Same as -vo xv:ck (see -vo xv).
ck-method=man|bg|auto
Same as -vo xv:ck-method (see -vo xv).
dga (X11 only)
Play video through the XFree86 Direct Graphics Access extension.
Considered obsolete.
sdl (SDL only, buggy/outdated)
Highly platform independent SDL (Simple Directmedia Layer) liâ€
brary video output driver. Since SDL uses its own X11 layer,
MPlayer X11 options do not have any effect on SDL. Note that it
has several minor bugs (-vm/-novm is mostly ignored, -fs behaves
like -novm should, window is in top-left corner when returning
from fullscreen, panscan is not supported, ...).
driver=<driver>
Explicitly choose the SDL driver to use.
(no)forcexv
Use XVideo through the sdl video output driver (default:
forcexv).
(no)hwaccel
Use hardware accelerated scaler (default: hwaccel).
vidix
VIDIX (VIDeo Interface for *niX) is an interface to the video
acceleration features of different graphics cards. Very fast
video output driver on cards that support it.
<subdevice>
Explicitly choose the VIDIX subdevice driver to use.
Available subdevice drivers are cyberblade, ivtv,
mach64, mga_crtc2, mga, nvidia, pm2, pm3, radeon,
rage128, s3, sh_veu, sis_vid and unichrome.
xvidix (X11 only)
X11 frontend for VIDIX
<subdevice>
same as vidix
cvidix
Generic and platform independent VIDIX frontend, can even run in
a text console with nVidia cards.
<subdevice>
same as vidix
winvidix (Windows only)
Windows frontend for VIDIX
<subdevice>
same as vidix
direct3d (Windows only) (BETA CODE!)
Video output driver that uses the Direct3D interface (useful for
Vista).
directx (Windows only)
Video output driver that uses the DirectX interface.
noaccel
Turns off hardware acceleration. Try this option if you
have display problems.
kva (OS/2 only)
Video output driver that uses the libkva interface.
snap Force SNAP mode.
wo Force WarpOverlay! mode.
dive Force DIVE mode.
(no)t23
Enable or disable workaround for T23 laptop (default:
disabled). Try to enable this option if your video card
supports upscaling only.
quartz (Mac OS X only)
Mac OS X Quartz video output driver. Under some circumstances,
it might be more efficient to force a packed YUV output format,
with e.g. -vf format=yuy2.
device_id=<number>
Choose the display device to use in fullscreen.
fs_res=<width>:<height>
Specify the fullscreen resolution (useful on slow sysâ€
tems).
corevideo (Mac OS X 10.4 or 10.3.9 with QuickTime 7)
Mac OS X CoreVideo video output driver
device_id=<number>
Choose the display device to use for fullscreen or set
it to -1 to always use the same screen the video window
is on (default: -1 - auto).
shared_buffer
Write output to a shared memory buffer instead of disâ€
playing it and try to open an existing NSConnection for
communication with a GUI.
buffer_name=<name>
Name of the shared buffer created with shm_open as well
as the name of the NSConnection MPlayer will try to open
(default: "mplayerosx"). Setting buffer_name implicitly
enables shared_buffer.
fbdev (Linux only)
Uses the kernel framebuffer to play video.
<device>
Explicitly choose the fbdev device name to use (e.g.
/dev/fb0) or the name of the VIDIX subdevice if the deâ€
vice name starts with 'vidix' (e.g. 'vidixsis_vid' for
the sis driver).
fbdev2 (Linux only)
Uses the kernel framebuffer to play video, alternative implemenâ€
tation.
<device>
Explicitly choose the fbdev device name to use (default:
/dev/fb0).
vesa
Very general video output driver that should work on any VESA
VBE 2.0 compatible card.
(no)dga
Turns DGA mode on or off (default: on).
neotv_pal
Activate the NeoMagic TV out and set it to PAL norm.
neotv_ntsc
Activate the NeoMagic TV out and set it to NTSC norm.
vidix
Use the VIDIX driver.
lvo:
Activate the Linux Video Overlay on top of VESA mode.
svga
Play video using the SVGA library.
<video mode>
Specify video mode to use. The mode can be given in a
<width>x<height>x<colors> format, e.g. 640x480x16M or be
a graphics mode number, e.g. 84.
bbosd
Draw OSD into black bands below the movie (slower).
native
Use only native drawing functions. This avoids direct
rendering, OSD and hardware acceleration.
retrace
Force frame switch on vertical retrace. Usable only
with -double. It has the same effect as the -vsync opâ€
tion.
sq
Try to select a video mode with square pixels.
vidix
Use svga with VIDIX.
gl
OpenGL video output driver, simple version. Video size must be
smaller than the maximum texture size of your OpenGL implementaâ€
tion. Intended to work even with the most basic OpenGL impleâ€
mentations, but also makes use of newer extensions, which allow
support for more colorspaces and direct rendering. For optimal
speed try adding the options
-dr -noslices
The code performs very few checks, so if a feature does not
work, this might be because it is not supported by your
card/OpenGL implementation even if you do not get any error mesâ€
sage. Use glxinfo or a similar tool to display the supported
OpenGL extensions.
(no)ati-hack
ATI drivers may give a corrupted image when PBOs are
used (when using -dr or force-pbo). This option fixes
this, at the expense of using a bit more memory.
(no)force-pbo
Always uses PBOs to transfer textures even if this inâ€
volves an extra copy. Currently this gives a little exâ€
tra speed with NVidia drivers and a lot more speed with
ATI drivers. May need -noslices and the ati-hack subopâ€
tion to work correctly.
(no)scaled-osd
Changes the way the OSD behaves when the size of the
window changes (default: disabled). When enabled beâ€
haves more like the other video output drivers, which is
better for fixed-size fonts. Disabled looks much better
with FreeType fonts and uses the borders in fullscreen
mode. Does not work correctly with ass subtitles (see
-ass), you can instead render them without OpenGL supâ€
port via -vf ass.
osdcolor=<0xAARRGGBB>
Color for OSD (default: 0x00ffffff, corresponds to non-
transparent white).
rectangle=<0,1,2>
Select usage of rectangular textures which saves video
RAM, but often is slower (default: 0).
0: Use power-of-two textures (default).
1: Use the GL_ARB_texture_rectangle extension.
2: Use the GL_ARB_texture_non_power_of_two extension.
In some cases only supported in software and thus
very slow.
swapinterval=<n>
Minimum interval between two buffer swaps, counted in
displayed frames (default: 1). 1 is equivalent to enâ€
abling VSYNC, 0 to disabling VSYNC. Values below 0 will
leave it at the system default. This limits the framerâ€
ate to (horizontal refresh rate / n). Requires
GLX_SGI_swap_control support to work. With some
(most/all?) implementations this only works in
fullscreen mode.
ycbcr
Use the GL_MESA_ycbcr_texture extension to convert YUV
to RGB. In most cases this is probably slower than doâ€
ing software conversion to RGB.
yuv=<n>
Select the type of YUV to RGB conversion. The default
is auto-detection deciding between values 0 and 2.
0: Use software conversion. Compatible with all
OpenGL versions. Provides brightness, contrast and
saturation control.
1: Use register combiners. This uses an nVidia-speâ€
cific extension (GL_NV_register_combiners). At least
three texture units are needed. Provides saturation
and hue control. This method is fast but inexact.
2: Use a fragment program. Needs the GL_ARB_fragâ€
ment_program extension and at least three texture
units. Provides brightness, contrast, saturation and
hue control.
3: Use a fragment program using the POW instruction.
Needs the GL_ARB_fragment_program extension and at
least three texture units. Provides brightness, conâ€
trast, saturation, hue and gamma control. Gamma can
also be set independently for red, green and blue.
Method 4 is usually faster.
4: Use a fragment program with additional lookup.
Needs the GL_ARB_fragment_program extension and at
least four texture units. Provides brightness, conâ€
trast, saturation, hue and gamma control. Gamma can
also be set independently for red, green and blue.
5: Use ATI-specific method (for older cards). This
uses an ATI-specific extension (GL_ATI_fragment_shadâ€
er - not GL_ARB_fragment_shader!). At least three
texture units are needed. Provides saturation and
hue control. This method is fast but inexact.
6: Use a 3D texture to do conversion via lookup.
Needs the GL_ARB_fragment_program extension and at
least four texture units. Extremely slow (software
emulation) on some (all?) ATI cards since it uses a
texture with border pixels. Provides brightness,
contrast, saturation, hue and gamma control. Gamma
can also be set independently for red, green and
blue. Speed depends more on GPU memory bandwidth
than other methods.
colorspace
Select the color space for YUV to RGB conversion.
0 Use the formula used normally by MPlayer (deâ€
fault).
1 Use ITU-R BT.601 color space.
2 Use ITU-R BT.709 color space.
3 Use SMPTE-240M color space.
levelconv=<n>
Select the brightness level conversion to use for the
YUV to RGB conversion
0 Convert TV to PC levels (default).
1 Convert PC to TV levels.
2 Do not do any conversion.
lscale=<n>
Select the scaling function to use for luminance scalâ€
ing. Only valid for yuv modes 2, 3, 4 and 6.
0 Use simple linear filtering (default).
1 Use bicubic B-spline filtering (better quality).
Needs one additional texture unit. Older cards
will not be able to handle this for chroma at
least in fullscreen mode.
2 Use cubic filtering in horizontal, linear filâ€
tering in vertical direction. Works on a few
more cards than method 1.
3 Same as 1 but does not use a lookup texture.
Might be faster on some cards.
4 Use experimental unsharp masking with 3x3 supâ€
port and a default strength of 0.5 (see filter-
strength).
5 Use experimental unsharp masking with 5x5 supâ€
port and a default strength of 0.5 (see filter-
strength).
cscale=<n>
Select the scaling function to use for chrominance scalâ€
ing. For details see lscale.
filter-strength=<value>
Set the effect strength for the lscale/cscale filters
that support it.
noise-strength=<value>
Set how much noise to add. 0 to disable (default), 1.0
for level suitable for dithering to 6 bit.
stereo=<value>
Select a method for stereo display. You may have to use
-aspect to fix the aspect value. Experimental, do not
expect too much from it.
0 normal 2D display
1 Convert side by side input to full-color red-
cyan stereo.
2 Convert side by side input to full-color green-
magenta stereo.
3 Convert side by side input to quadbuffered
stereo. Only supported by very few OpenGL
cards.
The following options are only useful if writing your own fragâ€
ment programs.
customprog=<filename>
Load a custom fragment program from <filename>. See
TOOLS/edgedect.fp for an example.
customtex=<filename>
Load a custom "gamma ramp" texture from <filename>.
This can be used in combination with yuv=4 or with the
customprog option.
(no)customtlin
If enabled (default) use GL_LINEAR interpolation, otherâ€
wise use GL_NEAREST for customtex texture.
(no)customtrect
If enabled, use texture_rectangle for customtex texture.
Default is disabled.
(no)mipmapgen
If enabled, mipmaps for the video are automatically genâ€
erated. This should be useful together with the customâ€
prog and the TXB instruction to implement blur filters
with a large radius. For most OpenGL implementations
this is very slow for any non-RGB formats. Default is
disabled.
Normally there is no reason to use the following options, they
mostly exist for testing purposes.
(no)glfinish
Call glFinish() before swapping buffers. Slower but in
some cases more correct output (default: disabled).
(no)manyfmts
Enables support for more (RGB and BGR) color formats
(default: enabled). Needs OpenGL version >= 1.2.
slice-height=<0-...>
Number of lines copied to texture in one piece (default:
0). 0 for whole image.
NOTE: If YUV colorspace is used (see yuv suboption),
special rules apply:
If the decoder uses slice rendering (see -noslices),
this setting has no effect, the size of the slices as
provided by the decoder is used.
If the decoder does not use slice rendering, the deâ€
fault is 16.
(no)osd
Enable or disable support for OSD rendering via OpenGL
(default: enabled). This option is for testing; to disâ€
able the OSD use -osdlevel 0 instead.
(no)aspect
Enable or disable aspect scaling and pan-and-scan supâ€
port (default: enabled). Disabling might increase
speed.
gl2
Variant of the OpenGL video output driver. Supports videos
larger than the maximum texture size but lacks many of the adâ€
vanced features and optimizations of the gl driver and is unâ€
likely to be extended further.
(no)glfinish
same as gl (default: enabled)
yuv=<n>
Select the type of YUV to RGB conversion. If set to
anything except 0 OSD will be disabled and brightness,
contrast and gamma setting is only available via the
global X server settings. Apart from this the values
have the same meaning as for -vo gl.
matrixview
OpenGL-based renderer creating a Matrix-like running-text efâ€
fect.
cols=<n>
Number of text columns to display. Very low values (<
16) will probably fail due to scaler limitations. Valâ€
ues not divisible by 16 may cause issues as well.
rows=<n>
Number of text rows to display. Very low values (< 16)
will probably fail due to scaler limitations. Values
not divisible by 16 may cause issues as well.
null
Produces no video output. Useful for benchmarking.
aa
ASCII art video output driver that works on a text console.
NOTE: The driver does not handle -aspect correctly.
HINT: You probably have to specify -monitorpixelaspect. Try
'mplayer -vo aa -monitorpixelaspect 0.5'.
caca
Color ASCII art video output driver that works on a text conâ€
sole.
bl
Video playback using the Blinkenlights UDP protocol. This drivâ€
er is highly hardware specific.
<subdevice>
Explicitly choose the Blinkenlights subdevice driver to
use. It is something like arcade:host=localhost:2323 or
hdl:file=name1,file=name2. You must specify a subdeâ€
vice.
ggi
GGI graphics system video output driver
<driver>
Explicitly choose the GGI driver to use. Replace any
',' that would appear in the driver string by a '.'.
directfb
Play video using the DirectFB library.
(no)input
Use the DirectFB instead of the MPlayer keyboard code
(default: enabled).
buffermode=single|double|triple
Double and triple buffering give best results if you
want to avoid tearing issues. Triple buffering is more
efficient than double buffering as it does not block
MPlayer while waiting for the vertical retrace. Single
buffering should be avoided (default: single).
fieldparity=top|bottom
Control the output order for interlaced frames (default:
disabled). Valid values are top = top fields first,
bottom = bottom fields first. This option does not have
any effect on progressive film material like most MPEG
movies are. You need to enable this option if you have
tearing issues or unsmooth motions watching interlaced
film material.
layer=N
Will force layer with ID N for playback (default: -1 -
auto).
dfbopts=<list>
Specify a parameter list for DirectFB.
dfbmga
Matrox G400/G450/G550 specific video output driver that uses the
DirectFB library to make use of special hardware features. Enâ€
ables CRTC2 (second head), displaying video independently of the
first head.
(no)input
same as directfb (default: disabled)
buffermode=single|double|triple
same as directfb (default: triple)
fieldparity=top|bottom
same as directfb
(no)bes
Enable the use of the Matrox BES (backend scaler) (deâ€
fault: disabled). Gives very good results concerning
speed and output quality as interpolated picture proâ€
cessing is done in hardware. Works only on the primary
head.
(no)spic
Make use of the Matrox sub picture layer to display the
OSD (default: enabled).
(no)crtc2
Turn on TV-out on the second head (default: enabled).
The output quality is amazing as it is a full interlaced
picture with proper sync to every odd/even field.
tvnorm=pal|ntsc|auto
Will set the TV norm of the Matrox card without the need
for modifying /etc/directfbrc (default: disabled).
Valid norms are pal = PAL, ntsc = NTSC. Special norm is
auto (auto-adjust using PAL/NTSC) because it decides
which norm to use by looking at the framerate of the
movie.
mga (Linux only)
Matrox specific video output driver that makes use of the YUV
back end scaler on Gxxx cards through a kernel module. If you
have a Matrox card, this is the fastest option.
<device>
Explicitly choose the Matrox device name to use (deâ€
fault: /dev/mga_vid).
xmga (Linux, X11 only)
The mga video output driver, running in an X11 window.
<device>
Explicitly choose the Matrox device name to use (deâ€
fault: /dev/mga_vid).
s3fb (Linux only) (also see -dr)
S3 Virge specific video output driver. This driver supports the
card's YUV conversion and scaling, double buffering and direct
rendering features. Use -vf format=yuy2 to get hardware-accelâ€
erated YUY2 rendering, which is much faster than YV12 on this
card.
<device>
Explicitly choose the fbdev device name to use (default:
/dev/fb0).
wii (Linux only)
Nintendo Wii/GameCube specific video output driver.
3dfx (Linux only)
3dfx-specific video output driver that directly uses the hardâ€
ware on top of X11. Only 16 bpp are supported.
tdfxfb (Linux only)
This driver employs the tdfxfb framebuffer driver to play movies
with YUV acceleration on 3dfx cards.
<device>
Explicitly choose the fbdev device name to use (default:
/dev/fb0).
tdfx_vid (Linux only)
3dfx-specific video output driver that works in combination with
the tdfx_vid kernel module.
<device>
Explicitly choose the device name to use (default: /dev/
tdfx_vid).
dxr2 (also see -dxr2) (DXR2 only)
Creative DXR2 specific video output driver.
<vo_driver>
Output video subdriver to use as overlay (x11, xv).
dxr3 (DXR3 only)
Sigma Designs em8300 MPEG decoder chip (Creative DXR3, Sigma Deâ€
signs Hollywood Plus) specific video output driver. Also see
the lavc video filter.
overlay
Activates the overlay instead of TV-out.
prebuf
Turns on prebuffering.
sync
Will turn on the new sync-engine.
norm=<norm>
Specifies the TV norm.
0: Does not change current norm (default).
1: Auto-adjust using PAL/NTSC.
2: Auto-adjust using PAL/PAL-60.
3: PAL
4: PAL-60
5: NTSC
<0-3>
Specifies the device number to use if you have more than
one em8300 card.
ivtv (IVTV only)
Conexant CX23415 (iCompression iTVC15) or Conexant CX23416
(iCompression iTVC16) MPEG decoder chip (Hauppauge WinTV
PVR-150/250/350/500) specific video output driver for TV-out.
Also see the lavc video filter.
<device>
Explicitly choose the MPEG decoder device name to use
(default: /dev/video16).
<output>
Explicitly choose the TV-out output to be used for the
video signal.
v4l2 (requires Linux 2.6.22+ kernel)
Video output driver for V4L2 compliant cards with built-in hardâ€
ware MPEG decoder. Also see the lavc video filter.
<device>
Explicitly choose the MPEG decoder device name to use
(default: /dev/video16).
<output>
Explicitly choose the TV-out output to be used for the
video signal.
mpegpes (DVB only)
Video output driver for DVB cards that writes the output to an
MPEG-PES file if no DVB card is installed.
card=<1-4>
Specifies the device number to use if you have more than
one DVB output card (V3 API only, such as 1.x.y series
drivers). If not specified MPlayer will search the
first usable card.
<filename>
output filename (default: ./grab.mpg)
zr (also see -zr* and -zrhelp)
Video output driver for a number of MJPEG capture/playback
cards.
zr2 (also see the zrmjpeg video filter)
Video output driver for a number of MJPEG capture/playback
cards, second generation.
dev=<device>
Specifies the video device to use.
norm=<PAL|NTSC|SECAM|auto>
Specifies the video norm to use (default: auto).
(no)prebuf
(De)Activate prebuffering, not yet supported.
md5sum
Calculate MD5 sums of each frame and write them to a file. Supâ€
ports RGB24 and YV12 colorspaces. Useful for debugging.
outfile=<value>
Specify the output filename (default: ./md5sums).
yuv4mpeg
Transforms the video stream into a sequence of uncompressed YUV
4:2:0 images and stores it in a file (default: ./stream.yuv).
The format is the same as the one employed by mjpegtools, so
this is useful if you want to process the video with the mjpegâ€
tools suite. It supports the YV12 format. If your source file
has a different format and is interlaced, make sure to use -vf
scale=::1 to ensure the conversion uses interlaced mode. You
can combine it with the -fixed-vo option to concatenate files
with the same dimensions and fps value.
interlaced
Write the output as interlaced frames, top field first.
interlaced_bf
Write the output as interlaced frames, bottom field
first.
file=<filename>
Write the output to <filename> instead of the default
stream.yuv.
NOTE: If you do not specify any option the output is progressive
(i.e. not interlaced).
gif89a
Output each frame into a single animated GIF file in the current
directory. It supports only RGB format with 24 bpp and the outâ€
put is converted to 256 colors.
<fps>
Float value to specify framerate (default: 5.0).
<output>
Specify the output filename (default: ./out.gif).
NOTE: You must specify the framerate before the filename or the
framerate will be part of the filename.
EXAMPLE:
mplayer video.nut -vo gif89a:fps=15:output=test.gif
jpeg
Output each frame into a JPEG file in the current directory.
Each file takes the frame number padded with leading zeros as
name.
[no]progressive
Specify standard or progressive JPEG (default: noproâ€
gressive).
[no]baseline
Specify use of baseline or not (default: baseline).
optimize=<0-100>
optimization factor (default: 100)
smooth=<0-100>
smooth factor (default: 0)
quality=<0-100>
quality factor (default: 75)
outdir=<dirname>
Specify the directory to save the JPEG files to (deâ€
fault: ./).
subdirs=<prefix>
Create numbered subdirectories with the specified prefix
to save the files in instead of the current directory.
maxfiles=<value> (subdirs only)
Maximum number of files to be saved per subdirectory.
Must be equal to or larger than 1 (default: 1000).
pnm
Output each frame into a PNM file in the current directory.
Each file takes the frame number padded with leading zeros as
name. It supports PPM, PGM and PGMYUV files in both raw and
ASCII mode. Also see pnm(5), ppm(5) and pgm(5).
ppm
Write PPM files (default).
pgm
Write PGM files.
pgmyuv
Write PGMYUV files. PGMYUV is like PGM, but it also
contains the U and V plane, appended at the bottom of
the picture.
raw
Write PNM files in raw mode (default).
ascii
Write PNM files in ASCII mode.
outdir=<dirname>
Specify the directory to save the PNM files to (default:
./).
subdirs=<prefix>
Create numbered subdirectories with the specified prefix
to save the files in instead of the current directory.
maxfiles=<value> (subdirs only)
Maximum number of files to be saved per subdirectory.
Must be equal to or larger than 1 (default: 1000).
png
Output each frame into a PNG file in the current directory.
Each file takes the frame number padded with leading zeros as
name. 24bpp RGB and BGR formats are supported.
z=<0-9>
Specifies the compression level. 0 is no compression, 9
is maximum compression.
outdir=<dirname>
Specify the directory to save the PNG files to (default:
./).
prefix=<prefix>
Specify the prefix to be used for the PNG filenames (deâ€
fault: no prefix).
alpha
Create PNG files with an alpha channel. Note that
MPlayer in general does not support alpha, so this will
only be useful in some rare cases.
mng
Output video into an animated MNG file using 24 bpp RGB images
with lossless compression.
output=<filename>
Specify the output filename (default: out.mng).
EXAMPLE:
mplayer video.mkv -vo mng:output=test.mng
tga
Output each frame into a Targa file in the current directory.
Each file takes the frame number padded with leading zeros as
name. The purpose of this video output driver is to have a simâ€
ple lossless image writer to use without any external library.
It supports the BGR[A] color format, with 15, 24 and 32 bpp.
You can force a particular format with the format video filter.
EXAMPLE:
mplayer video.nut -vf format=bgr15 -vo tgaReally sorry that I cannot help you with it, as it is more a hardware/driver related question, but I know what you mean. I have the same problem with full-screen chunkiness on my little netbook with onboard gfx, and had to add -xv or -x11 to mplayer (watching octoshape, by the way).
I added the exit command, now you can cancel and exit
Basically it is in the last part of the script, before done - add the command exit
Last edited by machinebacon (2012-05-02 11:38:03)
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
^ Thanks for the reply, machinebacon.
Yeah, I know about the video outputs. I can only use openchrome driver since my VIA UniChrome graphics crap-card is not supported. I always have to change the output in all my videoplayers to x11 if I want to see something else than blue or black screen with audio 
So for mplayer I have this command in your script (for anyone else having this trouble)
mplayer -vo x11
Strange thing is that I have mplayer2 installed and not mplayer but command mplayer2 doesn't work. I will have to tinker with it a little bit later.
A secure alternative to Dropbox with complete privacy = SpiderOak. Join it using my referral and get a total of 3 GB to start with.
Offline
Stanie, we are in the same boat. The netbook I mentioned is exactly the VIA UniChrome-"powered" graphics adapter and behaves as you have described it. If I am not mistaken, mplayer2 equals mplayer, wasn't there a thread on the forums about it? I'll have a google and be back soon 
Edit: Here it is: http://crunchbanglinux.org/forums/topic … -mplayer2/ - but it seems mplayer2 is the default here in sid. What does apt-cache policy mplayer mplayer2 yield?
Last edited by machinebacon (2012-05-02 12:39:51)
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
Ok, I added some other channels using another stream server, anyway please test at different times of the day and report which don't work. If you have found more stations, please post them here, I will put them into the script. Thanks everyone!
Edit, by the way: Wanna see some NASA TV?
rtmpdump -v -r "rtmp://cp39920.live.edgefcs.net:1935/live/nasahd@55196" -W "http://www.ustream.tv/flash/viewer.swf" -v | vlc -You can get links like this one from http://thestreamdb.com - please share those which work.
Last edited by machinebacon (2012-05-02 13:42:05)
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
just looked through some of those lists... am i correct this is also a source for... you know... free naughty channels? because looking for that stuff is my real purpose in life, so this is very important to me.
Offline
@Pornaldt: I suppose so, though honestly speaking I really (really) don't know
But you can get the streams from the websites directly by using wireshark, extracting the rtmp etc.
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
Stanie, we are in the same boat. The netbook I mentioned is exactly the VIA UniChrome-"powered" graphics adapter and behaves as you have described it. If I am not mistaken, mplayer2 equals mplayer, wasn't there a thread on the forums about it? I'll have a google and be back soon
Edit: Here it is: http://crunchbanglinux.org/forums/topic … -mplayer2/ - but it seems mplayer2 is the default here in sid. What does apt-cache policy mplayer mplayer2 yield?
I'm back.
I know you can't have both mplayer and mplayer2 installed. And you're right - both have the same command mplayer - btw check your 2nd player command...
That being said I think that the "plain" mplayer works a little better for me with rtmpdumpTV. Maybe it is because of a few additional dependencies - package esound-common? The sound is still a little out of sync, but not so much now as with mplayer2.
I tried buffering by adding -b 360000 to rtmpdump but I couldn't see a difference.
But I noticed that when mplayer started in smaller window the sync was good. Tried it with mplayer2 too, but no such luck. So for those of you with craptic graphics card my new command for mplayer is
mplayer -vo x11 -x 600 -y 400
You can of course change the values as you like.
I used something similar for vlc. There I have no out of sync sound but video is a little jerky. I also added network caching option even though I already set one in vlc gui...
vlc --width 800 --height 600 --network-caching 360000
Now it is way better.
One last thing - nothing came up when googling rtmpdump in smplayer or umplayer so if anyone knows if this is possible, please let me know.
A secure alternative to Dropbox with complete privacy = SpiderOak. Join it using my referral and get a total of 3 GB to start with.
Offline
Stanie, thanks so much for your feedback and information. It will surely be of help for some!
I have updated the script, now you can optionally use flvstreamer for the HD channels if rtmpdump doesn't work well. I also added some comments, and the option -e - this resumes a stream in flvstreamer.
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
working quite nicely here in the Netherlands. added Hustler TV because you seem to have forgotten to do so yourself. they have great opinion pieces.
Offline
^ Censored
Last edited by machinebacon (2012-05-03 14:42:49)
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.