-ac 2 convert the 4 audio channels to 2.-filter_complex amerge merge the 2 audio streams.-i default normally the system microphone.-f pulse the audio driver again (maybe not needed?).-i :0.0 the X11 screen ID, (can also add +x,y for offset).-f x11grab record the screen (screen recordings may not be possible on wayland?).-video_size "$V" resolution of your screen (or less if you only want a subsection recorded).*/$1/g')"įfmpeg -loglevel error -video_size "$V" -f x11grab -i :0.0 -f pulse -i "$A" -f pulse -i default -filter_complex amerge -ac 2 -preset veryfast "$F" V="$(xdpyinfo | grep dimensions | perl -pe 's/.* (+x+). This method, instead of that option, directly encodes to file, changes format to yuv420p (accepted by display) and uses -f xv display to display video to screen.Framerate applied to both streams, but since ffmpeg documentation examples are scattered I'll leave an answer here A="$(pacmd list-sources | grep -PB 1 "analog.*monitor>" | head -n 1 | perl -pe 's/.* //g')"į="$(date -iso-8601=minutes | perl -pe 's/+//g').mkv" : I changed part of the code to get rip of the 1 second lag that -f tee generates. Source: Answer from and ffmpeg Documentation. To know what your audio source input is, check here. Instead of -f alsa -i hw:2,0, I use -f pulse -i alsa_b-046d_HD_Pro_Webcam_C920_22F75AFF-02.analog-stereo that it is my webcam microphone. I prefer to use pulseaudio as audio input, so I can change it with pavucontrol on the fly. If so, you have to add hflip to the video filter. This is the command I started to use to capture with video in good quality and with audio. I came here looking for the same command and the one from works, but with no audio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |