On 11/01/2009 22:41, A Mennucc said the following:
> hi, this patch is a  workaround (temporary,  until the bug is ever solved)
> 
> Note that this patch has a very high value cropdetect=80
> the reason is that, in many Italian channels, there is a series of
> "bits" transmitted on top of the vide frames, and those foul the
> cropdetection otherwise.
> 
> a.
> 
> A Mennucc ha scritto:
>> hi everybody,
>>
>> I am informing you of an annoying bug I just noted re: cropdetect in
>> reencoding.
>>
>> First of all, some history. Some time ago (~1 year) I prepared a snippet
>> of code for freevo , that nowadays sits inside the reencoding service:
>> when you ask freevo to  reencode a video, the freevo 'encodingserver'
>> tries to detect cropping; the command to do that is (more or less)
>>   'mplayer -vf cropdetect -vo null -nosound  -sstep S video'
>> where S was prepared so as to get ~20 frames at reasonable spacing in
>> the video, so as to be fast but also to sample around the video to get
>> good cropping parameters. At the time I wrote that code, it worked as a
>> charm.
>>
>> But in the recent past I realized that on all TV shows that I am
>> recording and reencoding, cropping was never done... for some time I
>> thought that this was due to commercials, that are not letterboxed, and
>> foul the crop detection; but after a lot of fiddling around, I  found
>> out that actually 'mplayer -sstep S' is broken; if I use it on any video
>> in my freevo box, no frames are output on screen. The bug is already
>> reported in
>> http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1228
>>
>> What to do? looking around, I found that an alternative way to achieve
>> the same result is
>> 'mplayer -vf framestep=I,cropdetect -vo null -nosound  video'
>> but unfortunately it is much much slower, and the RPC connection between
>> client and encodingserver times out before it ends; I am tring to find a
>> workaround.

The fix suggested in mplayer's bug report seems to work correctly, at 
least, it worked on all the sources that I tried. This was:
-demuxer lavf

I didn't try the other suggestion (-vfm libmpeg2) as the one above was 
quite fast.

But you won't be able to test this until the kaa.rpc2 code is working.

Duncan

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to