Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Paul Newsgroups: alt.os.linux Subject: Re: When I back-up .... Coping my Entire Internal HD to an external HD Date: Sat, 22 Mar 2025 14:00:45 -0400 Organization: A noiseless patient Spider Lines: 84 Message-ID: References: <5kv5alxctp.ln2@Telcontar.valinor> <7t5malx9rp.ln2@Telcontar.valinor> <1elralx69s.ln2@Telcontar.valinor> <66tvalx2ng.ln2@Telcontar.valinor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 22 Mar 2025 19:00:52 +0100 (CET) Injection-Info: dont-email.me; posting-host="44a4b1108e676c0aa88da3562e1aac5f"; logging-data="514008"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19X/ld6UlSNvDe2AbkyahEJma7HKGas5cE=" User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802) Cancel-Lock: sha1:pvR2hyOoJ8g7QNMT380IRiadwog= Content-Language: en-US In-Reply-To: Xref: csiph.com alt.os.linux:81167 On Sat, 3/22/2025 10:20 AM, Carlos E.R. wrote: > On 2025-03-22 14:42, TJ wrote: >> On 2025-03-22 09:00, Carlos E.R. wrote: >>> On 2025-03-22 07:57, Lawrence D'Oliveiro wrote: >>>> On Fri, 21 Mar 2025 11:55:34 +0100, Carlos E.R. wrote: >>>> >>>>> On the other hand, I find that TV sets support for playing media is >>>>> terrible. >>>> >>>> Get something like a Kodi box. >>> >>> Well, the laptop I already have, and would be gathering dust otherwise. Actually, sometimes I run kodi on it. >>> >>> It is funny, some videos barely run on the laptop using VLC; however, they run fine using kodi. >>> >>> Even if I recode those videos using ffmpeg, VLC can't play them. Sound is good, video stalls. >>> >>> >>> >> Have you tried recoding with Handbrake? It has worked for me in the past. > > I haven't, but most tools use the same codec libraries. > > I tried these: > > time ffmpeg -i Source\ x265\ .mkv \ >     -map 0 -vf scale=1920:-1  -c:v libx264 -preset slow -crf 22 -tune fastdecode -profile:v baseline  -c:a copy -c:s copy \ >     Dest\ baseline.mkv > > time ffmpeg -i Source\ x265\ .mkv \ >     -map 0 -vf scale=1920:-1  -c:v libx264 -preset slow -crf 22 -tune fastdecode -profile:v main  -c:a copy -c:s copy \ >     Dest\ -\ main.mkv > > time ffmpeg -i Source\ x265\ .mkv \ >     -map 0 -vf scale=1920:-1  -c:v mpeg4 -vtag xvid -qscale:v 3  -c:a copy -c:s copy \ >     Dest\ xvid.mkv > > > I have trouble when the video uses x265. x264 is fine, so I was trying to encode to x264. VLC on that laptop has trouble with those (I do the recoding in another machine that is powerful). > > > But if kodi can display the video, it is less effort and resources to watch the movies in kodi. It is just curious, as both vlc and kodi link the same libx265.so libraries. > > Take it all the way back to RAW, then re-code it. Then you can do bidirectional encoding if you want (for better random seek behavior). Or for that matter, re-code with only keyframes, high bitrate, and (almost no) compression :-) One way to go back to a RAW format, is to store the video frames as individual pictures in a folder. I've done that before, as part of experimenting with video. But don't expect the sound track to stay synchronized. Sound only remains synced, if the video track and the audio track have the original timestamps. What you will find on practical videos, is the sound track speeds up or slows down at random. If you use a video editor and attempt to "slide" the sound track with respect to the video track, yes, you can align the sound at a selected point on the video, but other parts of the video are then improperly aligned. ******* You can tell the FFMPEG library to use the hardware decoder in the iGPU, like the Intel QuickSync encoder/decoder or the like. You don't always have to use the software decoder for this. When you re-code using FFMPEG, you can spec hardware decoding on input of the video, then software re-encode with the rest of the FFMPEG command. You can even do the entire job in hardware (about 10x speedup over software method). But since NVENC and NVDEC are not switched on in the Linux FFMPEG, you can recompile from source and use ./configure to add back NVENC and NVDEC. Doing this stuff, is more of a "hobby" than a ten minute project :-) All I wanted to learn, is how long would it take me to fix a video. My answer to that is "book two weeks of your time for it". Paul