Home > Mobile >  How to get a directory of all audio file length information
How to get a directory of all audio file length information

Time:09-15

Now can only get to play the audio time, want to one-time all audio file length should be how to get access to the folder class?
And folder there is a variety of audio formats, feel more difficult to do, have what good method???????

CodePudding user response:

http://blog.sina.com.cn/s/blog_149e9d2ec0102x0fl.html
Use the Windows API

CodePudding user response:

This is the only access to WAV format? And I need to implement the cross-platform,

CodePudding user response:

https://download.csdn.net/download/yanchen0314/7573607
Before use this is ok, you have a try, according to the storage format of mp3 information read long when stored in information

CodePudding user response:

reference mango black reply: 3/f

https://download.csdn.net/download/yanchen0314/7573607Before use this is ok, you have a try, according to the storage format of mp3 information read long when stored in information

I'd like to get *. Mp3; *. Wav. *. The flac; *. Ape four formats of audio information, difficult oh

CodePudding user response:

reference trees, 4/f, the senior reply:
Quote: refer to the third floor mango black response:

https://download.csdn.net/download/yanchen0314/7573607Before use this is ok, you have a try, according to the storage format of mp3 information read long when stored in information

I'd like to get *. Mp3; *. Wav. *. The flac; *. Ape four formats of audio information, difficult oh

Then use FFmpeg can handle anything

CodePudding user response:

Search search open source multimedia library, with their interfaces parsing multiple formats for some of the audio information

CodePudding user response:

mango black reference 5 floor response:
Quote: reference trees, 4/f, the senior reply:
Quote: mango black reference 3 floor response:

https://download.csdn.net/download/yanchen0314/7573607Before use this is ok, you have a try, according to the storage format of mp3 information read long when stored in information

I'd like to get *. Mp3; *. Wav. *. The flac; *. Ape four formats of audio information, difficult oh

Then use FFmpeg, what all can deal with

Thank you, I'm in the study

CodePudding user response:

the leaf of dreams for reference to 6th floor response:
search search open source multimedia library, with their interfaces parsing multiple formats for some of the audio information

Time is too short, there is no way to solve for a while, no way out, and planning a fight

CodePudding user response:

Ffmpeg:
Av_register_all ();
Avformat_network_init ();
->
Avformat_open_input
->
Avformat_find_stream_info
->
Av_dump_format
->
FileDuration=AVFormatContext - & gt; Duration/1000.0/1000.0;

Can be used for audio and video files and the network flow,
  •  Tags:  
  • Qt
  • Related