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

Changing tags corrupts MP4 videofile #310

Open
onionware-github opened this issue Oct 2, 2022 · 0 comments
Open

Changing tags corrupts MP4 videofile #310

onionware-github opened this issue Oct 2, 2022 · 0 comments

Comments

@onionware-github
Copy link

When I try to change the tags of a downloaded video from TikTok with yt-dlp, it corrupts the file. Curiously, the problem occurs with TikTok videos. When I change the tags with EasyTAG it works. So I think the problem is with taglibsharp. If I manually reencode the video (h264) after downloading it, I don't get any problems changing the tags with TagLibSharp.

Steps to reproduce:

  1. Download a video from TikTok with yt-dlp or OnionMedia.
  2. Change tags like title or description with TagLibSharp.
  3. Add the video to the convertpage of OnionMedia => Failed
    ---------- OR ----------
    Open the video with ffmpeg (ffmpeg -i [path]) produces this output:
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001715ccd0600] The 'keys' atom with the invalid key count: 1819505664
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001715ccd0600] error reading header
C:\Users\Jaden\Downloads\bahnvideo.mp4: Invalid data found when processing input

Summary: With EasyTAG I can edit the file instant without any problems, with TagLibSharp I have to recode it again to H264 first, otherwise it will be corrupted. As far as I know, this only affects downloaded TikTok videos so far, this problem do not exist with YouTube downloads.

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

1 participant