Need some hints for my tv recording concept
Hi, it's my first posting on the list and i would like to get some special hints for an generally exercise: tv recording on pc. First: at the moment, after researching and try-and-error, i have (for me) a working concept for recording and watching on/from tv. But i'm sure there are things i could do better. My equipement ist low: i use a digital sat receiver. A friend gave me his old analog tv card, which i connected over s-video with the receiver. My vcr-pc is a 500Mhz P3, don't laugh ;-), with an ATI Rage128 tv-out. For me, it's a null cent solution to record and watch video/dvd. My first tries goes to record at full pal resolution, but therefor my pc is to slow (video buffer full) when i must use a compressed video codec (mjpec i think is good codec for real time). After accepting this i used solution A: A) record at 352x288 These are the parameters for my mencoder record script: -------------INPUT ---------------------# ## ### TV TV="driver=v4l2:device=/dev/video:input=1:amode=1" TVOPT=":mjpeg:decimation=2:quality=100" # ------------ OUTPUT --------------------# ## ### VIDEO VID="lavc" # -ovc VIDOPT="-lavcopts vcodec=mjpeg:mbd=1:autoaspect:abitrate=128:acodec=ac3:mv0:nr=10" ## ### AUDIO AUD="lavc" # -oac AUDOPT="" With this i get records in a good quality, a bit big size and moderate cpu usage. Next step is: reduce file size, improve quality. Watching the recorded video on tv, which is much worse than my pc monitor, is ok but on pc (full screen scaling) there are edges, flicker,... So i reencode the video later on a faster pc after recording where i must not care about real time things: -vf pp=de,scale=704:544,denoise3d -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:aspect=4/3 -sws 1 -ffourcc divx With this second process i got a video with "good" quality, low size. And here i have some questions: a) scaling the low source video to a bigger size, isn't this not something like "interpoling" by low-budget scanners? My thought was that software scaling may have a better quality then later scaling in real time by hardware? b) Are there filters,one/two pass runs or any other parameters,things you would do? I tested a lot but mostly i do not see a real difference. c) The -ffourcc option. Is it correct that lavc with vcodec=mpeg4 produce a divx coded video? All my linux player accepted the coded videos but on a friends windows pc (with vlc player) it wouldn't play. Only until i use the above -ffourcc with divx or DX50 he could play it. So: is this option rather a cosmetic entry in the header or do i really change the codec by setting/changing this parameter? My solution B and my actual solution: My thougt was: as better the source materials resolution then the rescaled video is also better, nevertheless if i do this by software or hardware. Solution B record parameters) ## ### TV TV="driver=v4l2:device=/dev/video:input=1:amode=1" TVOPT=":mjpeg:decimation=1:quality=80:width=544:height=408" # ------------ OUTPUT --------------------# ## ### VIDEO VID="lavc" # -ovc VIDOPT="-lavcopts vcodec=mjpeg:mbd=1:aspect=4/3:abitrate=128:acodec=ac3:mv0:nr=10" ## With this i get a 544x408 video and this resolution is about the max what my pc could record without overfulled video buffer. This source material could i reencode as above to divx plus filters. I think rescaling produces a very better result than the result from solution A. Or BTW i don't need rescaling anymore. Especially watching on pc is much better. So: actually i am pleased with this concept. And yes, after seeing that a newbie like me could get good results i thought about buying a DVD card. But i'm curious about getting some hints to do it better or in an other way. Greetings Gerhard
On Sun, Aug 28, 2005 at 11:30:24PM +0200, Gerhard Brauer wrote:
# ------------ OUTPUT --------------------# ## ### VIDEO VID="lavc" # -ovc VIDOPT="-lavcopts vcodec=mjpeg:mbd=1:aspect=4/3:abitrate=128:acodec=ac3:mv0:nr=10" ##
With this i get a 544x408 video and this resolution is about the max what my pc could record without overfulled video buffer.
Never use any height except full (480 for ntsc, 576 for pal) or half (240 for ntsc, 288 for pal). Anything else will give bogus, damaged output. The width is totally up to you. If height is full your video will be interlaced; with half height you throw away one field so what's left is low-res progressive. Rich
Am Dienstag, 30. August 2005 19:02 schrieb Rich Felker:
On Sun, Aug 28, 2005 at 11:30:24PM +0200, Gerhard Brauer wrote:
# ------------ OUTPUT --------------------# ## ### VIDEO VID="lavc" # -ovc VIDOPT="-lavcopts vcodec=mjpeg:mbd=1:aspect=4/3:abitrate=128:acodec=ac3:mv0:nr=10" ##
With this i get a 544x408 video and this resolution is about the max what my pc could record without overfulled video buffer.
Never use any height except full (480 for ntsc, 576 for pal) or half (240 for ntsc, 288 for pal). Anything else will give bogus, damaged output.
That's not totally true. At least (some?) saa7134 cards have an nice deinterlacer. For example, capturing PAL with 640x480 results in a nice progressive video without interlacing artefacts. Matthias
On Tue, Aug 30, 2005 at 07:47:36PM +0200, Matthias Wieser wrote:
Am Dienstag, 30. August 2005 19:02 schrieb Rich Felker:
On Sun, Aug 28, 2005 at 11:30:24PM +0200, Gerhard Brauer wrote:
# ------------ OUTPUT --------------------# ## ### VIDEO VID="lavc" # -ovc VIDOPT="-lavcopts vcodec=mjpeg:mbd=1:aspect=4/3:abitrate=128:acodec=ac3:mv0:nr=10" ##
With this i get a 544x408 video and this resolution is about the max what my pc could record without overfulled video buffer.
Never use any height except full (480 for ntsc, 576 for pal) or half (240 for ntsc, 288 for pal). Anything else will give bogus, damaged output.
That's not totally true. At least (some?) saa7134 cards have an nice deinterlacer. For example, capturing PAL with 640x480 results in a nice progressive video without interlacing artefacts.
This is fundamentally impossible. There's no such thing as a nice half-framerate deinterlacer. Rich
Am Dienstag, 30. August 2005 23:25 schrieb Rich Felker:
On Tue, Aug 30, 2005 at 07:47:36PM +0200, Matthias Wieser wrote:
Am Dienstag, 30. August 2005 19:02 schrieb Rich Felker:
Never use any height except full (480 for ntsc, 576 for pal) or half (240 for ntsc, 288 for pal). Anything else will give bogus, damaged output.
That's not totally true. At least (some?) saa7134 cards have an nice deinterlacer. For example, capturing PAL with 640x480 results in a nice progressive video without interlacing artefacts.
This is fundamentally impossible. There's no such thing as a nice half-framerate deinterlacer.
"[...]without +visible+ interlacing artefacts". And yes, there are nice deinterlacers (dscaler, xine,.. have some really good ones).
On Wed, Aug 31, 2005 at 09:38:22AM +0200, Matthias Wieser wrote:
Am Dienstag, 30. August 2005 23:25 schrieb Rich Felker:
On Tue, Aug 30, 2005 at 07:47:36PM +0200, Matthias Wieser wrote:
Am Dienstag, 30. August 2005 19:02 schrieb Rich Felker:
Never use any height except full (480 for ntsc, 576 for pal) or half (240 for ntsc, 288 for pal). Anything else will give bogus, damaged output.
That's not totally true. At least (some?) saa7134 cards have an nice deinterlacer. For example, capturing PAL with 640x480 results in a nice progressive video without interlacing artefacts.
This is fundamentally impossible. There's no such thing as a nice half-framerate deinterlacer.
"[...]without +visible+ interlacing artefacts".
Arrg people are so ignorant!!! Interlacing is not an artifact. Combing is -- that's what happens when you stupidly put two fields together that don't belong together and show them as one. However your "nice progressive video" coming out of the deinterlacer is not nice, it's missing half the pictures!!!
And yes, there are nice deinterlacers (dscaler, xine,.. have some really good ones).
DScaler has 50/60 fps deinterlacers, some of which are nice. Xine does not have any nice deinterlacer; they're destructive just like mplayer's... Rich
Am Mittwoch, 31. August 2005 16:50 schrieb Rich Felker:
On Wed, Aug 31, 2005 at 09:38:22AM +0200, Matthias Wieser wrote:
Am Dienstag, 30. August 2005 23:25 schrieb Rich Felker:
On Tue, Aug 30, 2005 at 07:47:36PM +0200, Matthias Wieser wrote:
Am Dienstag, 30. August 2005 19:02 schrieb Rich Felker:
Never use any height except full (480 for ntsc, 576 for pal) or half (240 for ntsc, 288 for pal). Anything else will give bogus, damaged output.
That's not totally true. At least (some?) saa7134 cards have an nice deinterlacer. For example, capturing PAL with 640x480 results in a nice progressive video without interlacing artefacts.
This is fundamentally impossible. There's no such thing as a nice half-framerate deinterlacer.
"[...]without +visible+ interlacing artefacts".
Arrg people are so ignorant!!! [...]
Good deinterlacers produce images that are most of the time much better than a single frame.
However your "nice progressive video" coming out of the deinterlacer is not nice, it's missing half the pictures!!!
It is nice and very often 25fps are enough. Nobody forces you to use deinterlacers.
And yes, there are nice deinterlacers (dscaler, xine,.. have some really good ones).
DScaler has 50/60 fps deinterlacers, some of which are nice.
They work for 25fps nearly as well.
Xine does not have any nice deinterlacer; they're destructive just like mplayer's...
Xine has nearly all relevant high quality deinterlacers (TomsMoComp, Greedy,..).
On Wed, Aug 31, 2005 at 05:10:32PM +0200, Matthias Wieser wrote:
That's not totally true. At least (some?) saa7134 cards have an nice deinterlacer. For example, capturing PAL with 640x480 results in a nice progressive video without interlacing artefacts.
This is fundamentally impossible. There's no such thing as a nice half-framerate deinterlacer.
"[...]without +visible+ interlacing artefacts".
Arrg people are so ignorant!!! [...]
Good deinterlacers produce images that are most of the time much better than a single frame.
Huh?
And yes, there are nice deinterlacers (dscaler, xine,.. have some really good ones).
DScaler has 50/60 fps deinterlacers, some of which are nice.
They work for 25fps nearly as well.
And destroy half of the content.. no thanks. :(
Xine does not have any nice deinterlacer; they're destructive just like mplayer's...
Xine has nearly all relevant high quality deinterlacers (TomsMoComp, Greedy,..).
Ah I didn't know that. Why doesn't MPlayer? Rich
Am Donnerstag, 1. September 2005 00:50 schrieb Rich Felker:
On Wed, Aug 31, 2005 at 05:10:32PM +0200, Matthias Wieser wrote:
This is fundamentally impossible. There's no such thing as a nice half-framerate deinterlacer.
"[...]without +visible+ interlacing artefacts".
Arrg people are so ignorant!!! [...]
Good deinterlacers produce images that are most of the time much better than a single frame.
Huh?
For example: If you record CNN and apply -vf kerndeint most of the picture will show full vertical resolution, only moving parts are deinterlaced. If you replace kerndeint by something better, moving parts will improve in quality.
And yes, there are nice deinterlacers (dscaler, xine,.. have some really good ones).
DScaler has 50/60 fps deinterlacers, some of which are nice.
They work for 25fps nearly as well.
And destroy half of the content.. no thanks. :(
Only if the whole frame contains unpredictable motion.
Xine does not have any nice deinterlacer; they're destructive just like mplayer's...
Xine has nearly all relevant high quality deinterlacers (TomsMoComp, Greedy,..).
Ah I didn't know that. Why doesn't MPlayer?
Btw. transcode now includes VirtualDub's "smartdeinter" filter as well as TomsMoComp and others. So best thing for recording TV would be to record interlaced and do the deinterlacing with xine or transcode.
participants (3)
-
Gerhard Brauer -
Matthias Wieser -
Rich Felker