Home > Uncategorized > Howto: Record a web stream of TV with VLC

Howto: Record a web stream of TV with VLC

December 21st, 2008 Leave a comment Go to comments

As you may have noticed, a number of national and international tv stations are beginning to offer their products in the form of high-definition mp4 live video streams. Long gone are the days when streaming meant crappy realmedia video. Let’s hope they never return.

A natural question that arises is how to record and store such streams for future viewing. In this part one of our feature on recording with VLC we will look at how to save a tv stream to the hard disk. Read on for more…

Prerequisites
Before we begin, we have to install a couple of things. First, lets get VLC

apt-get install vlc

Next, we have to locate a couple of tv stream urls. At the bottom of this page, I have listed a few for you to try out. The one we will work with is

mms://wm1.streamzilla.jet-stream.nl/demo=fireplaceHD

which is in fact not a tv station, but a HD fireplace. Nice and comfy.
Viewing a stream
To view the fireplace in action, open a console and type

vlc mms://wm1.streamzilla.jet-stream.nl/demo=fireplaceHD

Saving a stream to the hard disk
To save the stream to you hard disk execute the following command (in one line)

cvlc mms://wm1.streamzilla.jet-stream.nl/demo=fireplaceHD --sout
"#transcode{vcodec=mp1v,vb=800,scale=1,acodec=mp3,ab=256,channels=2}
:duplicate{dst=std{access=file,mux=ts,dst=/home/user/Fireplace.mpg}}"

Remember to replace the “user” in the “dst=” part with your username.
Playing with video codecs
To encode to another video format, use one of the following “names” part in your vcodec=… command

Name Description
mp1v MPEG-1 Video - recommended for portability
mp2v MPEG-2 Video - used in DVDs
mp4v MPEG-4 Video
SVQ1 Sorenson Video v1
SVQ3 Sorenson Video v3
WMV1 Windows Media Video v1
WMV2 Windows Media Video v2
WMV3 Windows Media Video v3, also called Windows Media 9 (unsupported)
DVSD Digital Video
MJPG MJPEG
H263 H263
h264 H264
theo Theora
IV20 Indeo Video
IV40 Indeo Video version 4 or later (unsupported)
RV10 Real Media Video
cvid Cinepak
VP31 On2 VP
FLV1 Flash Video
CYUV Creative YUV
HFYU Huffman YUV
MSVC Microsoft Video v1
MRLE Microsoft RLE Video
AASC Autodesc RLE Video
FLIC FLIC video
QPEG QPEG Video

List of tv stations

DR1 rtsp://streamer-01.dr.nordija.dk/dr1high
DR2 rtsp://streamer-01.dr.nordija.dk/dr2high
MADFACE mms://72.29.72.109/madfacetv
Ministry of Sound http://a745.l2645830502.c26458.g.lm.akamaistream.net/D/745/26458/v0001/reflector:30502
Music Plus TV mms://musicplus-musicplustv.wm.llnwd.net/musicplus_musicplustv
SCC mms://media.scctv.net/SCCtv%20Broadband
SportBox mms://s-lon-01b.global-mix.net/itb
FRANCE 24 mms://live.france24.com/france24_fr.wsx
ZDF mms://ms.mdcs.dtag.de/encoder.zdf.zdf_h
SKY TG24 mms://live.skylife.it/SkyTg24
NRK Nyheter mms://media00.nrk.no/mms2/nydi/AutoEnc/mn1840.wmv
TV Visjon http://wm-live.crossnet.net/Visjonnorge
SONY Japan mms://morrich.gekimedia.net/MainStream500
BBC WORLD mms://tv.lzu.edu.cn/tv1
FOX 5 mms://a1729.l2168647534.c21686.g.lm.akamaistream.net/D/1729/21687/v0001/reflector:30206
FOX 8 mms://a1090.l1814050135.c18140.g.lm.akamaistream.net/D/1090/18140/v0001/reflector:50135
ABC mms://wmslive.stream.aol.com/live/abc/now
KARE 11 mms://a1100.l2234351369.c22343.n.lm.akamaistream.net/D/1100/22343/v0001/reflector:51369
MSNBC mms://msnbc.wmod.llnwd.net/a275/e1/video/100/vh.asf
SKY news mms://live1.wm.skynews.servecast.net/skynews_wmlz_live300k
FTV mms://88.191.27.137/paid%5Cfashiontv
CNN mms://a466.l3760651364.c37606.g.lm.akamaistream.net/D/466/37606/v0001/reflector:51364mms://a466.l3760651364.c37606.g.lm.akamaistream.net/D/466/37606/v0001
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
Categories: Uncategorized Tags: , , , ,
  1. f_rancis
    February 3rd, 2009 at 22:02 | #1

    this is really great stuff – thx a lot- worked like a charm!!!

  2. Logeshkumar
    March 10th, 2009 at 07:56 | #2

    really nice sense and wonderful share !!

    Thanks,
    Logeshkumar P
    India

  3. steve
    January 22nd, 2010 at 00:05 | #3

    so this records just fine and dandy, but how can you tell it to STOP recording a stream without manually hitting the stop button? If I want to record a stream without popping up the GUI I know the syntax for it, but again, how would I tell VLC to stop recording the stream?

  4. B
    March 27th, 2010 at 10:25 | #4

    Can’t get this to work. Only error

  5. April 3rd, 2010 at 21:08 | #5

    “Das Wertvollste im Leben ist die Entfaltung der Persönlichkeit und ihrer schöpferischen Kräfte”. Ich glaube, das passt hier hier recht gut. Geäußert hat das übrigens Albert Einstein.

  6. March 6th, 2011 at 20:50 | #6

    Perfect article!
    Keep it up

  7. May 22nd, 2011 at 21:43 | #7

    viagra prescription gVv)Њ•ўAѓ,

  8. June 6th, 2011 at 14:26 | #8

    Wonderful beat ! I wish to apprentice while you amend your site, how could i subscribe for a weblog website? The account aided me a appropriate deal. I had been a little bit familiar of this your broadcast offered bright transparent concept http://allensmall1025.hpage.com/connect_a_tv_to_your_laptop_to_check_out_netflix_videos_on-line_7392_76411175.html

  9. July 20th, 2011 at 07:12 | #9

    Dead-Speak.com, Where the dead speak to the living. Dead Speak discusses the many different ways the dead utilizes to speak to the living. Such as psychic mediums, autopsy, ghosts, hauntings, and electronic voice phenomena. Read articles on the dead and death.

  10. September 22nd, 2011 at 05:18 | #10

    noi hoi

    nồi hơi

    http://noihoivietnam.net

  11. October 3rd, 2011 at 01:02 | #11

    Thanks Brother for this information. Please provide more information if possible and it will helpful for us.

  12. Sebben
    October 25th, 2011 at 08:04 | #12

    Thanks,for your help !

  13. November 29th, 2011 at 13:11 | #13

    Valuable information! Looking forward to seeing your post

  14. December 7th, 2011 at 10:39 | #14

    Hello, Hi, Hey, great article, post, blog, I, we love, like, loved, liked it !!!

  1. No trackbacks yet.