▲ 7 r/ffmpeg

Concatenate files and maintain all subtitle and audio tracks

I've ripped a movie that is split into two parts. I wish to concatenate it, but maintain all audio and subtitle files.

A simple concatenation will join the two video files with the main audio, but not the other audio tracks, and none of the subtitles:

ffmpeg \
  -f concat -i videofiles.txt \
  -c copy -map 0 movie.mkv

where videofiles.txt is a list of the original two files.

I found the following command to concatenate subtitles:

ffmpeg \
  -f concat -safe 0 -i videofiles.txt \
  -f concat -safe 0 -i subfiles.txt \
  -map 0:v -map 1 -c:v copy -c:s copy movie.mkv

This joined the two video files, but none of the audio tracks, and the subtitles only appeared for the first half of the movie.

As this is a rip, the subtitles I have extracted with mkvextract are in the .sub/.idx format, so I thought I'd need to include both in order to make this work:

ffmpeg \
  -f concat -safe 0 -i videofiles.txt \
  -f concat -safe 0 -i subfiles.txt \
  -f concat -safe 0 -i idxfiles.txt \
  -map 0:v -map 1 -c:v copy -c:s copy movie.mkv

But this yielded the same results. No audio, and only half of the subtitles.

It should probably be noted that ffmpeg is confusing for me, and I don't even know half of what these options are trying to do in these commands, since the places where I got them just say "enter this here", rather than explaining what each option does. As such, I don't know what I can change, and what I can keep the same.

reddit.com
u/JRCSalter — 3 days ago
▲ 8 r/vim

Why do my macros only work sometimes?

My understanding is that when you record a macro, it is supposed to recreate the keystrokes exactly as you type them.

I have some text that I want to format in a particular way, and so I use a macro to do it with large blocks of text. But sometimes, it does not produce the result I want. I can't really provide examples, because I've found no correlation as to when it works and when it doesn't.

I don't rely on history, or nesting macros, as I understand that could cause problems. I do occasionally search for strings, and I feel this may cause problems, but some macros do work with searches, and I kind of need to search for common patterns in order for the macro to work.

So is there anything that might cause a macro to either fail, or not produce the expected outcome?

reddit.com
u/JRCSalter — 19 days ago

The Erotic Adventures of Zorro

It may be because I'm slightly tipsy, but I loved this movie. Probably the best put out by the Distripbix sublabel. From the double entendres to the camp acting, to the extremely on the nose jokes, it may as well be called Carry On Zorro, which won't make any sense to anyone not familiar with British culture. I thoroughly enjoyed my time with this one.

reddit.com
u/JRCSalter — 23 days ago
▲ 31 r/sewing

Any tips on accurate cutting?

A pattern appears to be a very precise blueprint for a garment, but when cutting it out, I'm always concerned it will vary quite significantly.

I've tried to use scissors to cut, but the pattern often moves, even if I have weight on it, due to the need for the scissors to get underneath the cloth.

I have tried to pin the pattern to the cloth so it doesn't move, but I still have to contend with the fact that the scissors lift the pattern up.

Today, I traced the pattern onto the fabric using some chalk, and then used a rotary cutter. This is probably the most accurate I've been able to make it. The shoulders from both the front and the back, and from left to right, matched up perfectly, and both arms were close enough.

So this appears to be the best way. However, I don't have a large surface to work on, and I need to shift the fabric onto my cutting mat in order to not damage the surface. There's also the trouble of cutting on the fold. I did notice that even with this method, some of the cuts clearly had a pointed angle where the cut wasn't quite straight.

reddit.com
u/JRCSalter — 29 days ago

Over 60 releases bought from VS and I've yet to regret a purchase

Sure, some have been better than others, and there have been a couple individual movies that I am unlikely to watch again, but since they came with another movie I did enjoy, it was still a worthwhile purchase.

Some are great movies. Some are terrible, but still entertaining. But all have something that I enjoyed about them.

So far.

Contrast that with Criterion. I own just five movies from that label, and regret buying one of them, The Tree of Life; it's the most pretentious twaddle I have had the misfortune of watching. To this day I don't know why I haven't got rid of it.

I'm so glad I discovered VS. This label feels like it was made for me.

reddit.com
u/JRCSalter — 1 month ago

Now I've received my HWTBF order, my collection has grown to two shelves...

And grown by about a third. I think I went a bit overboard on the sale.

u/JRCSalter — 2 months ago
▲ 237 r/knitting

Is it even worth it?

I've worn these socks a few dozen rimes now, and they seem to be no more durable than cheap mass produced ones.

It's so disheartening to spend hours on something, only for it to get damaged so easily through normal use.

I know I can fix them, but I'm wondering whether there's any point to it, as this will likely happen again in a few months.

u/JRCSalter — 2 months ago

Those of you with unfulfilled HWTBF orders, are you kind of hoping...

...it doesn't get fulfilled until payday?

I anticipate it will get shipped any day now, but I live in the UK, and so to pay £16 for shipping is annoying. I'm hoping it can remain unfulfilled until payday so I can maybe stack on a few more items.

Just got to hold out for a few more days...

reddit.com
u/JRCSalter — 2 months ago

Some videos show up, while other do not

I have no idea what's going on.

I have made a Library solely to contain my Doctor Who collection. As anyone who is into this show knows there is far too much to allow Plex's fairly poor implementation of extras to handle, so a specific Library is required.

I have organised it so that I have each incarnation of the Doctor as a single series, and each serial as a single season, with the plan to include relevant extras for the serial as additional episodes in the "season", with a "Season 00" for the many documentaries and stuff not related specifically to that serial.

But sometimes it works and sometimes it doesn't.

For example, I have a Series called "The First Doctor". In it, I have "Season 01" titled "An Unearthly Child". This includes the following episodes:

The First Doctor - s01e01 - An Unearthly Child (1).mkv
The First Doctor - s01e02 - The Cave of Skulls (2).mkv
The First Doctor - s01e03 - The Forest of Fear (3).mkv
The First Doctor - s01e04 - The Firemaker (4).mkv
The First Doctor - s01e05 - Pilot.mkv
The First Doctor - s01e06 - Pilot (uncut).mkv
The First Doctor - s01e07 - Photo Gallery.mkv

And in "Season 00" I have:

The First Doctor - s00e01 - Theme Music Video.mkv
The First Doctor - s00e02 - The Corridor Sketch.mkv
The First Doctor - s00e03 - The Pitch of Fear.mkv
The First Doctor - s00e04 - The Web of Caves.mkv
The First Doctor - s00e05 - The Kidnappers.mkv

When I scan the files, I can see Season 00 pop up. It has a small red trash can icon on it, and then when scanning is complete, it disappears. Weird thing is, when I first did this, it was there, and worked fine. For some reason though episode 2-5 of Season 00 already had the titles included on Plex, but episode 1 did not. I then rescanned and refreshed the metadata because I thought that might fix it, and that's when it disappeared.

Season 01 included all the correct files except for episode 07.

I then moved the files from Season 00 into Season 01 to see if that would solve it (renaming them in the process), and they did not appear there either.

Now, it may be relevant to note that all these files are symlinks, as my drive is not large enough to hold my entire collection, which is spread across multiple drives. Not ideal, I know, but that's what I'm working with for the moment. It may change in the future.

So I copied the link for Season 01 episode 04 and retitled it as a new episode numbered 13. That worked, and it stays there as episode 13 (with the correct title), but now the original file I copied it from has disappeared from Plex.

I've tried this with various different agents, but nothing appears to be working.

reddit.com
u/JRCSalter — 2 months ago

This is what made me love Nynaeve

This is my fourth read of the series, and I noticed this passage on my second. My first read, I was like many people, and disliked Nynaeve because of her abrasive character.

But here, very early on, we see more than the women who goes around hitting people with a stick. She doesn't suffer fools, and will not accept when she is wrong, but when it comes down to it, she really cares; probably more than anyone else in the series.

Rand spent all night trying to get to her. She was his only hope for Tam, all that kept him going, and when he finally found her, she could do nothing. She saw the helplessness in him, and let down her walls to give him what comfort she could.

u/JRCSalter — 3 months ago

File selection pop up not working

I have no idea where to begin searching for this. I try to upload a file to a website, the file pop up pops up, but after a second or so, it closes. I don't even have a chance to select a file. Same thing happens when I try to download a file and attempt to select a location.

This is not browser specific. It happens on both Firefox and Opera, two very different browsers. It also doesn't just happen with browsers. I can't upload anything to Plex on my Plex app.

However, if I switch to another user on the system, I can upload fine. The window stays open until I select the file, the way it should do.

I can only think it's a settings or configuration issue, but can't think of what might be causing this.

I'm running Ubuntu 22.04.5 LTS

reddit.com
u/JRCSalter — 3 months ago

I'm creating a font, and need to adjust kerning for individual letter pairs.

On the SVG Font Editor tab, I select Kerning, then ensure the font is selected. I can select a glyph from either the 1st or 2nd box, but as soon as I do so, it deselects the font, meaning I cannot select a glyph from the other box. I select the font again, and it resets itself.

I have been following a video that shows the exact steps I need to take, but it doesn't appear to show this issue.

I am using Inkscape 1.1.2 (0a00cf5339, 2022-02-04) on Ubuntu 22.04.5 LTS.

reddit.com
u/JRCSalter — 4 months ago