Giter VIP home page Giter VIP logo

jspw / little-fun-stuffs Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 5.0 49.55 MB

Fun codes,scripts and programs i have written to do my personal stuffs

Python 98.84% PowerShell 0.02% Shell 0.03% JavaScript 0.01% CSS 0.01% C++ 0.01% C 0.86% Fortran 0.02% Smarty 0.01% HTML 0.01% Cython 0.21%
python3 venv virtualenv scraper selenium chrome-webdriver bs4 request beautifulsoup4 csv pandas numpy

little-fun-stuffs's Introduction

little-fun-stuffs's People

Contributors

jspw avatar pavtiger avatar trellixvulnteam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

little-fun-stuffs's Issues

Add a prompt asking if user wants his original files to be deleted

I think a script that converts mkv to mp4 should not delete original files. User can do that by himself if he decides that the he is glad with the converted result and doesn't require original files, what if the result turns out to be corrupted somewhere in the converting process. Then all my data is lost! Furthermore, for some like me, I like to keep all sources just in case.

That being said, I do see this feature being useful for some people, so I think the best choice would be to introduce a prompt asking user if he wants his original files to be deleted and the default choice should be "No".

You can't just delete user's files without asking him.

does not copy over subtitles to the new mp4

When I run (the latest ver. ffmpeg as of this post) the following:

_ffmpeg -i /INPUTFILE.mkv -codec copy OUTPUTFILE.mp4_

The subtitle stream is not copied over.


INPUTFILE.mkv details:

Input #0, matroska,webm, from 'INPUTFILE.mkv':
Metadata:
creation_time : 2022-06-19T09:43:26.000000Z
encoder : libebml v1.4.2 + libmatroska v1.6.4
TITLE : Encoded By: mkvAnime
Website : Google Search - mkvAnime.com
Duration: 02:21:53.31, start: 0.000000, bitrate: 4073 kb/s
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x804 [SAR 1:1 DAR 160:67], 24 fps, 24 tbr, 1k tbn (default) (forced)
Metadata:
title : mkvAnime
BPS : 3432045
DURATION : 02:21:53.167000000
NUMBER_OF_FRAMES: 204316
NUMBER_OF_BYTES : 3652196555
_STATISTICS_WRITING_APP: mkvmerge v62.0.0 ('Apollo') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2022-06-19 09:43:26
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(hin): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) (forced)
Metadata:
title : mkvAnime
BPS : 640000
DURATION : 02:21:53.312000000
NUMBER_OF_FRAMES: 266041
NUMBER_OF_BYTES : 681064960
_STATISTICS_WRITING_APP: mkvmerge v62.0.0 ('Apollo') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2022-06-19 09:43:26
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: subrip (default) (forced)
Metadata:
title : mkvAnime
BPS : 56
DURATION : 02:11:49.833000000
NUMBER_OF_FRAMES: 1950
NUMBER_OF_BYTES : 55494
_STATISTICS_WRITING_APP: mkvmerge v62.0.0 ('Apollo') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2022-06-19 09:43:26
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTE


OUTPUTFILE.mp4 details:

ffprobe -i OUTPUTFILE.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from OUTPUTFILE.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomdby1iso2avc1mp41
title : Encoded By: mkvAnime
encoder : Lavf59.27.100
Duration: 02:21:53.31, start: 0.000000, bitrate: 4079 kb/s
Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x804 [SAR 1:1 DAR 160:67], 3432 kb/s, 24 fps, 24 tbr, 16k tbn (default) (forced)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:10x2: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 640 kb/s (default) (forced)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Side data:
audio service type: main

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.