Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Bump version to v0.8.13-alpha

Murtaza Nasir55a5c3035249
diff --git a/README.md b/README.md
index 86734559..ef32d8f8 100644
--- a/README.md
+++ b/README.md
@@ -162,7 +162,11 @@ Complete documentation is available at **[murtaza-nasir.github.io/speakr](https:
- [Troubleshooting](https://murtaza-nasir.github.io/speakr/troubleshooting) - Common issues and solutions
- [FAQ](https://murtaza-nasir.github.io/speakr/faq) - Frequently asked questions
-## Latest Release (v0.8.12-alpha)
+## Latest Release (v0.8.13-alpha)
+
+**Video Retention Fix** - Fixed large video files silently losing their video stream during upload when `VIDEO_RETENTION=true`. Probe timeout now scales with file size and falls back to extension detection if probing fails.
+
+### Previous Release (v0.8.12-alpha)
**Speaker Search, Shared Page Improvements & Bug Fixes**
diff --git a/VERSION b/VERSION
index 961d96c4..ac615661 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-v0.8.12-alpha
+v0.8.13-alpha
diff --git a/docs/index.md b/docs/index.md
index adaec1f6..2d9f17be 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -6,8 +6,8 @@ Speakr is a powerful self-hosted transcription platform that helps you capture,
<img src="assets/images/screenshots/Main view.png" alt="Main Interface" style="border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);">
</div>
-!!! info "Latest Release: v0.8.12-alpha - Speaker Search, Shared Page Improvements & Bug Fixes"
- **Speaker name filter, auto-scroll on shared pages, and misc fixes**
+!!! info "Latest Release: v0.8.13-alpha - Video Retention Fix"
+ **Fixed large video uploads losing their video stream when VIDEO_RETENTION=true**
- **Video Retention** - Keep video streams for in-browser `<video>` playback alongside transcripts (`VIDEO_RETENTION=true`)
- **Parallel Uploads** - Batch uploads run concurrently with individual progress bars (`MAX_CONCURRENT_UPLOADS`, default: 3)
@@ -146,6 +146,10 @@ Learn more about [audio synchronization features](user-guide/transcripts.md#audi
## Latest Updates
+!!! info "Version 0.8.13-alpha - Video Retention Fix"
+ - Fixed large video files silently losing their video stream during upload when `VIDEO_RETENTION=true`
+ - Probe timeout now scales with file size; falls back to extension-based detection if probing fails
+
!!! info "Version 0.8.12-alpha - Speaker Search, Shared Page Improvements & Bug Fixes"
- **Speaker Name Filter** - Search/filter speakers by name on the Speakers Management page with bulk operation support
- **Shared Page Auto-scroll** - Follow-along mode on public shared transcript pages, matching the main app experience
diff --git a/src/api/recordings.py b/src/api/recordings.py
index 97cdda98..464f5c14 100644
--- a/src/api/recordings.py
+++ b/src/api/recordings.py
@@ -1939,20 +1939,35 @@ def upload_file():
)
# Probe once and use shared conversion utility
+ # Scale timeout based on file size — large files (especially MP4 with moov at end) need more time
+ file_size_mb = os.path.getsize(filepath) / (1024 * 1024)
+ probe_timeout = max(10, min(60, int(file_size_mb / 10))) # 10s min, scales ~1s per 10MB, 60s max
codec_info = None
try:
- codec_info = get_codec_info(filepath, timeout=10)
+ codec_info = get_codec_info(filepath, timeout=probe_timeout)
current_app.logger.info(
f"Detected codec for {original_filename}: "
f"audio_codec={codec_info.get('audio_codec')}, "
f"has_video={codec_info.get('has_video', False)}"
)
except FFProbeError as e:
- current_app.logger.warning(f"Failed to probe {original_filename}: {e}. Will attempt conversion.")
+ current_app.logger.warning(f"Failed to probe {original_filename} (timeout={probe_timeout}s): {e}. Will attempt conversion.")
codec_info = None
# Video retention: skip conversion for videos, processing pipeline handles extraction
has_video = codec_info.get('has_video', False) if codec_info else False
+
+ # Fallback: if probe failed but VIDEO_RETENTION is on, check file extension
+ # to avoid silently discarding video from files we couldn't probe
+ if codec_info is None and VIDEO_RETENTION and not has_video:
+ video_extensions = {'.mp4', '.mov', '.mkv', '.avi', '.webm', '.m4v', '.wmv', '.flv', '.ts', '.mts'}
+ file_ext = os.path.splitext(original_filename)[1].lower()
+ if file_ext in video_extensions:
+ has_video = True
+ current_app.logger.info(
+ f"Probe failed but file extension '{file_ext}' indicates video — "
+ f"treating as video for VIDEO_RETENTION"
+ )
if VIDEO_RETENTION and has_video:
current_app.logger.info(f"Video retention: keeping original video, skipping conversion")
else: