home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 85,545 of 87,272   
   Joe Rosevear to James H. Markowitz   
   Re: Screen recording under Slackware   
   02 Jan 22 01:40:32   
   
   From: Joe_Rosevear@localhost.invalid   
      
   James H. Markowitz  wrote:   
   >         Any recommendations on software to record an XFCE session with   
   > sound under Slackware?   
   >   
      
   I have a script that I wrote a few years ago which records from a   
   webcam or from the screen plus audio.  It is the result of several   
   years of struggling with the complexities of ffmpeg and sox.  You might   
   notice that it records audio and video seprately, but simultaneously,   
   then combines them.   
      
   Here it is:   
      
   #!/bin/sh   
   # avrec   
      
      
      
   # Joseph Rosevear 200801 I wrote this script.   
      
      
      
   # Check arguments.   
   if [ \( "$#" -gt "2" \) -o \   
        \( \( "$#" -eq "2 " \) -a \   
           \( "$2" != "screen" \) \) ]; then   
      
      cat << DONE   
      
   $0: Error:   
   You must supply the base of the output file as \$1 and optionally   
   provide "screen" as \$2.   
      
   If you provide \$2 in this way, then this script will record from   
   the screen instead of from the webcam.   
   DONE   
      
      exit   
   fi   
      
   rm $1.avi   
   rm temp.wav temp_normal.wav temp.avi   
      
   rec temp.wav&   
      
   # If $2 is "screen", then record the screen.  Otherwise record from the   
   # webcam.   
      
   if [ "$2" = "screen" ]; then   
      
      ffmpeg -loglevel quiet \   
      -f x11grab \   
      -s 1024x768 \   
      -i :0.0 \   
      -c:v huffyuv temp.avi   
      
   else   
      
      ffmpeg -loglevel quiet \   
      -f video4linux2 -input_format yuyv422 \   
      -s 640x480 \   
      -i /dev/video0 \   
      -c:v copy temp.avi   
   fi   
      
   killall rec   
      
   sox --norm temp.wav temp_normal.wav   
      
   ffmpeg -i temp.avi -i temp_normal.wav \   
   -vcodec copy -acodec copy $1.avi   
      
   rm temp.wav temp_normal.wav temp.avi   
      
      
   --   
   https://JoesLife.org   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca