mp3

python check audio file type, MP3 or FLAC

寵の児 提交于 2021-01-19 09:10:01
问题 I want to check if a audio file to see if its MP3 or FLAC the checks only have to be basic but I want to go beyond simply checking the file extensions os.path.splitext Works okay but no good if the file doesn't have an extensions written in or someone passes a file with a fake extension I've tried but it just returns None sndhdr.what(file) I've also tried using magic but it returns 'application/octet-stream' which isn't much use. magic.from_file(file, mime=True) I've read Mutagen could be

python check audio file type, MP3 or FLAC

余生颓废 提交于 2021-01-19 09:08:21
问题 I want to check if a audio file to see if its MP3 or FLAC the checks only have to be basic but I want to go beyond simply checking the file extensions os.path.splitext Works okay but no good if the file doesn't have an extensions written in or someone passes a file with a fake extension I've tried but it just returns None sndhdr.what(file) I've also tried using magic but it returns 'application/octet-stream' which isn't much use. magic.from_file(file, mime=True) I've read Mutagen could be

python check audio file type, MP3 or FLAC

梦想与她 提交于 2021-01-19 09:07:34
问题 I want to check if a audio file to see if its MP3 or FLAC the checks only have to be basic but I want to go beyond simply checking the file extensions os.path.splitext Works okay but no good if the file doesn't have an extensions written in or someone passes a file with a fake extension I've tried but it just returns None sndhdr.what(file) I've also tried using magic but it returns 'application/octet-stream' which isn't much use. magic.from_file(file, mime=True) I've read Mutagen could be

Should I use the MP3 or AAC codec for a .mp4 file?

蹲街弑〆低调 提交于 2020-08-22 09:30:46
问题 We have an encoding process in place using ffmpeg on Mac OS X. This process will take a source video and a couple files from that: .m3u8 video, .mp4 video and .mp3 audio file. By default we've used the video from our m3u8 process which is a h264 (via libx264 ) video with AAC (via libfaac ) audio. We are mostly using these videos on mobile devices (hence the m3u8 files) but we also use the .mp4 files for Android, Windows Phone, etc. More and more we also need to offer these same videos on the

Should I use the MP3 or AAC codec for a .mp4 file?

亡梦爱人 提交于 2020-08-22 09:29:38
问题 We have an encoding process in place using ffmpeg on Mac OS X. This process will take a source video and a couple files from that: .m3u8 video, .mp4 video and .mp3 audio file. By default we've used the video from our m3u8 process which is a h264 (via libx264 ) video with AAC (via libfaac ) audio. We are mostly using these videos on mobile devices (hence the m3u8 files) but we also use the .mp4 files for Android, Windows Phone, etc. More and more we also need to offer these same videos on the

Should I use the MP3 or AAC codec for a .mp4 file?

夙愿已清 提交于 2020-08-22 09:29:15
问题 We have an encoding process in place using ffmpeg on Mac OS X. This process will take a source video and a couple files from that: .m3u8 video, .mp4 video and .mp3 audio file. By default we've used the video from our m3u8 process which is a h264 (via libx264 ) video with AAC (via libfaac ) audio. We are mostly using these videos on mobile devices (hence the m3u8 files) but we also use the .mp4 files for Android, Windows Phone, etc. More and more we also need to offer these same videos on the