Skip to content

Commit 99198de

Browse files
committed
Add a missing-codecs message to blank.mkv
/r/linux_gaming and other forums regularly get posts asking about "weird colors" in games with cutscenes: https://www.reddit.com/r/linux_gaming/comments/1kf59i6/fragpunk_showing_weird_colors/ https://www.reddit.com/r/linux_gaming/comments/1k47643/blue_prince_game_launches_but_when_i_click_new/ https://www.reddit.com/r/linux_gaming/comments/1ftevcl/star_wars_jedi_survivor_is_giving_me_a_weird/ Putting a message in there is useful. Other changes done: * Switch audio to use wave=silence, which is more correct. * Add a horizontals-speed to have the video move to the left * Increase buffers from 120 to 160 to loop perfectly
1 parent f6c2155 commit 99198de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ all: blank.mkv blank.ptna
22

33
blank.mkv:
44
#120 frames @ 30 FPS == 4 seconds
5-
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
5+
gst-launch-1.0 videotestsrc num-buffers=160 horizontal-speed=2 ! 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)30/1' ! textoverlay text="Missing audio or video codecs" valignment=center font-desc="Sans 32" ! av1enc ! queue ! mux. audiotestsrc num-buffers=400 wave=silence samplesperbuffer=441 ! 'audio/x-raw,rate=48000,channels=2' ! opusenc ! queue ! mux. matroskamux name=mux ! filesink location=blank.mkv
66

77
make_blank_ptna: make_blank_ptna.c
88
gcc -Wall -O2 $(shell pkg-config --cflags opus) -o $@ $< -lm $(shell pkg-config --libs opus)

0 commit comments

Comments
 (0)