LinuxQuestions.org
Visit Jeremy's Blog.
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 12-24-2005, 04:50 PM   #1
lagu2653
Member
 
Registered: Jun 2005
Distribution: Lubuntu 16.04 LTS
Posts: 104

Rep: Reputation: 15
Compressing Mpeg2 5 Times With Acceptable Quality


I want to migrate my VHS collection to DVD5. I have a Hauppauge PVR 350 card in my SuSE PC. I can capture video through a regular cat-command (cat /dev/video0 > /mnt/hdb1/TV/recordings/tmp.mpg). But the file is app. 5 times too large. How can I shrink it 5 times in order to be able to fit 8 hours of VHS-video onto a 4.37 GB DVD5 without too much loss of video- and audio-quality? I want to be able to play the video-files (mpeg, avi, divx, xvid... which ever format offers the best quality at a 5:1 compression ratio) both on Linux and Windows.
 
Old 12-27-2005, 03:40 AM   #2
karpi
Member
 
Registered: Oct 2005
Location: Germany
Distribution: Suse
Posts: 134

Rep: Reputation: 15
Hi,

you are dumping the raw video stream.
Give mplayer/mencoder a try. With mencoder you can capture the video-stream and convert it to mpeg2/4/divx etc. in one step. You can also control the quality of the sound.
To demux the stream I use avidemux. Multiplex the sound and video I use mplex from the mjpegtools and prepare the dvd-filestructure with dvdwizard/dvdauthor.

HTH
 
Old 12-27-2005, 04:28 AM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
karpi is incorrect that Hauppauge PVR-350 outputs raw video stream. It only outputs MPEG-1 or MPEG-2. MPlayer mencoder will just lag behind or drop several frames because it have to decode the MPEG-1/MPEG-2 stream to encode it to another stream.

I did the following a few times using Hauppauge PVR-250 to make a DVD compatible disc with out any problems.
1) ivtvctl -c bitrate=8000000,bitrate_peak=9600000,stream_type=14,audio=0xc9
2) cat /dev/video0 > input.mpg
3) replex -i PS -v 0xe0 -a 0xc0 -k -t DVD -o output.mpg input.mpg
4) dvdauthor -o finaldvd output.mpg
5) dvdauthor -o finaldvd -T

You can try to adjust the bitrate and bitrate_peak until the quality just barely gets bad. Not all DVD players may not be able to play it back. I suggest using either DVD+RW or DVD-RW for testing with the bitrate and bitrate_peak.

A DVD-5 can only handle up to 2 hours (120 minutes), but it varies depending on the material and bit rates. Have you looked into dual layer DVD drives because it (DVD-9) can store up to 4 hours (240 minutes).
 
  


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
Pixelview playtv MPEG2 Hexane Linux - Hardware 1 12-08-2008 10:41 AM
compressing mpeg2 5 times with acceptable quality lagu2653 Linux - Software 1 12-23-2005 05:42 PM
apache and mpeg2 files cjstm Linux - Networking 1 11-11-2005 02:16 PM
Mozilla and x-mpeg2 RodimusProblem Linux - Software 2 07-24-2005 05:41 AM
MPEG2 TV Capture codyman Linux - Software 0 09-12-2004 12:03 PM

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

All times are GMT -5. The time now is 06:07 PM.

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