[FFmpeg-user] Changing video size mid-stream

Joshua Grauman jnfo at grauman.com
Tue Nov 1 00:33:07 EET 2016


Moritz,

Thanks so much for the hint! That's pretty nifty. Unfortunately, I was 
actually hoping to do both... I wanted to change the input stream and the 
output stream (I am using ffmpeg to simply encode raw frames without 
resizing).

Josh

> On Mon, Oct 31, 2016 at 12:09:52 -0700, Joshua Grauman wrote:
>> ./gen-vid | ffmpeg -f rawvideo -pixel_format bgra -video_size 1366x713 -framerate 30 -i - -vcodec png overtest.avi
>> 
>> I am wondering if there is any way to change the video size mid-stream 
>> without skipping any frames? Any ideas? Thanks!
>
> Do you want to allow the raw input stream to resize, or do you want to
> resize the output?
>
> I believe the former can't be done. There's no way to tell ffmpeg to
> change those parameters. You would need to make ./gen-vid wrap its
> output into some codec and/or container which could provide its size.
>
> If, on the other hand, you want to resize only the output, you would
> use the scale filter along with the zmq filter. I outlined its use (for
> audio with the azmq filter) here:
> http://lists.ffmpeg.org/pipermail/ffmpeg-user/2016-September/033776.html
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list