开发者

flv to mp3 converter

开发者 https://www.devze.com 2022-12-14 08:14 出处:网络
hey im writ开发者_开发问答ing a c# flv2mp3 converter and i could need some help. flv is a container type, wich means that when i get all audio tags together, i just have have to reassemble them, or do

hey im writ开发者_开发问答ing a c# flv2mp3 converter and i could need some help.

flv is a container type, wich means that when i get all audio tags together, i just have have to reassemble them, or do i habe to save them in a special way? is it possible at all? and i do not want any flvextractors i wanna do it by myself


What if the soundtrack is AAC or some other format?

You can ignore the timestamps on the audio packets (since the audio timestamps give cues to the video, and don't represent clock-time - the spec is wrong(!) in this respect). Just extract the raw data from the audio-packets, decode from whatever it happens to be to PCM (at an appropriate sample rate, and appropriate stereo/mono; what if the soundtrack varies?), re-encode as MP3 and you're done.

Its easiest to just use ffmpeg as others have indicated.


If this is an open source app you could look into ffmpeg..


Here is an example with SWF Scout

Example

The sad part about this example...it is not open source libary.

Edit: As far as i understand the hole theme...you have to get the FLV to SWF and try to reassamble it. there are already some open Source solutions...but they seem dirty.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号