atlemacks 1 Posted October 28, 2021 Share Posted October 28, 2021 OK, so quick scenario, I have a Shared Drive where I store all my videos within my personal organizations Google Drive, then I use the Drive client app to "stream" the content back to my PC that runs the Emby Server. I replaced one of my m.2 SSD's 2 weeks ago with a Gen 4 PCIe SSD (up from Gen 3), cloned everything from the original boot drive no issues whatsoever. Literally everything else works, even the other files contained within the folders Emby stores the thumbnails, etc. So, I am wondering if what was cached was the mp4 header? That seems to be what is missing. The videos will not even open on VLC (Windows 10 or 11), and they seem to be missing properties like runtime in the properties tab for the file. Here's where it gets even weirder. Because the files are stored on Drive, I figured I would try playing one that can't be played by Emby or Windows in the baked in media player. They all work perfectly fine from there. New media that I have added to Emby since this incident works perfectly fine and some of the movies I have randomly audited just to see if maybe it's only like the first 100/1113 or whatever, work perfectly fine as well. So, I am just assuming the drive migration had something to do with it. My question is, is there a way to fix these files, preferably in batch? I have tried the whole ordeal with VLC, and Wondershare, neither of them seemed to work. They can't be imported into Adobe Media Encoder or Premier either. Thanks in advance! Link to comment Share on other sites More sharing options...
atlemacks 1 Posted October 28, 2021 Author Share Posted October 28, 2021 >> ThrottleBySegmentRequest: Initialize - TargetBufferSize: 120s 2021-10-28 18:34:55.036 Operating System: Microsoft Windows 10.0.22000 OS/Process: x64/x64 Emby Server version: 4.6.4.0 Operating system: Microsoft Windows NT 6.2.9200.0 Command Line: D:\Emby Server\system\EmbyServer.dll App: Emby Web 4.6.4.0 Chrome http://localhost:8096/emby/videos/1060/live.m3u8?DeviceId=090a540d-7474-4c78-a5c5-7b6892bf1951&MediaSourceId=a170d91e2db7b3c5bd248a498acbc5d4&PlaySessionId=5089566f4dbe42dc8dee7ebb1d0145c6&api_key=ec0178314e63407b9237a622602d0e2e&VideoCodec=h264&VideoBitrate=140000000&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=52&TranscodeReasons=VideoCodecNotSupported,DirectPlayError&allowVideoStreamCopy=false&allowAudioStreamCopy=false {"Protocol":"File","Id":"a170d91e2db7b3c5bd248a498acbc5d4","Path":"G:\Shared drives\Emby\Vacation Friends (2021) [1080p] [5.1] \Vacation.Friends.2021.1080p.x264.AAC5.1.mp4","Type":"Default","Container":"mp4","Size":0,"Name":"Vacation.Friends.2021.1080p.x264.AAC5.1","IsRemote":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[],"Formats":[],"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false} >>>>>> User policy for Drew EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True D:\Emby Server\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "D:\Emby Server\programdata\logs\ffmpeg-transcode-ab3734af-adf3-4d22-a66d-0ef7928c9040_1graph.txt" -copyts -start_at_zero -f mp4 -i "G:\Shared drives\Emby\Vacation Friends (2021) [1080p] [5.1] \Vacation.Friends.2021.1080p.x264.AAC5.1.mp4" -vn -an -sn -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "G:\Shared drives\Emby\transcoding-temp\AF722A.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_list_entry_prefix hls/AF722A/ -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "G:\Shared drives\Emby\transcoding-temp\AF722A_%d.ts" 18:34:55.241 ffmpeg version 4.3.0-emby_2021_02_27-g8f222573e9+634 Copyright (c) 2000-2021 the FFmpeg developers and softworkz for Emby LLC 18:34:55.241 built with gcc 9.2.0 (Rev2, Built by MSYS2 project) 18:34:55.241 Execution Date: 2021-10-28 18:34:55 18:34:55.259 [mov,mp4,m4a,3gp,3g2,mj2 @ 000002654253eb00] reached eof, corrupted CTTS atom 18:34:55.259 [mov,mp4,m4a,3gp,3g2,mj2 @ 000002654253eb00] error reading header 18:34:55.260 G:\Shared drives\Emby\Vacation Friends (2021) [1080p] [5.1] \Vacation.Friends.2021.1080p.x264.AAC5.1.mp4: End of file 18:34:55.260 ======= ExtraData H4sIAAAAAAAACq1Wa2vbMBT9K8Ew2MB2HSfr61vWF6G0Hetroy7mJrp2tEmWkeQ0Wel/n+RHk9QJaWGBBFk65z5O7r3ys3MkOIeMOIfPzillGqVaWT48vrjOGRMjYFe5piIrj6vlHbACLebZuQSOzqEzd1yn3L3Wkmap2dGyQOfFfUXkZl/HqYR8ouKEMmwxjg+j6ISP5p1rlFOUUZRLYfCcgIYoYiJVUZQkPMfU0xIyNRYEPRj19np9SDwgSc/rkzD0YHeXeAEmewfh/vgg6Adxt3Tr65lejmgs8rlWWwNXGqSOQcd/UYoNaKvVMMsLXYlyjLyYoSz1RNCFxNoWF1OX532X98Htpbn5hi7/HRqrNe5mnltcY8B1Nmv/+NI4HWYEZ85hUD9+l0KLsWBt97Xsq75WOVs9vqMYkpZKJudKJLODwCv0UA0KLY7R/o9GqwSYQte5QELhnNrCdO4oQbElJLdCVYYt4siYG9eR3F6eX17dXzo1qDyy29mfTDxlZnuohpmpdwZjJK8hLPSsrNZCNdEM1TEmUDC9IKhTIZctDBi7gbQM0J6ezIyPDFh9bmRsZW/raDX5QUHo9uRL1LbkS9Ca5Nfn2Tj+D3ma3VtpHp0z09vXE5BIOkTSKaqq1aPoDsZgk+qcSooZUZ3PYRB2v3QeusF+kD92Hu5Pvv2gdvHV75rfXzfX/sXPxwXRr4m+5fkly684/izc7fuDwZFheg3Rr0rRyFro1369WN+tClOOmW51TAV/VyvUJuJESA56TV9gamJYnjY1gVHVhm9UsZmHBuZp5HkUDU73wnDg816xv8l8rG06rZA2MDTlbXBvo22zkPM4l5jQWYs2YWqnCnBnnYFq4mYFH5Uyr3KDZYbpFDqlpAAWTxBMI8VGCTPk2rSyIJepT5Jq/DCrCbFiW6k33gjvm5UcZjFBBu0L9GtQfpa9w1RQEmeYmsqfGvfty4tQBSNmOnSJ1R7HTWEvgTjkMUcN9rJt4b3uW+h Link to comment Share on other sites More sharing options...
Luke 37064 Posted October 29, 2021 Share Posted October 29, 2021 Hi, if any are mkv, then mkvtoolnix is usually a good bet. I haven't used it in a long time so I'm not sure if it accepts MP4 input. Link to comment Share on other sites More sharing options...
atlemacks 1 Posted November 12, 2021 Author Share Posted November 12, 2021 On 10/28/2021 at 9:32 PM, Luke said: Hi, if any are mkv, then mkvtoolnix is usually a good bet. I haven't used it in a long time so I'm not sure if it accepts MP4 input. I will check it out, I started re-ripping my library as I couldn't find anything that worked. Thanks! Link to comment Share on other sites More sharing options...
rbjtech 4260 Posted November 15, 2021 Share Posted November 15, 2021 The issue with 'corrupt' files, especially large media files, is trust that they are 100% ok - you don't want to find that it errors @ 95% when you are 2 hrs into the film ! The best course of action if you do suspect them of being corrupt is to re-rip them, but if that is not possible, then a demux and remux to a new MKV will advise you of any errors. Link to comment Share on other sites More sharing options...
atlemacks 1 Posted November 17, 2021 Author Share Posted November 17, 2021 On 11/15/2021 at 11:31 AM, rbjtech said: The issue with 'corrupt' files, especially large media files, is trust that they are 100% ok - you don't want to find that it errors @ 95% when you are 2 hrs into the film ! The best course of action if you do suspect them of being corrupt is to re-rip them, but if that is not possible, then a demux and remux to a new MKV will advise you of any errors. I ended up starting the process of re-ripping them all. Rather than scrubbing thru every single movie, or wasting the time trying to fix them. It sucks since it's time consuming, but at least I can do other things or walk away while it's in the background. 1 Link to comment Share on other sites More sharing options...
Spaceboy 2493 Posted November 18, 2021 Share Posted November 18, 2021 I've been using tdarr to remove all non english subs and audio from my media. one of the things it does is a health check on every file before it processes it. if it fails the health check then i know the file is corrupt and i replace it. it has nice logging and display of all statuses. 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now