> >> Input #0, mpegvideo, from 'test.m2v': >> Duration: 00:00:46.50, bitrate: 3938 kb/s >> Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR >> 4:3], 3938 kb/s, 25 tbr, 1200k tbn, 50 tbc >> Output #0, yuv4mpegpipe, to 'pipe:': >> Stream #0.0: Video: rawvideo, yuv444p, 720x576 [PAR 16:15 DAR >> 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc > > UGH! What is a PAR (Pixel Aspect Ratio) of 16:15? PAL is > something like 59:54 as > I recall. But then I always ignored the y4m header that ffmpeg > output and > put on my own ;)
16:15 is the pixel aspect ratio you get if you make the assumption that 720x576 frame size is 4:3. (similar to 64:45) As we all know the correct PAR for PAL is 128:117 using true square pixels. If you were using industry square pixels it would be 59:54 (an industry square pixel is 768:767) Unless you know why you would want one and not the other then either true square or industry square is probably fine. [snip] > >> I'm happy to follow instructions to help isolate the bug and >> to apply patches and rebuild to test a solution. > > I would try getting correct data into the program before any more > debugging ;) > > with ffmpeg something like this might stand a better chance: [snip] Could I plug my program which interfaces libav and the mjpeg libraries, libav2yuv? :-) http://silicontrip.net/~mark/lavtools/#libav2yuv You can override all the yuv header values with command line switches. It also uses swscaler to convert to other chroma subsampling mode, so you can output 444 from within the tool. libav2yuv -S 444 -c -A 59:54 test.m2v | yuvdeinterlace | ... I would also like some people to test it and someone to help package it up since it is only C source. Mark ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users