diff --git a/README.md b/README.md index 2f9f2dd..c690bfb 100644 --- a/README.md +++ b/README.md @@ -63,12 +63,12 @@ git clone https://github.com/ammen99/wf-recorder.git && cd wf-recorder meson build --prefix=/usr --buildtype=release ninja -C build ``` -Optionally configure with `-Ddefault_codec='codec'`. The default is libvpx-vp9. Now you can just run `./build/wf-recorder` or install it with `sudo ninja -C build install`. +Optionally configure with `-Ddefault_codec='codec'`. The default is libx264. Now you can just run `./build/wf-recorder` or install it with `sudo ninja -C build install`. The man page can be read with `man ./manpage/wf-recorder.1`. # Usage -In its simplest form, run `wf-recorder` to start recording and use Ctrl+C to stop. This will create a file called `recording.mkv` in the current working directory using the default codec. +In its simplest form, run `wf-recorder` to start recording and use Ctrl+C to stop. This will create a file called `recording.mp4` in the current working directory using the default codec. Use `-f ` to specify the output file. In case of multiple outputs, you'll first be prompted to select the output you want to record. If you know the output name beforehand, you can use the `-o ` option. @@ -81,7 +81,7 @@ wf-recorder -g "$(slurp)" You can record screen and sound simultaneously with ``` -wf-recorder --audio --file=recording_with_audio.mkv +wf-recorder --audio --file=recording_with_audio.mp4 ``` To specify an audio device, use the `-a` or `--audio=` options. diff --git a/manpage/wf-recorder.1 b/manpage/wf-recorder.1 index bd6f3f9..ec3f843 100644 --- a/manpage/wf-recorder.1 +++ b/manpage/wf-recorder.1 @@ -43,7 +43,7 @@ to start recording and use .Ql Ctrl+C to stop. This will create a file called -.Ql recording.mkv +.Ql recording.mp4 in the current working directory using the default .Ar codec. .Pp @@ -165,7 +165,7 @@ screen area that will be recorded: .Dl $ wf-recorder -g "$(slurp)" .Pp You can record screen and sound simultaneously with -.Dl $ wf-recorder --audio --file=recording_with_audio.mkv +.Dl $ wf-recorder --audio --file=recording_with_audio.mp4 .Pp To specify an audio device, use the .Fl -a @@ -190,12 +190,12 @@ loopback you might use: .Dl $ wf-recorder --muxer=v4l2 --codec=rawvideo --file=/dev/video2 .Pp To use GPU encoding, use a VAAPI codec (for ex. -.Ql vp9_vaapi +.Ql h264_vaapi ) and specify a GPU device to use with the .Fl d option: -.Dl $ wf-recorder -f test-vaapi.mkv -c vp9_vaapi -d /dev/dri/renderD128 +.Dl $ wf-recorder -f test-vaapi.mkv -c h264_vaapi -d /dev/dri/renderD128 .Pp Some drivers report support for .Ql rgb0 diff --git a/meson_options.txt b/meson_options.txt index 6cdc68a..cb85ea2 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,5 +1,5 @@ option('default_codec', type: 'string', value: 'libx264', description: 'Codec that will be used by default') -option('default_audio_codec', type: 'string', value: 'libopus', description: 'Audio codec that will be used by default') +option('default_audio_codec', type: 'string', value: 'aac', description: 'Audio codec that will be used by default') option('default_audio_sample_rate', type: 'integer', value: 48000, description: 'Audio sample rate that will be used by default') option('default_container_format', type: 'string', value: 'mkv', description: 'Container file format that will be used by default') option('fallback_audio_sample_fmt', type: 'string', value: 's16', description: 'Fallback audio sample format that will be used if wf-recorder cannot determine the sample formats supported by a codec') diff --git a/src/main.cpp b/src/main.cpp index 816b061..2694307 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -810,7 +810,7 @@ Examples:)"); printf(R"( - wf-recorder Records the video. Use Ctrl+C to stop recording. - The video file will be stored as recording.mkv in the + The video file will be stored as recording.mp4 in the current working directory. - wf-recorder -f .ext Records the video. Use Ctrl+C to stop recording. @@ -822,7 +822,7 @@ Examples:)"); Video and Audio: - wf-recorder -a Records the video and audio. Use Ctrl+C to stop recording. - The video file will be stored as recording.mkv in the + The video file will be stored as recording.mp4 in the current working directory. - wf-recorder -a -f .ext Records the video and audio. Use Ctrl+C to stop recording.