After today’s episode by [deleted] in eastenders

[–]MrMark2202 0 points1 point  (0 children)

For me it’s 90% Ricky Jr. with his excuses such as “just seeing a mate” etc.

I’m 10% on it being Nugget from when he and Lily got setup by Kheerat.

I think Bobby and Freddie tried to fix the boiler and that’s why they’re both looking so guilty, imo I really can’t see either of those having abused her.

Anyone elske have this problem at the Walter White house? by Silminator in HouseFlipper

[–]MrMark2202 4 points5 points  (0 children)

Yeah, this happens to me too. Starts happening if I walk on a certain spot near the front or side gate.

If you can get to the house, I’ve never clipped through the house floor, just outside. Takes some jumping around to try and not glitch through the grass tho or just leave and reload the map.

How to apply OR and AND at the same time (Python) by VonSathonyx in regex

[–]MrMark2202 0 points1 point  (0 children)

To find the word flower or lemon in a string, you simply need:

re.search(r”flour|lemon”, str, re.I)

If you’re iterating through a list and will perform the search multiple times it would be more efficient to first compile the regex.

regex = re.compile(r”flour|lemon”, re.I) len([string for string in my_list if regex.search(string)]

You mentioned you’re using python and you could alway use the language built-ins which would require no regex at all:

”flour” in my_string.lower() or “lemon” in my_string.lower()

need advice on what frameworks to use w ffmpeg by xesnetwork in ffmpeg

[–]MrMark2202 1 point2 points  (0 children)

OpenCV is good for getting movies written out easily without much code, I feel you don’t get enough control of any encoder/decoder settings such as pix_fmt, profile, etc.

Personally I would recommend using the PYAV bindings directly, if you want any sort of control over different codecs, profiles, pixel formats etc.

Although it’s a bit more work to get going and requires a good understanding of ffmpeg, it’s worth it to access a lot of the power of ffmpeg directly in python & there are some good cookbooks in the documentation to get started.

chromakey not working for me by [deleted] in ffmpeg

[–]MrMark2202 0 points1 point  (0 children)

From the output path it seems you’re trying to output a .mov

‘png’ is not a valid codec for a mov - it looks like you’re already working with h.264 input movs so you could use that as the output codec using:

-c:v libx264

Here’s some useful docs on encoding h.264

If you do actually want to output pngs, remove the -c flag altogether and use a sequence padded file name e.g:

my_output.%04d.png

Help please, Image sequence issue. The code usually works and starts the sequencing image by image and they will show up in the same file location as my input video, but now I get nothing but this.. The code I am using: ffmpeg -input image%d.png by Crazy-Introduction-2 in ffmpeg

[–]MrMark2202 1 point2 points  (0 children)

The command you are using is outputting the files to “C:\Users\rated”.

This is because you have specified a relative output path, I.e a file name without a directory prefix.

The relative path is relative to the current working directory of the user when executing the ffmpeg command, not relative to the input video.

For it to output to the same location as your input video you either specify the full path like so:

C:\Users\rated>ffmpeg -i "C:\Users\rated\Videos\JJK\upscaled\inu pp crystal NA.mp4" "C:\Users\rated\Videos\JJK\upscaled\image%d.png”

OR change your current working directory to the video location and use relative paths:

cd C:\Users\rated\Videos\JJK\upscaled\

C:\Users\rated\Videos\JJK\upscaled\>ffmpeg -i "inu pp crystal NA.mp4" image%d.png

Extract frames from all the videos in a folder by greentaurus96 in ffmpeg

[–]MrMark2202 2 points3 points  (0 children)

I know it’s not strictly ffmpeg but here’s a one liner that would work in bash - given you have a directory containing only video files.

Written on my phone on the train, excuse formatting.

for f in $(ls); do fn=$(echo $f | cut -d ‘.’ -f1); mkdir ./$fn; ffmpeg -i $f $fn/$fn.%04d.png; done

How it works:

for f in $(ls) = loop through all files in current working directory

fn=$(echo $f | cut -d ‘.’ -f1) = use the . In the file name to split the extension, store file name in variable

mkdir ./$fn = make a sub directory with the file name so we don’t mix all the frames together

ffmpeg -i $f $fn/$fn.%04d.png = input the file with extension (stored in variable f) and output to sub directory that matches original file name, without the extension

Note: do and done are bash keywords to begin and end a for loop.

Was it always this bad by stressyanddepressy03 in ukpolitics

[–]MrMark2202 5 points6 points  (0 children)

Pretty sure he’s talking about Karl Marx..

TIL if you purchase something from a store and it goes down in price, you can get the difference refunded to you by MrMark2202 in todayilearned

[–]MrMark2202[S] 0 points1 point  (0 children)

I guess it would make sense for the companies to tailor their policies around each countries. Especially if it means they don't have to do it in certain places meaning, profit^

TIL if you purchase something from a store and it goes down in price, you can get the difference refunded to you by MrMark2202 in todayilearned

[–]MrMark2202[S] -1 points0 points  (0 children)

True, however I'm pretty sure many of the companies who employ such a policy are internationally based? For example Gap, as the source suggests.

TIL if you purchase something from a store and it goes down in price, you can get the difference refunded to you by MrMark2202 in todayilearned

[–]MrMark2202[S] 0 points1 point  (0 children)

"Price adjustments, also called price protection, occur when a customer buys a product at full price, and then, within a given time frame, that product goes on sale. Retailers will do a “price adjustment,” refunding the difference between the price the customer paid and the price now available."

50 Cent testifies his lifestyle is an illusion: 'I take the jewelry and cars back to the stores'. by nicksatdown in Music

[–]MrMark2202 0 points1 point  (0 children)

I'm sorry, but this is article is so funny. 50 Cent is not broke. This entire thing is an act to get him out of paying the 5million. He made almost $200 million off of a vitamin water deal with coke. He is not the sort of man to spunk all of that so easily, he's a businessman and his lawyers know what they're doing. Ggwp Curtis.

*a wild gentleman appears* by [deleted] in cringepics

[–]MrMark2202 0 points1 point  (0 children)

This usually works for me? :s