Re: [FFmpeg-user] encoding video from png diffs

2016-09-03 Thread Joshua Grauman
I'm not really sure why, but I got it to work with the following cmd... Thanks for your patience! ./shm | ffmpeg -f rawvideo -pixel_format bgr32 -video_size 1274x541 -framerate 30 -i - out.mp4 On Sat, 3 Sep 2016, Joshua Grauman wrote: Sorry for another question, but I'm having a hard time fig

Re: [FFmpeg-user] encoding video from png diffs

2016-09-03 Thread Joshua Grauman
Sorry for another question, but I'm having a hard time figuring out why this doesn't work. I've written a program to output raw image data (32-bit rgba), frame after frame. I'm trying a test to encode it to mp4, but this command says: ./shm | ffmpeg -f image2 -r 30 -s 1274x541 -pix_fmt rgb32 -

Re: [FFmpeg-user] encoding video from png diffs

2016-09-02 Thread Joshua Grauman
Yes, I know I don't *need* an alpha channel. But without one, you have to apply the same transparency to the whole frame, or use a green screen of some sort, both of which have negative affects... Josh I have another different, but related question. What format would you suggest for storing

Re: [FFmpeg-user] encoding video from png diffs

2016-09-02 Thread Joshua Grauman
I've been looking for a way to screencast an app with alpha, but I haven't found one yet (but if someone knows of one, I'd love it). So I'm working on modifying my app to generate png's at 30 frames per second. Josh 2016-09-02 7:29 GMT+02:00 Joshua Grauman : I have another different, but rel

Re: [FFmpeg-user] encoding video from png diffs

2016-09-02 Thread Carles Vila
> > > > I have another different, but related question. What format would you > suggest for storing my screencast in? The resulting video is going to be > 1080p30 and it needs to have an alpha channel (the input png's will use the > alpha channel). The screencast is going to be overlaid at a later

Re: [FFmpeg-user] encoding video from png diffs

2016-09-02 Thread Carl Eugen Hoyos
2016-09-02 7:29 GMT+02:00 Joshua Grauman : > I have another different, but related question. What format would you > suggest for storing my screencast in? The resulting video is going to be > 1080p30 and it needs to have an alpha channel Which screencast technology allows to record an alpha channe

Re: [FFmpeg-user] encoding video from png diffs

2016-09-02 Thread Carl Eugen Hoyos
2016-09-02 10:21 GMT+02:00 Moritz Barsnick : > $ ffmpeg -h encoder=ffvhuff ffv1 should always work better than ffvhuff. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit

Re: [FFmpeg-user] encoding video from png diffs

2016-09-02 Thread Carl Eugen Hoyos
2016-09-02 0:17 GMT+02:00 Cley Faye : > $ your_script | ffmpeg -f png_pipe -i - out.mp4 It should not be necessary (would be a bug if so) to specify the "_pipe" formats: $ ffmpeg -i - out.mp4 Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.o

Re: [FFmpeg-user] encoding video from png diffs

2016-09-02 Thread Moritz Barsnick
On Thu, Sep 01, 2016 at 22:29:01 -0700, Joshua Grauman wrote: > > from my program that I'm screencasting, which I haven't found screencast > > software that can do. Unfortunately, I'm not sure that I'm going to be able > > to get vcdiff to run fast enough to create the diffs at 30 frames/sec :(.

Re: [FFmpeg-user] encoding video from png diffs

2016-09-01 Thread Joshua Grauman
Hello everyone, I have another different, but related question. What format would you suggest for storing my screencast in? The resulting video is going to be 1080p30 and it needs to have an alpha channel (the input png's will use the alpha channel). The screencast is going to be overlaid at a

Re: [FFmpeg-user] encoding video from png diffs

2016-09-01 Thread Joshua Grauman
The compression level is great. I thought of this because I am doing a screencast, so most screens are identical or very similar. So if I have an initial .tga file with size ~3 megabytes, most of the diffs will be less than 1k in size (some will be more like 15k, and some quite a bit more, but

Re: [FFmpeg-user] encoding video from png diffs

2016-09-01 Thread Joshua Grauman
That's exactly what I need! Hadn't heard of the png_pipe option. I was thinking I might have to write a kernel module to create a bunch of /proc files or something! Thanks! Josh On Fri, 2 Sep 2016, Cley Faye wrote: 2016-09-01 19:31 GMT+02:00 Joshua Grauman : I could of course generate all

Re: [FFmpeg-user] encoding video from png diffs

2016-09-01 Thread Moritz Barsnick
On Thu, Sep 01, 2016 at 10:31:15 -0700, Joshua Grauman wrote: > So I know ffmpeg can encode video from a list of pngs. (img1.png, > img2.png, img3.png, etc). But what if I have one png, and then a list of > diffs (using vcdiff) like (img1.png, img2.diff, img3.diff, etc.). So you basically create

Re: [FFmpeg-user] encoding video from png diffs

2016-09-01 Thread Cley Faye
2016-09-01 19:31 GMT+02:00 Joshua Grauman : > I could of course generate all the pngs, but it would take up a lot of > space and I'm wondering if anyone knows of any creative way to do this? > Thanks! ​You could just do that. There is no need to write them anywhere though; you can pipe png seque

Re: [FFmpeg-user] encoding video from png diffs

2016-09-01 Thread Joshua Grauman
Sorry, I just realized I forgot to mention I'm on Linux... Josh Hello all, So I know ffmpeg can encode video from a list of pngs. (img1.png, img2.png, img3.png, etc). But what if I have one png, and then a list of diffs (using vcdiff) like (img1.png, img2.diff, img3.diff, etc.). Each diff wo

[FFmpeg-user] encoding video from png diffs

2016-09-01 Thread Joshua Grauman
Hello all, So I know ffmpeg can encode video from a list of pngs. (img1.png, img2.png, img3.png, etc). But what if I have one png, and then a list of diffs (using vcdiff) like (img1.png, img2.diff, img3.diff, etc.). Each diff would be based upon the last. I could of course generate all the pn