Skip to content

Instantly share code, notes, and snippets.

View romanr's full-sized avatar
😶

Roman Roan romanr

😶
View GitHub Profile
@romanr
romanr / lastframe.sh
Created October 21, 2024 15:50 — forked from NelsonMinar/lastframe.sh
Extract last frame of a video file
#!/bin/bash
fn="$1"
of=${fn%.*}.jpg
lf=`ffprobe -show_streams "$fn" 2> /dev/null | awk -F= '/^nb_frames/ { print $2-1 }'`
rm -f "$of"
ffmpeg -i "$fn" -vf "select='eq(n,$lf)'" -vframes 1 "$of" 2> /dev/null
@romanr
romanr / main.dart
Created October 24, 2024 08:58 — forked from av/main.dart
Flutte: magic
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
void main() async {
runApp(MyApp());
}
/// Represents some additional [Color]s to be used
/// across the application