vlc-android + AMR problem

*nix specific usage questions
mochipoo
New Cone
New Cone
Posts: 7
Joined: 19 Apr 2011 01:09

vlc-android + AMR problem

Postby mochipoo » 05 May 2011 22:02

Hi, I compiled vlc-android with ffmpeg + libopencore-amrnb. I was able to play a .mov with no problem from Android. However I am having problem playing an AMR audio file. I keep getting the following error for the entire duration the .amr file is running and I hear no audio:

Code: Select all

... 05-05 12:36:58.442: WARN/vlc(21468): [0x2b0494] main audio output warning: PTS is out of range (-9695), dropping buffer 05-05 12:36:58.442: WARN/vlc(21468): [0x2b0494] main audio output warning: PTS is out of range (-27589), dropping buffer 05-05 12:36:58.492: WARN/vlc(21468): [0x2b0494] main audio output warning: input PTS is out of range (3589), trashing 05-05 12:36:58.512: WARN/vlc(21468): [0x2b0494] main audio output warning: input PTS is out of range (1106), trashing 05-05 12:36:58.542: WARN/vlc(21468): [0x2b0494] main audio output warning: input PTS is out of range (15499), trashing 05-05 12:36:58.562: WARN/vlc(21468): [0x2b0494] main audio output warning: input PTS is out of range (12864), trashing 05-05 12:36:58.572: WARN/vlc(21468): [0x2b0494] main audio output warning: input PTS is out of range (7970), trashing 05-05 12:36:58.602: WARN/vlc(21468): [0x2b0494] main audio output warning: input PTS is out of range (9332), trashing 05-05 12:36:58.622: WARN/vlc(21468): [0x2b0494] main audio output warning: input PTS is out of range (9321), trashing ... lots and lots of it...


If I filter out amr in the logcat I can see that vlc-android did find the amr decorder (samr) :

Code: Select all

... 05-05 12:36:58.031: DEBUG/vlc(21468): [0x2aad2c] main input debug: Creating an input for 'test.amr' 05-05 12:36:58.061: DEBUG/vlc(21468): [0x2aad2c] main input debug: `file:///mnt/sdcard/test.amr' gives access `file' demux `' path `/mnt/sdcard/test.amr' 05-05 12:36:58.061: DEBUG/vlc(21468): [0x2aad2c] main input debug: creating demux: access='file' demux='' location='/mnt/sdcard/test.amr' file='/mnt/sdcard/test.amr' 05-05 12:36:58.061: DEBUG/vlc(21468): [0x2aad2c] main input debug: creating access 'file' location='/mnt/sdcard/test.amr', path='/mnt/sdcard/test.amr' 05-05 12:36:58.061: DEBUG/vlc(21468): [0x2af994] filesystem access debug: opening file `/mnt/sdcard/test.amr' 05-05 12:36:58.081: DEBUG/vlc(21468): [0x2aad2c] main input debug: creating demux: access='file' demux='' location='/mnt/sdcard/test.amr' file='/mnt/sdcard/test.amr' 05-05 12:36:58.081: DEBUG/vlc(21468): [0x2afd34] avformat demux debug: trying url: /mnt/sdcard/test.amr 05-05 12:36:58.081: DEBUG/vlc(21468): [0x2afd34] avformat demux debug: detected format: amr 05-05 12:36:58.382: DEBUG/vlc(21468): [0x2afd34] avformat demux debug: adding es: audio codec = samr 05-05 12:36:58.382: DEBUG/vlc(21468): [0x2afd34] avformat demux debug: - format = amr (3GPP AMR file format) 05-05 12:36:58.392: DEBUG/vlc(21468): [0x2aad2c] main input debug: `file:///mnt/sdcard/test.amr' successfully opened ...

I am basically using the stocked vlc-android code unchanged.
Any pointer? I am at a lost. Any help is appreciated ! Thank you
Grace

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc-android + AMR problem

Postby Jean-Baptiste Kempf » 06 May 2011 04:40

You shouldn't need libopencore, since stock ffmpeg plays amr now.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mochipoo
New Cone
New Cone
Posts: 7
Joined: 19 Apr 2011 01:09

Re: vlc-android + AMR problem

Postby mochipoo » 06 May 2011 20:12

Oh ! Thanks. I will give that a try right now.
Would I have still have to add HAVE_AMR=1 to config.mak and add .libamrwb .libarmnb to the distro.mak?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc-android + AMR problem

Postby Jean-Baptiste Kempf » 06 May 2011 21:30

no.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mochipoo
New Cone
New Cone
Posts: 7
Joined: 19 Apr 2011 01:09

Re: vlc-android + AMR problem

Postby mochipoo » 06 May 2011 23:38

Thank you for your quick reply.
I rebuilt ffmpeg to remove libopencore-amrnb and rebuilt everything else too. However, I am still getting the same 'out of range' error:

Code: Select all

05-06 14:20:36.829: DEBUG/vlc(7071): [0x2ae8bc] main input debug: Creating an input for 'test2.amr' 05-06 14:20:36.859: DEBUG/vlc(7071): [0x2ae8bc] main input debug: thread started 05-06 14:20:36.859: DEBUG/vlc(7071): [0x2ae8bc] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' 05-06 14:20:36.859: DEBUG/vlc(7071): [0x2ae8bc] main input debug: `file:///mnt/sdcard/test2.amr' gives access `file' demux `' path `/mnt/sdcard/test2.amr' 05-06 14:20:36.879: DEBUG/vlc(7071): [0x2ae8bc] main input debug: creating demux: access='file' demux='' location='/mnt/sdcard/test2.amr' file='/mnt/sdcard/test2.amr' 05-06 14:20:36.879: DEBUG/vlc(7071): [0x230b64] main demux debug: looking for access_demux module: 1 candidate 05-06 14:20:36.879: DEBUG/vlc(7071): [0x230b64] main demux debug: no access_demux module matching "file" could be loaded 05-06 14:20:36.889: DEBUG/vlc(7071): [0x230b64] main demux debug: TIMER module_need() : 8.423 ms - Total 8.423 ms / 1 intvls (Avg 8.423 ms) 05-06 14:20:36.889: DEBUG/vlc(7071): [0x2ae8bc] main input debug: creating access 'file' location='/mnt/sdcard/test2.amr', path='/mnt/sdcard/test2.amr' 05-06 14:20:36.889: DEBUG/vlc(7071): [0x2307f4] main access debug: looking for access module: 2 candidates 05-06 14:20:36.889: DEBUG/vlc(7071): [0x2307f4] filesystem access debug: opening file `/mnt/sdcard/test2.amr' 05-06 14:20:36.889: DEBUG/vlc(7071): [0x2307f4] main access debug: using access module "filesystem" 05-06 14:20:36.899: DEBUG/vlc(7071): [0x2307f4] main access debug: TIMER module_need() : 17.243 ms - Total 17.243 ms / 1 intvls (Avg 17.243 ms) 05-06 14:20:36.899: DEBUG/vlc(7071): [0x230af4] main stream debug: Using stream method for AStream* 05-06 14:20:36.909: DEBUG/vlc(7071): [0x230af4] main stream debug: starting pre-buffering 05-06 14:20:36.909: DEBUG/vlc(7071): [0x230af4] main stream debug: received first data after 0 ms 05-06 14:20:36.909: DEBUG/vlc(7071): [0x230af4] main stream debug: pre-buffering done 1024 bytes in 0s - 1212 KiB/s 05-06 14:20:36.909: DEBUG/vlc(7071): [0x2b6174] main stream debug: looking for stream_filter module: 6 candidates 05-06 14:20:36.909: DEBUG/vlc(7071): [0x2b6174] main stream debug: no stream_filter module matching "any" could be loaded 05-06 14:20:36.909: DEBUG/vlc(7071): [0x2b6174] main stream debug: TIMER module_need() : 1.984 ms - Total 1.984 ms / 1 intvls (Avg 1.984 ms) 05-06 14:20:36.909: DEBUG/vlc(7071): [0x2b6174] main stream debug: looking for stream_filter module: 1 candidate 05-06 14:20:36.919: DEBUG/vlc(7071): [0x2b6174] main stream debug: using stream_filter module "stream_filter_record" 05-06 14:20:36.919: DEBUG/vlc(7071): [0x2b6174] main stream debug: TIMER module_need() : 10.437 ms - Total 10.437 ms / 1 intvls (Avg 10.437 ms) 05-06 14:20:36.929: DEBUG/vlc(7071): [0x2ae8bc] main input debug: creating demux: access='file' demux='' location='/mnt/sdcard/test2.amr' file='/mnt/sdcard/test2.amr' 05-06 14:20:36.929: DEBUG/vlc(7071): [0x23099c] main demux debug: looking for demux module: 48 candidates 05-06 14:20:36.929: DEBUG/vlc(7071): [0x23099c] avformat demux debug: trying url: /mnt/sdcard/test2.amr 05-06 14:20:36.939: DEBUG/vlc(7071): [0x23099c] avformat demux debug: detected format: amr 05-06 14:20:37.309: DEBUG/vlc(7071): [0x2ae8bc] main input debug: selecting program id=0 05-06 14:20:37.309: DEBUG/vlc(7071): [0x23099c] avformat demux debug: adding es: audio codec = samr 05-06 14:20:37.309: DEBUG/vlc(7071): [0x23099c] avformat demux debug: AVFormat supported stream 05-06 14:20:37.309: DEBUG/vlc(7071): [0x23099c] avformat demux debug: - format = amr (3GPP AMR file format) 05-06 14:20:37.309: DEBUG/vlc(7071): [0x23099c] avformat demux debug: - start time = -1 05-06 14:20:37.309: DEBUG/vlc(7071): [0x23099c] avformat demux debug: - duration = -1 05-06 14:20:37.309: DEBUG/vlc(7071): [0x23099c] main demux debug: using demux module "avformat" 05-06 14:20:37.309: DEBUG/vlc(7071): [0x23099c] main demux debug: TIMER module_need() : 386.475 ms - Total 386.475 ms / 1 intvls (Avg 386.475 ms) 05-06 14:20:37.309: DEBUG/vlc(7071): [0x2ae8bc] main input debug: looking for a subtitle file in /mnt/sdcard 05-06 14:20:37.309: DEBUG/vlc(7071): [0x2c26f4] main decoder debug: looking for decoder module: 25 candidates 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2c26f4] avcodec decoder debug: libavcodec initialized (interface 0x346c00) 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2c26f4] avcodec decoder debug: ffmpeg codec (AMR narrow band) started 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2c26f4] avcodec decoder debug: Using 192000 bytes output buffer 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2c26f4] main decoder debug: using decoder module "avcodec" 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2c26f4] main decoder debug: TIMER module_need() : 6.531 ms - Total 6.531 ms / 1 intvls (Avg 6.531 ms) 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2c26f4] main decoder debug: thread started 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2c2b24] main demux meta debug: looking for meta reader module: 0 candidates 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2c2b24] main demux meta debug: no meta reader module matched "any" 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2c2b24] main demux meta debug: TIMER module_need() : 0.549 ms - Total 0.549 ms / 1 intvls (Avg 0.549 ms) 05-06 14:20:37.319: DEBUG/vlc(7071): [0x2ae8bc] main input debug: `file:///mnt/sdcard/test2.amr' successfully opened .... 05-06 14:20:37.349: WARN/vlc(7071): [0x2b6adc] main audio output warning: PTS is out of range (-9695), dropping buffer 05-06 14:20:37.349: WARN/vlc(7071): [0x2b6adc] main audio output warning: PTS is out of range (-29543), dropping buffer 05-06 14:20:37.409: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (3405), trashing 05-06 14:20:37.440: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (15845), trashing 05-06 14:20:37.460: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (18825), trashing 05-06 14:20:37.480: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (16403), trashing 05-06 14:20:37.490: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (12486), trashing 05-06 14:20:37.510: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (11529), trashing 05-06 14:20:37.530: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (10175), trashing 05-06 14:20:37.550: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (9951), trashing 05-06 14:20:37.570: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (10153), trashing 05-06 14:20:37.590: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (10112), trashing 05-06 14:20:37.610: WARN/vlc(7071): [0x2b6adc] main audio output warning: input PTS is out of range (10040), trashing ... lots and lots of it.
What else can I be missing?
Grace


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 10 guests