mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #1669] [CLOSED] [FEAT] Added --list-tracks option to display available tracks in media files #2377
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1669
Author: @RemZapCypher
Created: 2/28/2025
Status: ❌ Closed
Base:
master← Head:preview_subs-inter📝 Commits (5)
f5bd566checkpoint_11116140added code for preview subs95b2183Merge branch 'CCExtractor:master' into preview_subs-interab70c12added fix for workflow0dcadbaMerge branch 'master' into preview_subs-inter📊 Changes
15 files changed (+294 additions, -11 deletions)
View changed files
📝
docs/CHANGES.TXT(+1 -0)📝
src/ccextractor.c(+70 -0)📝
src/lib_ccx/ccx_common_option.h(+1 -0)📝
src/lib_ccx/ccx_encoders_common.c(+1 -1)📝
src/lib_ccx/file_functions.c(+5 -1)📝
src/lib_ccx/lib_ccx.h(+1 -0)📝
src/lib_ccx/matroska.c(+48 -2)📝
src/lib_ccx/matroska.h(+1 -0)📝
src/lib_ccx/mp4.c(+90 -7)📝
src/lib_ccx/params.c(+8 -0)📝
src/lib_ccx/ts_functions.c(+57 -0)📝
src/rust/lib_ccxr/src/common/options.rs(+3 -0)📝
src/rust/src/args.rs(+3 -0)📝
src/rust/src/common.rs(+1 -0)📝
src/rust/src/parser.rs(+4 -0)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
This PR adds a new command-line option --list-tracks that allows users to list all available tracks in an input file and exit without processing the file for subtitle extraction.
When working with complex media files that contain multiple tracks, it's often difficult to know which track contains the subtitles you want to extract. This feature provides a simple way to explore the file structure before running a full extraction, making it easier to:
Implementation
Example Usage
This will display information about available tracks in the file rather than extracting subtitles.
Testing
The feature has been tested with various media file formats including MP4, MKV, and TS files containing multiple subtitle tracks. It correctly lists available tracks and exits without performing extraction.
Distribution Used: Fedora Linux
TS Files:
MKV Files:
MP4 Files:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.