I am using VLC 2.0.1 to watch TV (DVB-T) through my PCI TV tuner
Is it possible to record a TV programm as an .avi
or .mp4
file? Can I record it with VLC or another app?
I am using VLC 2.0.1 to watch TV (DVB-T) through my PCI TV tuner
Is it possible to record a TV programm as an .avi
or .mp4
file? Can I record it with VLC or another app?
The easiest way to record immediately is by pressing the record button:
To enable it click
View
→Advanced Controls
.Records become stored as .ts files which you can watch with VLC. You find them in ~/Downloads, which you can change.
To cut .ts files I recommend DVBcut : DVBcut is a Qt application that allows you to select certain parts of an MPEG transport stream (as received via Digital Video Broadcasting, DVB) and save these parts into a single MPEG output file. It follows a 'keyhole surgery' approach where the input video and audio data is mostly kept unchanged, and only very few frames at the beginning and/or end of the selected range are re-encoded in order to obtain a valid MPEG file.
By that tool you can export the files to .mpeg without worrying about any audio lag. Information about how to use it you find on it's homepage (see wiki question).
To record an mpeg-stream use this command in a terminal:
Take the parameters from your channels.conf, whereat
$PROGRAM
in each case is the last number of the line. If you want to watch your record at the same time replace the last parameter with--sout-display
. To stop the record kill the process with Ctrl+C or close the terminal.I tested to replace .mpg with .avi and .mp4 without success: One then has a shift of sound and the other doesn't record sound. But using .mpg seems to be an acceptable alternative to .ts.
You can schedule records as .mpeg-streams as described in this post.
Another good alternative to watch TV on PC was Me TV , but since a while it seems to be buggy and doesn't work as it should - which led me to use VLC, too.
This may be a bit of an overkill, but MythTV is an absolutely incredibly awesome thing:
There's a separate distribution of Ubuntu called Mythbuntu installing which would make sense if you're building a dedicated media center, but you can also install MythTV in "normal" Ubuntu
Tools > Preferences > Input & Codecs look at files section for record directory. I created a folder, but you need to at least your home directory.
When you are ready to record, you have to press Shift+R. I mourn the loss of the red button, but you can look at the hotkeys section of preferences and see the record sequence.