On Thu, 3 Feb 2005, E.Chalaron wrote:
> One step at a time :-) This was a 8 mm has not the same size as Super8 no
> need to sample black borders
Oh, ok - it wasn't clear you were processing 8mm rather than Super8
> > What happens if you do not use the 'tl' and let y4mscaler default
>
> same stuff, though I have not tried cc explicitely
It seems you've found a Bug in y4mscaler.
I created a test 1280x960 y4m file (can use y4mcolorbars or y4mblack
to do that) and then tried the commandline you gave
-I active=1138x850+78+40 -S option=sinc:5 -O sar=PAL -O size=720x576
That produces an empty file. Well, not exactly empty - there is the
Y4M header:
cat /tmp/new.y4m
YUV4MPEG2 W720 H576 F25:1 Ip A59:54 C420jpeg
y4mscaler is aborting!
cat /tmp/x.y4m | y4mscaler -I active=1138x850+78+40 -S option=sinc:5 -O sar=PAL
-O size=720x576 -O chromass=420_JPEG > /tmp/new.y4m
INFO: [y4mscaler] Input Stream Header:
INFO: [y4mscaler] <<< frame size: 1280x960 pixels (1843200 bytes)
INFO: [y4mscaler] <<< chroma: 4:2:0 MPEG-2 (horiz. cositing)
INFO: [y4mscaler] <<< frame rate: 25/1 fps (~25.000000)
INFO: [y4mscaler] <<< interlace: none/progressive
INFO: [y4mscaler] <<< sample aspect ratio: 1:1
INFO: [y4mscaler] Source matte region defaulting to full source frame.
INFO: [y4mscaler] Target interlacing defaulting to match source.
INFO: [y4mscaler] Target active region defaulting to full target frame.
INFO: [y4mscaler] Deriving ratios from active regions and SARs...
INFO: [y4mscaler] ...using scaling ratios which pad target.
INFO: [y4mscaler] ...using scaling ratios which are simple.
++ WARN: [y4mscaler] Target active region clipped by projection of source.
++ WARN: [y4mscaler] Source active region clipped by projection of target.
++ WARN: [y4mscaler] Target active region clipped by target frame size.
++ WARN: [y4mscaler] Target active region x1 (5) is not multiple of 2...
++ WARN: [y4mscaler] ...shifted right by 1.
INFO: [y4mscaler] === SOURCE parameters: =================
INFO: [y4mscaler] < stream:
INFO: [y4mscaler] < 1280x960, SAR 1:1, progressive
INFO: [y4mscaler] < chroma subsampling: 4:2:0 MPEG-2 (horiz. cositing)
INFO: [y4mscaler] < chroma ss ratios: x 1:2 y 1:2
INFO: [y4mscaler] < active region:
INFO: [y4mscaler] < 0.765387x2.637279 at 80.404124,43.104995
INFO: [y4mscaler] < matte region:
INFO: [y4mscaler] < 1280x960 at 0,0 (bg Y'CbCr: 16,128,128)
INFO: [y4mscaler] === SCALING parameters: ================
INFO: [y4mscaler] | Scaler: Matto's Generic Scaler
INFO: [y4mscaler] | kernels: sinc:5, sinc:5
INFO: [y4mscaler] === TARGET parameters: =================
INFO: [y4mscaler] > stream:
INFO: [y4mscaler] > 720x576, SAR 59:54, progressive
INFO: [y4mscaler] < chroma subsampling: 4:2:0 JPEG/MPEG-1 (interstitial)
INFO: [y4mscaler] < chroma ss ratios: x 1:2 y 1:2
INFO: [y4mscaler] > active region:
INFO: [y4mscaler] > -6x576 at 6,0 (bg Y'CbCr: 16,128,128)
INFO: [y4mscaler] > X ratio: 15181/24298
INFO: [y4mscaler] > Y ratio: 895679/1312092
INFO: [y4mscaler] Output Stream Header:
INFO: [y4mscaler] >>> frame size: 720x576 pixels (622080 bytes)
INFO: [y4mscaler] >>> chroma: 4:2:0 JPEG/MPEG-1 (interstitial)
INFO: [y4mscaler] >>> frame rate: 25/1 fps (~25.000000)
INFO: [y4mscaler] >>> interlace: none/progressive
INFO: [y4mscaler] >>> sample aspect ratio: 59:54
Abort
That last line shouldn't be there :)
Adding "-O infer=exact" produces:
cat /tmp/x.y4m | y4mscaler -O infer=exact -I active=1138x850+78+40 -S
option=sinc:5 -O sar=PAL -O size=720x576 -O chromass=420_JPEG > /tmp/new.y4m
INFO: [y4mscaler] Input Stream Header:
INFO: [y4mscaler] <<< frame size: 1280x960 pixels (1843200 bytes)
INFO: [y4mscaler] <<< chroma: 4:2:0 MPEG-2 (horiz. cositing)
INFO: [y4mscaler] <<< frame rate: 25/1 fps (~25.000000)
INFO: [y4mscaler] <<< interlace: none/progressive
INFO: [y4mscaler] <<< sample aspect ratio: 1:1
INFO: [y4mscaler] Source matte region defaulting to full source frame.
INFO: [y4mscaler] Target interlacing defaulting to match source.
INFO: [y4mscaler] Target active region defaulting to full target frame.
INFO: [y4mscaler] Deriving ratios from active regions and SARs...
INFO: [y4mscaler] ...using scaling ratios which pad target.
INFO: [y4mscaler] ...using scaling ratios which are exact.
++ WARN: [y4mscaler] Target active region clipped by projection of source.
++ WARN: [y4mscaler] Source active region clipped by projection of target.
INFO: [y4mscaler] === SOURCE parameters: =================
INFO: [y4mscaler] < stream:
INFO: [y4mscaler] < 1280x960, SAR 1:1, progressive
INFO: [y4mscaler] < chroma subsampling: 4:2:0 MPEG-2 (horiz. cositing)
INFO: [y4mscaler] < chroma ss ratios: x 1:2 y 1:2
INFO: [y4mscaler] < active region:
INFO: [y4mscaler] < 1.338784x850.000000 at -180.037549,40.000000
INFO: [y4mscaler] < matte region:
INFO: [y4mscaler] < 1280x960 at 0,0 (bg Y'CbCr: 16,128,128)
INFO: [y4mscaler] === SCALING parameters: ================
INFO: [y4mscaler] | Scaler: Matto's Generic Scaler
INFO: [y4mscaler] | kernels: sinc:5, sinc:5
INFO: [y4mscaler] === TARGET parameters: =================
INFO: [y4mscaler] > stream:
INFO: [y4mscaler] > 720x576, SAR 59:54, progressive
INFO: [y4mscaler] < chroma subsampling: 4:2:0 JPEG/MPEG-1 (interstitial)
INFO: [y4mscaler] < chroma ss ratios: x 1:2 y 1:2
INFO: [y4mscaler] > active region:
INFO: [y4mscaler] > -4x576 at 8,0 (bg Y'CbCr: 16,128,128)
INFO: [y4mscaler] > X ratio: 15552/25075
INFO: [y4mscaler] > Y ratio: 288/425
INFO: [y4mscaler] Output Stream Header:
INFO: [y4mscaler] >>> frame size: 720x576 pixels (622080 bytes)
INFO: [y4mscaler] >>> chroma: 4:2:0 JPEG/MPEG-1 (interstitial)
INFO: [y4mscaler] >>> frame rate: 25/1 fps (~25.000000)
INFO: [y4mscaler] >>> interlace: none/progressive
INFO: [y4mscaler] >>> sample aspect ratio: 59:54
Abort
Output active region is -4 instead of -6 and the scale factors are
shorter (fewer digits ;)) but the program is still Abort'ing.
Cheers,
Steven Schultz
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Mjpeg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users