Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Abel Alonso
2013/6/24 Carl Eugen Hoyos > Abel Alonso writes: > > > Yes it's sufficient to requesst the decoder, but I'm > > getting a crash when trying to decode the video > > Can you reproduce the crash with ffmpeg (the application)? > > Please do not top-post here, Carl Eugen > > _

Re: [Libav-user] Conversion from mp3 to aac/mp4 container problem

2013-06-25 Thread Taha Ansari
I have another observation: When transcoding from mp4 to mp4 (using my code), I see codec_ctx_audio->frame_size is equal to 1024 (that is decoder codec context), and encoder codec context's frame_size is allocated the same (1024). Whereas, while converting from mp3 to mp4, codec_ctx_audio->frame_

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Alex Cohn
On Tue, Jun 25, 2013 at 12:16 PM, Abel Alonso wrote: > > 2013/6/24 Carl Eugen Hoyos >> >> Abel Alonso writes: >> >> > Yes it's sufficient to requesst the decoder, but I'm >> > getting a crash when trying to decode the video >> >> Can you reproduce the crash with ffmpeg (the application)? >> >> P

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Licheng Niu
I am not familiar with libstagefright in ffmpeg and I believe it works well on most devices. But since libstagefright uses Openmax IL api, I guess there would be some incompatible issues. The most frequently happened problem is color format incompatible. However, color format incompatible doesn't a

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread srikanta mondal
I have decode by software in Android 4.0 NDK using ffmpeg. I had got the issue of color format incompatible. but that is a silly matter as the format was BGR to RGB. I just convert it. On Tue, Jun 25, 2013 at 3:52 PM, Licheng Niu wrote: > I am not familiar with libstagefright in ffmpeg and I be

[Libav-user] help encoding audio ogg/vorbis

2013-06-25 Thread Radu Robotin
Hi, I'm developing an application that requires audio streaming using ogg/vorbis format (among other things). My application successfully creates mp2, mp3 ac3 or aac encoded streams, but when I'm trying to use the libvorbis encoder the result is not playable. I suspected it has something to do wi

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Alex Cohn
On Tue, Jun 25, 2013 at 1:22 PM, Licheng Niu wrote: > I am not familiar with libstagefright in ffmpeg and I believe it works well > on most devices. But since libstagefright uses Openmax IL api, I guess there > would be some incompatible issues. > The most frequently happened problem is color form

Re: [Libav-user] avpicture_free crashing when using with sws_scale()

2013-06-25 Thread Pradeep Karosiya
Also this is happening when I'm converting from Av_PIX_FMT_BGR24 ->AV_PIX_FMT_YUV420P (Src Format) (Dst Format) Please help. -- View this message in context: http://libav-users.943685.n4.nabble.com/avpicture-free-crashing-when-using-with-sws-scale-tp4658017p46580

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Abel Alonso
2013/6/25 Alex Cohn > On Tue, Jun 25, 2013 at 1:22 PM, Licheng Niu wrote: > > I am not familiar with libstagefright in ffmpeg and I believe it works > well > > on most devices. But since libstagefright uses Openmax IL api, I guess > there > > would be some incompatible issues. > > The most frequ

[Libav-user] avpicture_free crashing when using with sws_scale()

2013-06-25 Thread Pradeep Karosiya
Hi I'm trying to encode images into video. I'm following muxing.c and scaling.c examples. Though I'm able to encode a video, I'm not able to get rid of memory leaks. I tried many different things related related to allocation of AVPicture but still memory leaks. Specifically my code crashed whe

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Carl Eugen Hoyos
Abel Alonso writes: > As you can see, I had to enable the memalgin-hack to > get the app built. I did it because without that flag, > the file libavutil/mem.c didn't compile successfully Please provide the error report, but please test current git head first, your version looks old. What too

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Abel Alonso
I've checkout the current git head and libstagefright.cpp doesn't compile. In build_error.txt you can find the error report. I was also getting this error with the previous version that I was using (1.1.5) and I fixed it including the header internal.h, but if I try to apply the same simple patch,

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Carl Eugen Hoyos
Abel Alonso writes: > I've checkout the current git head and > libstagefright.cpp doesn't compile. Thank you, this looks like an important report! Didn't you write earlier that there is a problem related to posix_memalign? I only saw the following error (and closely related ones): > libavco

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Carl Eugen Hoyos
Abel Alonso writes: > I've checkout the current git head and libstagefright.cpp > doesn't compile. I created ticket #2709, could you test version 2e7bc9c ? Carl Eugen ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listin

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Abel Alonso
2013/6/25 Carl Eugen Hoyos > > Didn't you write earlier that there is a problem > related to posix_memalign? > I only saw the following error (and closely > related ones): > Yes, I wrote earlier about an issue with posix_memalign, but this was with 1.1.5 version after apply the patch of the #inc

Re: [Libav-user] HW decoding on Android

2013-06-25 Thread Abel Alonso
2013/6/25 Carl Eugen Hoyos > > I created ticket #2709, could you test version 2e7bc9c ? > > With the version 2e7bc9c I get the posix_memalign error again. The report is attached. If you need that I attach or comment something in the ticket, please let me know. arm-linux-androideabi-gcc -I. -I./ -

Re: [Libav-user] avpicture_free crashing when using with sws_scale()

2013-06-25 Thread Stefano Sabatini
On date Tuesday 2013-06-25 03:52:41 -0700, Pradeep Karosiya encoded: > Hi > > I'm trying to encode images into video. I'm following muxing.c and scaling.c > examples. > Though I'm able to encode a video, I'm not able to get rid of memory leaks. > I tried many different things > related related t

[Libav-user] Audio conversion from planar to non-planar formats

2013-06-25 Thread Taha Ansari
Hi! I am working on audio conversion. Looking at different example online, I have been successfully able to convert FLTP format to S16. To my understanding, FLTP is planar, with values in floating range: -1.0 to +1.0. This converts to S16 just fine. Now, I want to convert audio coming from S16P fo

Re: [Libav-user] Audio conversion from planar to non-planar formats

2013-06-25 Thread Paul B Mahol
On 6/26/13, Taha Ansari wrote: > Hi! > > I am working on audio conversion. Looking at different example online, I > have been successfully able to convert FLTP format to S16. To my > understanding, FLTP is planar, with values in floating range: -1.0 to +1.0. > This converts to S16 just fine. Now,