python

Back Open Paginator
06.12.2025 19:20
GripNews (@GripNews@mastodon.social)

🌘 運用 Python 偵測 AV1 編碼影片
➤ 從找出 AV1 影片到自動化測試,讓你的媒體庫保持流暢
alexwlchan.net/2025/detecting-
作者分享如何使用 Python 偵測 AV1 編碼的影片,以便將無法在舊裝置上播放的影片轉換為較舊的編碼格式。文章介紹了兩種方法:利用 `ffprobe` 命令列工具,以及更快速且直接的 `pymediainfo` Python 套件。最終,作者將這些方法整合到一個 pytest 測試中,用以掃描整個影片庫並找出所有 AV1 編碼的 MP4 檔案,確保所有影片都能順暢播放。
+ 這篇文章的實用性很高!我正好有類似的問題,不知道如何批量找出那些不相容的影片。ffprobe 的方法很詳細,不過 pymediainfo 聽起來確實更有效率。
+ 寫測試來解決問題是很棒的做法。作者很細心地解釋了 ffprobe 和 MediaInfo 的指令,以及為什麼 pymediainfo 的方法更快。最後的 pyt




Show Original Post


06.12.2025 19:08
TechKeysX (@TechKeysX@mastodon.social)

V - S1 EP10 T2 - Machine Learning in Python - Creating a Class - Explained in Python





Show Original Post


06.12.2025 19:02
PythonPeak (@PythonPeak@mastodon.social)

Accumulate Snapshot Drift

Old sums outlive edits

accumulate captures partial sums, so later changes to the source list cannot rewrite the archived snapshot.

youtube.com/watch?v=bLsJxdkZEOg




Show Original Post


06.12.2025 18:58
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Detecting AV1-encoded videos with Python

alexwlchan.net/2025/detecting-




Show Original Post


06.12.2025 18:51
zspencer (@zspencer@sfba.social)

Just wrapped #AdventOfCode Day 5:

codeberg.org/zspencer/advent-o

I cribbed from an #OaklandishBoardGamers acquaintance (we have a shared leaderboard there... I'm solidly in 3rd place out of the 4ish folks doing it)

It's been fun reading the solutions folks are writing in #Kotlin and #Python and comparing them to my #Ruby implementations.




Show Original Post


06.12.2025 18:20
tessela_is (@tessela_is@mastodon.social)

just dusted off an old script to turn it into a utility. i still have to control the lighting of via the GPIO pins of the that will run it.
gitlab.com/frankiezafe/basic_s




Show Original Post


06.12.2025 18:02
maddin (@maddin@gruene.social)

@dustymabe nope. I wrote my own calculator, in #Python.




Show Original Post


06.12.2025 17:55
cupz (@cupz@mas.to)

Gonna put a period after day 2 of the #7dfps jam. Added some enemies flying around that you can shoot (though they just dissapear atm, but the hittesting is all there), a hud-gun and a laser that goes pew pew. Getting to a point where we are #fragging asap is my strategy.

#gamejam #gamedev #panda3d #python





Show Original Post


06.12.2025 17:42
dustymabe (@dustymabe@fosstodon.org)

Anyone else just use the Python interactive shell (interpreter) when they need a calculator?

#python #nerd




Show Original Post


06.12.2025 17:19
nocto (@nocto@social.lol)

I'm back up to date with 12 days of getting annoyed with string parsing; sorry I mean #AdventOfCode - absolutely not a model solution, just me learning a few bits of #Python and bashing at the input until I get it in the right format.

nocto.weblog.lol/2025/12/adven




Show Original Post


06.12.2025 17:00
webwings74 (@webwings74@mastodon.nl)

Bericht bijgewerkt: Automatische updates webwings.nl/?p=2293 #Computer #Python #Website




Show Original Post


06.12.2025 16:54
nemo (@nemo@mas.to)

#reminder Null Byte shares a clever Python tutorial on building a Dead Man's Switch! 🔒💻 It encrypts files if you don't check in in time—ideal for protests or secure data protection. Watch now: youtu.be/b6LoNZXkwSA #Python #CyberSecurity #DeadMansSwitch #Hacking #yt




Show Original Post


1 ...865 866 867 868 869 870 871 872 873 874 875 ...1571
UP