Jump to content

Mr.Stork

Member
  • Posts

    363
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Contact Methods

  • Discord
    SRoy The Comfy#4998

Profile Information

  • Gender
    Male
  • Interests
    Games

System

Recent Profile Visitors

1,453 profile views
  1. The QP21 is in comment, the actual code is set to 30 at the top. Check 7th line.
  2. As the 1080p videos from my phone and camera are bloated, running them through handbrake removes the metadata, so I have to use ffmpeg with "-map_metadata 0". These are my video settings on handbrake - Nvidia NVNC HEVC h265, CQR 30, Slow preset. Not sure how much rc-lookahead is affecting the video size, and I don't know what the right command for ffmpeg is. Everything else is passthrough'd. I got the .bat script from EposVox's github which I edited a bit, full code listed at the bottom. I just want to mirror all settings in handbrake to ffmpeg. The video quality, as I tested using vmaf are slightly worse than the handbrake's encode, and are always smaller. Although I don't see the difference quite as much without pixel peeping, I only tested with smaller videos. ffmpeg -hwaccel auto -i "%%A" -map 0:v -map 0:a -map_metadata 0 -c:v hevc_nvenc -preset slow -rc constqp -qp %ffmpeg_qv% -b:v 0K -c:a aac -b:a 384k -movflags +faststart -movflags use_metadata_tags "%%A_compressed.mp4" pushd "%2" ::Default variables SET paths=paths.txt ::paths lets you put a bunch of folder paths in a text file and run this across those, instead of individually. I use this to run overnight on a LOT of footage folders at once. Thanks to Aayla for a lot of these upgrades ::Fun tip - select your folders (15 max at a time) and shift+right-click and click "copy as paths" SET /A ffmpeg_qv=30 ::change CQP value here so you only have to type it once. 22 is lossless for HEVC. ::for /R %%A in (*.mp4, *.avi, *.mov, *.wmv, *.ts, *.m2ts, *.mkv, *.mts) do ( :: echo Processing %%A :: ffmpeg -hwaccel auto -i "%%A" -pix_fmt p010le -map 0:v -map 0:a -c:v hevc_nvenc -rc constqp -qp 21 -b:v 0K -c:a libfdk_aac -vbr 5 -movflags +faststart "%%A~dnpA_CRF%ffmpeg_qv%_HEVC.mp4" :: echo Processed %%A ::) ::pause ::Test if the paths file exists and iterate through it if EXIST %paths% ( for /f "tokens=*" %%a in (%paths%) do ( echo Changing to directory %%a pushd "%%a" CALL :ffmpeg ) ) else ( ::It doesn't exist CALL :ffmpeg ) pause EXIT /B %ERRORLEVEL% ::Don't run the function when they're first defined because that's a thing Batch does for some reason??? :ffmpeg for /R %%A in (*.mp4, *.avi, *.mov, *.wmv, *.ts, *.m2ts, *.mkv, *.mts) do ( echo Processing "%%A" ffmpeg -hwaccel auto -i "%%A" -map 0:v -map 0:a -map_metadata 0 -c:v hevc_nvenc -preset slow -rc constqp -qp %ffmpeg_qv% -b:v 0K -c:a aac -b:a 384k -movflags +faststart -movflags use_metadata_tags "%%A_compressed.mp4" ::"-pix_fmt p010le" is setting it to 10-bit instead of 420 8-bit, which is what I had before (removed by me) :: "-map_metadata 0" copies all metadata from source file :: "-movflags +faststart" helps with audio streaming echo Processed %%A ) GOTO :EOF
  3. I forget to turn off my pc and it runs all night. And I don't turn my pc on every day, so I can't just set a daily alarm on my phone, or else it'd be annoying. So, if my PC is on and its 10pm, I want it to send me a notification to my Android Phone and/or Windows Laptop. Is that possible? I feel like it can be done natively as both my pc and laptop are windows 10. And all my devices are in the same network. Thanks. Edit: I tried using the msg command in windows, but I keep getting error 5 and 1722 using ip and pc name respectively.
  4. I have a Lenovo Legion 5i 15IMH05, bought it Feb 2021, don't have warranty anymore. Because the cpu temps usually reach around 90degrees and thermal throttle while gaming, my friend told me undervolt my cpu and follow this 6min video he used on his lenovo ideapad. His temps dropped 20 degrees while stressing the laptop, and doesnt throttle resulting in tiny bit better performance. I don't really need more performance, but I do want to keep my laptop cool and dropping it by 20 degrees would be great! Should do it? I have the latest bios. The video is below.
  5. I did the check everything was seems to be fine. I've attached the log.html file As everything looks fine, I don't know what could be the issue. Let me know if you want me to send you something else. Thanks. HardwareScanLog_20220702_172054.html
  6. This has happned twice, a few weeks ago and today. I am using Lenovo Legion 5-15IMH05 - Type 82AU I start my laptop, enter the pin it shows "User profile service failed" then "Preparing Windows". I wait for a few mins nothing happens. So I press power button to restarts manually, enter pin, then "Preparing Windows" and it boots on a fresh windows settings. All my files in C: and D: drives were present. Just everyting to stock settings, lower mouse dpi, most apps unpinned from start, edge on first boot settings. I've attached what it looks like, and what it should actually look like normally. Both times after the weird anomaly, I just do a Reboot from windows and it goes back to normal. I'm confused as to why this happned. In my 4 years of using windows 10 I've never encountered this issue on my PC. Is this a laptop specific thing?
  7. Sorry for the late response. It's a Sandisk 16GB SD card. I suspected sdcard was at fault, so I flashed an external 1TB HDD from Seagate, which is also externally powered, booted on pi os and it worked fine till yesterday. I have network mounted the SMB location of pi on my laptop. When I rebooted my laptop yesterday, after boot the pi didn't show up as location, and that's when it stopped working. Perhaps the laptop pinged smb so many times on boot that it caused the crash? I have no idea why this is happening. Is there a way to diagnose the issue? Maybe a log I can read or post here? Edit: How much stuff was on your pi? Could load be an issue? I was running Pihole, Netdata, SMB, and TwitchMiner (basically mines points on live streams)
  8. My pi was under stress from downloading to my external ntfs hdd at 10MB/s, but it won't boot up. It has happened a couple of times now, usually if I restore the backup to sdcard it starts working again, until some sort of load bricks it. I thought it was because of heat so I installed a fan which keeps temps under 50c on idle, 60c on load. I don't have mini hdmi cable, but all connections to the pi including smb server, all containers, even ssh doesn't get a response. It's has become kind of frequent, last time it happned was about 2-3 weeks ago, what might be causing it?
  9. We recently got Jio Fiber and my uncle is complaining that his safe Google Safe Search setting is Locked On in his Android VIVO mobile. He says he was able to turn it off/on while on the previous broadband internet connection. But on my phone and my account, on the same jio fiber connection I can turn off/on the safe search setting. I also tried logged on uncle's Google account in my phone, and I'm able to turn it on/off. So that means it's not an Google settings issue. But again, when he uses cellular data on his phone the safe search is unlocked and he's able to turn it off/on. So I'm really confused as to what's the issue.
  10. How do I loosen the permissions? I know formatting the drive to ext4 file system should work, but I'm afraid it may cause issues with SMBa server that I use regurlarly. Docker can already make the required folders & files (/Segate1TB/piwigo/gallery), but piwigo just doesn't work. I've tried photoprism too, its the same issue, folders are made in HDD but photoprism doesnt boot.
  11. I didn't do anything extra to mount it, from first launch of the OS it auto mounted both my hdds to /media/pi/ So what I understand, linux can't access the drive, that's why I need ntfs-3g? But apps like rclone and Samba access them that's how I download and stream files on my local network
  12. I am using Docker-Compose on my raspi 4 to run Piwigo but only way to run piwigo is to keep the gallery volume folder on the sdcard itself. (rather on a partition which is native to raspi os, ntfs is not) My sdcard doesn't have much free space, thats why I want to use external HDD (NTFS) to store all the images. But if I move the volume to the HDD, piwigo doesn't work. I have tried using syslink, but that just makes a copy to the hdd instead of keeping sdcard free. Here's the docker-compose file. I was following this YT video. What are my options? piwigo: image: lscr.io/linuxserver/piwigo:latest container_name: piwigo environment: - PUID=1000 - PGID=1000 - TZ=Europe/London volumes: - ./piwigo/config:/config - /media/pi/Segate1TB/piwigo/gallery:/gallery ports: - 8668:80 restart: unless-stopped mariadb: image: lscr.io/linuxserver/mariadb:latest container_name: mariadb environment: - PUID=1000 - PGID=1000 - MYSQL_ROOT_PASSWORD=censored - TZ=Europe/London - MYSQL_DATABASE=pi #optional - MYSQL_USER=pi #optional - MYSQL_PASSWORD=censored #optional volumes: - ./mariadb:/config ports: - 3301:3306 restart: unless-stopped
  13. I have photoprism in docker-compose on my raspberry pi 4 with 2GB physical ram, and have allocated 4G of swap using their official docs guide. But it errors in container logs saying: Perhaps I need an alternative light weight photo gallery app to run on pi? Please recommend me some
  14. Static ip is not set as I can see I found it, its set in the /etc/dhcpcd.conf file. Im guessing I also have to change the static routers= to 29.1 from 0.1 for router subnet? (or can I leave it empty?) Is it possible to set a fallback eth0 ip so I can put both ...0.175 (for old router) and ...29.175 (new router) in case I exchange them?
×