Skip to content

Instantly share code, notes, and snippets.

View arjavlad's full-sized avatar
🏠
Working from home

Arjav Lad arjavlad

🏠
Working from home
View GitHub Profile
@arjavlad
arjavlad / hls.sh
Created November 9, 2024 15:46 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@arjavlad
arjavlad / AVAsset+VideoOrientation.h
Created July 5, 2017 12:06 — forked from luca-bernardi/AVAsset+VideoOrientation.h
Find the video orientation of an AVAsset. (Useful if you need to send the video to a remote server)
//
// AVAsset+VideoOrientation.h
//
// Created by Luca Bernardi on 19/09/12.
// Copyright (c) 2012 Luca Bernardi. All rights reserved.
//
#import <AVFoundation/AVFoundation.h>
typedef enum {
LBVideoOrientationUp, //Device starts recording in Portrait