(30.08.2021, 05:55)Selur Wrote: Moved the thread to the 'A/V Talk' section since it's not Hybrid related.
Understandable. Sorry for the wrong subforum.
(30.08.2021, 05:55)Selur Wrote: In general:
a. you should try remuxing the file with mkvtoolnix (it has some workarounds for some transportstream glitches)
b. you could try Cypheros TS-Doctor or similar tools to fix the file
c. ffmpeg and VLC usually can only help if there are just some slight problems with the headers
Will look at the file today after work.
a. Tried, same as normal Hybrid or FFmpeg. Forgot to mention in the original message.
b. Did not try. I know the program, I don't seem to be able to get around it very well.
c. Makes sense.
(30.08.2021, 15:20)Selur Wrote: What I tried:
a. remux with timecodes using Hybrid
Hybrid:- Config->Automation->On Load->Always extract timecodes from input + 'only some' disabled.
- Loading the source. -> "Time codes from input do not indicate 'vfr' and will therefore be ignored."
- Audio&Video processing set to Passthrough, using mkv as output
ended up with a file that does not contain any video. :/
Using mp4 I got a not playing file with audio&video in it.
Tried that too myself. Same results.
(30.08.2021, 15:20)Selur Wrote: b. simple ffmpeg remux:
ffmpeg -y -threads 8 -analyzeduration 200M -probesize 200M -i "C:\Users\Selur\Desktop\syncproblems_sample.ts" -codec copy -map_metadata -1 "E:\Output\ffmpeg.mkv"
No errors, no a/v sync. (the "-map_metadata -1" might be unnecessary)
Remuxing the above file with Hybrid and the output is sync too.
-> a simple remux with ffmpeg already seems to fix the issues.
Then I really overcomplicated it.
How come Hybrid can't remux it this way?
I see one problem with this: it sets the overall framerate to 50 FPS, variable, which is incorrect. If I load the source in Hybrid and try and Bob it, it exports a 100 FPS file.
While remuxing, it seems like FFmpeg ignores the "-r" flag.
Commands I tried to use:
ffmpeg -i d:\sample.ts -c copy d:\thing.mp4
Exports variable 50 FPS file, but timestamps seem ok.
ffmpeg -r 25 -i d:\sample.ts -c copy d:\thing.mp4
Exports variable 50 FPS file again.
(30.08.2021, 15:20)Selur Wrote: Ps.: btw. that video isn't really interlaced seems to be a mix of progressive and field shifted content. Loading the remuxed file and using 'Overwrite scan type to' 'progressive' and using 'Frame->Misc->TFM' seems to get rid of all the combing artifacts in the scenes that are not progressive.
Interesting, but Hybrid exports a 100 FPS file for me, in this case.
I guess I'll just export & deinterlace them using FFmpeg.
Update: thie file still doesn't have proper timestamps. I get this error in FFmpeg after trying to deinterlace the remuxed file.
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0]
Command used:
ffmpeg -c:v h264_cuvid -deint 2 -i "d:\sample.mp4" -c:v libx264 -profile:v high -preset veryfast -crf 18 -x264opts "keyint=500" -c:a copy "d:\sample.mkv"