[Libav-user] FFmpeg scaling problem

Ryan Grewatz grewa008 at d.umn.edu
Fri Jun 20 17:44:11 CEST 2014

Hello all,

I'm fairly new to using ffmpeg. Currently I'm trying to use ffmpeg within
an Android application of mine to view a live rtsp stream with h264 endoded
video. I've been using code from an ffmpeg and Android NDK tutorial (link
below) to help me understand how to use it with Android. Everything has
been working out great, until I started trying to scale the output. When I
try to scale at a ratio other than 1:1 (no scaling), I get a garbled up
stream. I decided to run the tutorial to see if it was my code that was
wrong, but I still ended up with the same mess. So I'm kind of lost as to
how to fix this. Has anybody else had problems like this or know what I
could be doing wrong?

Here's the tutorial:

Native code (uses the ffmpeg library):

Screenshot of my stream with no scaling:

Screenshot of my stream scaled up:

Screenshot of my stream scaled down:

Thank You!
Ryan G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140620/e8e0d84a/attachment.html>

More information about the Libav-user mailing list