|
|
| Aviano |
| Posted: May 22 2012, 08:19 AM |
 |
|
Newbie

Group: Members
Posts: 6
Member No.: 34915
Joined: 22-May 12

|
Truly sorry if this is the wrong section to post this question in...
Here is a list of what I want to do
1 - 3.05 2 - 2.65 3 - 2.89 4 - 2.56 5 - 2.46 6 - 2.66 7 - 2.66 8 - 2.94 9 - 2.84 10 - 2.66
I want to encode 10 episodes and make them that exact size, 3.05 gigs etc. etc. How in the world do I use VirtualDub to make it that exact size? I've used target quantizer but it's never specific and I always have to wait 4 hours for the encode to finish.
I want to encode 50 MB for every 60 seconds to be specific, so 3.05 gig for the first episode since it has about 60 minutes 21 seconds and so on and so forth.
I don't know how to do this through VirtualDub... but if anyone can help, I will be eternally grateful |
 |
| Placio74 |
| Posted: May 22 2012, 11:50 AM |
 |
|

VideoAudio
  
Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07

|
With target quantizer output file size is unpredictable. Use two pass encoding and bitrate calculator.
What codec you use to encode video?
-------------------- VideoAudio.pl - Serwis o technologii wideo & audio |
 |
| Aviano |
| Posted: May 22 2012, 12:03 PM |
 |
|
Newbie

Group: Members
Posts: 6
Member No.: 34915
Joined: 22-May 12

|
| QUOTE (Placio74 @ May 22 2012, 11:50 AM) | With target quantizer output file size is unpredictable. Use two pass encoding and bitrate calculator.
What codec you use to encode video? | XVID I suppose? Is that correct? |
 |
| Aviano |
| Posted: May 22 2012, 06:38 PM |
 |
|
Newbie

Group: Members
Posts: 6
Member No.: 34915
Joined: 22-May 12

|
Is that it? No one bothers to help? |
 |
| Abrazo |
| Posted: May 22 2012, 07:58 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10

|
When you are encoding a video and you want and exact size of output file, I think you should do a little experiment with encoding the video and the audio at an exact "bitrate". Isolate a piece of 60 seconds of your video file in VirtualDub and compress it with an audio codec (like for example Lame or Fraunhofer MP3) and a video codec (like for example Xvid, DivX or x264). Indicate a higher or lower bitrate to achieve finally the file size that you prefer (50MB for 60 seconds of video).
After this test, you can use these bitrate settings for the complete videofiles.
Remark: I did a little test with encoding to DivX with an exact bitrate, but it seems when the codec reaches a bitrate that is high enough to achieve the perfect quality for the images, it does not respect anymore the bitrate that you indicate. May I suppose that you want to compress high resolution video ? In that case you will have a chance to achieve your goal by trying what I have explained.
On the other hand I do not understand why you should absolutely try to obtain an exact file size for each video ... |
 |
| Aviano |
| Posted: May 22 2012, 09:03 PM |
 |
|
Newbie

Group: Members
Posts: 6
Member No.: 34915
Joined: 22-May 12

|
| QUOTE (Abrazo @ May 22 2012, 07:58 PM) | When you are encoding a video and you want and exact size of output file, I think you should do a little experiment with encoding the video and the audio at an exact "bitrate". Isolate a piece of 60 seconds of your video file in VirtualDub and compress it with an audio codec (like for example Lame or Fraunhofer MP3) and a video codec (like for example Xvid, DivX or x264). Indicate a higher or lower bitrate to achieve finally the file size that you prefer (50MB for 60 seconds of video).
After this test, you can use these bitrate settings for the complete videofiles.
Remark: I did a little test with encoding to DivX with an exact bitrate, but it seems when the codec reaches a bitrate that is high enough to achieve the perfect quality for the images, it does not respect anymore the bitrate that you indicate. May I suppose that you want to compress high resolution video ? In that case you will have a chance to achieve your goal by trying what I have explained.
On the other hand I do not understand why you should absolutely try to obtain an exact file size for each video ... | Thank you, I've just noticed the bitrate option in quantizer. I will test it out. I know it seems like a strange preference, 50 mb per 60 seconds and all... it's just what I'm trying to go far.
I should have been more specific, I want 50 mb in general per 60 seconds, so I'm not actually intent on getting those file sizes (though if I want 50 mb per 60 seconds, I am going to get those file sizes) it's just that those happen to be the size of the episodes that I'm going to encode it to, which is perfect by me - not too big or too small. |
 |
| levicki |
| Posted: May 24 2012, 05:33 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 167
Member No.: 22605
Joined: 13-December 07

|
Few points to consider:
- With DivX and Xvid codec you should never use stronger compression ratio than 1 : 97 -- anything stronger creates visible artifacts.
- DivX and Xvid codecs do not benefit from higher bitrate than needed to encode particular material -- if you give them higher bitrate they will simply not produce higher quality file because they are retarded. You can easilly test that by giving them > 5,000kbps bitrate on a clip where 2,500 is enough.
- x264 is superior to Xvid and Divx in every way, and unless you are encoding video for old hardware players that do not support x264 codec there is absolutely no excuse to use Divx and Xvid today. Not only you can save space with x264, but you can also get better (or at least the same) visual quality.
You can check out my DivxCalc from http://levicki.net/downloads/ if you want to have an idea of how big your file will be and what is the minimal bitrate you should be using to encode video with particular resolution and frame rate. |
 |
| Aviano |
| Posted: May 25 2012, 08:54 AM |
 |
|
Newbie

Group: Members
Posts: 6
Member No.: 34915
Joined: 22-May 12

|
| QUOTE (levicki @ May 24 2012, 05:33 PM) | Few points to consider:
- With DivX and Xvid codec you should never use stronger compression ratio than 1 : 97 -- anything stronger creates visible artifacts.
- DivX and Xvid codecs do not benefit from higher bitrate than needed to encode particular material -- if you give them higher bitrate they will simply not produce higher quality file because they are retarded. You can easilly test that by giving them > 5,000kbps bitrate on a clip where 2,500 is enough.
- x264 is superior to Xvid and Divx in every way, and unless you are encoding video for old hardware players that do not support x264 codec there is absolutely no excuse to use Divx and Xvid today. Not only you can save space with x264, but you can also get better (or at least the same) visual quality.
You can check out my DivxCalc from http://levicki.net/downloads/ if you want to have an idea of how big your file will be and what is the minimal bitrate you should be using to encode video with particular resolution and frame rate. | Thanks for all the replies. I've now learned to do what I've been wanting to do, and I've even familiarized myself with Twopass encoding (pretty neat, but takes a looong time).
So you're saying x264 is better? That's H264 MP4 or something, right? |
 |
| levicki |
| Posted: May 25 2012, 09:41 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 167
Member No.: 22605
Joined: 13-December 07

|
| QUOTE (Aviano @ May 25 2012, 09:54 AM) | | QUOTE (levicki @ May 24 2012, 05:33 PM) | Few points to consider:
- With DivX and Xvid codec you should never use stronger compression ratio than 1 : 97 -- anything stronger creates visible artifacts.
- DivX and Xvid codecs do not benefit from higher bitrate than needed to encode particular material -- if you give them higher bitrate they will simply not produce higher quality file because they are retarded. You can easilly test that by giving them > 5,000kbps bitrate on a clip where 2,500 is enough.
- x264 is superior to Xvid and Divx in every way, and unless you are encoding video for old hardware players that do not support x264 codec there is absolutely no excuse to use Divx and Xvid today. Not only you can save space with x264, but you can also get better (or at least the same) visual quality.
You can check out my DivxCalc from http://levicki.net/downloads/ if you want to have an idea of how big your file will be and what is the minimal bitrate you should be using to encode video with particular resolution and frame rate. |
Thanks for all the replies. I've now learned to do what I've been wanting to do, and I've even familiarized myself with Twopass encoding (pretty neat, but takes a looong time).
So you're saying x264 is better? That's H264 MP4 or something, right? | Yes and yes 
Much much better.
If you want to use it from within VirtualDub you need a VFW (Video For Windows) codec which you can get here: http://sourceforge.net/projects/x264vfw/
Once you install it you will be able to select x264 compression in VirtualDub.
If you are not scared of command line applications you can grab the encoder from here, its free: http://x264.nl/
In the latest version of VirtualDub it is possible to use external encoders. |
 |
| Aviano |
| Posted: May 26 2012, 06:38 PM |
 |
|
Newbie

Group: Members
Posts: 6
Member No.: 34915
Joined: 22-May 12

|
| QUOTE (levicki @ May 25 2012, 09:41 AM) | | QUOTE (Aviano @ May 25 2012, 09:54 AM) | | QUOTE (levicki @ May 24 2012, 05:33 PM) | Few points to consider:
- With DivX and Xvid codec you should never use stronger compression ratio than 1 : 97 -- anything stronger creates visible artifacts.
- DivX and Xvid codecs do not benefit from higher bitrate than needed to encode particular material -- if you give them higher bitrate they will simply not produce higher quality file because they are retarded. You can easilly test that by giving them > 5,000kbps bitrate on a clip where 2,500 is enough.
- x264 is superior to Xvid and Divx in every way, and unless you are encoding video for old hardware players that do not support x264 codec there is absolutely no excuse to use Divx and Xvid today. Not only you can save space with x264, but you can also get better (or at least the same) visual quality.
You can check out my DivxCalc from http://levicki.net/downloads/ if you want to have an idea of how big your file will be and what is the minimal bitrate you should be using to encode video with particular resolution and frame rate. |
Thanks for all the replies. I've now learned to do what I've been wanting to do, and I've even familiarized myself with Twopass encoding (pretty neat, but takes a looong time).
So you're saying x264 is better? That's H264 MP4 or something, right? |
Yes and yes 
Much much better.
If you want to use it from within VirtualDub you need a VFW (Video For Windows) codec which you can get here: http://sourceforge.net/projects/x264vfw/
Once you install it you will be able to select x264 compression in VirtualDub.
If you are not scared of command line applications you can grab the encoder from here, its free: http://x264.nl/
In the latest version of VirtualDub it is possible to use external encoders. | Ty again, now this is what I call a help forum .
I might just do a second encode of it and do it in x264 while still keeping the XVID(since it still looks amazing in Xvid anyway)
I may need to get a bigger seedbox though.
Btw if any noobie is wondering what bitrate I chose for those files to get that size, I chose 6666 kb/s. Works with two-pass encoding as well. |
 |