Skip to content

strange output file #38

@Lewiscowles1986

Description

@Lewiscowles1986

Thanks for the great tool 👍 ! Also Merry Christmas 🎄

After testing the tool it creates the files I requested (.mp4 & .gif), but also a file called ffcom as well as leaving temp.mkv

#!/bin/bash
# Output from genffcom for screencast#=1

printf "Click OK when ready to start recording.

To Stop Recording:
Click the stop icon in the Notification Area" \
| yad ---text-info --on-top --center --width=440 --height=280 --wrap --title="Get Ready" --window-icon="/home/lewis/.silentcast/record1".svg --text="\
<b>SILENTCAST 1                </b><span font='24' color='green'>1</span>"
(($? != 0)) && exit 1 #Cancel was clicked

ffmpeg -f x11grab -s 732x523 -r 8 -i :0+782,24 -c:v ffvhuff -an -y /home/lewis/silentcast/temp.mkv & ffmpegPID=$!
if [ "$XDG_CURRENT_DESKTOP" = "Unity" -o "$XDG_CURRENT_DESKTOP" = "Pantheon" -o "$KDE_SESSION_VERSION" = "5" ]
then
        echo "Unity, Pantheon, or Plasma 5 detected. Switching indicators..."
	python ./unity_indicator.py 1
else
    yad --notification --image="./stop1.svg" --text="1"
fi
kill $ffmpegPID
wait # make sure ffmpeg is killed before exit or else can get stuck here

Any way to auto-clean up these files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions