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

Preserve audio tracks names #1174

Closed
danielwerg opened this issue Jun 1, 2022 · 6 comments
Closed

Preserve audio tracks names #1174

danielwerg opened this issue Jun 1, 2022 · 6 comments

Comments

@danielwerg
Copy link

Describe the bug
Lossless Cut renames audio tracks names on export

Expected behavior
Preserve audio tracks names instead of renaming them to Track N

Screenshots
VLC
Before:
before
After:
after

Desktop

  • OS: Windows 10

Workaround
Is there a way to batch rename videos audio tracks names with some kind of cli?

@oliko-tk
Copy link

oliko-tk commented Jun 1, 2022

Pienso que es irrelevante.. eso lo puedes renombrar tu mismo.

@mifi
Copy link
Owner

mifi commented Jun 3, 2022

any chance you could provide a file that has audio tracks with different names? I've never seen such a file

@danielwerg
Copy link
Author

@mifi I record it using obs, what would be the best way for me to share example video with you?
obs

@danielwerg
Copy link
Author

@mifi
Copy link
Owner

mifi commented Jun 3, 2022

Thanks. It seems like ffmpeg and ffprobe does not support reading track names/titles from mp4:

running ffprobe 2022-06-03.mp4:

[libdav1d @ 0x7f7f08705640] libdav1d 1.0.0-1-g87f9a81
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2022-06-03.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomav01iso2mp41
    encoder         : Lavf58.76.100
  Duration: 00:00:03.32, start: 0.000000, bitrate: 755 kb/s
  Stream #0:0[0x1](und): Video: av1 (Main) (av01 / 0x31307661), yuv420p(tv, bt709), 2560x1440, 32 kb/s, 60 fps, 60 tbr, 15360 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 321 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
  Stream #0:2[0x3](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
  Stream #0:3[0x4](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 57 kb/s
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
  Stream #0:4[0x5](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 309 kb/s
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
  Stream #0:5[0x6](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
  Stream #0:6[0x7](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
[libdav1d @ 0x7f7f08719300] libdav1d 1.0.0-1-g87f9a81

However I tried recording with a custom audio track name from OBS using matroska instead of mp4, and importing to losslesscut, then exporting from losslesscut, and I can see that the audio track name is then preserved.

so maybe you can use mkv instead? then possibly use losslesscut to change it to mp4 and it might preserve the track names

@danielwerg
Copy link
Author

@mifi Just tested and mkv indeed preserves track names. Thank you!

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

No branches or pull requests

3 participants