mhogomchungu / media-downloader

Media Downloader is a Qt/C++ front end to yt-dlp, youtube-dl, gallery-dl, lux, you-get, svtplay-dl, aria2c, wget and safari books..
GNU General Public License v2.0
1.68k stars 131 forks source link

No longer showing audio/video bitrates in Get List #93

Closed githottub closed 2 years ago

githottub commented 2 years ago

In the previous version I was using (1.5? I think) when using Get List, the note column would show the separate audio and video bitrates. This was really helpful for various reasons. Obviously to choose your preferred version but I also found it vital in getting vidoes from NHK due to some file versions will occasionally be corrupt and it was possible to immediately identify that by looking at the bitrates. But after upgrading to version 2.2, it is no longer showing the individual audio and video bitrates in Get List. Can you please return this functionality? Thank you!!!

mhogomchungu commented 2 years ago

Below image shows video entries have both tbr and vbr and audio has only tbr so the only thing to add is abr for audio.

Screenshot_20220127_133342

mhogomchungu commented 2 years ago

Audio file now also show abr as seen in the image below.

Closing this one and please comment if i did not understand the issue and its still present. Screenshot_20220127_135140

mhogomchungu commented 2 years ago

If you are using windows, then binaries with the fix can be downloaded from here[1] and here[2]

[1] https://github.com/mhogomchungu/media-downloader/releases/download/2.2.0/MediaDownloader-dev-jan-29-2022.setup.exe

[2] https://github.com/mhogomchungu/media-downloader/releases/download/2.2.0/MediaDownloader-dev-jan-29-2022.zip

githottub commented 2 years ago

Thanks for trying to fix this but I guess the problem is dependant on the video source and therefore remains even in the new version. I'm including a screenshot of what's shown for: https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2061495/ Screenshot As you can see, it shows nothing for the audio codec and although it does show the video bitrate, it doesn't show the codec. Hope this helps troubleshoot the problem. Thanks again!

mhogomchungu commented 2 years ago

The UI does not show a lot of options because they are not available for that url, running yt-dlp directly gives the following output.

[ink@localhost ~]$ yt-dlp -F https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2061495/
[NhkVod] 2061-495: Downloading JSON metadata
[Piksel] nw_vod_v_en_2061_495_20220124013000_01_1642957439: Downloading webpage
[Piksel] nw_vod_v_en_2061_495_20220124013000_01_1642957439: Downloading JSON metadata
[Piksel] nw_vod_v_en_2061_495_20220124013000_01_1642957439: Downloading JSON metadata
[Piksel] k8j6p8dc: Downloading m3u8 information
[Piksel] k8j6p8dc: Downloading SMIL file
[info] Available formats for k8j6p8dc:
ID         EXT RESOLUTION │   FILESIZE    TBR PROTO  │ VCODEC     VBR ACODEC   ABR
───────────────────────────────────────────────────────────────────────────────────
http-382   mp4 320x180    │   74.61MiB   382k http   │ unknown   255k unknown 127k
hls-391    mp4 unknown    │              391k m3u8_n │ unknown   391k unknown   0k
http-391   mp4 320x?      │              391k http   │ unknown   391k unknown   0k
http-662   mp4 640x360    │  128.65MiB   662k http   │ unknown   535k unknown 127k
hls-677    mp4 unknown    │              677k m3u8_n │ unknown   677k unknown   0k
http-677   mp4 640x?      │              677k http   │ unknown   677k unknown   0k
http-1243  mp4 1280x720   │  240.60MiB  1243k http   │ unknown  1116k unknown 127k
hls-1272   mp4 unknown    │             1272k m3u8_n │ unknown  1272k unknown   0k
http-1272  mp4 1280x?     │             1272k http   │ unknown  1272k unknown   0k
http-2126  mp4 1280x720   │  411.13MiB  2126k http   │ unknown  1999k unknown 127k
http-2177  mp4 1280x?     │             2177k http   │ unknown  2177k unknown   0k
http-10266 mp4 1920x1080  │    1.98GiB 10266k http   │ unknown 10266k unknown   0k
[ink@localhost ~]$ 
githottub commented 2 years ago

OK. I guess maybe why I was seeing a difference between versions of Media Downloader is because the old one was using the original youtube-dl engine and the new one is using the dlp engine?? Anyway, is it possible you can also get the latest version to show the audio bitrate in the Get List like it used to? It really is very helpful. The above video is a good example - see how the 1920x1080 variant shows 0k for the audio bitrate whereas the other resolutions show 127k... by seeing that in Get List it makes it possible to know the 1080 one is corrupt and won't play. I have confirmed this several times because it periodically happens with videos from this source and everytime one shows 0k for the audio bitrate, the downloaded file won't play.

Thank you for your help!!!

mhogomchungu commented 2 years ago

With yt-dlp, earlier versions were taking the output as seen above and show it in the UI. The problem with this approach is that yt-dlp developer discourages using CLI outputs because they are unstable and they change without notice and i have observed about 3 changes with this output.

Newer versions of media downloader uses the recommended way and the received json based output shown below can be seen when you right click on the "Url to download" area and then choose "Show Log Window".

I have made changes and the UI now looks like below image and it should now be easier to see what entry has 0K value and what entry have a different value, if a value is not present then the reason is because yt-dlp did not produce it in its json based output.

To get the build with the fix, go here[1] and download a version with "MediaDownloader-dev-Feb-01-2022" in its name.

[1] https://github.com/mhogomchungu/media-downloader/releases/tag/2.2.0

Screenshot_20220201_193919

[
    {
        "abr": 127,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "filesize": 78233214,
        "format": "http-382 - 320x180",
        "format_id": "http-382",
        "height": 180,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "protocol": "http",
        "resolution": "320x180",
        "tbr": 382,
        "url": "http://mz-nhk10.mzpf.webcdn.stream.ne.jp/www60/mz-nhk10/media/mm/flvmedia/5905/s/p/k/spk97909_e05bw685_h264_384K.mp4?cid=5905&aid=3956705&afid=8347554&assetid=3956705",
        "vbr": 255,
        "video_ext": "mp4",
        "width": 320
    },
    {
        "abr": 0,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "format": "hls-391 - unknown",
        "format_id": "hls-391",
        "format_index": null,
        "fps": null,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "manifest_url": "https://hls-abr-api-wse-nhkw.stream.co.jp/make.m3u8?app=mz-nhk10&plfm=kitdvod&bcp=mm/flvmedia/&media=1272832:5905/s/p/k/spk97909_x49t9t2i_h264_1244K.mp4,677888:5905/s/p/k/spk97909_nl8i2rem_h264_664K.mp4,391168:5905/s/p/k/spk97909_e05bw685_h264_384K.mp4",
        "preference": null,
        "protocol": "m3u8_native",
        "quality": null,
        "resolution": null,
        "tbr": 391.168,
        "url": "https://nhkw-mzvod.akamaized.net/www60/mz-nhk10/_definst_/mp4:mm/flvmedia/5905/s/p/k/spk97909_e05bw685_h264_384K.mp4/chunklist.m3u8",
        "vbr": 391.168,
        "video_ext": "mp4"
    },
    {
        "abr": 0,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "filesize": null,
        "format": "http-391 - 320x?",
        "format_id": "http-391",
        "height": null,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "protocol": "http",
        "resolution": "320x?",
        "tbr": 391.168,
        "url": "http://mz-nhk10.mzpf.webcdn.stream.ne.jp/www60/mz-nhk10/media/mm/flvmedia/5905/s/p/k/spk97909_e05bw685_h264_384K.mp4?cid=5905&aid=3956705&afid=8347554&apid=1217057&programid=5437274",
        "vbr": 391.168,
        "video_ext": "mp4",
        "width": 320
    },
    {
        "abr": 127,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "filesize": 134894432,
        "format": "http-662 - 640x360",
        "format_id": "http-662",
        "height": 360,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "protocol": "http",
        "resolution": "640x360",
        "tbr": 662,
        "url": "http://mz-nhk10.mzpf.webcdn.stream.ne.jp/www60/mz-nhk10/media/mm/flvmedia/5905/s/p/k/spk97909_nl8i2rem_h264_664K.mp4?cid=5905&aid=3956705&afid=8347555&assetid=3956705",
        "vbr": 535,
        "video_ext": "mp4",
        "width": 640
    },
    {
        "abr": 0,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "format": "hls-677 - unknown",
        "format_id": "hls-677",
        "format_index": null,
        "fps": null,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "manifest_url": "https://hls-abr-api-wse-nhkw.stream.co.jp/make.m3u8?app=mz-nhk10&plfm=kitdvod&bcp=mm/flvmedia/&media=1272832:5905/s/p/k/spk97909_x49t9t2i_h264_1244K.mp4,677888:5905/s/p/k/spk97909_nl8i2rem_h264_664K.mp4,391168:5905/s/p/k/spk97909_e05bw685_h264_384K.mp4",
        "preference": null,
        "protocol": "m3u8_native",
        "quality": null,
        "resolution": null,
        "tbr": 677.888,
        "url": "https://nhkw-mzvod.akamaized.net/www60/mz-nhk10/_definst_/mp4:mm/flvmedia/5905/s/p/k/spk97909_nl8i2rem_h264_664K.mp4/chunklist.m3u8",
        "vbr": 677.888,
        "video_ext": "mp4"
    },
    {
        "abr": 0,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "filesize": null,
        "format": "http-677 - 640x?",
        "format_id": "http-677",
        "height": null,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "protocol": "http",
        "resolution": "640x?",
        "tbr": 677.888,
        "url": "http://mz-nhk10.mzpf.webcdn.stream.ne.jp/www60/mz-nhk10/media/mm/flvmedia/5905/s/p/k/spk97909_nl8i2rem_h264_664K.mp4?cid=5905&aid=3956705&afid=8347555&apid=1217057&programid=5437274",
        "vbr": 677.888,
        "video_ext": "mp4",
        "width": 640
    },
    {
        "abr": 127,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "filesize": 252285609,
        "format": "http-1243 - 1280x720",
        "format_id": "http-1243",
        "height": 720,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "protocol": "http",
        "resolution": "1280x720",
        "tbr": 1243,
        "url": "http://mz-nhk10.mzpf.webcdn.stream.ne.jp/www60/mz-nhk10/media/mm/flvmedia/5905/s/p/k/spk97909_x49t9t2i_h264_1244K.mp4?cid=5905&aid=3956705&afid=8347557&assetid=3956705",
        "vbr": 1116,
        "video_ext": "mp4",
        "width": 1280
    },
    {
        "abr": 0,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "format": "hls-1272 - unknown",
        "format_id": "hls-1272",
        "format_index": null,
        "fps": null,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "manifest_url": "https://hls-abr-api-wse-nhkw.stream.co.jp/make.m3u8?app=mz-nhk10&plfm=kitdvod&bcp=mm/flvmedia/&media=1272832:5905/s/p/k/spk97909_x49t9t2i_h264_1244K.mp4,677888:5905/s/p/k/spk97909_nl8i2rem_h264_664K.mp4,391168:5905/s/p/k/spk97909_e05bw685_h264_384K.mp4",
        "preference": null,
        "protocol": "m3u8_native",
        "quality": null,
        "resolution": null,
        "tbr": 1272.832,
        "url": "https://nhkw-mzvod.akamaized.net/www60/mz-nhk10/_definst_/mp4:mm/flvmedia/5905/s/p/k/spk97909_x49t9t2i_h264_1244K.mp4/chunklist.m3u8",
        "vbr": 1272.832,
        "video_ext": "mp4"
    },
    {
        "abr": 0,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "filesize": null,
        "format": "http-1272 - 1280x?",
        "format_id": "http-1272",
        "height": null,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "protocol": "http",
        "resolution": "1280x?",
        "tbr": 1272.832,
        "url": "http://mz-nhk10.mzpf.webcdn.stream.ne.jp/www60/mz-nhk10/media/mm/flvmedia/5905/s/p/k/spk97909_x49t9t2i_h264_1244K.mp4?cid=5905&aid=3956705&afid=8347557&apid=1217057&programid=5437274",
        "vbr": 1272.832,
        "video_ext": "mp4",
        "width": 1280
    },
    {
        "abr": 127,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "filesize": 431099779,
        "format": "http-2126 - 1280x720",
        "format_id": "http-2126",
        "height": 720,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "protocol": "http",
        "resolution": "1280x720",
        "tbr": 2126,
        "url": "http://mz-nhk10.mzpf.webcdn.stream.ne.jp/www60/mz-nhk10/media/mm/flvmedia/5905/s/p/k/spk97909_mxc3eun6_h264_2128K.mp4?cid=5905&aid=3956705&afid=8347556&assetid=3956705",
        "vbr": 1999,
        "video_ext": "mp4",
        "width": 1280
    },
    {
        "abr": 0,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "filesize": null,
        "format": "http-2177 - 1280x?",
        "format_id": "http-2177",
        "height": null,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "protocol": "http",
        "resolution": "1280x?",
        "tbr": 2177.024,
        "url": "http://mz-nhk10.mzpf.webcdn.stream.ne.jp/www60/mz-nhk10/media/mm/flvmedia/5905/s/p/k/spk97909_mxc3eun6_h264_2128K.mp4?cid=5905&aid=3956705&afid=8347556&apid=1217057&programid=5437274",
        "vbr": 2177.024,
        "video_ext": "mp4",
        "width": 1280
    },
    {
        "abr": 0,
        "audio_ext": "none",
        "dynamic_range": "SDR",
        "ext": "mp4",
        "filesize": 2128825447,
        "format": "http-10266 - 1920x1080",
        "format_id": "http-10266",
        "height": 1080,
        "http_headers": {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "en-us,en;q=0.5",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
        },
        "protocol": "http",
        "resolution": "1920x1080",
        "tbr": 10266,
        "url": "http://mz-nhk10.mzpf.webcdn.stream.ne.jp/www60/mz-nhk10/media/mm/flvmedia/5905/m/F/m/mF_mp4file10485185-3956705.mp4?cid=5905&aid=3956705&afid=8347553&assetid=3956705",
        "vbr": 10266,
        "video_ext": "mp4",
        "width": 1920
    }
]
githottub commented 2 years ago

Thank you!

mhogomchungu commented 2 years ago

New version is out: https://github.com/mhogomchungu/media-downloader/releases/tag/2.2.1