Jump to content

Hey ya, LTT-Nerds!

 

In order to save some space, I decided to re-encode my entire library to av1. Plex support is out, Chromecast HD supports it as well, let's go.

Next thing I noticed is that it takes a sh*t ton of time to convert the files. My PC operates at x0.1 @ 50% CPU (somehow doesn't utilise all the power, having it run twice mostly).

I am also one of those vicious people who like to turn off their PC at night. This is not a problem with 20/40min series, but when a two hours film takes 20h to convert is where it gets tricky.

So I thought to segment my video files in 150s part, convert them, put'em back together.

This works fine with somewhat low quality data, 720p series etc.
But when it comes to 1080p movies, I notice hiccups, small freezes at the segment-spots. VLC goes to 2:30, video freezes for a second, continues at 2:32.

So basically, the concatenation doesn't work seamlessly.

 

I know what the simple solution is: Don't split your files, valid, but if there's a way to solve this problem another way, it really is preferable 🙂

 

Thanks in advance! 

 

 

Following are the code snippets I use:

    ffmpeg \
		-i "$x" \
		-map 0 \
		-c copy \
		-f segment \
		-segment_time $segtime \
		-reset_timestamps 1 \
		-y \
		"$loc/$tmp".part%0"$zeros"d."$height"p.$format.$type
	ffmpeg \
    	-fix_sub_duration \
		-i "$x" \
		-f $fout \
		-vcodec $vcodec \
		-acodec $acodec \
		-scodec $scodec \
		-vf scale="$width":"$height",setsar=$sar:1 \
		-map 0:v \
		-map 0:a$lang \
		-map 0:s? \
		$libconf \
		-b:v $maxrate \
		-preset $preset \
		-crf $crf \
		-threads $threads \
		$add \
		"$loc/$out."$height"p.$formout.convert" -y
	ffmpeg \
		-f concat \
		-safe 0 \
		-i "$loc/$tmp".csv \
		-map 0 \
		-c copy \
		"$loc/$base."$height"p.$formout.$ext"

 

Link to comment
https://linustechtips.com/topic/1489085-ffmpeg-concat-hiccups/
Share on other sites

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×