This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INPUT=$1 | |
# TY https://github.com/paulpaul999/vr-video-notes/blob/main/vr-to-flat/README.md | |
ffmpeg -i $INPUT -filter_complex " | |
[0:v]crop=iw/2:ih:0:0[left]; | |
[0:v]crop=iw/2:ih:iw/2:0[right]; | |
[left]v360=input=hequirect:output=flat:d_fov=125:w=1920:h=1080:pitch=0[flattened_left]; | |
[right]v360=input=hequirect:output=flat:d_fov=125:w=1920:h=1080:pitch=0[flattened_right] | |
" \ | |
-map "[flattened_left]" -c:v libx265 -crf 18 -pix_fmt yuv420p flattened_left.mp4 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
from typing import Callable, Any | |
from youtube_transcript_api import YouTubeTranscriptApi | |
from youtube_transcript_api.formatters import TextFormatter | |
class EventEmitter: | |
def __init__(self, event_emitter: Callable[[dict], Any] = None): | |
self.event_emitter = event_emitter |
OlderNewer