# z_samples **Repository Path**: zonda89/z_samples ## Basic Information - **Project Name**: z_samples - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-05 - **Last Updated**: 2026-06-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # z_samples A new Flutter project. ## Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project: - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) For help getting started with Flutter development, view the [online documentation](https://docs.flutter.dev/), which offers tutorials, samples, guidance on mobile development, and a full API reference. 1)drawtext 能不能加阴影? 可以,但 FFmpeg 的 drawtext 没有“shadow”这个独立开关,只能用“叠加技巧”实现。 ✅ 标准做法:双 drawtext(推荐) 核心思路:同一文本画两次 • 先画“阴影层”(偏移 + 黑色 + 透明) • 再画“正文层” 示例(FFmpeg filter) Bash 复制  drawtext=fontfile=xxx: text='hello': fontsize=40: fontcolor=black@0.5: x=x+2:y=y+2 , drawtext=fontfile=xxx: text='hello': fontsize=40: fontcolor=white: x=x:y=y  ✅ 在你代码里的改法(关键点) 你现在是: dart 复制  filter.write( "[$videoOut]drawtext=...[$out];", ); 改成 两层 drawtext 链式叠加: dart 复制  final shadowOut = "t${i}_shadow"; final mainOut = "t$i"; filter.write( "[$videoOut]" "drawtext=" "fontfile='${t.fontPath}':" "text='%{pts\\:localtime\\:$startTs\\:$escapedFormat}':" "fontsize=${t.fontSize}:" "fontcolor=black@0.5:" "x=${t.x + 2}:y=${t.y + 2}" "[$shadowOut];" ); filter.write( "[$shadowOut]" "drawtext=" "fontfile='${t.fontPath}':" "text='%{pts\\:localtime\\:$startTs\\:$escapedFormat}':" "fontsize=${t.fontSize}:" "fontcolor=$fontColorHex:" "x=${t.x}:y=${t.y}" "[$mainOut];" ); 👉 这是 FFmpeg 里“伪阴影标准解法”,性能也可以接受。