Skip to content

Add Python ffmpeg parallel-workload tutorial sample#327

Open
xinlaoda wants to merge 1 commit into
Azure-Samples:masterfrom
xinlaoda:add-ffmpeg-python-tutorial-sample
Open

Add Python ffmpeg parallel-workload tutorial sample#327
xinlaoda wants to merge 1 commit into
Azure-Samples:masterfrom
xinlaoda:add-ffmpeg-python-tutorial-sample

Conversation

@xinlaoda

Copy link
Copy Markdown

What

Adds the Batch Python ffmpeg parallel-workload tutorial sample under Python/Batch/article_samples/ffmpeg/.

This is the modernized version of the sample formerly hosted in the now-archived Azure-Samples/batch-python-ffmpeg-tutorial repo, and it backs the docs article Run a parallel workload with Azure Batch using the Python API.

Modernization

  • Keyless auth: Microsoft Entra ID via DefaultAzureCredential (no account keys).
  • Current SDKs: azure-batch (BatchClient track2), azure-identity, azure-storage-blob v12.
  • User delegation SAS for input/output containers (signed with Entra ID, not the storage key).
  • Ubuntu Server 24.04 LTS pool image (canonical / ubuntu-24_04-lts / server-gen1, node agent batch.node.ubuntu 24.04). Gen1 sku is used so the default Standard_A1_v2 (Gen1-only) VM size keeps working.

Validation

  • Passes the repo's CI flake8 gate on Python/Batch.
  • Object construction / control flow validated against azure-batch 15.1.0.

Adds the Batch Python ffmpeg tutorial sample (article: Run a parallel
workload with Azure Batch using the Python API) under
Python/Batch/article_samples/ffmpeg.

- Uses Microsoft Entra ID (DefaultAzureCredential) - no account keys
- Current SDKs: azure-batch (BatchClient), azure-identity, azure-storage-blob
- User delegation SAS for input/output containers
- Ubuntu Server 24.04 LTS pool image (batch.node.ubuntu 24.04)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@xinlaoda

Copy link
Copy Markdown
Author

@NickKouds could you please review and merge this PR when you get a chance? 🙏

It adds the modernized Python ffmpeg tutorial sample under Python/Batch/article_samples/ffmpeg/, replacing the code from the now-archived batch-python-ffmpeg-tutorial repo (it backs the docs article Run a parallel workload with Azure Batch using the Python API). Highlights:

  • Keyless auth via Microsoft Entra ID (DefaultAzureCredential) — no account keys
  • Current SDKs: azure-batch (BatchClient), azure-identity, azure-storage-blob v12; user delegation SAS
  • Ubuntu Server 24.04 LTS pool image (server-gen1 so it stays compatible with the default Standard_A1_v2)

CLA is green and flake8 passes on Python/Batch. There's no CODEOWNERS to auto-assign a reviewer, so I'm tagging you directly. Thanks!

@Padmalathas Padmalathas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one observation:
While your image has Ubuntu OS as 24.04 LTS while the tutorial article mentions 22.04 LTS, should the article be changed to 24.04 or its the script that needs to be changed?

@xinlaoda

Copy link
Copy Markdown
Author

@Padmalathas, yes, we should updated Ubuntu version accordingly, since Ubuntu 22.04 is under retirement process.

@jingjlii jingjlii self-assigned this Jul 15, 2026

@jingjlii jingjlii left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants