LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-05-2006, 03:57 PM   #1
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
best options for video post-processing?


Hello,

My aim is to get the most of my old VHS tapes.

My PC is not powerfull enough to clean and encode video from Composite1 in real-time.
So I thought I should first get the "raw" video and sound (real time), and then post-process this video.

So, here's what I do:
FIRST PASS (line splitted for better readability)
Code:
mencoder -tv
driver=v4l2:device=/dev/v4l/video0:input=1:fps=25:norm=SECAM:alsa:amode=1:decimation=2:
quality=75:width=384:height=288 -o /local/tmp/test3.avi -oac copy -ovc copy -ofps 25 tv://
This way, I get a half-size video (384*288) very near the quality I get from Composite1/xawtv.
There is one drawback: each minute of video is roughly 250MB big !!
That's why I don't use the full size (768*576)... even though I wish I could...

The post-processing must be done to reduce the file-size, and I also hope to clean it; indeed, here is a screenshot of the video (that's how the VHS is...); I'm sorry, it is a big file, I don't have the tools on this PC to reduce it:
http://yves.gablin.club.fr/test3-1.png

SECOND PASS
So I tried to clean and reduce the video this way, getting the general look of this command from what "File2DIVX3Pass" is trying (and failing) to execute, and refining it from what I understand from mencoder manual page. (splitted for better readability)
Code:
mencoder -noskip -fps 25 -ofps 25 -vf hqdn3d,pp=hb/vb/dr,cropdetect
-oac mp3lame -lameopts cbr:br=128 -ovc lavc
-lavcopts vcodec=mpeg4:vhq:vqmin=2:vqmax=31:keyint=25:vbitrate=29232:vpass=1
-o test3p1.avi  test3.avi
The result is awful !

Are the optons I use wrong? Or is there an entirely better method (that would allow me to have full-size if possible)?
Thanks for any help,

Yves.
 
Old 02-05-2006, 04:11 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
1. I remember there was an option for XviD to do kind of pre-encoding with relatively low CPU usage to enable real-time recording. I my be wrong here or this feature may be deprecated though.
2. Using full resulotion probably won't be big improvement in quality because VHS has only ~250 lines of resulotion.
3. Doing creative video work is giving much better results if you can see what you are doing. Your fellow countryman Mean has written a wonderful program for this very purpose, it's called Avidemux.

Last edited by Emerson; 02-05-2006 at 04:12 PM.
 
Old 02-06-2006, 05:39 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Original Poster
Rep: Reputation: 66
Thanks for the input!
I'll look into that.

Yves.
 
  


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
amaroK sound post processing it-s Linux - Software 1 01-25-2006 02:29 PM
Video processing on linux Ross Clement Linux - Software 2 11-11-2005 08:47 AM
Linux and Video Processing agee220 Linux - Newbie 1 06-28-2004 08:42 PM
does such video processing software exist? fghxu Linux - Software 0 06-02-2004 12:26 PM
Video conferencing options nixdisciple Linux - Newbie 1 02-11-2002 11:13 PM

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

All times are GMT -5. The time now is 12:48 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