J2ME MMAPI: capture audio in AMR with given bitrate
Colleagues,
I'm facing issue while trying to record audio in AMR. While I successfully record audio in AMR 12.2 kbps I can not change the bitrate. It is always 12.2 kbps regardless of what I specify in media locator string.
Could anybody help me to figure out what parameters should I specify to record audio, for example, in AMR 4.75 kbps?
Thank you in advance.
The code is:
String uri = "capture://audio?encoding=amr&rate=8000&bits=16";
// Get player object
_player = Manager.createPlayer(uri);
_player.realize();
// Get Record Control to be able to record audio
RecordControl rc = (RecordControl)_player.getControl("RecordControl");
// Set destination file
rc.setRecordLocation(rec_file);
// Begin recording from standard input
rc.startRecord();
// Transfer audio from microphone to standard input
_player.start();Actually AMR bitrate depends on the size of frame which repeats each 20 ms. For 4.75 kbit/s frame is 95 bits long.
I'm not sure how to specify this by 'rate' and 'bits' parameters. I already tried some combinations but in vain. The default for my Motorola Z3 is 12.2 kbit/s. Maybe it even does not support capturing in other bit rates (I'm not sure), though it is able to play AMR files of other bit rates.
Maybe you can point me to the emulator which supports AMR capturing in different bit rates?
Thank you for interest in my question.
Similar Messages
-
Capturing audio on iPAQ with java
Hello,
Does anybody know a method of capturing audio data from the built in microphone on the iPAQ using java?Hello,
Does anybody know a method of capturing audio data from the built in microphone on the iPAQ using java? -
How can I capture Audio Only?
Hello,
I have FCEHD 3.0 and would like to capture audio tracks only with Capture Now (from a non-controllable device via Canopus). There is no "Audio Only" option in the capture window. Any ideas??
Thanks,
C.JHi(Bonjour)!
No way to capture audio only with capture command.
Simply delete the video track in the timeline.
Or:
Plug your camcorder audio output in your in-line socket on your mac with an audio 1/8" wire, do a voice over record.
The resulting audio file will be a "analog" one.
You can also use a sound editing programm like Sound studio or audacity to capture your audio-in content, and import the resulting file in FCE.
Michel Boissonneault -
Capture Audio in gsm or ulaw format using MMAPI
Hi ,
I have tried to use the latesr MMAPI with the Java Tool Kit latest versoin
My Requirement is to capture voice through a Manager in "gsm" and "ulaw format" , I have seen examples in javax.microedition.media.Manager documentation like that came along latest version of J2ME wireless 2.1 toolkit .
capture://audio (default audio)
capture://audio?encoding=pcm (default audio in PCM format)
when i try to give
capture://audio?encoding=gsm or ulaw i get runtime error saying invalid locators
Can somebody please help me to figure how i can save voice in gsm or ulaw format into a wav file , thru emulator , i am able to save in PCM i.e. the default format .
Any tips would be highly appretiated.Hi ,
I have used this Mobile Media API (JSR-135) latest documentation that comes with WTK 2.0 and documentation of javax.microedition.media.Manager Class which says
1. Locators for Live-media Capture
The locators for capturing live media are defined by the following syntax in Augmented BNF notations:
"capture://" device [ "?" params]
A. Identifying the type or the specific name of the device:
device = "audio" / "video" / "audio_video" / dev_name
dev_name = alphanumeric
alphanumeric = 1*( ALPHA / DIGIT )
B. Describing the media and capture parameters:
params = audio_params / video_params /
audio_video_params / custom_params
C. Describing the audio media format:
audio_params = audio_param *( "&" audio_param )
audio_param = 1*( "encoding=" audio_enc / "rate=" rate /
"bits=" bits / "channels=" channels /
"endian=" endian / "signed=" signed )
audio_enc = "pcm" / "ulaw" / "gsm"
rate = "96000" / "48000" / "44100" / "22050" / "16000" /
"11025" / "8000"
bits = "8" / "16" / "24"
channels = pos_integer
endian = "little" / "big"
signed = "signed" / "unsigned"
pos_integer = 1*DIGIT
Example:
encoding=pcm&rate=11025&bits=16&channels=1
In point "C" it clearly tells that encoding format pcm/gsm/ulaw can be used . But i get invalid locator at runtime for gsm and ulaw format .
I am not sure wether the Emulator is not supporting this format or whats the cause , i am basically recording the voice from mic into a wav file .
Thanks
Sameer -
Hi Support,
I am trying to use FMLE to encode and stream video from an Axis P1346 IP camera, via Axis' Streaming Assistant software, to a Wowza server.
Everyting appears to be working perfectly and the encoding and resultant stream quality is excellent. Sometimes after a few hours and sometimes after just a few minutes, the encoding will stop with the following error:
Tue Mar 26 2013 11:47:18 : Session Stopped
Tue Mar 26 2013 11:47:18 : Problem with capture device. Incorrect samples given by the device. Stopping encoding session.
I have attached a recent log of a session that only lasted a few minutes - do you have any ideas on how to resolve this instability?
=================================================================
File: C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2\FlashMediaLiveEncoder.exe
Description: Adobe® Flash® Media Live Encoder
Copyright: © 2009 - 10 Adobe Systems Incorporated. All Rights Reserved. Adobe, the Adobe logo, and Flash are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. All other trademarks are the property of their respective owners. <AdobeIP#0000716>
Version: 3.2.0.9932
=================================================================
Tue Mar 26 2013 11:42:10 : Selected video input device: TowerBridge
Tue Mar 26 2013 11:42:10 : Failed with error 80040154:CoCreateInstance(CLSID_VideoMixingRenderer9, NULL, CLSCTX_INPROC, IID_IBaseFilter, pFilterVideoMixingRenderer.ppv())
Tue Mar 26 2013 11:42:10 : Display Color Quality Warning : Display color quality is currently lower than 32 bit. Colors in video display may be distorted when encoding is not on. To change the display color, open the Display Properties, Settings tab and change color quality to 32 bit.
Tue Mar 26 2013 11:42:12 : No audio capture devices detected. : Flash Media Live Encoder requires an audio capture device to be connected and properly installed.
Tue Mar 26 2013 11:42:24 : Primary - Connected to FMS/3,5,7,7009
Tue Mar 26 2013 11:42:24 : Primary - Network Command: onFCPublish
Tue Mar 26 2013 11:42:24 : Primary - Stream[fmlestream] Status: Success
Tue Mar 26 2013 11:42:24 : Primary - Stream[fmlestream] Status: NetStream.Publish.Start
==========================================================
<?xml version="1.0" encoding="UTF-16"?>
<flashmedialiveencoder_profile>
<preset>
<name>Custom</name>
<description></description>
</preset>
<capture>
<video>
<device>TowerBridge</device>
<crossbar_input>0</crossbar_input>
<frame_rate>30.00</frame_rate>
<size>
<width>640</width>
<height>360</height>
</size>
</video>
<timecode>
<frame_rate>15</frame_rate>
<systemtimecode>true</systemtimecode>
<devicetimecode>
<enable>false</enable>
<vertical_line_no>16</vertical_line_no>
<burn>false</burn>
<row>Bottom</row>
<column>Left</column>
</devicetimecode>
</timecode>
</capture>
<encode>
<video>
<format>H.264</format>
<datarate>1000;</datarate>
<outputsize>640x360;</outputsize>
<advanced>
<profile>Baseline</profile>
<level>3.1</level>
<keyframe_frequency>1 Second</keyframe_frequency>
</advanced>
<autoadjust>
<enable>false</enable>
<maxbuffersize>1</maxbuffersize>
<dropframes>
<enable>false</enable>
</dropframes>
<degradequality>
<enable>false</enable>
<minvideobitrate></minvideobitrate>
<preservepfq>false</preservepfq>
</degradequality>
</autoadjust>
</video>
</encode>
<restartinterval>
<days></days>
<hours></hours>
<minutes></minutes>
</restartinterval>
<reconnectinterval>
<attempts></attempts>
<interval></interval>
</reconnectinterval>
<output>
<rtmp>
<url>rtmp://localhost/live</url>
<backup_url></backup_url>
<stream>fmlestream</stream>
</rtmp>
</output>
<metadata>
<entry>
<key>author</key>
<value>Octopus MT</value>
</entry>
<entry>
<key>copyright</key>
<value>Octopus MT</value>
</entry>
<entry>
<key>description</key>
<value>Tower Bridge - London, UK</value>
</entry>
<entry>
<key>keywords</key>
<value>"Tower Bridge", London</value>
</entry>
<entry>
<key>rating</key>
<value></value>
</entry>
<entry>
<key>title</key>
<value>Tower Bridge - LIVE</value>
</entry>
</metadata>
<preview>
<video>
<input>
<zoom>100%</zoom>
</input>
<output>
<zoom>100%</zoom>
</output>
</video>
<audio></audio>
</preview>
<log>
<level>100</level>
<directory>C:\Users\Administrator\Videos</directory>
</log>
</flashmedialiveencoder_profile>
==========================================================
DumpGraph [00CA91F8]
Filter [00CABFDC] Output Video Renderer
Pin [00CAC3B4] Input [Input] Connected to pin [00CACE1C]
Filter [00CA9C8C] Input Video Renderer
Pin [00CAA064] Input [Input] Connected to pin [03BA33A4]
Filter [02F6AF10] Mux
Pin [02F6AF70] FLV7 [Input] Connected to pin [02F6FC00]
Pin [02F6B790] audio [ Input] This pin is not Connected
Pin [02F6BA08] out [ Output] This pin is not Connected
Filter [00CAEADC] AVI Decompressor 0003
Pin [00CAEC14] XForm In [Input] Connected to pin [02F70D88]
Pin [00CACE1C] XForm Out [Output] Connected to pin [00CAC3B4]
Filter [03BA326C] AVI Decompressor
Pin [00CAACD4] XForm In [Input] Connected to pin [02F68BF8]
Pin [03BA33A4] XForm Out [Output] Connected to pin [00CAA064]
Filter [02F70048] H264 Compressor
Pin [02F70070] Input [Input] Connected to pin [02F6F898]
Pin [02F70D88] Preview [Output] Connected to pin [00CAEC14]
Pin [02F6FC00] Output1 [Output] Connected to pin [02F6AF70]
Pin [02F71228] Output2 [ Output] This pin is not Connected
Filter [02F68AF0] Input RGB
Pin [02F68B08] Input [Input] Connected to pin [02F60178]
Pin [02F68BF8] Output [Output] Connected to pin [00CAACD4]
Filter [02F6F118] FPS Controller Encoder
Pin [02F6F128] Input [Input] Connected to pin [02F6E880]
Pin [02F6F898] Output [Output] Connected to pin [02F70070]
Filter [02F5FAB8] YV12
Pin [02F5FAD0] Input [Input] Connected to pin [03BA3F24]
Pin [02F60178] Output [Output] Connected to pin [02F68B08]
Filter [02F6E778] Resize
Pin [02F6E790] Input [Input] Connected to pin [02F6E620]
Pin [02F6E880] Output [Output] Connected to pin [02F6F128]
Filter [02F6DF60] YV12 0002
Pin [02F6DF78] Input [Input] Connected to pin [02F6DE00]
Pin [02F6E620] Output [Output] Connected to pin [02F6E790]
Filter [02F6D680] FPS Controller Resize
Pin [02F6D690] Input [Input] Connected to pin [00CA9B6C]
Pin [02F6DE00] Output [Output] Connected to pin [02F6DF78]
Filter [00CAB9CC] Video Tee
Pin [00CABA34] Input [Input] Connected to pin [03B9EE9C]
Pin [03BA3F24] Output1 [Output] Connected to pin [02F5FAD0]
Pin [00CA9B6C] Output2 [Output] Connected to pin [02F6D690]
Pin [03BA3454] Output3 [ Output] This pin is not Connected
Filter [00CA99C4] Smart Tee
Pin [00CA9A2C] Input [Input] Connected to pin [00C0974C]
Pin [03B9EE9C] Capture [Output] Connected to pin [00CABA34]
Pin [00CAE204] Preview [ Output] This pin is not Connected
Filter [00C0A6DC] SOURCE
Pin [00C0974C] Video [Output] Connected to pin [00CA9A2C]
DumpGraph [00CA91F8]
Filter [00CABFDC] Output Video Renderer
Pin [00CAC3B4] Input [Input] Connected to pin [00CACE1C]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {E436EB7A-524F-11CE-9F53-0020AF0BA770} MEDIASUBTYPE_RGB8
Not temporally compressed
Sample size 230400
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 8 bpp c:0
Image size 230400
Planes 1
Pels per metre (0, 0)
Colours used 256
AvgTimePerFrame 333333, 30 fps
Filter [00CA9C8C] Input Video Renderer
Pin [00CAA064] Input [Input] Connected to pin [03BA33A4]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {E436EB7A-524F-11CE-9F53-0020AF0BA770} MEDIASUBTYPE_RGB8
Not temporally compressed
Sample size 230400
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 8 bpp c:0
Image size 230400
Planes 1
Pels per metre (0, 0)
Colours used 256
AvgTimePerFrame 333333, 30 fps
Filter [02F6AF10] Mux
Pin [02F6AF70] FLV7 [Input] Connected to pin [02F6FC00]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {37564C46-0000-0010-8000-00AA00389B71} Unknown GUID Name
Temporally compressed
Variable size samples
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:37564c46
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F6B790] audio [ Input] This pin is not Connected
Pin [02F6BA08] out [ Output] This pin is not Connected
Filter [00CAEADC] AVI Decompressor 0003
Pin [00CAEC14] XForm In [Input] Connected to pin [02F70D88]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {30323449-0000-0010-8000-00AA00389B71} Unknown GUID Name
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:30323449
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [00CACE1C] XForm Out [Output] Connected to pin [00CAC3B4]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {E436EB7A-524F-11CE-9F53-0020AF0BA770} MEDIASUBTYPE_RGB8
Not temporally compressed
Sample size 230400
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 8 bpp c:0
Image size 230400
Planes 1
Pels per metre (0, 0)
Colours used 256
AvgTimePerFrame 333333, 30 fps
Filter [03BA326C] AVI Decompressor
Pin [00CAACD4] XForm In [Input] Connected to pin [02F68BF8]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {56555949-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_IYUV
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:56555949
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [03BA33A4] XForm Out [Output] Connected to pin [00CAA064]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {E436EB7A-524F-11CE-9F53-0020AF0BA770} MEDIASUBTYPE_RGB8
Not temporally compressed
Sample size 230400
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 8 bpp c:0
Image size 230400
Planes 1
Pels per metre (0, 0)
Colours used 256
AvgTimePerFrame 333333, 30 fps
Filter [02F70048] H264 Compressor
Pin [02F70070] Input [Input] Connected to pin [02F6F898]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32315659-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YV12
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:32315659
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F70D88] Preview [Output] Connected to pin [00CAEC14]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {30323449-0000-0010-8000-00AA00389B71} Unknown GUID Name
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:30323449
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F6FC00] Output1 [Output] Connected to pin [02F6AF70]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {37564C46-0000-0010-8000-00AA00389B71} Unknown GUID Name
Temporally compressed
Variable size samples
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:37564c46
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F71228] Output2 [ Output] This pin is not Connected
Filter [02F68AF0] Input RGB
Pin [02F68B08] Input [Input] Connected to pin [02F60178]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32315659-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YV12
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:32315659
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F68BF8] Output [Output] Connected to pin [00CAACD4]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {56555949-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_IYUV
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:56555949
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Filter [02F6F118] FPS Controller Encoder
Pin [02F6F128] Input [Input] Connected to pin [02F6E880]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32315659-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YV12
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:32315659
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F6F898] Output [Output] Connected to pin [02F70070]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32315659-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YV12
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:32315659
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Filter [02F5FAB8] YV12
Pin [02F5FAD0] Input [Input] Connected to pin [03BA3F24]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F60178] Output [Output] Connected to pin [02F68B08]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32315659-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YV12
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:32315659
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Filter [02F6E778] Resize
Pin [02F6E790] Input [Input] Connected to pin [02F6E620]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32315659-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YV12
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:32315659
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F6E880] Output [Output] Connected to pin [02F6F128]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32315659-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YV12
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:32315659
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Filter [02F6DF60] YV12 0002
Pin [02F6DF78] Input [Input] Connected to pin [02F6DE00]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F6E620] Output [Output] Connected to pin [02F6E790]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32315659-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YV12
Not temporally compressed
Sample size 345600
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 12 bpp c:32315659
Image size 345600
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Filter [02F6D680] FPS Controller Resize
Pin [02F6D690] Input [Input] Connected to pin [00CA9B6C]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [02F6DE00] Output [Output] Connected to pin [02F6DF78]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Filter [00CAB9CC] Video Tee
Pin [00CABA34] Input [Input] Connected to pin [03B9EE9C]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [03BA3F24] Output1 [Output] Connected to pin [02F5FAD0]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [00CA9B6C] Output2 [Output] Connected to pin [02F6D690]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [03BA3454] Output3 [ Output] This pin is not Connected
Filter [00CA99C4] Smart Tee
Pin [00CA9A2C] Input [Input] Connected to pin [00C0974C]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [03B9EE9C] Capture [Output] Connected to pin [00CABA34]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Pin [00CAE204] Preview [ Output] This pin is not Connected
Filter [00C0A6DC] SOURCE
Pin [00C0974C] Video [Output] Connected to pin [00CA9A2C]
Major type {73646976-0000-0010-8000-00AA00389B71} MEDIATYPE_Video
Sub type {32595559-0000-0010-8000-00AA00389B71} MEDIASUBTYPE_YUY2
Not temporally compressed
Sample size 460800
Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
Size of BITMAPINFO structure 40
640 x 360, 16 bpp c:32595559
Image size 460800
Planes 1
Pels per metre (0, 0)
Colours used 0
AvgTimePerFrame 333333, 30 fps
Tue Mar 26 2013 11:42:24 : Session Started
Tue Mar 26 2013 11:42:24 : Video Encoding Started
Tue Mar 26 2013 11:47:18 : Video Encoding Stopped
Tue Mar 26 2013 11:47:18 : Session Stopped
Tue Mar 26 2013 11:47:18 : Problem with capture device. Incorrect samples given by the device. Stopping encoding session.
Tue Mar 26 2013 11:47:18 : Primary - Network Command: onFCUnpublish
Tue Mar 26 2013 11:47:18 : Primary - Stream[fmlestream] Status: NetStream.Unpublish.Success
Tue Mar 26 2013 11:47:18 :
================== Encoding Statistics ====================
Current
Input Output
Time Bit Rate Drops fps Drops fps
Audio :
Video 1: 0:04:50 644 Kbps 72 74.00 0 15.00
Average
Input Output
Time Bit Rate Drops fps Drops fps
Audio :
Video 1: 0:04:50 983 Kbps 75 29.40 0 29.36
===========================================================
================= Publishing Statistics ===================
Bandwidth Buffer Frame Drops
Primary: 824 Kbps 0.00 Sec 0
Backup : 0 Kbps 0.00 Sec 0
===========================================================
Tue Mar 26 2013 11:47:18 : Failed with error 80040273:CoCreateInstance(CLSID_VideoMixingRenderer9, NULL, CLSCTX_INPROC, IID_IBaseFilter, pFilterVideoMixingRenderer.ppv())
Tue Mar 26 2013 11:47:56 : Primary - Network Status: NetConnection.Connect.Closed status
Tue Mar 26 2013 11:47:56 : Primary - Disconnected
Thank you for your assistance
RichardPlease attach the session log file.
-
Getting echo when capturing audio with JMF
Hello.
I have just downloaded JMF 2.1.1 and have cribbed one of the examples to produce an application that will capture audio input, process it and pass it straight to the speakers. However, I am getting echo, i.e. the input signal appears twice at the speakers, shifted by about half a second.
Now, before you tell me that it is due to feedback from the speakers to the microphone, I must tell you that my audio signal is from a radio plugged into the mike socket of my PC, so there is no chance of any external feedback.
Below is the code:
import javax.media.*;
import javax.media.protocol.*;
import javax.media.control.*;
import javax.media.format.*;
public class ExampleClass2 implements ControllerListener {
private Object waitSync = new Object();
private boolean stateTransitionOK = true;
private Processor proc;
public ExampleClass2 () {
MediaLocator locator = getLocatorByName ("JavaSound audio capture");
try {
proc = Manager.createProcessor(locator);
proc.addControllerListener(this);
proc.configure();
waitForState (Processor.Configured);
proc.setContentDescriptor(null);
proc.start();
// waitForState(Processor.Started);
// proc.getGainControl().setMute(true);
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
* Block until the processor has transitioned to the given state.
* Return false if the transition failed.
boolean waitForState(int state) {
synchronized (waitSync) {
try {
while (proc.getState() != state && stateTransitionOK)
waitSync.wait();
} catch (Exception e) {}
return stateTransitionOK;
* Controller Listener.
public void controllerUpdate(ControllerEvent evt) {
if (evt instanceof ConfigureCompleteEvent ||
evt instanceof RealizeCompleteEvent ||
evt instanceof PrefetchCompleteEvent) {
synchronized (waitSync) {
stateTransitionOK = true;
waitSync.notifyAll();
} else if (evt instanceof ResourceUnavailableEvent) {
synchronized (waitSync) {
stateTransitionOK = false;
waitSync.notifyAll();
} else if (evt instanceof EndOfMediaEvent) {
proc.close();
System.exit(0);
public static void main (String [] args) {
ExampleClass2 two = new ExampleClass2();
Now, the really interesting thing is that if I uncomment the lines that mute the processor, I get only a single signal out of the speakers. It appears as if there is some connection between the mike input and speaker output.
Just to make sure, I tried this with JMStudio and got the same result. When I captured input, I got two signals output until I pressed the mute button, when I got one signal.
I also get the same problem if I use a Player, rather than a Processor.
I am running on Win95, JDK1.3.
Any thoughts?i'm having the same problem. but i tried with teh audio property settings. and get resolved. wat solution u found? i would like to know how u solved your problem, plz let me know very soon.
Thanks,
Parth Pandya
Hello.
I have just downloaded JMF 2.1.1 and have cribbed one
of the examples to produce an application that will
capture audio input, process it and pass it straight
to the speakers. However, I am getting echo, i.e. the
input signal appears twice at the speakers, shifted by
about half a second.
Now, before you tell me that it is due to feedback
from the speakers to the microphone, I must tell you
that my audio signal is from a radio plugged into the
mike socket of my PC, so there is no chance of any
external feedback.
Below is the code:
import javax.media.*;
import javax.media.protocol.*;
import javax.media.control.*;
import javax.media.format.*;
public class ExampleClass2 implements
ControllerListener {
private Object waitSync = new Object();
private boolean stateTransitionOK =
ansitionOK = true;
private Processor proc;
public ExampleClass2 () {
MediaLocator locator = getLocatorByName ("JavaSound
d audio capture");
try {
proc = Manager.createProcessor(locator);
proc.addControllerListener(this);
proc.configure();
waitForState (Processor.Configured);
proc.setContentDescriptor(null);
proc.start();
// waitForState(Processor.Started);
// proc.getGainControl().setMute(true);
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
* Block until the processor has transitioned to
d to the given state.
* Return false if the transition failed.
boolean waitForState(int state) {
synchronized (waitSync) {
try {
while (proc.getState() != state &&
& stateTransitionOK)
waitSync.wait();
} catch (Exception e) {}
return stateTransitionOK;
* Controller Listener.
public void controllerUpdate(ControllerEvent evt)
vt) {
if (evt instanceof ConfigureCompleteEvent ||
evt instanceof RealizeCompleteEvent ||
evt instanceof PrefetchCompleteEvent) {
synchronized (waitSync) {
stateTransitionOK = true;
waitSync.notifyAll();
} else if (evt instanceof ResourceUnavailableEvent)
synchronized (waitSync) {
stateTransitionOK = false;
waitSync.notifyAll();
} else if (evt instanceof EndOfMediaEvent) {
proc.close();
System.exit(0);
public static void main (String [] args) {
ExampleClass2 two = new ExampleClass2();
Now, the really interesting thing is that if I
uncomment the lines that mute the processor, I get
only a single signal out of the speakers. It appears
as if there is some connection between the mike input
and speaker output.
Just to make sure, I tried this with JMStudio and got
the same result. When I captured input, I got two
signals output until I pressed the mute button, when I
got one signal.
I also get the same problem if I use a Player, rather
than a Processor.
I am running on Win95, JDK1.3.
Any thoughts? -
IT's possibile capture audio with JMF on Pocket Pc
It's possibile capture audio with JMF cross-platform version on Pocket Pc?? Or how can it possibile on Pocket pc?????
This article say about MMAPI and MIDP, I need a solution about JMF because, my application must capture audio on Pocket Pc with Jeode VM, and Jeode VM is compliant with JDK1.1.8(it's subset).
-
Hi,
I'm developing an application for PDAs and Smartphones in which I have to integrate a voice recorder, so I'm working with MMAPI 1.1 . With the emulator the application works but on the HP iPAQ 5450 I get the error message "unsupported protocol" when I try to create the Player with "capture://audio" as parameter. I'm using the J9 virtual machine from IBM, and I have installed all the correct updates which refers to MMAPI.
By reading on this forums I've known about applications like this on Nokia 60's series device.
Is there anyone who has developed applications like this for other devices (especially PDAs)?
On which device it works ?
Thanks.GerrySA wrote:
Is there anything like this when I am playing the guitar or singing through a mic and want to capture audio?
-- Gerry
Yes...
Well, almost
If you keep "Punch On The Fly" enabled, Logic is actually ALWAYS recording, although once you hit stop, that buffer is cleared.
So the trick to this is, if you are playing along (guitar or voice), and you realize you should have recorded that take, simply hit RECORD, BEFORE you stop. You can then "peel back" the audio region (drag the left side of that short region you'll have when stopping what you were playing to hit the record button), and drag it to the LEFT. You'll see all the audio you were playing there. -
WTK SDK 3.0 for OSX problem with capturing audio, emulator
Hello all,
i'm installed the WTK SDK 3.0 for osx and everything works well. Some test applications also work.
Now I'm trying to realize my project and get strange error.
I want to capture some audio form the microphone. But when i do so the Emulator strikes with this error:
javax.microedition.media.MediaException: Player cannot be created for capture://audio
so i tried this: System.getProperty("supports.recording") and it returns false. But when i read over the specification of the WTK it says that it should support the Audio capturing. Is this error based on the implementation of the WTK on OSX or have some Windows users also the same problem?
here is my implementation for the Audio recording:
public void commandAction(Command comm, Displayable disp){
if(comm==recordCommand){
try{
p = Manager.createPlayer("capture://audio");
p.realize();
RecordControl rc = (RecordControl)p.getControl("RecordControl");
ByteArrayOutputStream output = new ByteArrayOutputStream();
rc.setRecordStream(output);
rc.startRecord();
p.start();
messageItem.setText("recording...");
Thread.currentThread().sleep(5000);
messageItem.setText("done!");
rc.commit();
recordedSoundArray = output.toByteArray();
p.close();
} catch (IOException ioe) {
errorItem.setLabel("Error");
errorItem.setText(ioe.toString());
} catch (MediaException me) {
errorItem.setLabel("Error");
errorItem.setText(me.toString());
} catch (InterruptedException ie) {
errorItem.setLabel("Error");
errorItem.setText(ie.toString());
} else if(comm == playCommand) {
try {
ByteArrayInputStream recordedInputStream = new ByteArrayInputStream
(recordedSoundArray);
Player p2 = Manager.createPlayer(recordedInputStream,"audio/basic");
p2.prefetch();
p2.start();
} catch (IOException ioe) {
errorItem.setLabel("Error");
errorItem.setText(ioe.toString());
} catch (MediaException me) {
errorItem.setLabel("Error");
errorItem.setText(me.toString());
any help would be grateful!
thx and greetings
Edited by: nYmou on Jun 1, 2010 3:44 AMNote: This thread was originally posted in the [Sun Java Wireless Toolkit|http://forums.sun.com/forum.jspa?forumID=82] forum, but moved to this forum for closer topic alignment.
-
Monitoring audio in sync with video when capturing in FCP studio
Is there a way I can monitor audio in sync with video when capturing in FCP Studio? I know you can plug headphones into your tape deck but that sound is not in sync with the video in the capture window due to time delay. I tried plugging the headphones into my Powerbook but could not get any audio coming through these, nor audio through the Mac's inbuilt speakers.
The preview checkbox is ticked and the audio monitor indicates that sound is being picked up (the levels rise and fall) but I still can't hear anything! The audio/video sync on the external monitor is ok, but because there is a time delay between that and the video capture window, I can't use that as a reliable monitor for sound sync. If I could resolve the video sync problem there, then I could monitor the sound through the external monitor.
-
How can capture audio with labview
I desired to make a audio equalizer vi using lab view. Audio will be taken from microphone. How can I capture sound from microphone with labview?
See the example "Sound Card AutoPower Spectrum" This allows you to sample from an input device through your sound card, and take a spectrum. you should be able to bin the spectrum by frequency bands, and show the histogram of frequencies. You probably can even selectively resample and scale the frequencies, mix the signal and output the new sounds but I hav not tried this (I am not an audiophile so this is beyond my scope of expertise) Good luck ,
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA -
Capture audio static with Leopard?
I just upgraded to Leopard and started capturing a new project with FCP. I now have static in the audio I didn't have before. Anyone else experiencing this. I've switch cables, drives, video playback decks and still get added static on all tapes. The audio on the tape when monitored with earphones is static free. Any ideas? Thanks.
GaryThanks for the reply. All cameras are set to 16 bit audio. Nothing has really changed except the Leopard OS upgrade. I am getting a warning box about the audio possibly not syncing, but there is no sync problem. I'm just curious if I'm the only one having this problem with audio static on capturing after the Leopard upgrade. Thanks for any help.
Gary -
Capture Audio with Ctl-*?
Sometimes, in play mode I have been playing along on the keyboard, conclude and then realize that I did was not in record mode.
A find that if I stop, issue the Ctl-* (numpad) that it will capture what is in the play buffer and slap it in to the sequence at hand. Saved!
Is there anything like this when I am playing the guitar or singing through a mic and want to capture audio?
-- GerryGerrySA wrote:
Is there anything like this when I am playing the guitar or singing through a mic and want to capture audio?
-- Gerry
Yes...
Well, almost
If you keep "Punch On The Fly" enabled, Logic is actually ALWAYS recording, although once you hit stop, that buffer is cleared.
So the trick to this is, if you are playing along (guitar or voice), and you realize you should have recorded that take, simply hit RECORD, BEFORE you stop. You can then "peel back" the audio region (drag the left side of that short region you'll have when stopping what you were playing to hit the record button), and drag it to the LEFT. You'll see all the audio you were playing there. -
Howdy, folks.
Relative JMF newbie, here. I'm trying to write an app to capture audio from my sound card. Got the basics done, now I want to add some fancy stuff. Specifically, I'd like to show a display of the waveform.
Now, when I create a datasink, I need to provide the processor (where the data comes from) and the medialocator (where the data goes to). The only way I know to build a medialocator is to give it a URL or a string for a file name. Is it possible to put the actual byte data directly into a buffered reader or something so I can translate it into a graphic waveform or do I have to write it to disk, and then read it back?
Thanks for any help,
Russdid you find any solution??
please let me know thanks.
[email protected] -
Trying To Draw The Wav Form of captured audio
hi all , im trying to get into audio proccessing at j2me platform
as a start , i made an application that records audio through the phones microhone and after that drawing the bytearray with its wave form on the canvas.
i used the following capture encoding:
"capture://audio?encoding=pcm&rate=8000&bits=8&channels=1"
the application worked great on the emulators...
after i tried the application on my mobile (motorola E-1000)
i realized that my mobile does not support PCM encoding as for audio capturing the device only supports AMR to capture audio :|
so my question what am i suppose to do to draw the WAveForm of the recorded audio if its stored in bytearray encoded as AMR??
do i need to convert it to wav?
is there any other techinque?
any info will be highly welcome!
thanks in advance.Did u manage to draw waveform of amr file? I've the same task and i 've the same questions: "do i need to convert it to wav? is there any other techinque?"
Maybe you are looking for
-
The page dont open in the first try
I have to click on the (x) in the addressfield and then click on the arrow (Update page) When you have opened a page it works fine the next time you open it. I have updated everything, stopped many programs to start when windows (xp) starts, reset an
-
Is automatic feed discovery no longer available on Firefox 4?
In previous versions of Firefox, Live Bookmarks had the ability to automatically detect RSS feeds and alert you to their existence by placing an icon at the far-right of the address bar. With the Firefox 4 beta this doesn't seem to happen. Was that f
-
Best screen protector for ipad 2?
I have an ipad 2 3G with ATT. I really want a screen protector but i dont know which one to get thats bubble free. Right now im leaning towards the zagg invisible sheild(Anyone with experience?) Also i want a front only because i have the speck pixel
-
Help, Bootlooping, Power and Home both broken
I have an iPhone 5 Screen cracked a few months ago, apple wanted $250 to fix it. Took it to another guy who did it for $140. Basically a terrible experience. Power button was broken at time, and part of the $140 was supposed to go towards fixing the
-
Ipod Crashes in Vista but Fine on XP??
I have upgraded to a 5th gen ipod. I connected it to my Vista pc, installed latest itunes(7)and all seemed well, until I recieved the ipod cannot be synced error. I then couldn't disconnect the ipod properly and after having loaded about 1gb of music