Skip to content

All recorded videos appear to be corrupt (?) #152

@Hubro

Description

@Hubro

I record videos with this script:

#!/bin/bash

# Convenience script for recording under sway

if [[ -z "$1" ]]; then
    echo "Fatal error: First argument must be the recording destionation" >&2
    exit 1
fi

wf-recorder \
    -g "$(slurp-window)" \
    -c libx264rgb \
    -p "tune=animation" \
    -p "preset=faster" \
    -p "crf=14" \
    --audio="alsa_output.pci-0000_11_00.4.analog-stereo.monitor" \
    --file "$1"

The resulting video plays well with mpv and VLC, but if I try to embed it in a browser it doesn't work:

test.mp4

If I try to open the file in Avidemux to re-encode it, all it shows is a green box:

image

Does anybody else have this issue? Is it an issue with wf-recorder or with my ffmpeg parameters?

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