Re: [Libav-user] ffmpeg on android - cannot write output file

2015-02-13 Thread wm4
On Fri, 13 Feb 2015 10:08:29 -0600 Cen-bi Liu cenbi...@gmail.com wrote: Hi all, I'm new to ffmpeg and trying to use ffmpeg as a shared library in Android to convert PCM to an .mp4 file by following tutorials. I hit a snag in my openOutputFile function, I have the following which has

Re: [Libav-user] ffmpeg on android - cannot write output file

2015-02-13 Thread wm4
On Fri, 13 Feb 2015 10:22:46 -0600 Cen-bi Liu cenbi...@gmail.com wrote: yes. How about open(filename, O_CREAT | O_WRONLY | O_CLOEXEC, 0666)? This is approximately what libavformat calls. You can also check strace output. On Fri, Feb 13, 2015 at 10:19 AM, wm4 nfx...@googlemail.com wrote:

Re: [Libav-user] ffmpeg on android - cannot write output file

2015-02-13 Thread Cen-bi Liu
I will give it a try. Thanks for the hint. On Fri, Feb 13, 2015 at 10:27 AM, wm4 nfx...@googlemail.com wrote: On Fri, 13 Feb 2015 10:22:46 -0600 Cen-bi Liu cenbi...@gmail.com wrote: yes. How about open(filename, O_CREAT | O_WRONLY | O_CLOEXEC, 0666)? This is approximately what

[Libav-user] ffmpeg on android - cannot write output file

2015-02-13 Thread Cen-bi Liu
Hi all, I'm new to ffmpeg and trying to use ffmpeg as a shared library in Android to convert PCM to an .mp4 file by following tutorials. I hit a snag in my openOutputFile function, I have the following which has given me an error (passing in /sdcard/a.mp4 for filename): if ((error =

Re: [Libav-user] ffmpeg on android - cannot write output file

2015-02-13 Thread Cen-bi Liu
Thanks, that's a good point to see the error code. I will give it a try. I just thought failure to open will result in a negative number. From the list of error codes, https://www.ffmpeg.org/doxygen/2.3/group__lavu__error.html, I don't see a whole bunch related to different I/O errors, though.

Re: [Libav-user] ffmpeg on android - cannot write output file

2015-02-13 Thread Nicolas George
Le quintidi 25 pluviôse, an CCXXIII, Cen-bi Liu a écrit : Thanks, that's a good point to see the error code. I will give it a try. I just thought failure to open will result in a negative number. From the list of error codes, https://www.ffmpeg.org/doxygen/2.3/group__lavu__error.html, I don't

Re: [Libav-user] ffmpeg on android - cannot write output file

2015-02-13 Thread wm4
On Fri, 13 Feb 2015 17:52:58 +0100 Nicolas George geo...@nsup.org wrote: Le quintidi 25 pluviôse, an CCXXIII, Cen-bi Liu a écrit : Thanks, that's a good point to see the error code. I will give it a try. I just thought failure to open will result in a negative number. From the list of

Re: [Libav-user] ffmpeg on android - cannot write output file

2015-02-13 Thread Cen-bi Liu
yes. On Fri, Feb 13, 2015 at 10:19 AM, wm4 nfx...@googlemail.com wrote: On Fri, 13 Feb 2015 10:08:29 -0600 Cen-bi Liu cenbi...@gmail.com wrote: Hi all, I'm new to ffmpeg and trying to use ffmpeg as a shared library in Android to convert PCM to an .mp4 file by following tutorials.

Re: [Libav-user] ffmpeg on android - cannot write output file

2015-02-13 Thread Nicolas George
Le quintidi 25 pluviôse, an CCXXIII, Cen-bi Liu a écrit : if ((error = avio_open(output_io_context, filename, AVIO_FLAG_WRITE)) 0) { __android_log_print(ANDROID_LOG_ERROR, encoder,couldn't open output file); exit(1);} Why are you not doing anything with the

Re: [Libav-user] ffmpeg with Android

2014-08-23 Thread Dmitry Adjiev
I tried this function several deys ago on android, I work for project where I need to play rtp h263/h264 stream. In my case this function doesn't work because I can't detect video size (on android only, it works on linux). When I set video size by myself I can't read frames because av_read_frame

[Libav-user] ffmpeg with Android

2014-08-20 Thread Swapnil Bhoite
Hi, I am working on Android (Compiled ffmpeg-2.3.3 for Android on Ubuntu 12.04). The basic purpose of my project is open and play HLS. I've been searching on internet for doing so, but I'm unable to find useful guidance. Looking forward for further guidance. From examples, I have created one to

[Libav-user] ffmpeg on android

2014-01-12 Thread Marcelo Paes Rech
Hi guys, I am trying to do a stream player in android but I need to read a array of bytes and then decode every packet of array of bytes. In the end started to make my AAC decoder work with the ffmpeg example of decoder. But I ran into the same problem of this guy:

Re: [Libav-user] ffmpeg on android

2014-01-12 Thread Sylvio José Alves Neto
Marcelo, have you initialized the ffmpeg using av_register_all()? Also, when building the ffmpeg, have you included encoding/decoding/ parsing support for aac? Sylvio Em 12/01/2014 16:18, Marcelo Paes Rech marcelopaesr...@gmail.com escreveu: Hi guys, I am trying to do a stream player in

Re: [Libav-user] FFMPEG+JNI+ANDROID

2012-07-09 Thread Igor Oliveira
force the libx264 vcodec usage, the ffmpeg prints a error Unknown codec). -- View this message in context: http://libav-users.943685.n4.nabble.com/Libav-user-FFMPEG-JNI-ANDROID-tp4655206p4655385.html Sent from the libav-users mailing list archive at Nabble.com

Re: [Libav-user] FFMPEG+JNI+ANDROID

2012-07-03 Thread Rui Luís
) at 0xdeadbaad (code=1). After a short time the aplication is restarted automatically. Rui Luís, I would like to know how do you solve this problem. Thanks in advance. -- View this message in context: http://libav-users.943685.n4.nabble.com/Libav-user-FFMPEG-JNI-ANDROID-tp4655206p4655359.html Sent

Re: [Libav-user] FFMPEG+JNI+ANDROID

2012-07-02 Thread Igor Oliveira
solve this problem. Thanks in advance. -- View this message in context: http://libav-users.943685.n4.nabble.com/Libav-user-FFMPEG-JNI-ANDROID-tp4655206p4655359.html Sent from the libav-users mailing list archive at Nabble.com. ___ Libav-user mailing list

Re: [Libav-user] FFMPEG+JNI+ANDROID

2012-06-18 Thread Rui Luís
I know that is ffmpeg because if i remove the code related to ffmepg it works fine. The problem is that i do not get any error output. i belive the problem is in avformat_network_init(); however i do a deinit in the end.. -- Give a man a fish and you feed him for a day. Teach him how to fish

Re: [Libav-user] FFMPEG+JNI+ANDROID

2012-06-18 Thread Alex Cohn
On Mon, Jun 18, 2012 at 12:26 PM, Rui Luís rui.l...@gmail.com wrote: The problem is that i do not get any error output. This is very strange. Usually with Android, you can see a crash report with logcat, something like SIGSEGV(11). It is also worthwhile to monitor memory usage when you switch

Re: [Libav-user] FFMPEG+JNI+ANDROID

2012-06-18 Thread Rui Luís
SIGSEGV was what i was expeting but nothing appears.. about the memory is no problem because i remove all that is created and i am only using 10mb i try to put the ffmeg initialization to run only once but that also didn't help.. finally some errors that were not appearing in the log cat and now

Re: [Libav-user] FFMPEG+JNI+ANDROID

2012-06-18 Thread Alex Cohn
On Mon, Jun 18, 2012 at 1:33 PM, Rui Luís rui.l...@gmail.com wrote: SIGSEGV was what i was expeting but nothing appears.. about the memory is no problem because i remove all that is created and i am only using 10mb i try to put the ffmeg initialization to run only once but that also didn't

Re: [Libav-user] FFMPEG+JNI+ANDROID

2012-06-18 Thread Rui Luís
I do not open any files. -- Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime. On Mon, Jun 18, 2012 at 1:09 PM, Alex Cohn alexc...@netvision.net.ilwrote: On Mon, Jun 18, 2012 at 1:33 PM, Rui Luís rui.l...@gmail.com wrote: SIGSEGV was

Re: [Libav-user] FFMPEG+JNI+ANDROID

2012-06-18 Thread Alex Cohn
On Mon, Jun 18, 2012 at 3:56 PM, Rui Luís rui.l...@gmail.com wrote: I do not open any files. ffmpeg streaming goes through file descriptors. On Mon, Jun 18, 2012 at 1:09 PM, Alex Cohn alexc...@netvision.net.ilwrote: On Mon, Jun 18, 2012 at 1:33 PM, Rui Luís rui.l...@gmail.com wrote:

[Libav-user] FFMPEG+JNI+ANDROID

2012-06-15 Thread Rui Luís
Good Day. I am using ffmepg (0.11) in android through JNI and i have with sucees been able to stream a video. However i am having a huge problem. If i go back and forth in my aplication in order to see several videos after the 4 or 5 video ffmpeg crash and does not output any error. Every time i