Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process/cut proprietary tracks #1438

Open
mifi opened this issue Jan 27, 2023 · 7 comments
Open

Process/cut proprietary tracks #1438

mifi opened this issue Jan 27, 2023 · 7 comments

Comments

@mifi
Copy link
Owner

mifi commented Jan 27, 2023

LosslessCut is only able to cut the tracks that ffmpeg has implemented support for. Currently only these:

  'video',
  'audio',
  'subtitle',
  'attachment',

const defaultProcessedCodecTypes = [

Other tracks (notably data) will be disabled by default. The user can enable them but if trying to cut, ffmpeg will probably copy them as-is without cutting. this will cause the duration of the output file to be incorrect. (not according to the cuts).

I'm not sure how one would implement such cutting.

GoPro gpmd (GPMF?) format #1428

https://community.gopro.com/s/question/0D53b00008BtEHHCA3/gopro-telemetry-resources-software

@mvitr
Copy link

mvitr commented Jan 3, 2024

Does this maybe help somehow? https://www.reddit.com/r/ffmpeg/comments/15vqj00/saving_gopros_tcd_time_code_stream/

ffmpeg -i Original.MP4 -ss 1:30 -to 2:00 -tag:d:1 'gpmd' -copy_unknown -map_metadata 0 -c copy -map 0:u Output.MP4

ffmpeg -i Original.MP4 -ss 1:30 -to 2:00 -tag:d:1 'gpmd' -copy_unknown -map_metadata 0 -c copy -map 0:v -map 0:a -map 0:d? Output.MP4

@mifi
Copy link
Owner Author

mifi commented Jan 4, 2024

I think -map 0:d? would be the same as adding data to defaultProcessedCodecTypes. This would cause the stream(s) to be copied but not cut, causing problems described above

@AbsoBarrier
Copy link

So do we have any way to drop the data track with Losslesscut.
Also the chapters, I don't know if it is stored in the data track.
I am really new to ffmpeg and I do not know how to let my output contain only video and audio the two tracks without chapters stored.

@mifi
Copy link
Owner Author

mifi commented Apr 11, 2024

@AbsoBarrier data tracks will be dropped by default.

@AbsoBarrier
Copy link

@AbsoBarrier data tracks will be dropped by default.

There is a track created by bin_data txt connected with the video track, no matter how I deal with the output, it would survive, I tried export the video track and get a mp4 file contains 1/2 tracks.

@mifi
Copy link
Owner Author

mifi commented Apr 11, 2024

even if you go to the tracks panel and disable the track, it gets included? don't know how to fix that, but maybe you can share some info about the file in a new issue https://github.com/mifi/lossless-cut/issues/new?assignees=&labels=&projects=&template=1-file-issue.yml

@AbsoBarrier
Copy link

even if you go to the tracks panel and disable the track, it gets included? don't know how to fix that, but maybe you can share some info about the file in a new issue https://github.com/mifi/lossless-cut/issues/new?assignees=&labels=&projects=&template=1-file-issue.yml

Alright, I don't know why but mergecuts destroyed the chapters and the data track. I don't know why but I swear I was really troubled by these two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants