• Magyar nyelv
  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software at small and medium-sized enterprises, and in security of bank payment technologies. Also interested in today's privacy challenges, low-bitrate communications, and building a house as a hobby. Lives at the biggest lake of Central Europe, Lake Balaton.

  • Other projects

    HELLOTUX
    Promoting free software all over the world. Free software merchandise from Europe, in partnership with the leading Linux distributions and free software developers.
    www.hellotux.com
     

    Matek Oázis
    Hungary's number one maths e-learning site, with interactive videos, tests and games for children, students, adult learners, teachers and schools.
    www.matekoazis.hu

  • Magyar nyelv

KG.hu

Kossuth rádió adásának rögzítése

26 March 2011, 4:56 pm (Central European Time)

Megkeressük a solti adót középhullámon, az 540 kHz-es frekvencián, megfogjuk a 60 perces metálos kazettánkat, az A oldal elejére pörgetünk, majd minden óra nulla perc nulla másodperckor a felvétel gombra tenyerelünk. Óra harminckor megfordítjuk a kazettát, és folytatjuk a felvételt, majd óránként kazettacsere.
Nem is rossz, de ehelyett megmutatom, hogy hogyan rögzítsük Linux szerverünkon az MR1 Kossuth rádió adását 30 perces MP3 fájlokba.

Az MR1 Kossuth rádió adása a http://stream002.radio.hu/mr1.mp3 URL-en MP3 formátumban hallgatható. Az alábbi script segítségével felvehető egy tetszőleges hosszúságú műsorrész:

#!/bin/sh
IDO=`date +%x-%H:%M`
killall mplayer
mplayer -dumpstream -dumpfile /home/user/radio/$IDO.mp3 http://stream002.radio.hu/mr1.mp3

Ha ezt a scriptet cronban időzítjük arra, hogy 30 percenként lefusson, 30 perces szeletekre bontva vehetjük fel az élő adást. A szeletek hossza az időzítés gyakoriságától függ.
30 perces szeletek esetén az alábbi kerül az /etc/crontab fájlba:

0,30 * * * * felhasználónevünk /a_script_eleresi_utja/a_script_neve

Célszerű a művelethez egy külön felhasználót létrehozni.

 

Be the first who leaves a comment!

Leave a comment!

Your name:

Your e-mail (kept private and will not be shown):

Comment:

Please type the word linux here:

  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software at small and medium-sized enterprises, and in security of bank payment technologies. Also interested in today's privacy challenges, low-bitrate communications, and building a house as a hobby. Lives at the biggest lake of Central Europe, Lake Balaton.

  • Other projects

    HELLOTUX
    Promoting free software all over the world. Free software merchandise from Europe, in partnership with the leading Linux distributions and free software developers.
    www.hellotux.com
     

    Matek Oázis
    Hungary's number one maths e-learning site, with interactive videos, tests and games for children, students, adult learners, teachers and schools.
    www.matekoazis.hu