Is there any way using AVISynth to detect whether an HD video stream is really pillarboxed 4:3 content?
I have an MPEG-2 transport stream that I am trying to split up using the Haali splitter, decode, and re-encode, but sometimes the content is really just pillarbox'd 4:3 content, and I need a way to programmatically determine whether it should be cropped.
Is there any way to do this with AVISynth?
Many thanks,
jack
(p.s. - my apologies if this happens to be a dupe, I searched in the forums and couldn't find what i was looking for)
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 10 of 10
			
		- 
	
- 
	Hi- 
 
 I need a way to programmatically determine whether it should be cropped.
 
 The AutoCrop filter?
 
 http://avisynth.org/warpenterprises/
 
 From the accompanying text file:
 Perhaps not what you had in mind, though.AutoCrop is an AVISynth filter that automatically crops the black borders from a clip.
- 
	I could be wrong, but I don't think so. All of the filters that I have used require manually setting the options and viewing the results to see if they are correct. You can easily remove pillarbox in AviSynth, but I don't think there's a way to automate the process if it's not told it's pillarboxed content. 
 
 Edit: Just read manono's reply. Never heard of it, but if it works..."Shut up Wesley!" -- Captain Jean-Luc Picard
 Buy My Books
- 
	Yeah, gadgetguy, the Autocrop crops all black. That's why I'm not sure that's what GoneToTheDogs is looking for. I think he's looking for some automatic solution that detects only pillarbars and crops them, so the video can be reencoded as 4:3. 
- 
	Maybe I'm jumping to conclusions without any evidence, but I assumed he's reencoding for DVD, or maybe something else he wants in a lower resolution (AVI?). If so, he'll be resizing anyway. If not, then I agree there's no point to the exercise. 
 
 Of course, he could just look at it and tell if it's from a 4:3 source.
- 
	Starting from an HD stream the degradation might be acceptable if going to another format like DVD. 
 I just looked at the autocrop feature and read the txt file. It might work, although the creator doesn't seem to have much confidence in it.
 From the txt file:But it also assumes the pillar box is encoded into the stream. I don't have any experience with HD transport streams, but is that normal? or are there A/R flags like for DVD content and the pillar boxes are added by the player?I strongly suggest using the preview mode before committing to a particular crop."Shut up Wesley!" -- Captain Jean-Luc Picard
 Buy My Books
- 
	I know that Australian digital broadcasts are all 16:9, so 4:3 material is pillarboxed. Most digital players have a 4:3 (or fullscreen) mode that zooms for you (and does a much better job than any DVD player I have seen), but if you cap the stream you get the full 16:9, pillarboxed image. Read my blog here.
 
- 
	I am in fact re-encoding (and will adjust the aspect ratio to 4:3), and a small loss of quality is acceptable -- if that autocrop filter can automatically detect and crop the black pillars then it is truly a god-sent!!! Thank you all for your help, I'll give that filter a try and post back with my results. 
- 
	AutoCrop did the trick, thanks so much! I am very grateful for your kindness and expertise! 
Similar Threads
- 
  How does one detect fake images?By mysts in forum Off topicReplies: 8Last Post: 30th Sep 2011, 00:16
- 
  ffmpeg motion detectBy xento in forum ffmpegX general discussionReplies: 0Last Post: 31st Aug 2011, 16:27
- 
  Premiere CS4 and pillarboxing 1920x1080 AVCHD to 16:9 DVD NTSCBy tat2jr1 in forum EditingReplies: 0Last Post: 28th Feb 2010, 13:57
- 
  PC can not detect Dv recorderBy dazedandamused in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 4Last Post: 6th Apr 2009, 19:45
- 
  Detect scene changes in Avisynth?By AlanHK in forum EditingReplies: 0Last Post: 12th Aug 2007, 07:12


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote 
			