cancel
Showing results for 
Search instead for 
Did you mean: 

how to read and write data(audio,video,text,image) to SD card??

Predd.11
Associate II

i receive data(video/audio/text) from wifi/Bluetooth modules ,need to store these data to SD card.i know how to write and read normal data

1) how do i follow to read and write video and image files to SD card?

2)is any separate method to store video data?

2)please share any document to follow sd card programming

Thanks

3 REPLIES 3

Is the video or audio encoded in any way?

​Is the audio in raw PCM samples? Do you need to create a .WAV file, with a header describing the type, frequency, etc?

Review the forms of data which you are presented with.

Review File Formats used to describe/encapsulate the audio, image and video data being presented.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

thank you sir,

i can write and read text files to sd card,but first time working on video and audio data

could i get any reference guide to read/write video files with sd card??

i searched in internet and forums but i didn't get any reference

Thanks

The file system and SD card just understand files as collections of bytes, they have no specific understanding of whether they describe text, or images or whatever.

Understand data representation in memory, and in files.

Understand how to manipulate files on a PC, and using standard C file IO functions.

Understand the myriad of file formats, where the internal structures within the file describe the content, or break it into packets.

RIFF file format https://en.wikipedia.org/wiki/Resource_Interchange_File_Format

BMP file format https://en.wikipedia.org/wiki/BMP_file_format

MPEG encoding https://en.wikipedia.org/wiki/Moving_Picture_Experts_Group

Video files and encoding are very complex subject areas, I don't sense you have enough foundational knowledge to succeed.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..