Recorded video play with Low audio

Hello Guys,

I have one issue regarding recorded video. 

When i record video with media.captureVideo and try to play it. I can see that the audio(volume) of the recorded video is too low even my iPhone’s volume is set to Maximum.

I will try to divide in 3 phases:

  1. start record video   -->
        open camera app  (device ask me to allow camera and microphone , and i allow )
    – > click start button for video record
         --> after few second click stop button (video is recorded)

  2. i can see the screen with below buttons
    Retake video , play video and use this video

–> I play the video and looks okay (audio is clear and with full volume )
–> after watching whole video i click use video

  1. Now i back to our app and immediately open media player
      --> start video playing but with low volume audio (than 2ns phase)
       (i confirm that my iPhone’s volume is set to Max)

Is there any possibility to get full volume of recorded video play.
I tried to play recorded video in native.newVideo() but see same low volume audio issue there.

I am running below code:
 

– Capture completion listener

local function onComplete( event )

   if event.completed then

       print( event.duration )

       print( event.fileSize )

       print( event.url )

       media.playVideo( event.url, media.RemoteSource , true, onVideoComplete )

       

   end

end

if media.hasSource( media.Camera ) then

   media.captureVideo( { listener=onComplete , preferredQuality=“high” } )

else

   native.showAlert( “MyApp”, “This device does not have a camera.”, { “OK” } )

end

Can anyone help me please ???

I am using Corona SDK build 2015.2561. I tested on iPhone 5 and iPhone 5s.

Thank you in Advance.

Bhavin
 

Any one please help me ?

Hi @Bhavin,

I just tested your exact code on my iPhone5 and it works as expected. The volume is the same at all points, and completely clear.

Which version of iOS are you running? What specific device model/version are you testing this on?

Thanks,

Brent

Hi Brent,

Thanks For you response.

I tested this code on iPhone 5s(A5130) with IOS 8.2 

 

I’m getting the same issue, playback video immediately after capture and volume is low, I’m pretty sure it is the App volume that is going low, not the recorded video.

Here is my code that demonstrates this

[lua]-- Capture completion listener

local function onComplete( event )

   if event.completed then

       print( event.duration )

       print( event.fileSize )

       print( event.url )

       – Video playback volume is very now low

       media.playVideo( event.url, media.RemoteSource , true, onVideoComplete )

       

   end

end

local function onTap(event)

if media.hasSource( media.Camera ) then

  media.captureVideo( { listener=onComplete , preferredQuality=“high” } )

else

  native.showAlert( “MyApp”, “This device does not have a camera.”, { “OK” } )

end

end

local tt = display.newText(“Open Camera”, 100,100,nil,20)

tt:addEventListener(“tap” , onTap)

[/lua]

Cheers 

Scott

Hi Scott,

What device model and version of iOS are you testing on?

Brent

Device is iPhone 5, OS is 8.3

Scott

Hi guys,

I can’t reproduce this issue on my own iPhone5 with iOS 8.3, running the exact code that you posted. When I record a sample video and speak near the microphone (normal distance from mouth to device), the volume is picked up as expected. Then, on playback, I can adjust the little iOS volume slider and the voice is clear, at the same volume in my estimation. Turning up that slider to max makes the voice completely clear.

Brent

Thanks Brent, I’ll continue to investigate my side and reply again if I need your help.

Any one please help me ?

Hi @Bhavin,

I just tested your exact code on my iPhone5 and it works as expected. The volume is the same at all points, and completely clear.

Which version of iOS are you running? What specific device model/version are you testing this on?

Thanks,

Brent

Hi Brent,

Thanks For you response.

I tested this code on iPhone 5s(A5130) with IOS 8.2 

 

I’m getting the same issue, playback video immediately after capture and volume is low, I’m pretty sure it is the App volume that is going low, not the recorded video.

Here is my code that demonstrates this

[lua]-- Capture completion listener

local function onComplete( event )

   if event.completed then

       print( event.duration )

       print( event.fileSize )

       print( event.url )

       – Video playback volume is very now low

       media.playVideo( event.url, media.RemoteSource , true, onVideoComplete )

       

   end

end

local function onTap(event)

if media.hasSource( media.Camera ) then

  media.captureVideo( { listener=onComplete , preferredQuality=“high” } )

else

  native.showAlert( “MyApp”, “This device does not have a camera.”, { “OK” } )

end

end

local tt = display.newText(“Open Camera”, 100,100,nil,20)

tt:addEventListener(“tap” , onTap)

[/lua]

Cheers 

Scott

Hi Scott,

What device model and version of iOS are you testing on?

Brent

Device is iPhone 5, OS is 8.3

Scott

Hi guys,

I can’t reproduce this issue on my own iPhone5 with iOS 8.3, running the exact code that you posted. When I record a sample video and speak near the microphone (normal distance from mouth to device), the volume is picked up as expected. Then, on playback, I can adjust the little iOS volume slider and the voice is clear, at the same volume in my estimation. Turning up that slider to max makes the voice completely clear.

Brent

Thanks Brent, I’ll continue to investigate my side and reply again if I need your help.