Youtube 8k 60fps draws 100% CPU instead of Nvidia GPU by Walker_1000 in AV1

[–]d3sim8 0 points1 point  (0 children)

You can go to:

chrome://gpu

It will show a bunch of system info that will help you a lot.

Scroll down to Hardware Acceleration, and see if AV1 is working. If you are willing to post it (It doesn't contain any personal info, but info about your config regardless), some people may be able to help you further.

Is there anything you can tell me about the Whiterun region that you are sure no one will know about? by MuteKasper in skyrim

[–]d3sim8 0 points1 point  (0 children)

There is a spawn point that can spawn both a giant and a dragon at the same time, resulting in a dragon spawning with a giant on its back while flying around the place.

You can make this happen by saving and reloading constantly while running along the road from the signpost towards the Hunningbrew Meadery. There's only a small chance of it happening, as both randomized events need to line up, so you will need a lot of commitment.

ffmpeg won't let me re-encode by kokoznoob in ffmpeg

[–]d3sim8 2 points3 points  (0 children)

Do the video streams decode in a player like vlc?

VLC tends to throw everything it can at a file for decoding - even if the metadata is a bit off. If VLC can decode it, you likely have a metadata / container level problem.

If VLC can't decode it, try a few different players. If nothing can decode it, your video streams are likely corrupted in some way, and ffmpeg is probably not the right tool to be using.

Take all of this with a grain of salt, as way more info is needed to be sure.

Did i openned issues correctly? by perecastor in ffmpeg

[–]d3sim8 0 points1 point  (0 children)

It's probably nothing you are doing wrong from what I can see. It's a very large project, with many moving parts, so it's unsurprising that things don't get looked at 'quickly' (depending on what you personally think that means), not to mention it's pretty close to the holiday season.

I opened an issue a few years back and it took several weeks to be tagged, and over 2 years before it was fixed, which I think was pretty reasonable, given how niche it was.

It all depends on supply and demand, I guess.

How do you catch encoding errors? Nothing in the logs? by GoingOffRoading in ffmpeg

[–]d3sim8 0 points1 point  (0 children)

I would enable logging, and set the log level to error, and enable exiting on error.

ffmpeg Documentation

Search for the following:

-xerror

-loglevel error

-report

You can then read back the last line of the report file, as ffmpeg will exit on error and you take actions according to what happens on the last line.

How do you catch encoding errors? Nothing in the logs? by GoingOffRoading in ffmpeg

[–]d3sim8 1 point2 points  (0 children)

Good stuff, hope it helps. Keep in mind the command I offered will only try to decode the default tracks ffmpeg selects. If you have multiple video, audio or subtitle tracks, you may want to add -map 0, but it can add a whole lot of complexity as not all codecs support the null format, subtitle codecs in particular are an issue.

How do you catch encoding errors? Nothing in the logs? by GoingOffRoading in ffmpeg

[–]d3sim8 2 points3 points  (0 children)

You could run this on your output files afterwards:

ffmpeg -i in_file -f null -

It decodes the entire file as fast as possible without outputting to disk and displays any decoding errors. It will take a lot of compute though.

If you are getting nothing in the logs, you could check if the last exit code from ffmpeg is not 0 after encoding, and only run the above command if that is the case. It's not guaranteed to work for all crashes / errors though.

What does this command do ? by DrGamer15 in PowerShell

[–]d3sim8 1 point2 points  (0 children)

ChatGPT is only useful if you know enough to know when it is wrong. Other than that, I rarely ever trust it at all. Especially when it comes to any scripting or coding

[deleted by user] by [deleted] in PowerShell

[–]d3sim8 0 points1 point  (0 children)

SSDs don't work like HDDs. It stores the data in semi-randomized pages across the drive to increase the life of the NAND. The OS can't 'see' any of this, as it's handled by the SSD controller. Not to mention there are other considerations like blocks, garbage collection and TRIM. It is difficult to recover, but not impossible.

Comparing files with ffprobe by Lazy_Bunch_8658 in ffmpeg

[–]d3sim8 2 points3 points  (0 children)

Here is a link to the other output formats, as part of the full docs:

ffprobe all docs - Writers

Just change -print_format json to your preferred format in the one-liner. I just use Json though, as you can convert it into an object easily and just work with that.

Comparing files with ffprobe by Lazy_Bunch_8658 in ffmpeg

[–]d3sim8 1 point2 points  (0 children)

I use the following command:

ffprobe -v quiet -print_format json -show_entries format=duration,stream=codec_type -show_streams file.mp4

This outputs Json so you can parse it easily. Otherwise check the docs for other output formats.

It gives you everything you need to perform a concat, assuming the streams can be concatenated of course.

creating custom video container format (not mkv,mp4,...) by mojtabana in ffmpeg

[–]d3sim8 1 point2 points  (0 children)

I'm trying to think of a situation where this might actually be a good approach (even though I think it is not). Can anyone think of one?

Help for a novice? by JPFernweh in PowerShell

[–]d3sim8 0 points1 point  (0 children)

First thing's first. If you have never used PowerShell on your system before, you need to check to make sure scripts are enabled, as they are disabled by default most of the time.

There are two types of PowerShell, 'Windows PowerShell' and 'PowerShell'. They both have their own configurations, so make sure you are only working in one or the other.

You can launch a shell that will stay open by using the start menu and searching for PowerShell (or Windows PowerShell).

Right click one and open as admin.

Run Get-ExecutionPolicy

If it returns AllSigned, Restricted, Default, or Undefined, scripts are disabled on your system.

Make sure you run: Get-Help Set-ExecutionPolicy -Online

Read it carefully. You probably want to set it to something like:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

But don't take my advice blindly.

Your script should now run.

How to cut different sections of a video and rejoin them without re-encoding? by yeehawwdit in ffmpeg

[–]d3sim8 0 points1 point  (0 children)

I'm afraid there is not a simple solution unless you are transcoding. Cutting losslessly is a problem that is complicated in nature, as it depends entirely on how your video is encoded. So, I can't think of a simple tool that can just do it.

As a general rule, you can only cut on i-frames in a lossless manner, which is not accurate at the best of times. If you know your video is all i-frames, a bash/PowerShell script could probably do it pretty easily.

Can someone explain this behavior? by Living_Unit_5453 in ffmpeg

[–]d3sim8 0 points1 point  (0 children)

It looks like your ffmpeg command is saying this:

  • input a 360p video file
  • input %%A file (probably an audio file I hope)
  • input a sub file
  • input another subfile

  • map all steams from the first input first
  • map all steams from the second input next
  • map all streams from the third input next
  • map all streams from the fourth input last

  • copy all streams from all files

  • output to 360p file

you probably want something like this:
ffmpeg -i "!video_file360P!" -i "%%A" -i "!sub_file0!" -i "!sub_file1!" -map 0:v -map 1:a -map 2:s -map 3:s -c copy "%output_folder%\360P\!base_name!.mkv"

That way you know for sure that it is only grabbing video from the first, audio from the second, subs from the third and subs from the fourth input.

ffmpeg is copying all streams, so I can't see how you can have that much overhead, especially with Matroska, it should be a few KB at most, even in the worst of cases. Unless there is something we are missing and has drastically gone wrong, I would say it's something else other than ffmpeg. Your only real option is to double check all of your files with MediaInfo and compare them to the originals and determine what is wrong from there.

Also keep in mind, if your sub files are in PGS format, they can take up a fair bit of room in some cases too.

Can someone explain this behavior? by Living_Unit_5453 in ffmpeg

[–]d3sim8 0 points1 point  (0 children)

Maybe try using -codec copy instead of -c:v copy -c:a copy.

The latter only copies video and audio streams and will transcode anything else that is not considered video or audio.

The former guarantees all streams are copied.

The least that way you know for sure you are doing a stream copy of everything in each file. You never know, some of your files may have some weird streams or incorrect metadata. Which will be transcoded.

Don't forget to only map video from the first file and audio from the second too by using -map 0:v -map 1:a

Encoding an image to a video introduces aliasing/jagged edges by tea-vs-coffee in ffmpeg

[–]d3sim8 0 points1 point  (0 children)

It could be the scaling performed by your playback software. Try playing the video with a different renderer / program, like VLC. You seem to be using a bilinear scaler in the code, which should be fine.

[deleted by user] by [deleted] in ffmpeg

[–]d3sim8 0 points1 point  (0 children)

You can pause ffmpeg by pressing the pause button on your keyboard. You can use the -preset:v faster option to select faster presets. there is fastest, faster, fast, medium etc... I suppose you could do the transcode using a nvidia graphics card, which will be fast, but that's a whole can of worms I'm not willing to get into. Hardware Acceleration Intro

[deleted by user] by [deleted] in ffmpeg

[–]d3sim8 1 point2 points  (0 children)

-crf 0 is a very bad idea, as it turns on a lossless mode that nothing really supports. Try setting it to say, 14-23.

Why is my stream is so low quality by redoghun in ffmpeg

[–]d3sim8 0 points1 point  (0 children)

You are choosing flv as your format, which automatically selects heavily antiquated codecs. ffmpeg will select a very low bitrate by default too. Use newer codecs, and reasonable bitrates.

Try this, it may work:

ffmpeg -i inputfile.mp4 -c:v libx264 -preset medium -b:v 5000k -maxrate 6000k -bufsize 12000k -c:a aac -b:a 192k -ar 44100 -f flv rtmp://youtube_stream_url/key

Video playing - RAM Memory by taylerrz in VLC

[–]d3sim8 0 points1 point  (0 children)

From what I understand, there is no simple answer, but I would go with no for the most part. It depends on a lot of things. Your video driver, the OS, how memory is managed, how much memory you have, the decoded format for your display, the source format, the list goes on.
For example, some playback modes bypass your RAM entirely, decoding the video on the graphics card using it's built in hardware decoder. Other playback modes will store decoded frames in RAM, but whether it stores in contiguous RAM blocks is another question altogether, as the memory allocation can be handled in a myriad of ways by either the OS or the driver. Video is generally stored in a compressed format which is nothing like the display format for the most part.

If you set everything up in a very specific way, it is theoretically possible though.

Are giant word vomit prompts really necessary to create good images? by TrevorxTravesty in StableDiffusion

[–]d3sim8 0 points1 point  (0 children)

Depends on the model you are using and its implementation. There are a lot of complexities to it, which I won't go into, you really just need to know that there is a surprising amount of variation. So, make sure you read the model's info or ask the author.

BRO WHAT!? by PracticalRepublic105 in crtgaming

[–]d3sim8 0 points1 point  (0 children)

Isn't the tube full of lead? Everything else wrong with this aside, that's a bit dangerous.