but same codec without getting artifacts?.
I used to encode my videos using h.265 8bit (default Handbrake h.265 option) then merge them with ffmpeg or avidmux.. 2 weeks ago I found out that h.265 10bit is better so I started encoding my videos using that, the thing is when I try to concatenate my previous videos (h.265 8bit) with my new videos (h.265 10bit) then they become artifact-ed. I can't just re-encode hundreds of hours of videos again it would take me ages with my 6-core CPU and the quality would suffer since I use CRF 23/24.. if there's no solution then the only thing I can do is to stop merging my videos which would be really inconvenient ( and I put everything in one folder and now I can't even know which videos are 8bit and which are 10bit) and wait some years for AV1 to be reliable and then re-encode everything with finding a way to minimize the loss of quality and hoping that I'd have a better CPU by then..
Thanks.![]()
+ Reply to Thread
Results 1 to 16 of 16
-
-
Re-encoding doesn't necessarily mean you'll get artifacts.
While re-encoding should be avoided when possible, sometimes it's best to just re-encode.
This is one of those times.
To verify this is a good idea, where is a sample of both sources?Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
I know that but I'm not sure you understood me correctly since I'm trying to avoid re-encoding. Here are 3 samples one is encoded using HEVC 8bit and the other HEVC 10bit with HandBrake and the final one is both videos merged with avidemux without re-encoding pay attention to the second half of the latter to understand my problem.
https://drive.google.com/open?id=1SxJCgLKqtXm6_uFgnIraKFfiQx9ilpMmLast edited by Felow; 2nd Jan 2020 at 15:55.
-
Here are the two source files remuxed to TS and concatenated to a new TS using ffmpeg:
Code:ffmpeg -y -i HandBrakeDefaultHEVC8Bit.mkv -codec copy cat1.ts ffmpeg -y -i HandBrakeHEVC10Bit.mkv -codec copy cat2.ts ffmpeg -y -i "concat:cat1.ts|cat2.ts" -c copy output.ts
-
Is there an ffmpeg command to do this with all the files inside a folder? similar to the commands "
Code:(for %i in (*.mkv) do @echo file '%i') > mylist.txt ffmpeg -f concat -i mylist.txt -c copy output.mkv
Edit: VLC has trouble reading your file.Last edited by Felow; 12th Nov 2020 at 23:43. Reason: Important edit.
-
Remuxing a video file won't mess with the quality, it simply puts it in a new container without re-encoding.
-
You can do that in steps. First remux all the source files to TS, then concat all the TS files.
Code:del mylist.txt for %%F in (*.mkv) do ( echo file '%%~nF.ts' >>mylist.txt ffmpeg -y -i "%%~nxF" -codec copy "%%~nF.TS" ) ffmpeg -y -f concat -safe 0 -i mylist.txt -c copy output.ts
There is no loss when remuxing. It's like taking a cake out of one box and putting it in another box. The cake is unchanged. -
-
-
You're right, I should avoid doing this since my main video player VLC has trouble reading the ts file but it works on windows 10 movies& Tv app. Now is there a way to know the bit depth of a video that was encoded with handbrake? all my videos are in one folder and I don't know which is which anymore.
Last edited by Felow; 12th Nov 2020 at 23:44.
-
Great! MediaInfo works fine but it doesn't show multiple Bit depths if files are merged https://imgur.com/a/SUWnp62 but that isn't a problem.
So to summarize if someone in the future wanted to do what I asked for in the thread: The only way to do it without re-encoding is by remuxing the files into a TS container then concatenating them and this is best to be avoided since some video players have trouble handling mixed content (VLC does at the time of writing this).
Thanks for the help. -
It plays fine in several players I tried.users currently on my ignore list: deadrats, Stears555, marcorocchini
-
Similar Threads
-
Why the rippers usually change the original bit of depth (DTS Core)?
By Enrik in forum AudioReplies: 10Last Post: 26th Jul 2019, 17:53 -
PotPlayer downgrades DTS channels and bit depth?
By Zach_N85 in forum AudioReplies: 6Last Post: 19th Dec 2016, 14:08 -
How to create VP9 bit depth:10 video file
By Ling He in forum Video ConversionReplies: 1Last Post: 16th Oct 2015, 06:38 -
[No video track found] ffms2 and Cineform (banding, high bit depth)
By 4K_ in forum Video ConversionReplies: 3Last Post: 15th Oct 2015, 18:03 -
Bit Depth,Sampling Rate used for Uncompressed Audio-Bit Rate for Compressed
By alexander121 in forum AudioReplies: 9Last Post: 4th Apr 2015, 10:30