Record videos(camera) are not saving properly.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Record videos(camera) are not saving properly.

Jump to solution
1,246 Views
vinothkumars
Senior Contributor IV

Dear NXP,  

   I am working on Toradex apalis imx6q with Android Nougat with camera - ov5640.  This the following observation I got.

Steps:

   1. Turn on Head Unit
   2. Click on camera button in hard keys.
   3. Now video recording will start, after some time stop recording by again click on camera button.
   4. Go to video gallery and check.

Observation::

 Recorded video are not saving on that time, if we reboot then videos are saving

Please give the fix ?

Thanks & Regards,

VinothS

Regards,
Vinothkumar Sekar
Labels (4)
0 Kudos
1 Solution
1,050 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

You can add a sequence to the init.rc file as below:

First, create a script with the command that you want to use. In this case, will be:  

am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard

Then add in the init.rc file the below commands:

service script /system/bin/script.sh

   user root

   oneshot

Remember to store the script file in the path that you are specifying on the commands of the init.rc

Unfortunately, we are unable to assist you more since the board that you are using is from toradex. For more help I recommend you to go with Toradex. I apologize for the inconveniences this could give you.

Best regards,

Diego.

View solution in original post

0 Kudos
7 Replies
1,050 Views
vinothkumars
Senior Contributor IV

Dear NXP,

I fix this issue by using issuing this command,

am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard

But, I don't know how to include this on in BSP.

Thanks & Regards,

VinothS

Regards,
Vinothkumar Sekar
0 Kudos
1,050 Views
vinothkumars
Senior Contributor IV

But , these are default right. When we do video recording and check galary it will present right.

Is there any other fix without using these commands ?

Regards,

Vinoths.

Regards,
Vinothkumar Sekar
0 Kudos
1,051 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

You can add a sequence to the init.rc file as below:

First, create a script with the command that you want to use. In this case, will be:  

am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard

Then add in the init.rc file the below commands:

service script /system/bin/script.sh

   user root

   oneshot

Remember to store the script file in the path that you are specifying on the commands of the init.rc

Unfortunately, we are unable to assist you more since the board that you are using is from toradex. For more help I recommend you to go with Toradex. I apologize for the inconveniences this could give you.

Best regards,

Diego.

0 Kudos
1,050 Views
vinothkumars
Senior Contributor IV

Hi,

This is the response when I click the Recorded Videos folder. But, after sometimes the videos not showing and also following content not loading when Click the Recorded Videos folder.

But, After reboot the following things are loaded for new recorded videos.

FslExtractor: FslExtractor::FslExtractor mime=video/mp4
FslExtractor: video codec data size=24
FslExtractor: add avcc metadata for h264 video size=24
FslExtractor: add video track index=0,source index=0,mime=video/avc
OMXMaster: makeComponentInstance(OMX.Freescale.std.video_decoder.avc.v3.hw-based) in mediacodec process
ACodec : Setting [OMX.Freescale.std.video_decoder.avc.v3.hw-based] input port buffer number: 1
ACodec : Setting [OMX.Freescale.std.video_decoder.avc.v3.hw-based] output port buffer number: 1

Please provide the fix. Is there any framework I want to see.

Thanks & Regards,

VinothS.

Regards,
Vinothkumar Sekar
0 Kudos
1,050 Views
vinothkumars
Senior Contributor IV

This the application side problem. The videos are saved in sata as per my requirement. I closed this thread now.

Sorry for this assumed answer. This is the serialcom receiver side problem, Needs to implement the broadcast command when receive the Gallery refresh.

Regards,

VinothS.

Regards,
Vinothkumar Sekar
0 Kudos
1,050 Views
vinothkumars
Senior Contributor IV

Dear Diego,

As per my understanding this is the default one and we no needs to run separate adb shell commands. 

Will you please give some fix instead of running this adb shell commands. 

Please provide the code (instead of running adb shell commands) in BSP side.

Thanks & Regards,

VInothS.

Regards,
Vinothkumar Sekar
0 Kudos
1,050 Views
vinothkumars
Senior Contributor IV

Thank you Diego,

Regards,

VinothS.

Regards,
Vinothkumar Sekar
0 Kudos