Michele0303 / tiktok-live-recorder

🎥✨ A TikTok live streaming recorder tool written in Python. Capture and relive your favorite TikTok moments effortlessly. 🎥✨
MIT License
370 stars 102 forks source link

ffmpeg can't determine the video codec #39

Closed booleangit closed 11 months ago

booleangit commented 1 year ago

Apparently TikTok has changed something to their streams, because ffmpeg is unable to identify the video codec being used.

Michele0303 commented 1 year ago

Are you using -ffpmeg or post download conversion?

booleangit commented 1 year ago

My apologies. I forgot that I've modified your application a while ago, so it uses ffmpeg by default. I'm using "ffmpeg -i source.flv -c copy dest.ts" to save the stream and "ffmpeg -i dest.ts -c copy final.mp4" to convert the transport stream to mp4. This is the most efficient way to save streams and results in better PQ and smaller files as it doesn't transcode the stream but still provides "real" MPEG-4. TikTok has changed something to their streams which confuses ffmpeg's stream saving functionality, but that's not something you should be bothered with.

zylaxabi commented 1 year ago

hey i think im running into the same probelm as you with tiktok live streams. Did you ever find a solution?