Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I love AV1 for compressing my movies to 720p. I also convert any audio to Opus. I get to archive a ton of content on peanuts. The videos look great on my PC monitor or my phone and they come in at around 452MB (1hr 24m video).

Here's my script if you're interested in trying it out on your content.

    param (
      [Parameter(Mandatory=$true)]
      [string]$sourceDir,
    
      [string]$destDir = $sourceDir
    )

    $ffmpegPath = 'C:\Users\sergi\Downloads\ffmpeg.exe' 

    Write-Output "Starting conversion..."

    Get-ChildItem $sourceDir -Include *.mp4,*.avi,*.mov,*.wmv,*.flv,*.webm,*.mkv -Recurse | ForEach-Object {

      $newFileName = $_.BaseName + '-av1-720p' + $_.Extension
      $destPath = Join-Path $_.Directory.FullName $newFileName

      Write-Output "Converting $($_.FullName) to 720p AV1..."

      & $ffmpegPath -i $_.FullName -vf scale=1280:720 -c:v libsvtav1 -crf 30 -preset 7 -c:a libopus -b:a 96k -ac 2 $destPath
  
    }  

    Write-Output "Conversion complete."
And I just invoke it against a folder to recursively convert stuff.

    .\av1-convert.ps1 -sourceDir 'D:\Movies to convert\'
As soon as there's something that can decode AV1 that's like an nvidia shield I will replace both of my shields. So far nothing like that exists to my knowledge. Even Roku 4k Pro's say "AV1" support in their spec but they still trigger transcoding on plex when doing a playback.


As someone who also has a 2019 Shield TV Pro and is waiting for the "next best thing", one resource I've been keeping my eye on is androidtv-guide.com:

https://www.androidtv-guide.com/streaming-gaming/av1-android...


What sort of file sizes are you getting for 720p video in AV1? Are there any other relevant parameters that you tweak, e.g. framerate?


It's there in the comment, both my filesize and the command verbatim. I don't do anything else other than what's in the powershell script.


Thanks, not sure how I glazed over that. :)


wait, you convert to 720p and want to play that using a shield pro type of device. This might be ok in your current setup, but as soon as you upgrade the panel to 1080p or 2160p, you would want the source to be in at the same resolution, or better.


I'm aight to be honest. MPV is stuck to the side of one of my monitors. I don't need more resolution at all.

On my shield's I play 4k remux's from a plexshare.


I don't recognize that language. Is it PHP?


It's Powershell. It's Windows' Bash equivalent (admittedly much more advanced) but it's been open-sourced and ported to Linux as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: