Forum Replies Created

  • Andrew Simpson

    November 28, 2013 at 8:20 am in reply to: extract stream of images from video file using ffmpeg

    Hi,

    The trouble with using Win C# is that i cannot give you the console output as I am using managed code. There is an event that I can debug but only If I do not redirect the StdOut. As I am trying to redirect the stdOut the act of testing the console output ruins the thing i am trying to do. Hence, there is no console output I can give you apart from the StdError which is ‘pipe has ended’.

    This is not Unix/Linux i am using C# and I am trying to interface with ffmpeg.exe. When I posted this question On StackOverFlow they said there was nothing wrong with my code it is down to the arguments being used with FFMPEG. They suggested posting on a FFMPEG discussion board. They also said no one has managed to do this.

    Now, when I use a 3rd party component I look at the documentation 1st. There is nothing that gives me what I want. It is all to do with outputting to the hard drive.

    The version of ffmpeg is the latest available on the Winform static builds. It would be the 1st thing I would have done was to download the latest.

    I did try your suggestion but it did not work. In fact I think I had tried it before.

    But thanks..

  • Andrew Simpson

    November 27, 2013 at 7:06 am in reply to: extract stream of images from video file using ffmpeg

    Hi,

    so this is not the solution then? Totally confused. I still do not know if it can be done or not 🙂

    Thanks for your time…

  • Andrew Simpson

    November 26, 2013 at 8:01 pm in reply to: extract stream of images from video file using ffmpeg

    Hi,

    Thanks again for your time. The reason I want to encode these images into OGG video format is because I will save on the usage of my bandwidth when I send to my web server. On my web server I would want to extract the jpes. It is kind of like zipping an array of images for TCP transportation.

    will -codec:v copy do that?

    Thanks

  • Andrew Simpson

    November 26, 2013 at 6:44 pm in reply to: extract stream of images from video file using ffmpeg

    Hi,

    Thank you so much for taking your time to reply to me.

    I am afraid I am not explaining myself properly. My knowledge is limited to C#.

    I can create a Process within my C# Winform App.

    I have this 1st) process:

    -f mjpeg -r 30 -i pipe:0 -c:v libtheora -q:v 7 -r 30 -f ogg pipe:1

    I supply a byte array for pipe:0 from images (1 after another) until there are no more.

    The pipe:1 gives me an output byte array that if I choose to write to a binary file would give me an OGG formatted file which I have tested and played with VLC.

    I want to know if I could reverse this procedure. namely, extracting the original jpegs fron this OGG which is still within my running app as a byte array.

    These arguments will work but the stdput are jpegs written to my hard drive:

    -i pipe:0 -qscale 1 h:\out\img-%05d.jpg

    What I am after is to replace ‘h:\out\img-%05d.jpg’ with something like:

    {jpeg format} pipe:1

    If I knew if this was possible and was given the correct arguments then I would be able to capture the byte array back in jepg formats (where I would use the hex values of the header of a jpeg to delineate the individual ‘frames’) .

    I do not even know if it is possible and I cannot find anything related to this scenario by searching the Web.

    The only output I have got from several guess is ‘pipe closed’.

    A typical guess would be:

    -i pipe:0 -qscale 1 -f mjpeg pipe:1

    Thanks for your time

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy