Jump to content


Photo

Mass Conversion Script To Avoid Transcode

linux bash script ffmpeg emby

  • Please log in to reply
9 replies to this topic

#1 gorgarp OFFLINE  

gorgarp

    Newbie

  • Members
  • 3 posts
  • Local time: 03:50 AM

Posted 23 January 2019 - 08:27 PM

 

This project is being abandoned in favor of Wolveix's. https://github.com/Wolveix/Plexus

Please visit his project to see any future work.

 
 
 
 
Hello,
I’m working on a little project to iterate through my NAS and convert all files that are not easily direct played through my Roku.
 
I’m posting it’s Github page here, in case it is of use to anyone else.
 
I’m very open to input, commits, suggestions, etc. I’d love for this to be useful to the community.
 

Edited by gorgarp, 25 January 2019 - 02:47 PM.

  • SilverPeak likes this

#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 129329 posts
  • Local time: 04:50 AM

Posted 24 January 2019 - 12:04 AM

That's neat, thanks !



#3 neik OFFLINE  

neik

    Advanced Member

  • Members
  • 644 posts
  • Local time: 10:50 AM

Posted 24 January 2019 - 01:27 AM

Sounds great! There will be a lot of people that could end up using it. :-)

#4 gorgarp OFFLINE  

gorgarp

    Newbie

  • Members
  • 3 posts
  • Local time: 03:50 AM

Posted 24 January 2019 - 11:40 AM

Thanks @Luke @neik ! If you guys have any suggestions or comments, I'm all ears!



#5 DRAGUNSLAYER OFFLINE  

DRAGUNSLAYER

    Member

  • Members
  • 24 posts
  • Local time: 04:50 AM

Posted 24 January 2019 - 03:21 PM

An API call to update the library would be cool.

Sent from my SM-G965W using Tapatalk

#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 129329 posts
  • Local time: 04:50 AM

Posted 24 January 2019 - 03:25 PM

Have you explored our swagger docs?


  • DRAGUNSLAYER likes this

#7 gorgarp OFFLINE  

gorgarp

    Newbie

  • Members
  • 3 posts
  • Local time: 03:50 AM

Posted 24 January 2019 - 04:38 PM

I have not. Want to put in a feature request on github and I'll put it in the roadmap?

While I was to make this somewhat agnostic to server app (Sorry Luke!) we can always put in a prompt for:  If Emby >> do thing


  • DRAGUNSLAYER likes this

#8 SilverPeak OFFLINE  

SilverPeak

    Newbie

  • Members
  • 9 posts
  • Local time: 09:50 AM
  • LocationOffshore

Posted 25 January 2019 - 04:35 AM

I think this script will be useful because there are no Video Conversion programs that give users easy selections of what needs to happen and also works through the SSH.

I've had to learn about ffmpeg & xbox one device formats + come up with code just to get something going! heres the code i've been using:

 

for f in *.mkv; do /root/ffmpeg-git-20181123-amd64-static/ffmpeg -i "$f" -c:v libx265 -c:a ac3 -preset medium "${f%.mkv}_output.mkv"; done

 

 

What i would suggest as improvement to your script is a design choice to make it like these GUI video converters that have a ton of options or better, evolve it into a script that just makes the user select the target device they wanna have the files compatible on. Keep a small database of popular devices like game consoles and the codec settings they accept and offer these as preset output formats.

 

Thanks!



#9 Sammy OFFLINE  

Sammy

    Advanced Member

  • Members
  • 2513 posts
  • Local time: 01:50 AM

Posted 25 January 2019 - 08:12 AM

Doesn't the PolyMorph plugin do this already?

Sent from my SM-G960U1 using Tapatalk

#10 Enwyn OFFLINE  

Enwyn

    Member

  • Members
  • 11 posts
  • Local time: 10:50 AM

Posted 27 January 2019 - 02:03 AM

Doesn't the PolyMorph plugin do this already?

Sent from my SM-G960U1 using Tapatalk

Not many custom variables on PolyMorph. And in my case i have stuff i want to convert and stuff i do not want to convert.

I could use something like this to automatically convert media before i toss it into the emby library.







Also tagged with one or more of these keywords: linux, bash, script, ffmpeg, emby

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users