#
linuxweb.net

linuxweb.net
improve websites creatively

login
register for free!
shopping cart
en
Choose your language/Sprache auswählen:
English:en|Deutsch:de

CMS Corporate Design/Logo Server Apache fine tuning Linux ( ) linuxweb.net

Desktop capture ffmpeg alsa issues

Prevent alsa buffer underrun x11grab ffmpeg, and some shell script stuff you might like ...

 date='date +%Y-%m-%d-%H:%M:%S'
 
 INC_COUNT_FILE="/home/shorty/capture/videocount"
 OLD_INC_COUNTER=$(cat "$INC_COUNT_FILE")
 NEW_INC_COUNTER=$(expr "$OLD_INC_COUNTER" + 1)
 echo $NEW_INC_COUNTER > /home/shorty/capture/videocount
 CUR=$(cat "$INC_COUNT_FILE")
 
 textmsg="$( kdialog --title "Input dialog" --inputbox "Message"  "Neverwinter - Ranger - Gameplay - $CUR")"
 kdialog --msgbox "Press OK to start grabbing ;) .\n File=hd1080-capture_$CUR.mkv \n\n Further converting to 720p"
 #-thread_queue_size 1024 # QHD+ (3200×1800)
 ffmpeg -f alsa -thread_queue_size 1024 -ac 1 -i default -async 1 -f x11grab -s hd1080 -strict 2 -r 25 -i :0.0 -ar 44100 -ab 164k -acodec libvo_aacenc -vcodec libx264 -b:v 65k -bufsize 64k -pix_fmt yuv420p -preset ultrafast -crf 0 -maxrate 65k -threads 4 -vsync 1 -qp 0 -vf "movie=/home/shorty/LAYOUT/pfadlogoborder.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" -y  /home/shorty/capture/hd1080-capture_$CUR.mkv 
 #-filter_complex "unsharp=luma_msize_x=7:luma_msize_y=7:luma_amount=2.5,scale=1280:-1,format=gray,format=yuv422p"
 # -preset ultrafast -nocache  
 ffmpeg -i /home/shorty/capture/hd1080-capture_$CUR.mkv -s hd720 -aspect 16:9 -vcodec libx264 -pix_fmt yuv420p -b:v 6500k -acodec libmp3lame -ar 44100 -ab 128k -af volume=1.953125 -vf "unsharp=luma_msize_x=7:luma_msize_y=7:luma_amount=2.5,scale=1280:-1,drawtext=fontcolor=purple: enable='between(t,01,15)': fontsize=64:\
                      fontfile=/home/shorty/TTF/Neverwinter.ttf: \
                      box=1:boxcolor=black@0.0:x=50:y=20: \
                      text=$textmsg" \
                      /home/shorty/capture/hd720-final_$CUR.mkv 
 DUR=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 /home/shorty/capture/hd720-final_$CUR.mkv)
 kdialog --msgbox "Duration: $DUR";
 mplayer -fs  -loop 0 /home/shorty/capture/hd720-final_$CUR.mkv 

- 2030 Chars , Views: 3359 Bewerten:           Rating:3
letzte Aktualisierung 2017-06-24 08:38:33 von admin

tuxlayer

ss editEdit/configureConfig

countercountercountercounter
1mute no beep

screenshot
Besucher (set cookie)
Content Management System News Xwax Linux livestreams Bilder Statistics live streams Welcome Shorties Linux CMS OpenSource linuxweb.net improve websites

Content Management System