Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

Calculate shrink factor for DVD 4.7

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

Calculate shrink factor for DVD 4.7

  • Quote

Post by Joseph_sys » Mon Dec 11, 2006 3:31 am

Does anybody have a good formula to calculate shrink factor for DVD's 4.7?

I know the capacity of the DVD is about 4.38 but the formula I have:
requant_factor = (video_size / (4700000000 - audio_size)) * 1.04

does not seems to be correct. When I used it I got 3.6Gb on a dvd that suppose to be about 4.38
Top
erik258
Advocate
Advocate
User avatar
Posts: 2650
Joined: Tue Apr 12, 2005 8:39 pm
Location: Twin Cities, Minnesota, USA
Contact:
Contact erik258
Website

  • Quote

Post by erik258 » Mon Dec 11, 2006 5:34 pm

perhaps you messed something up?

that equation tells you how small the video has to be so that video 104% the size (a margin of error i guess) will fit on the DVD. so i don't see how... unles tcrequant is not doing a very good job ...
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Tue Dec 12, 2006 1:01 am

erik258 wrote:perhaps you messed something up?

that equation tells you how small the video has to be so that video 104% the size (a margin of error i guess) will fit on the DVD. so i don't see how... unles tcrequant is not doing a very good job ...
I don't know if my calculations are correct but check for yourself (the formula above was taken from this topic):
http://forums.gentoo.org/viewtopic-t-24 ... pping.html

Maybe I've missed something in calculation, so here are the numbers:
video size: 5368709120 - movie.vob
304315676 Dec 10 15:00 movie.ac3
4357256898 Dec 10 14:58 movie.m2v

So according to the above formula:
(5368709120/(4700000000-304315676))*1.04 = 1.27
So factor 1.27 gives me: 3430588898 shrinked.m2v
now m2v + ac3 = 3817709568 (about 3.81Gb not even close to 4.38Gb available space on DVD

But if I use formula:
((5368709120-304315676)/4380000000)/1.04 = 1.11
So Factor 1.11 gives me: 3925131708 shrinked.m2v
and m2v + ac3 = 4317956096 (about 4.31Gb as close as I can get to 4.38 capacity of a DVD)

I have to make some more movies to test this formula. If I made a mistake the above calculations please correct me
Top
erik258
Advocate
Advocate
User avatar
Posts: 2650
Joined: Tue Apr 12, 2005 8:39 pm
Location: Twin Cities, Minnesota, USA
Contact:
Contact erik258
Website

  • Quote

Post by erik258 » Tue Dec 12, 2006 3:24 am

you have already extracted the video from your .vob file.

the .vob file is now useless, you can delete it. acutally, you may want to keep it around for some purpose. but for the requantize-redvdize-growisofs process you won't need the original.vob anymore.

here's my calculations in bc:
4357256898 + 304315676
4661572574
4700000000-4661572574
38427426
scale=10;38427426/1024/1024
36.6472492218

according to my numbers, if you continue with the .ac3 and .m2v you have right now, now only will it barely fit, you'll still have 36.6 megabytes free! in fact ...
38427426/4357256898
.0088191784

you could make it .88% larger! (don't actually do that, for the love of reason)

so i don't think you have to requantize at all.
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Top
Post Reply

4 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic