Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



Share:
Notifications
Clear all

[Solved] File Almost Disappearing

13 Posts
2 Users
3 Reactions
593 Views
(@locutus)
Estimable Member
Joined: 6 years ago
Posts: 189
Topic starter  

First HAPPY HOLIDAYS TO YOU AND YOURS, hope this finds everything well in your world.

 

I ran into a bit of an odd one yesterday. I got Night Has Come (2023) S01 and went to add subtitles to the files and then rename them with RMTV only to find that once RMTV renamed a file the file was dropped to only a few bytes instead of the size it was before I added it to RMTV. I changed the order and did the rename first then added the subtitles and all was fine. I have never seen this behavior before. I have uploaded the original file, it's sub, and a copy of the reduced file. Can you take a look to see why this behavior is happening? Thanks

https://wormhole.app/QaBy3#1dEQ-U8u4VsFfxG0jKZFUQ


   
ReplyQuote
(@locutus)
Estimable Member
Joined: 6 years ago
Posts: 189
Topic starter  

@Hans there is either an issue with the forum or you marked this solved when it's not.


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2728
 

Hey there!

Ehm, I am reading your post just now ... so I'm not sure how this got marked as "solved" - I'll "Unsolved" it 😁 
Will read you question right after posting this 😁 

** Would have been nice if the forum would show a flag when and who flagged a topic as solved. I couldn't find it, this quick.


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2728
 

🧑🏻‍🎄🎄Happy Holidays to you and yours as well!!! 😊 🎅🏻

[insert magic snow tag here haha 😁]

Coming back to your question/issue ...

Posted by: @locutus
I ran into a bit of an odd one yesterday. I got Night Has Come (2023) S01 and went to add subtitles to the files and then rename them with RMTV only to find that once RMTV renamed a file the file was dropped to only a few bytes instead of the size it was before I added it to RMTV. I changed the order and did the rename first then added the subtitles and all was fine. I have never seen this behavior before. I have uploaded the original file, it's sub, and a copy of the reduced file. Can you take a look to see why this behavior is happening? Thanks

(ps the link didn't work)

If the file changed in size, then I can imagine only one of a few things that could happen:

  • a similar named file has been renamed as the subtitle file

This should not happen, since RMTV will rename only files with the same beginning of the filename, and replace that beginning with the new filename. So for example "some filename.mp4" for the episode, say "TV Show - Episode.mp4", would rename like so:

"some filename.srt" -> "TV Show - Episode.mp4"
"some filename.eng.srt" -> "TV Show - Episode.eng.mp4"
"some filename with some more text.srt" -> "TV Show - Episode with some more text.mp4"

If a file with that name already exists, then RMTV will not touch it and report an error.

  • the files are moved to a different location and somehow that goes sideways

In that case I'd think about some sorts of network glitch maybe? Or a disk issue?

 

Either way: RMTV will not "write" into an extra file (eg. subs, nfo's etc) - it will just rename it.
Did you see anything odd in the "new" file? Eg. cut off text?
What kind of while was it? SRT?

Note: did some test, and wasn't able to reproduce this with RMTV 2.1.7 for macOS.
What version and OS are you using?


   
ReplyQuote
(@locutus)
Estimable Member
Joined: 6 years ago
Posts: 189
Topic starter  

You couldn't get the link to work cause it was more than 24 hours after I uploaded those files. Wormhole only keeps them for only 24 hours or 100 downloads, whichever comes first.

 

I'm running the 2.18 for Linux from the AUR. 

STEP:

show s01e01.avi - show s01e01.srt added to MKVToolNix and merged

merged avi srt output from MKVToolNix to create s01e01.mkv

show s01e01.mkv dragged into RMTV renamed by RMTV and dropped in size to just a few bites

 

I have the folder the files were downloaded to, have the srt files in a subfolder of that, tell MKVToolNix to save it's output to another folder, those files are the right size,

drag to RMTV, click rename, and when done the file name is correct, file MKV file extension is the same, but the file is reduced to a few bytes

 

OK did one more test, copied both the avi and srt for ep1 to the desktop, dragged to MKVToolnix and combined, deleted the avi and srt from the desktop, launched RMTV and checked all it's settings and they are fine, dragged the MKV to RMTV and renamed, output file is 4.2 KIB

 

https://wormhole.app/2pj1Q#K8f3UfkWLwK9KcX8hNDBuQ


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2728
 

Posted by: @locutus
You couldn't get the link to work cause it was more than 24 hours after I uploaded those files. Wormhole only keeps them for only 24 hours or 100 downloads, whichever comes first.

I figured as much 😉 

Did you try placing the "show s01e01.mkv" in a different directory where it wuld be sitting all alone?
(I still would not have a good explanation why the filesize changed)
You can try uploading the weird file here, especially when it's a tiny file.
And probably a dumb question: but "show s01e01.mkv" does play correctly right?


   
ReplyQuote
(@locutus)
Estimable Member
Joined: 6 years ago
Posts: 189
Topic starter  

I'll have to upload to Wormhole again cause when I tried the log file both as is and then zipped both times here got told file type not allowed. I'll upload the original srt and avi, and the output mkv directly from MKVToolNix and then the odd MKV after attempting to rename it along with the log from attempting to rename again.

 

As for putting the file in it's own folder yes. I had nothing on the desktop when I dragged both the avi and srt to it. Once I merged the files in MKVTYoolNix I deleted the avi and srt leaving only the merged mkv. I then dragged that to RMTV and once renamed was reduced in size again. Give me about 5 min to get you a new link.

 


   
ReplyQuote
(@locutus)
Estimable Member
Joined: 6 years ago
Posts: 189
Topic starter  

https://wormhole.app/3Wp61#VRsGLfcrZsNiD-ZuFcSJKg


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2728
 

I can see why you didn't upload it in the forum 😉

After a bunch of testing I think I may have found the issue!

I noticed with a hex-viewer that the small file only seems to have meta data of the video file, actually more meta data than the original file had, which led me to believe it must have something to do with updating the meta data in the file. This is the only time when a file gets (re)written. 
Since I never use this (way too slow for my taste haha), I had completely forgotten about its existence.

So indeed, it seems you have set RMTV to update the file's meta data - it is the option "Update or Add MetaData in video file" (in "Settings" - "Renaming Rules", just below "Enable FFProbe"). This is when I can reproduce the exact same problem.

This is actually executed by ffMPEG.

 

Now my question would be if this is the only file you have seen this happen with?
Just wondering why it happens. Sometimes one sees oddities like this when text is used and some special characters were used (in the meta data in this case). I was not able to see any special characters in the title or episode plot. Renaming it as a different episode did exactly the same thing, confirming the plot/title is unlikely the problem.

I did some tests, and even though I didn't find the exact cause, I did see a few things;

1) your file has 2 subtitles - is this correct?

When opening this with my media player (IINA and VLC) it shows 2 subtitles, but when opening it with MKVTools, it shows only one?

2) when rebuilding an MKV with your AVI and SRT using MKVTools ...

  - IINA, VLC and MKVTools show only one subtitle
  - renaming still causes the same issue, but instead of a ~4Kb file it now results in a ~6Kb file

3) You MKV crashed my media player once - could be a coincidence though.

 

I quickly transcoded it with Handbrake. Well, since I've never seen this speed, I did take a screenshot:

It's on a Apple Macbook Pro M1 Max, doing more than 1150 fps for h264 transcoding. 😱 

Anyhoo ... after recovering from that shock, I did rename the new MKV file with the same setting, and ... that worked perfectly fine.

You can find the file here at Wormhole (I had never heard of them - cool!).

 

So without concrete proper proof what exactly goes wrong, my gut tells me there is something goofy going on with the original video file.


   
Locutus reacted
ReplyQuote
(@locutus)
Estimable Member
Joined: 6 years ago
Posts: 189
Topic starter  

Yes one hardcoded Japanese and the English one I added. Because the one is hardcoded it will not show up in MKVToolNix. As for speed I expected 5 seconds to 1 minute per episode in MKVTN, but it finished in under 2 seconds. Yes as for what's causing the issue I do believe it is the avi files that are messed up, luckily since my last post I FINALLY found all 12 episodes on one site each under 600 megs with English Subs at 1080p. Half are finished downloading already.  All I have to do once they're all finished downloading is rename them, and yes I already tested one and no issue as I suspected there wouldn't be. This seems to be some strange one off so I won't worry about it considering the amount I've used your program in just the last couple of months with no issue.

 

On a side note glad you like Wormhole, here's the one site I got the files from. Thanks for the help on this, much appreciated.

 

https://ww8.dramacoool.co/


   
Hans reacted
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2728
 

Cool 👍  - I know how satisfying it can be to finally find the episodes you're looking for. Especially for a rare TV show or movie.

Thanks for sharing the link!

Please mark the topic as resolved, if you agree of course - I always let the OP mark a topic as "solved", not sure how it got flagged like that before. 😊 


   
ReplyQuote
(@locutus)
Estimable Member
Joined: 6 years ago
Posts: 189
Topic starter  

Seems like the forum is auto doing it. Cause I marked it unsolved, then you noticed it was marked solved again and marked it unsolved, and when I went to mark it solved it was already checked again. Thanks again for the help.


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2728
 

Just marked it "solved". I think the buttons are confusing.

It shows "unsolved" but what they mean to say is "click here to mark this thread as unsolved".
Confusing IMO. 

Oh well ...

As usual: you're most welcome!
Have a good New Years eve and have a great 2024!


   
Locutus reacted
ReplyQuote
Share: