Commit Graph

35 Commits

Author SHA1 Message Date
Frédéric Tronel 88d9d15496 If we only try to convert from .ts to .mp4 or .mkv, without any cut, do not remove output file. 2023-12-15 09:38:47 +01:00
Frédéric Tronel b1c58fc53a Correction d'un bug qui ne passe pas le chemin de ffmpeg dans la fonction ffmpegConvert. 2023-12-12 12:07:36 +01:00
Frédéric Tronel 4070f34a60 Ajout d'une large partie du code nécessaire à l'extraction des sous-titres via OCR. 2023-12-12 11:57:03 +01:00
Frédéric Tronel cb600b920d Fix message display. 2023-12-02 21:17:16 +01:00
Frédéric Tronel bb5333ffca Add some details to message about extraction of video pictures and audio packets. 2023-12-02 21:15:39 +01:00
Frédéric Tronel 1ed4bbf6df Add a function to retrieve packet duration compatible with multiple ffmpeg versions. 2023-12-02 21:11:59 +01:00
Frédéric Tronel 9a8f97a278 Fix missing calls to getTSFrame. 2023-12-02 21:06:25 +01:00
Frédéric Tronel 650724c966 Fix a typo. 2023-12-02 21:04:07 +01:00
Frédéric Tronel 40592dcec2 Add a function to retrieve timestamp of a frame (with multiple ffmpeg version). 2023-12-02 21:03:15 +01:00
Frédéric Tronel da13f3e9c8 Missing a float conversion. 2023-12-02 20:57:59 +01:00
Frédéric Tronel b4e304d9ab Fix a typo. 2023-12-02 20:56:49 +01:00
Frédéric Tronel 44d47a564c Make the script compatible with older version of ffmpeg. 2023-12-02 20:53:49 +01:00
Frédéric Tronel b8394069fb Correct the name of an optional tool: vobsubocr. 2023-12-02 18:10:18 +01:00
Frédéric Tronel 124772aaeb Closing of memory filedescriptor right after their usage (to save memory). 2023-12-02 17:29:36 +01:00
Frédéric Tronel 076e3c990b Better performances and simplification by removing pipes and using memory file descriptors. 2023-12-02 17:25:55 +01:00
Frédéric Tronel d549311e20 We don't need pygame as a dependency. 2023-12-02 17:23:54 +01:00
Frédéric Tronel 4a1bf64bda A makefile to clean all temp files. 2023-12-01 16:49:59 +01:00
Frédéric Tronel 58ec094cfc A comment to remember how to extract SPS and PPS from a file with ffmpeg. 2023-12-01 16:48:27 +01:00
Frédéric Tronel 0f46dc9fda New functions to extract subtitles at the end of processing. A new option to extract them. 2023-12-01 16:48:01 +01:00
Frédéric Tronel cf4850c8dc The progress bar for pictures extraction are now counted in number of pictures. 2023-12-01 16:47:15 +01:00
Frédéric Tronel ed0494b540 Tools that are search for at startup are now categorized in required and optional. 2023-12-01 16:46:16 +01:00
Frédéric Tronel 22592214bb Add a .gitignore to help having a better git status output. 2023-12-01 16:44:09 +01:00
Frédéric Tronel 0678716c1c Add a .gitignore to help having a better git status output. 2023-12-01 16:43:49 +01:00
Frédéric Tronel 685365388e Adding an option to dump images of trailers and headers of each part for debugging purpose. 2023-11-30 21:06:50 +01:00
Frédéric Tronel 4bd294e26b A better README. 2023-11-30 16:14:20 +01:00
Frédéric Tronel 840aa5c41f The tqdm library is necessary. 2023-11-30 16:13:58 +01:00
Frédéric Tronel 9f9e17e6ca Numerous improvements. The base code is fully functional. 2023-11-30 16:13:11 +01:00
Frédéric Tronel 77b7638573 Fichier textuel pour la gestion des sous-titres vides. 2023-11-28 16:19:42 +01:00
Frédéric Tronel 28933b8281 On gère le framerate de la vidéo. On gère le cas où le début et/ou la fin tombe sur une i-frame. On affiche les timestamps à vérifier dans la vidéo finale. 2023-11-28 16:19:16 +01:00
Frédéric Tronel 73c44f0da3 On ne parse pas les espaces de colorimétrie. 2023-11-28 16:18:19 +01:00
Frédéric Tronel 7b491c6af4 Les début et fin de partie sont réencodées correctement. La fusion fonctionne (presque) correctement. Des sous-titres vides sont ajoutés pour les débuts et fins de partie. 2023-11-28 15:00:58 +01:00
Frédéric Tronel 35e4e76e2f On est capable d'encoder les tête et fin de partie avec presque les mêmes réglages que l'original. 2023-11-28 11:30:50 +01:00
Frédéric Tronel 21a7cba7d5 Inner parts ared dumped as MKV. Head and tail of each part are dumped for video and sound. 2023-11-26 22:47:33 +01:00
Frédéric Tronel d14b5a3890 Initial version of the Python script to remove ads from TV recording. 2023-11-26 18:13:32 +01:00
fred d00d6b314f Initial commit 2023-11-26 18:10:16 +01:00