Re: [Libav-user] Setting libx264 bitrate via API

2012-08-04 Thread jettoblack
After digging through ffmpeg.c, I finally figured it out. My code was sending pictures into the encoder using a pts in the stream's time_base of 1/9 (e.g. 3003, 6006, 9009). The solution was to first rescale the AVFrame's pts from the stream's time_base to the codec time_base to get a simpl

Re: [Libav-user] Speedup FFmpeg h264 Decoding on Android-Devices

2012-08-04 Thread Christian Brümmer
Okay i will consider that if i am not able to speedup ffmpeg decoding. First I will post my results after using the x264opts Hendrik provides ( "zerolatency,fastdecode" ). Am 04.08.2012 17:52, schrieb Alex Cohn: On Aug 4, 2012 5:22 PM, "Christian Brümmer" >

Re: [Libav-user] Speedup FFmpeg h264 Decoding on Android-Devices

2012-08-04 Thread Alex Cohn
On Aug 4, 2012 5:22 PM, "Christian Brümmer" wrote: > > For sure i first tried to use the Android MediaPlayer in combination with a RTSP-Stream but it has a - not configurable - frame buffer which size dependends of the rtsp fps. The result is a delay about 3-5 seconds which is a known problem as i

Re: [Libav-user] Speedup FFmpeg h264 Decoding on Android-Devices

2012-08-04 Thread Hendrik Leppkes
On Sat, Aug 4, 2012 at 4:22 PM, Christian Brümmer wrote: > > What about the fast-decoding tune - how can i combine that with my zero > latency configuration? > > You should be able to provide a comma separated list for the tune parameter, try "zerolatency,fastdecode" __

Re: [Libav-user] Speedup FFmpeg h264 Decoding on Android-Devices

2012-08-04 Thread Christian Brümmer
For sure i first tried to use the Android MediaPlayer in combination with a RTSP-Stream but it has a - not configurable - frame buffer which size dependends of the rtsp fps. The result is a delay about 3-5 seconds which is a known problem as i discovered. so for a real time video application yo

Re: [Libav-user] Speedup FFmpeg h264 Decoding on Android-Devices

2012-08-04 Thread Michael Bradshaw
On Aug 4, 2012 6:11 AM, "Christian Brümmer" wrote: > > Hi, > > i am using FFmpeg for H264 Decoding on an Android Device. Out of curiosity, is there a reason you aren't using Android's native decoder? It may be more optimized for the device than FFmpeg too. Sorry I don't know how to make FFmpeg fa

[Libav-user] Speedup FFmpeg h264 Decoding on Android-Devices

2012-08-04 Thread Christian Brümmer
Hi, i am using FFmpeg for H264 Decoding on an Android Device. The Videoframes are encoded on a desktop pc and streamed frame-by-frame to the phone. For my tests i used Samsung Galaxy S2 (2x 1,2 ghz) but the decoding time is between 27 - 31 ms for one Frame with the resolution of 800 x 480 (na