openwrt / openwrt/packages

ffmpeg-full: compile with freetype support

Open
#23,498 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/22.03 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

@tess @diizzyy @BKPepe @antonlacon Currently OpenWRT offer mjpg-streamer to stream locally attached USB camera. But it does not allow to re-encode the stream using ffmpeg in LuCI. Moreover, one cannot run ffmpeg on the commandline to re-encode it manually and add a timestamp. For that, ffmpeg would have to be configured with --enable-libfreetype

https://ffmpeg.org/pipermail/ffmpeg-user/2012-February/004733.html

I want to re-encode using h264, let's hope the HW can do that.

ffmpeg -i http://xx.xx.xx.xx:8080/?action=stream -filter_complex "drawtext = text = '%{pts\:gmtime\:0\:%M\\\\\:%S}'" -vcodec libx264 -preset veryfast -f mp4 -pix_fmt yuv420p -y output.mp4

Powered by LuCI openwrt-22.03 branch (git-23.119.80898-65ef406) / OpenWrt 22.03.5 r20134-5f15225c1e

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the ffmpeg-full package definition in the OpenWrt packages tree and inspect how its configure options are declared. Enable --enable-libfreetype, then build the package and verify that the shown ffmpeg drawtext use case is supported.

Written by the indexing model from the issue text.

Assessment

Domain
audio-video-rtc, build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.