Skip to content

Instantly share code, notes, and snippets.

View allansrc's full-sized avatar
🇧🇷
from Home to the World

Allan Ramos allansrc

🇧🇷
from Home to the World
View GitHub Profile
@allansrc
allansrc / build_ffmpeg_command.py
Created November 5, 2024 04:20 — forked from akitaonrails/build_ffmpeg_command.py
Try to convert Netflix videos into an open MKV format
# Procedure:
# - download the episodes you want from the Android Netflix app (there is a limit)
# - connect your smartphone to your PC and navigate to Internal Storage/Android/data/com.netflix.mediaclient/Download/.of.
# - fetch each directory (each directory is one episode)
#
# Each directory should have the following file formats:
# - .nfv - the video stream, possibly already in H.264, unencrypted
# - .nfa - the most difficult file to deal with, it's an unencrypted AAC file in ISO fMP4 (fragmented) format and an unknown "object type 42" that ffmpeg complains
# - .nfs - subtitle in TTML format with custom properties.
# - .nfi - information about the download (unknown format)
@allansrc
allansrc / Flutter Video player Example
Last active January 17, 2025 23:07
video_player: ^2.9.2
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text("Jarbas Video Player"),
),
requestPostWithFile() async {
final file = File('path');
final formDataRequestObject = FormData.fromMap({"objeto": "address"});
formDataRequestObject.files.add(
MapEntry('files', await MultipartFile.fromFile(file)),
);
final response = await Dio().post(URI, data: formDataRequestObject);
}