Difference between revisions of "AMR"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Reverted edit of 1148056938, changed back to last version by Xtophe)
m (Add codec ids samr and sawb)
 
(9 intermediate revisions by 8 users not shown)
Line 1: Line 1:
I also tried AMR in ffmpeg and VLC (narrow and float wide ref implem from 3GPP).
+
{{Codec audio|id=samr}}
'''It rocks !'''
+
{{Codec audio|id=sawb}}
 +
{{Mmwiki|AMR|AMR-NB|label2=AMR (narrow band)|AMR-WB|label3=AMR (wide band)}}
 +
{{Wikipedia|Adaptive Multi-Rate audio codec|l1=AMR format}}
 +
 
 +
== Tutorial ==
 +
To stream amr-nb with vlc to mobile-phone eg. next setting works (tested on few nokia & sony ericsson phones)
 +
 
 +
<pre>
 +
transcode{vcodec=H263,width=128,height=96,vb=28,fps="12.5",acodec=samr,ab="5.25",samplerate=8000,
 +
channels=1,venc=ffmpeg{keyint=6,strict=1,strict-rc=1}}:rtp{mp4a-latm,port-video=2244,port-audio=2242,dst=1
 +
27.0.0.1,ttl=12,sdp=\"file:///usr/local/movies/mobile.sdp\"}</pre>
 +
 
 +
It seems that mp4a-latm somehow affects on audio-output on amr also. AMR-NB requires 8000 [[samplerate]] and only 1 channel, also if you choose incorrect audio-[[bitrate]], vlc gives you <samp>unknown codec</samp> or similar error.

Latest revision as of 09:02, 9 April 2019

samr
This is an audio codec. The name to use at the command line is samr.
sawb
This is an audio codec. The name to use at the command line is sawb.

Tutorial

To stream amr-nb with vlc to mobile-phone eg. next setting works (tested on few nokia & sony ericsson phones)

transcode{vcodec=H263,width=128,height=96,vb=28,fps="12.5",acodec=samr,ab="5.25",samplerate=8000,
channels=1,venc=ffmpeg{keyint=6,strict=1,strict-rc=1}}:rtp{mp4a-latm,port-video=2244,port-audio=2242,dst=1
27.0.0.1,ttl=12,sdp=\"file:///usr/local/movies/mobile.sdp\"}

It seems that mp4a-latm somehow affects on audio-output on amr also. AMR-NB requires 8000 samplerate and only 1 channel, also if you choose incorrect audio-bitrate, vlc gives you unknown codec or similar error.