Giter Site home page Giter Site logo

Comments (9)

woefe avatar woefe commented on August 26, 2024

I think the problem is that you have mkv, mp4 and best without the height qualifier. Your format selector will always go for mkv or mp4, if available, regardless of the resolution.

Try for example: bestvideo[height>=1080]+bestaudio/best[height>=1080].

from ytcc.

pghpete avatar pghpete commented on August 26, 2024

The issue is that I am using this to populate minidlna to stream content and I cannot use webm/dash, and other various video/audio encoded videos. Is there not a way to both force a proper extension/encoding and screen resolution?

Using youtube-dl you can do something like this, which will get you the best resolution then merge output to mkv.

youtube-dl -i -o "%(uploader)s.%(title)s.%(ext)s" --skip-unavailable-fragments --merge-output-format "mkv"

I will try what you recommended though and see if I get dnla stream-able videos.

Thanks again for your assistance.

from ytcc.

pghpete avatar pghpete commented on August 26, 2024

I am still unable to get it to only get 1920x1080 or better using...

[youtube-dl]
format = mkv/mp4/bestvideo[height>=1080]+bestaudio/best[height>=1080]

from ytcc.

woefe avatar woefe commented on August 26, 2024

I added the merge_output_format option in 6d9ad60, because it seemed to fix your problem when using youtube-dl directly. Try the latest commit on the master branch and set the following config. It will get the bestvideo+bestaudio and merge them to a mkv container or use the best single file format available.

[youtube-dl]
format = bestvideo+bestaudio/best
mergeoutputformat = mkv

from ytcc.

pghpete avatar pghpete commented on August 26, 2024

Giving it a go now. Thank you! I will report back when I see some additional videos yanked.

from ytcc.

pghpete avatar pghpete commented on August 26, 2024

Works perfectly! Thank you very much for your work on this project and for your help here. I greatly appreciate it.

from ytcc.

woefe avatar woefe commented on August 26, 2024

Thanks!

from ytcc.

pghpete avatar pghpete commented on August 26, 2024

Woefe, did this merge_output option go away in the latest revision? Was the change made on the main branch? Seems all of a sudden my system is ignoring it and dumping webm files instead.

from ytcc.

pghpete avatar pghpete commented on August 26, 2024

ignore that pghpete dude. he's mistaken. what a dope. :)

new system lacked ffmpeg for some reason so it couldn't do the merge post download.

from ytcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.