amr file streaming

*nix specific usage questions
kiran
Blank Cone
Blank Cone
Posts: 12
Joined: 24 Jan 2007 11:24
Location: INDIA

amr file streaming

Postby kiran » 08 Feb 2007 13:59

Hello all,

i have downloaded respective files from 3gpp.org in to ffmpeg.But i am not able to play the amr file after successfull compilation.But when i am checking through ethereal i am able to get udp packets while streaming.

This is the log i obtain when i stream an amr file:Pls give any ideas


VLC media player 0.8.5 Janus
starting VLC root wrapper... using UID 0 (root)
***************************************
* Running VLC as root is discouraged. *
***************************************

It is potentially dangerous, and might not even work properly.
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 335 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main vlc debug: looking for memcpy module: 4 candidates
[00000001] main vlc debug: using memcpy module "memcpymmxext"
[00000419] main playlist debug: waiting for thread completion
[00000419] main playlist debug: thread 3084770224 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000420] main private debug: waiting for thread completion
[00000420] main private debug: thread 3074280368 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000421] main interface debug: looking for interface module: 2 candidates
[00000421] main interface debug: using interface module "hotkeys"
[00000421] main interface debug: thread 3063790512 (interface) created at priority 0 (interface/interface.c:231)
[00000423] main interface debug: looking for interface module: 2 candidates
[00000423] main interface debug: using interface module "screensaver"
[00000423] main interface debug: thread 3053300656 (interface) created at priority 0 (interface/interface.c:231)
[00000419] main playlist debug: adding playlist item `Logon.amr' ( Logon.amr )
[00000425] main interface debug: looking for interface module: 2 candidates
Remote control interface initialized. Type `help' for help.
[00000425] main interface debug: using interface module "rc"
[00000425] main interface debug: thread 3042806704 (manager) created at priority 0 (interface/interface.c:216)
[00000419] main playlist debug: creating new input thread
[00000427] main input debug: waiting for thread completion
[00000427] main input debug: creating statistics handler
[00000427] main input debug: thread 3032316848 (input) created at priority 0 (input/input.c:261)
[00000429] main stream output debug: stream=`rtp'
[00000430] main private debug: looking for sout stream module: 2 candidates
[00000430] main private debug: set sout option: sout-rtp-dst to 10.110.1.163
[00000430] main private debug: set sout option: sout-rtp-port to 1234
[00000430] main private debug: set sout option: sout-rtp-sdp to rtsp://10.110.1.132:554/test
[00000430] stream_out_rtp private debug: rtsp setup: 10.110.1.132 : 554 / /test

[00000430] main private: creating httpd
[00000430] main private debug: net: listening to 10.110.1.132 port 554
[00000430] main private error: cannot bind socket (Address already in use)
[00000430] main private error: cannot create socket(s) for HTTP host
[00000430] stream_out_rtp private error: cannot export sdp as rtsp
[00000430] main private debug: using sout stream module "stream_out_rtp"
[00000427] main input debug: `Logon.amr' gives access `' demux `' path `Logon.amr'
[00000427] main input debug: creating demux: access='' demux='' path='Logon.amr'
[00000434] main demuxer debug: looking for access_demux module: 0 candidates
[00000434] main demuxer warning: no access_demux module matched "any"
[00000427] main input debug: creating access '' path='Logon.amr'
[00000435] main access debug: looking for access2 module: 8 candidates
[00000435] vcd access debug: trying .cue file: Logon.cue
[00000435] vcd access debug: trying .cue file: Logon.cue
[00000435] access_file access debug: opening file `Logon.amr'
[00000435] main access debug: using access2 module "access_file"
[00000443] main private debug: pre-buffering...
[00000443] main private debug: received first data for our buffer
[00000427] main input debug: creating demux: access='' demux='' path='Logon.amr'
[00000444] main demuxer debug: looking for demux2 module: 74 candidates
[00000444] m4v demuxer debug: #####p_demux->psz_demux = (null) #####
[00000444] m4v demuxer debug: ####P_Peek 35 , 33 , 65, 77 ######
[00000444] m4v demuxer warning: m4v module discarded (no startcode)
[00000444] h264 demuxer warning: h264 module discarded (no startcode)
[00000444] ffmpeg demuxer debug: detected format: amr
[00000427] main input debug: selecting program id=0
[00000444] ffmpeg demuxer debug: adding es: audio codec = samr
[00000444] ffmpeg demuxer debug: AVFormat supported stream
[00000444] ffmpeg demuxer debug: - format = amr (3gpp amr file format)
[00000444] ffmpeg demuxer debug: - start time = -1
[00000444] ffmpeg demuxer debug: - duration = -1
[00000444] main demuxer debug: using demux2 module "ffmpeg"
[00000427] main input debug: looking for a subtitle file in /mnt/win_c/kiran/vlc-0.8.5/
[00000427] main input debug: autodetected subtitle: /mnt/win_c/kiran/vlc-0.8.5/logonlog.txt with priority 3
[00000427] main input debug: autodetected subtitle: /mnt/win_c/kiran/vlc-0.8.5/logonlog.txt with priority 3
[00000427] main input debug: `/mnt/win_c/kiran/vlc-0.8.5/logonlog.txt' gives access `' demux `' path `/mnt/win_c/kiran/vlc-0.8.5/logonlog.txt'
[00000427] main input debug: creating access '' path='/mnt/win_c/kiran/vlc-0.8.5/logonlog.txt'
[00000514] main access debug: looking for access2 module: 8 candidates
[00000514] vcd access debug: trying .cue file: /mnt/win_c/kiran/vlc-0.8.5/logonlog.cue
[00000514] vcd access debug: trying .cue file: /mnt/win_c/kiran/vlc-0.8.5/logonlog.cue
[00000514] access_file access debug: opening file `/mnt/win_c/kiran/vlc-0.8.5/logonlog.txt'
[00000514] main access debug: using access2 module "access_file"
[00000515] main private debug: pre-buffering...
[00000515] main private debug: received first data for our buffer
[00000427] main input debug: creating demux: access='' demux='subtitle' path='/mnt/win_c/kiran/vlc-0.8.5/logonlog.txt'
[00000516] main demuxer debug: looking for demux2 module: 4 candidates
[00000516] vobsub demuxer debug: this doesn't seem to be a vobsub file
[00000516] vobsub demuxer debug: this doesn't seem to be a vobsub file
[00000000] main root error: option sub-original-fps does not exist
[00000516] subtitle demuxer debug: autodetecting subtitle format
[00000516] subtitle demuxer error: failed to recognize subtitle type
[00000516] subtitle demuxer debug: autodetecting subtitle format
[00000516] subtitle demuxer error: failed to recognize subtitle type
[00000516] main demuxer warning: no demux2 module matching "subtitle" could be loaded
[00000427] main input error: no suitable demux module for `/subtitle:///mnt/win_c/kiran/vlc-0.8.5/logonlog.txt'
[00000514] main access debug: removing module "access_file"
[00000522] main packetizer debug: looking for packetizer module: 28 candidates
[00000522] main packetizer debug: using packetizer module "packetizer_copy"
[00000427] main input debug: stream out mode -> no decoder thread
[00000427] main input debug: starting in synch mode
[00000427] main input debug: `Logon.amr' successfully opened
[00000429] main stream output debug: adding a new input
[00000566] main private debug: looking for sout access module: 2 candidates
[00000566] main private debug: set sout option: sout-udp-raw to (null)
[00000566] main private debug: net: connecting to 10.110.1.163 port 1230
[00000568] main private debug: thread 3007310768 (sout write thread) created at priority 0 (udp.c:268)
[00000566] access_output_udp private debug: udp access output opened(10.110.1.163:1230)
[00000566] main private debug: using sout access module "access_output_udp"
[00000430] stream_out_rtp private debug: access out udp{raw}:10.110.1.163:1230
[00000430] stream_out_rtp private debug: maximum RTP packet size: 1450 bytes
[00000430] stream_out_rtp private debug: sdp=v=0
o=- 1170938480037269 1 IN IP4 127.0.0.1
s=NONE
t=0 0
a=tool:vlc 0.8.5
c=IN IP4 10.110.1.163
m=audio 1230 RTP/AVP 96
a=rtpmap:96 AMR/8000
a=fmtp:96 octet-align=1

status change: ( new input: Logon.amr )
status change: ( audio volume: 256 )

status change: ( play state: 1 )

[00000427] main input debug: EOF reached
[00000427] main input debug: closing input
[00000444] main demuxer debug: removing module "ffmpeg"
[00000435] main access debug: removing module "access_file"
[00000522] main packetizer debug: removing module "packetizer_copy"
[00000522] main packetizer debug: killing decoder fourcc `samr', 0 PES in FIFO
[00000429] main stream output debug: removing an input
[00000568] main private debug: thread 3007310768 joined (udp.c:316)
[00000566] access_output_udp private debug: udp access output closed
[00000566] main private debug: removing module "access_output_udp"
[00000427] main input debug: destroying sout
[00000430] main private debug: destroying chain... (name=rtp)
[00000430] main private debug: removing module "stream_out_rtp"
[00000430] main private debug: destroying chain done
rtp_packetize_amr:::startstatus change: ( stop state: 0 )
[00000427] main input debug: thread 3032316848 joined (input/input.c:399)
[00000419] main playlist: nothing to play
signal 2 received, terminating vlc - do it again in case it gets stuck
status change: ( stop state: 0 )
status change: ( quit )
[00000001] main vlc debug: removing all interfaces
[00000425] main interface debug: thread 3042806704 joined (interface/interface.c:258)
[00000425] main interface debug: removing module "rc"
[00000423] main interface debug: thread 3053300656 joined (interface/interface.c:258)
[00000423] main interface debug: removing module "screensaver"
[00000421] main interface debug: thread 3063790512 joined (interface/interface.c:258)
[00000421] main interface debug: removing module "hotkeys"
[00000001] main vlc debug: removing playlist handler
[00000420] main private debug: thread 3074280368 joined (playlist/playlist.c:247)
[00000419] main playlist debug: thread 3084770224 joined (playlist/playlist.c:248)
[00000419] main playlist: stopping playback
[00000419] main playlist debug: deleting playlist item `Logon.amr'
[00000001] main vlc debug: removing all video outputs
[00000001] main vlc debug: removing all audio outputs
[00000001] main vlc debug: removing module "memcpymmxext"
[00000001] main vlc debug: saving plugins cache file /root/.vlc/cache/plugins-04041e.dat

tux-edo
New Cone
New Cone
Posts: 4
Joined: 18 Dec 2005 12:36
Location: Bandung
Contact:

Re: amr file streaming

Postby tux-edo » 10 Feb 2007 12:22

[00000430] main private error: cannot bind socket (Address already in use)
[00000430] main private error: cannot create socket(s) for HTTP host
[00000430] stream_out_rtp private error: cannot export sdp as rtsp
maybe the port 554 is in use
You may should use another port
-------------------------
Just Do The Best

kiran
Blank Cone
Blank Cone
Posts: 12
Joined: 24 Jan 2007 11:24
Location: INDIA

Postby kiran » 12 Feb 2007 07:55

Hello all,

i was able to resolve the socket error,but even then i am not able to play it
The updated log of streaming is as follows:
VLC media player 0.8.5 Janus
starting VLC root wrapper... using UID 0 (root)
***************************************
* Running VLC as root is discouraged. *
***************************************

It is potentially dangerous, and might not even work properly.
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 334 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main vlc debug: looking for memcpy module: 4 candidates
[00000001] main vlc debug: using memcpy module "memcpymmxext"
[00000418] main playlist debug: waiting for thread completion
[00000418] main playlist debug: thread 3084770224 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000419] main private debug: waiting for thread completion
[00000419] main private debug: thread 3074280368 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000420] main interface debug: looking for interface module: 2 candidates
[00000420] main interface debug: using interface module "hotkeys"
[00000420] main interface debug: thread 3063790512 (interface) created at priority 0 (interface/interface.c:231)
[00000422] main interface debug: looking for interface module: 2 candidates
[00000422] main interface debug: using interface module "screensaver"
[00000422] main interface debug: thread 3053300656 (interface) created at priority 0 (interface/interface.c:231)
[00000418] main playlist debug: adding playlist item `Floyd.amr' ( Floyd.amr )
[00000424] main interface debug: looking for interface module: 2 candidates
Remote control interface initialized. Type `help' for help.
[00000424] main interface debug: using interface module "rc"
[00000424] main interface debug: thread 3040869296 (manager) created at priority 0 (interface/interface.c:216)
[00000418] main playlist debug: creating new input thread
[00000426] main input debug: waiting for thread completion
[00000426] main input debug: creating statistics handler
[00000426] main input debug: thread 3030379440 (input) created at priority 0 (input/input.c:261)
[00000428] main stream output debug: stream=`rtp'
[00000429] main private debug: looking for sout stream module: 2 candidates
[00000429] main private debug: set sout option: sout-rtp-dst to 10.110.1.163
[00000429] main private debug: set sout option: sout-rtp-port to 1234
[00000429] main private debug: set sout option: sout-rtp-sdp to rtsp://10.110.1.132:554/test
[00000429] stream_out_rtp private debug: rtsp setup: 10.110.1.132 : 554 / /test

[00000429] main private: creating httpd
[00000429] main private debug: net: listening to 10.110.1.132 port 554
[00000432] main http server debug: thread 3019889584 (httpd host thread) created at priority 0 (network/httpd.c:1076)
[00000429] main private debug: using sout stream module "stream_out_rtp"
[00000426] main input debug: `Floyd.amr' gives access `' demux `' path `Floyd.amr'
[00000426] main input debug: creating demux: access='' demux='' path='Floyd.amr'
[00000433] main demuxer debug: looking for access_demux module: 0 candidates
[00000433] main demuxer warning: no access_demux module matched "any"
[00000426] main input debug: creating access '' path='Floyd.amr'
[00000434] main access debug: looking for access2 module: 8 candidates
[00000434] vcd access debug: trying .cue file: Floyd.cue
[00000434] vcd access debug: trying .cue file: Floyd.cue
[00000434] access_file access debug: opening file `Floyd.amr'
[00000434] main access debug: using access2 module "access_file"
[00000442] main private debug: pre-buffering...
[00000442] main private debug: received first data for our buffer
[00000426] main input debug: creating demux: access='' demux='' path='Floyd.amr'
[00000443] main demuxer debug: looking for demux2 module: 75 candidates
[00000443] m4v demuxer debug: #####p_demux->psz_demux = (null) #####
[00000443] m4v demuxer debug: ####P_Peek 35 , 33 , 65, 77 ######
[00000443] m4v demuxer warning: m4v module discarded (no startcode)
[00000443] h264 demuxer warning: h264 module discarded (no startcode)
[00000443] m4v demuxer debug: #####p_demux->psz_demux = (null) #####
[00000443] m4v demuxer debug: ####P_Peek 35 , 33 , 65, 77 ######
[00000443] m4v demuxer warning: m4v module discarded (no startcode)
[00000443] h264 demuxer warning: h264 module discarded (no startcode)
[00000443] ffmpeg demuxer debug: detected format: amr
[00000426] main input debug: selecting program id=0
[00000443] ffmpeg demuxer debug: adding es: audio codec = samr
[00000443] ffmpeg demuxer debug: AVFormat supported stream
[00000443] ffmpeg demuxer debug: - format = amr (3gpp amr file format)
[00000443] ffmpeg demuxer debug: - start time = -1
[00000443] ffmpeg demuxer debug: - duration = -1
[00000443] main demuxer debug: using demux2 module "ffmpeg"
[00000426] main input debug: looking for a subtitle file in /mnt/win_c/kiran/vlc-0.8.5/
[00000426] main input debug: autodetected subtitle: /mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.txt with priority 3
[00000426] main input debug: autodetected subtitle: /mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.txt with priority 3
[00000426] main input debug: `/mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.txt' gives access `' demux `' path `/mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.txt'
[00000426] main input debug: creating access '' path='/mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.txt'
[00000514] main access debug: looking for access2 module: 8 candidates
[00000514] vcd access debug: trying .cue file: /mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.cue
[00000514] vcd access debug: trying .cue file: /mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.cue
[00000514] access_file access debug: opening file `/mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.txt'
[00000514] main access debug: using access2 module "access_file"
[00000515] main private debug: pre-buffering...
[00000515] main private debug: received first data for our buffer
[00000426] main input debug: creating demux: access='' demux='subtitle' path='/mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.txt'
[00000516] main demuxer debug: looking for demux2 module: 4 candidates
[00000516] vobsub demuxer debug: this doesn't seem to be a vobsub file
[00000516] vobsub demuxer debug: this doesn't seem to be a vobsub file
[00000000] main root error: option sub-original-fps does not exist
[00000516] subtitle demuxer debug: autodetecting subtitle format
[00000516] subtitle demuxer error: failed to recognize subtitle type
[00000516] subtitle demuxer debug: autodetecting subtitle format
[00000516] subtitle demuxer error: failed to recognize subtitle type
[00000516] main demuxer warning: no demux2 module matching "subtitle" could be loaded
[00000426] main input error: no suitable demux module for `/subtitle:///mnt/win_c/kiran/vlc-0.8.5/FLOYDFEB.txt'
[00000514] main access debug: removing module "access_file"
[00000522] main packetizer debug: looking for packetizer module: 28 candidates
[00000522] main packetizer debug: using packetizer module "packetizer_copy"
[00000426] main input debug: stream out mode -> no decoder thread
[00000426] main input debug: starting in synch mode
[00000426] main input debug: `Floyd.amr' successfully opened
[00000428] main stream output debug: adding a new input
[00000566] main private debug: looking for sout access module: 2 candidates
[00000566] main private debug: set sout option: sout-udp-raw to (null)
[00000566] main private debug: net: connecting to 10.110.1.163 port 1230
[00000568] main private debug: thread 2996812720 (sout write thread) created at priority 0 (udp.c:268)
[00000566] access_output_udp private debug: udp access output opened(10.110.1.163:1230)
[00000566] main private debug: using sout access module "access_output_udp"
[00000429] stream_out_rtp private debug: access out udp{raw}:10.110.1.163:1230
[00000429] stream_out_rtp private debug: maximum RTP packet size: 1450 bytes
[00000429] stream_out_rtp private debug: rtsp: adding /test/trackID=0

[00000429] stream_out_rtp private debug: sdp=v=0
o=- 1171263189929513 1 IN IP4 127.0.0.1
s=NONE
t=0 0
a=tool:vlc 0.8.5
c=IN IP4 10.110.1.163
m=audio 1230 RTP/AVP 96
a=rtpmap:96 AMR/8000
a=fmtp:96 octet-align=1


status change: ( new input: Floyd.amr )



status change: ( audio volume: 256 )

status change: ( play state: 1 )


[00000426] main input debug: EOF reached
[00000426] main input debug: closing input
[00000443] main demuxer debug: removing module "ffmpeg"
[00000434] main access debug: removing module "access_file"
[00000522] main packetizer debug: removing module "packetizer_copy"
[00000522] main packetizer debug: killing decoder fourcc `samr', 0 PES in FIFO
[00000428] main stream output debug: removing an input
[00000568] main private debug: thread 2996812720 joined (udp.c:316)
[00000566] access_output_udp private debug: udp access output closed
[00000566] main private debug: removing module "access_output_udp"
[00000426] main input debug: destroying sout
[00000429] main private debug: destroying chain... (name=rtp)
[00000432] main http server debug: Connection from 10.110.1.163
[00000432] main http server debug: thread 3019889584 joined (network/httpd.c:1132)
[00000432] main http server debug: HTTP host removed
[00000432] main http server warning: client still connected
[00000431] main http server debug: no host left, stopping httpd
[00000429] main private debug: removing module "stream_out_rtp"
[00000429] main private debug: destroying chain done
rtp_packetize_amr:::startstatus change: ( stop state: 0 )
[00000426] main input debug: thread 3030379440 joined (input/input.c:399)
[00000418] main playlist: nothing to play
signal 2 received, terminating vlc - do it again in case it gets stuck
status change: ( stop state: 0 )
status change: ( quit )
[00000001] main vlc debug: removing all interfaces
[00000424] main interface debug: thread 3040869296 joined (interface/interface.c:258)
[00000424] main interface debug: removing module "rc"
[00000422] main interface debug: thread 3053300656 joined (interface/interface.c:258)
[00000422] main interface debug: removing module "screensaver"
[00000420] main interface debug: thread 3063790512 joined (interface/interface.c:258)
[00000420] main interface debug: removing module "hotkeys"
[00000001] main vlc debug: removing playlist handler
[00000419] main private debug: thread 3074280368 joined (playlist/playlist.c:247)
[00000418] main playlist debug: thread 3084770224 joined (playlist/playlist.c:248)
[00000418] main playlist: stopping playback
[00000418] main playlist debug: deleting playlist item `Floyd.amr'
[00000001] main vlc debug: removing all video outputs
[00000001] main vlc debug: removing all audio outputs
[00000001] main vlc debug: removing module "memcpymmxext"
[00000001] main vlc debug: saving plugins cache file /root/.vlc/cache/plugins-04041e.dat


please guide me where i may be wrong


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

Who is online

Users browsing this forum: No registered users and 8 guests