Enhance file selection to support additional audio format (M4A) and update README.md to reflect new supported formats for video and audio recordings.

This commit is contained in:
Your Name
2025-08-05 11:18:36 -04:00
parent 3346b0df0f
commit f04853eba9
7 changed files with 203 additions and 16 deletions

6
app.py
View File

@ -319,15 +319,15 @@ def main():
st.markdown(f"- {error}")
return
# File selection - support multiple video formats
supported_extensions = ["*.mp4", "*.avi", "*.mov", "*.mkv"]
# File selection - support multiple video and audio formats
supported_extensions = ["*.mp4", "*.avi", "*.mov", "*.mkv", "*.m4a"]
recordings = []
for extension in supported_extensions:
recordings.extend(base_path.glob(extension))
if not recordings:
st.warning(f"📂 No recordings found in the folder: {base_folder}!")
st.info("💡 Supported formats: MP4, AVI, MOV, MKV")
st.info("💡 Supported formats: MP4, AVI, MOV, MKV, M4A")
return
selected_file = st.selectbox("Choose a recording", recordings)