mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-08 07:27:58 +01:00
media-converter: Use AV1/Opus instead of Theora/Vorbis
CW-Bug-Id: #19516
This commit is contained in:
parent
48196af449
commit
e190c26058
4 changed files with 12 additions and 11 deletions
|
|
@ -17,7 +17,7 @@ endif
|
|||
|
||||
all: install
|
||||
|
||||
build: blank.ogv blank.ptna
|
||||
build: blank.mkv blank.ptna
|
||||
cargo build --target $(TRIPLE64) $(CARGO_RELEASE_ARG)
|
||||
PKG_CONFIG_ALLOW_CROSS=1 cargo build --target $(TRIPLE32) $(CARGO_RELEASE_ARG)
|
||||
|
||||
|
|
@ -27,9 +27,9 @@ install: build
|
|||
install -d "$(DIST_GST_DIR32)"
|
||||
install -m 755 target/$(TRIPLE32)/$(TARGET_BUILD_TYPE)/$(SONAME) "$(DIST_GST_DIR32)"
|
||||
|
||||
blank.ogv:
|
||||
blank.mkv:
|
||||
#120 frames @ 30 FPS == 4 seconds
|
||||
gst-launch-1.0 videotestsrc num-buffers=120 pattern=smpte ! 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)30/1' ! theoraenc ! queue ! mux. audiotestsrc num-buffers=400 freq=0 samplesperbuffer=441 ! 'audio/x-raw,rate=44100,channels=2' ! vorbisenc ! queue ! mux. oggmux name=mux ! filesink location=blank.ogv
|
||||
gst-launch-1.0 videotestsrc num-buffers=120 pattern=smpte ! 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)30/1' ! av1enc ! queue ! mux. audiotestsrc num-buffers=400 freq=0 samplesperbuffer=441 ! 'audio/x-raw,rate=48000,channels=2' ! opusenc ! queue ! mux. matroskamux name=mux ! filesink location=blank.mkv
|
||||
|
||||
make_blank_ptna: make_blank_ptna.c
|
||||
gcc -Wall -O2 $(shell pkg-config --cflags opus) -o $@ $< -lm $(shell pkg-config --libs opus)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue