LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2008, 05:30 PM   #1
henning
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Rep: Reputation: 0
record dvb streams (with subtitles !!) from the command line


Hi

I have a server (debian) with a dvb-interface (nova-t-usb2) and I need a way to record dvb streams remotely. (I live in Denmark/europe)

Something like:
1. ssh to the server
2. execute commands to record
3. transfer the file to where ever i want to view the file.

I've (severe) problems at step 2.

Whatever I try I cant get a recording with subtitles. (I've tried several solutions that recorded video+audio just fine, but NO subtitles)

If I launch Kaffeine directly on my server (with a keyboard and screen attatched and using the GUI) to record some dvb stream it works fine. well it works perfectly, the recorded *.m2t file is just what I need - but how can I do the same thing when I am physically away from my server. (I only have ssh/telnet access - no keyboard, no GUI, no mouse)

Or in other words:
How does Kaffeine do the job ? which subrutines does Kaffeine use.
- dvbstream ?
- cat /dev/dvb/adapter0/dvr0 > ...
- replex ...
- projectx


Alternative: Is there a way to remotely control Kaffeine ?
 
Old 04-30-2008, 02:53 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
If you can play the stream with mplayer, then you should also be able to use the '-dumpstream' option to save it to disk. Hopefully that will include the full stream including subtitles.

(You can also include the '-dumpfile <filename>' option to give it a useful file name).
 
Old 05-01-2008, 01:09 PM   #3
henning
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Solution found!

First David, thanx for your answer. I never did get mplayer to display subtitles from a dvb-t source and I'm not sure that mplayer even support dvb-t subtitles (yet ?)

Anyway I found another solution. Briefly I do this: (I'll post a more detailed HowTo later)

1. scan for available channels:
(scan /usr/share/doc/dvb-utils/examples/scan/dvb-t/dk-All > /root/.tzap/channels.conf)

2. Start tzap and leave it running:
(tzap -c "/root/.tzap/channels.conf" "TV 2 (Øst)")

3. In anoter console run dvbsnoop and find the PIDs for map, video, audio and subtitles for that channel. (in this case its 2101 2111 2123 2135)

4. Now record those streams with dvbstream to a ts-file
(dvbstream -o:"/dvb/myRecordedProgram.ts" 0 2101 2111 2123 2135)

the file is playable with vlc with subtitles (haven't tried other players yet)

I'm very happy now

Regards
Henning
 
Old 06-26-2008, 07:04 AM   #4
elassed
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
dvbsnoop dvb-t subtitles

Would Henning be so kind to advise the command line he uses with dvbsnoop to find the PIDs for map,video,audio & subtitles?
 
Old 06-27-2008, 02:35 AM   #5
henning
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Elassed

Well, dvbsnoop is the command to use.
I'm rewiring my network right now so my linux-box is currently offline, but as I recall it:

run:
#dvbsnoop -s pidscan -pd 6 > snoop.out

Look through the file snoop.out for the right pids for audio, video and subtitles.

Hope it helps.

Regards
Henning
 
Old 03-08-2009, 09:23 AM   #6
raketten
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
I got this error using tzap:
ERROR: error while parsing constellation (syntax error)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
record audio streams arktype Linux - Software 5 09-15-2011 03:06 AM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 10:46 AM
Getting amarok 1.3.8 to record streams... cbjhawks SUSE / openSUSE 3 09-10-2006 09:53 AM
Line-In over Alsa: Record mono only Vinter Linux - Hardware 1 04-10-2006 12:37 AM
How to record online A/V streams? moiaussi Linux - Newbie 2 01-26-2005 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration