after messing around with ffmpeg i found the correct switches to do this.
for anyone else wanting to do the same here are the command line args:
single jpg:
ffmpeg.exe -y -i <source.jpg> -vcodec mpeg2video -pix_fmt yuv422p -aspect 4:3 output.m2v
sequence of jpgs:
ffmpeg.exe -y -i <source%d.jpg> -vcodec mpeg2video -pix_fmt yuv422p -aspect 4:3 output.m2v
Discussions
-
-
using MediaDetClass you can extract bitmaps from a video i cant find how to combine a sequence of image(s) into a video in the docs/samples.
where did you see it bdorman?
at the moment i use jpg2yuv with mpeg2enc to generate a 4:2:0 mpeg1 video, but i need a 4:2:2 mpeg2, y4mscaler/berkly mpeg tools for *nix does it but need something for windows.
any ideas?
-
works in firefox not in ie7, ie7 displays a blank page.
is it working at your end? -
Response.Close() breaks both Firefox and IE7 with and without content-length header.
firefox:
XML Parsing Error: no element found
Location: http://localhost:1232/StreamTest/stream.aspx
Line Number 1, Column 1:
ie:
Internet Explorer cannot display the webpage -
still doesn't work
-
<httpHandlers>
<add verb="*" path="stream.aspx" type="Test.CustomHandler, Test"/>
</httpHandlers>
public class CustomHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.Clear();
context.Response.ContentType = "video/quicktime";
context.Response.TransmitFile(@"c:\test.mov");
context.Response.End();
}
}
doesnt work in IE7, works fine with Firefox/IE6, any idea why its not working in IE7? -
i plan on having 2 servers, one live and another as a backup. i know that for sql 2005 standard you can have a single license on both servers.
is it possible to do the same with windows 2003 standard edition?
can i install sql 2005 standard on windows 2003 web edition?
can i configure high availability/high protection mirror with one sql 2005 standard and one sql express?
thanks -
i think this is what you are looking for.
-
sorry my bad, it should be GetPropString. it still does not work, i think there is a problem with the com, because there are 2 other methods GetPropInt and ResetProps, they both work fine.
i don't have a type library, only have the header files.
another small question, for an unsigned char * what .net equivalent can i use? byte[] ? -
i'm trying to use 3ivx to transcode and mpeg2 file, here is one of their com objects methods that i'm trying to use, but it doesn't like the .net type marshaling.
HRESULT GetPropString( char *pcName, unsigned int *puiSize, char *pcValue );
pcName: [in] Name of desired property, C-string.
puiSize: [in/out] Pointer to an Unsigned Int containing the size of the buffer, afterwards it contains the size of the string
pcValue: [out] Pointer to a Char buffer to receive a copy of the C-String property specified, if NULL then the String is not copied,
but puiSize is updated.
converted to
int SetPropString(
[MarshalAs(UnmanagedType.LPStr)]string pcName,
[In,Out]IntPtr piValue,
[Out, MarshalAs(UnmanagedType.LPStr)]out string sb);
i call this using:
IntPtr ptr = Marshal.AllocCoTaskMem(sizeof(int));
SetPropString("some string", ptr, "");
doesnt work, any ideas?