Recently I've been trying to simplify and speed up my workflow when re-encoding FreeView video captures to XviD. AviSynth Trim and/or Dissolve snips out the ads, VirtualDubMod+DeLogo removes the logo on, eg, More4 movies when required.
In the past I've also cropped out letterboxing and pillaring (LB&P), and resized down to about 400 lines. Resizing makes some sense, throwing away resolution as a trade-off for better compression at any given bit-rate (resolution at the expense of compression artifacts is a rotten deal). But I've only just realised that cropping LB&P, specifically inserted by the TV broadcaster to present the correct AR when displayed on 16:9 or 4:3 TV screens, is a bit silly. If you take out the LB&P, then you MUST resize, and do so accurately in two different dimensions, in order to restore the AR. There is an argument that says removing all that black stuff is a great idea because you don't want to waste your bitrate compressing it. IME the black stuff compresses very nicely and doesn't normally represent a very significant overhead.
So I dropped cropping -- and then realised that this made resizing optional. Shaving a PAL frame down from 576 lines to 400 lines can be an advantage in a movie with a lot of action if you want to keep the bitrate low. (Dropping below about 360 lines isn't a great idea if you're feeding the output into a 48 inch TV or a projector.) But I've been finding that at around 1MB/sec with sensible dual-pass encoding resizing really doesn't seem to make that much difference to the compression quality. So I've now dropped resizing as well.
One of the reasons I stuck with resizing for so long was that many TV movie captures have an AR that looks completely wrong when you bang them up on the PC screen. This may be because your player software is forcing 16:9 on a 4:3 source, or vice versa. Or it may be because the source is anamorphic and your player doesn't know how to stretch it correctly. But as far as I can make out these problems go away when you pipe this stuff into the living room. Your TV or your projector has modes to deal with all these ARs. If you haven't messed with the LB&P, you don't need to resize, however it might look on a PC display.
So as of now, I'm a no-crop, no-resize kind of a guy.
If this sounds like a bold assertion rather than a question, you mistake my purpose. I'm setting this out here because I haven't seen these principles spelled out in forums like this before (OK, I may have missed it -- there's a lot of stuff in these forums). Cropping and resizing seem to be a standard part of the routine (as they have been mostly for me in the past), and smart people who know a lot more about this than I do are doing it. So all this is really a question. What am I overlooking? What's the downside?
--
voodle
+ Reply to Thread
Results 1 to 14 of 14
-
-
I'm happy you found something that works for you. Without knowing the details of your source captures, it is difficult to give specifics, however most of the issues that seemed to cause you pain appear to be ones that are easily resolved, and in fact could have been handled by using only one or two programs.
Your AR issues are primarily a lack of knowledge and poor player choice. Cropping bars from a capture will not screw up AR if done properly. Something like AutoGK will easily crop, resize and encode to Xvid and give you the correct AR for playback on pretty much any device.Read my blog here.
-
Without knowing the details of your source captures, it is difficult to give specifics, however most of the issues that seemed to cause you pain appear to be ones that are easily resolved, and in fact could have been handled by using only one or two programs.[
Cropping bars from a capture will not screw up AR if done properly.
Something like AutoGK will easily crop, resize and encode to Xvid and give you the correct AR for playback on pretty much any device.
My initial solution was to adjust AGK so that it started its crop-sampling a couple of thousand frames into the movie, avoiding the misleading lead-in. But then it struck me the best thing would be to switch off AGK's autocropping altogether, and never use it for off-air FreeView captures. A .autocrop file enforcing that became a permanent feature of my FreeView capture directory.
Your AR issues are primarily a lack of knowledge....
The issue is: cropping and resizing -- what does it really buy you? I'm sure someone here will be able to come back with some constructive suggestions.
--
voodle -
the opening titles of a CinemaScope movie are LBd and the body of the movie is edge-cropped to fill 16:9.
If the source has had letterboxing added, or even better, been broadcast in the OAR, then it is even easier. You can use the 16:9 source directly for authoring, or crop and resize with the PAR and encode to Divx. Either solution will play back correctly on any supporting player. If you take off the bars and encode the Xvid/Divx, the player will simply put them back when it displays the image. If the image is displayed in a distorted manner then the video has not had the correct PAR adjustments made.
As to what does it actually buy you - better bitrate allocation where it's needed. And Divx/Xvid especially need all the bitrate you can spare to avoid obvious image problems.Read my blog here.
-
Nothing will automagically make up for the butchery of broadcasters.
In the given example, I would not even try to compensate for the screwed up credits.
If you take off the bars and encode the Xvid/Divx, the player will simply put them back when it displays the image.
As to what does it actually buy you - better bitrate allocation where it's needed.
As I think I've said, XviD @ 1MB/sec dual-pass (and I use 1 consecutive B-VOP) seems to cope with unresized 576 line input very nicely and without evident artifacts for most movies. I have encountered one or two (eg, where heavy use of handheld cameras guarantees that no two adjacent frames are alike) where resizing is absolutely essential to avoid vast XviDs. But they're distinctly the exception.
--
voodle -
At 1MB/s I should imagine all your XviDs are vast, seeing as a 1 hour video would be 3.6 GB.
-
At 1MB/s I should imagine all your XviDs are vast
My daftness -- I do mean bits per second. Shouldn't have shifted that B.
--
voodle -
Originally Posted by voodle
-
If that isn't right I can adjust the DAR in small increments via the remote control
I'm contending from experience that for most TV movies cropping and resizing doesn't have a useful quality payback. But I'm happy to yield on this point to anyone with definitive figures.
--
voodle -
What is the frame size of your MPEG files? I thought Freeview used sizes like 544x576 or 480x576. If your MPEG sources are square pixel then you don't need to crop and resize. In all other cases you should resize or use MPEG4 PAR flags.
On the subject of black borders: black (or any color) borders that are completely unchanging (ie free of noise) compress down to almost nothing. But if there is some noise in the borders (like in an analog recording) they will eat up bitrate.
It's easy to test for this. Use a single pass constant quantizer encode. In this mode you select the quality you want and the encoder uses whatever number of bits is needed at each and every frame to deliver that quality. Encode once with the borders, again without the borders, then compare the file sizes. If your borders are completely black there will be very little difference in the file sizes. -
I have an LG player for avi (Xvid/Divx etc) which will playback (correctly) videos encoded as 1:1, 16:9 or 4:3. No distortion. I know this works as I have had to, on several occasions, correct poor encoding by others using mpeg4modifier to alter aspect ratios.
I should also add that for TV caps I only use OTA digital streams, which in this country are broadcast at full PAL resolution. Pay-TV in Australia is such a poor quality, over-priced farce that I have no interest in getting it. This means I don't have to content with these stupid, non-compliant resolutions that seem to be foisted on the rest of the world.Read my blog here.
-
@jagabo
What is the frame size of your MPEG files? I thought Freeview used sizes like 544x576 or 480x576
On the subject of black borders: black (or any color) borders that are completely unchanging (ie free of noise) compress down to almost nothing. But if there is some noise in the borders (like in an analog recording) they will eat up bitrate.
@guns1nger
I should also add that for TV caps I only use OTA digital streams, which in this country are broadcast at full PAL resolution. Pay-TV in Australia is such a poor quality, over-priced farce that I have no interest in getting it. This means I don't have to content with these stupid, non-compliant resolutions that seem to be foisted on the rest of the world.
--
voodle -
The other issue with avi playback is that there are no standards. You can see this even with PC playback software. Some players observe different flags and act accordingly, some don't. It is the same with standalone players. The closest to a standard is Divx certification, however this can be bypassed easily by going down the Xvid route instead. Until this is resolved (and it won't be for a while yet), avi playback support will continue to be inconsistent, at best.
Read my blog here.
-
the closest to a standard is Divx certification, however this can be bypassed easily by going down the Xvid route instead. Until this is resolved (and it won't be for a while yet), avi playback support will continue to be inconsistent, at best.
Come to that, it may also be an argument for not encoding it to XviD or DivX at all, retaining it as MPEG2. But although the price of hard drive space and DVD blanks is dropping all the time, I'm still enough of a miser to want to store four movies per DVD rather than just one. :-)
--
voodle
Similar Threads
-
Tmpgenc Xpress 4: I Don't Want To Resize
By Tom Saurus in forum Video ConversionReplies: 17Last Post: 16th Nov 2009, 14:18 -
Subs don't show properly I don't know what to do
By atai in forum SubtitleReplies: 1Last Post: 8th Oct 2009, 07:44 -
Can I crop and resize video?
By maldb in forum EditingReplies: 6Last Post: 13th Jun 2009, 19:06 -
Video Crop and resize
By quxote in forum EditingReplies: 4Last Post: 27th Feb 2009, 11:48 -
Crop, then resize to 240x320?
By miamicanes in forum EditingReplies: 2Last Post: 29th Dec 2008, 23:56