spaam / svtplay-dl

Small command-line program to download videos from some streaming sites.
https://svtplay-dl.se
MIT License
724 stars 122 forks source link

SVT Play have now 5.1 sound in some shows. How can I get it? #1237

Closed Thoxxx closed 4 years ago

Thoxxx commented 4 years ago

svtplay-dl versions:

Run svtplay-dl --version

Operating system and Python version:

Name and version of the operating system and python version (run python --version)

What is the issue:

Always include the URL you want to download and all switches you are using. You should also add --verbose because it makes it much easier for use to find the issue :)

svtplay-dl --verbose https://www.example.com
Sopor commented 4 years ago

Was it too hard to include some URLs?

Thoxxx commented 4 years ago

https://www.svtplay.se/video/24829882/tamara-drewe?start=auto https://www.svtplay.se/video/26573930/falsk-identitet/falsk-identitet-sasong-5-avsnitt-1?start=auto

Thoxxx commented 4 years ago

Many new series and movies are in 5.1

Sopor commented 4 years ago

What do you use to play it in 5.1 audio?

Thoxxx commented 4 years ago

Apple TV 4K

UWTD commented 4 years ago

Uwtd will release an svtplay-dl fix later today. It is already in use by some users but will be public today

Thoxxx commented 4 years ago

Nice! Thank you

spaam commented 4 years ago

@UWTD feel free to do a pull request and we can have the changes upstream : )

spaam commented 4 years ago

seems like videos is also in h265(hevc)..

it will be a interesting how to present the data. should we prefer h264(avc) over h265? 🤔

Sopor commented 4 years ago

h265 is not supported by all single-board computer, so i suggest you to stay with h264.

spaam commented 4 years ago

that sounds like a option.. maybe have something similar to the -P option where we can specify what files to download so you can get the hevc if you want it.

UWTD commented 4 years ago

h265 have big issus in some devices. And svt's h265 have crappy quality..

Sopor commented 4 years ago

It seems that SVT has started to use 1080p too. I just downloaded a 1080p in 5.1 audio with youtube-dl :)

Video: MPEG4 Video (H264) 1920x1080 25fps 3082kbps [V: h264 high L4.1, yuv420p, 1920x1080, 3082 kb/s]
Audio: Dolby AC3 48000Hz 6ch 448kbps [A: SoundHandler (ac3, 48000 Hz, 5.1, 448 kb/s)]
UWTD commented 4 years ago

1080p is not new on svt

Sopor commented 4 years ago

I have never downloaded any 1080p with svtplay-dl from SVTPlay.

UWTD commented 4 years ago

Ok

Thoxxx commented 4 years ago

I think more or less all new material (maybe not news etc) is 1080p

Thoxxx commented 4 years ago

@Sopor: How do you download from svt play with youtube-dl? I tried https://www.svtplay.se/video/25374987/good-kill but only got 2.0 audio Plays 5.1 on Apple TV

UWTD commented 4 years ago

@Thoxxx Try: youtube-dl -f hls-cmaf-avc-51-surround-Svenska https://www.svtplay.se/video/25374987/good-kill

Sopor commented 4 years ago

@Thoxxx I used:

youtube-dl -f bestvideo+hls-ts-avc-51-surround-Svenska --write-sub --all-subs --embed-subs --convert-subs srt --restrict-filenames https://www.svtplay.se/video/25374987/good-kill

but subs is not needed (hardcoded in this movie) but i use the same options for all video i download :)

Sopor commented 4 years ago

@UWTD That line you suggested only downloads the audio

UWTD commented 4 years ago

@Sopor yes. I guess he do not need the video. If it already downloaded once? Merge the new audio to the old video and it is done.

An svtplay-dl solution is released on https://uwtd.me and I guess @spaam will look on #1238 tomorrow

Sopor commented 4 years ago

I believe most non expert user don't do that. It is one step over there heads :)

Sopor commented 4 years ago

The add-on Retrospect for Kodi now also has support for 5.1 audio :)

Thoxxx commented 4 years ago

Hi, The best for me is if I can download both audio and video and mux them in one pass. I'm not into programming at all, but it seems this works on svt play until there is an updated svtplay-dl:

youtube-dl -f bestvideo+hls-ts-avc-51-surround-Svenska https://www.svtplay.se/video/25374987/good-kill

Thanks

UWTD commented 4 years ago

Yes maybe it's to hard for some users but some will make it. I guess @spaam will look at my pull request tomorrow. And if users can't wait the modified svtplay-dl is posted on my site

Thoxxx commented 4 years ago

Strange though that the video don't open in QuickTime Player. Works in VLC and Apple TV

Skärmavbild 2020-06-03 kl  00 05 40
UWTD commented 4 years ago

Yes it is some issues with youtube-dl and the merge

Sopor commented 4 years ago

@Thoxxx I downloaded the same file as you did and it was no problem to play it in VLC, Kodi, MPC, WMP 12 or MPC Homecinema. I don't have QT in Windows.

General
Complete name                            : Tamara_Drewe-K16pgXw.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 2.63 GiB
Duration                                 : 1 h 46 min
Overall bit rate                         : 3 548 kb/s
Writing application                      : Lavf58.29.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 h 46 min
Bit rate                                 : 3 100 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.060
Stream size                              : 2.29 GiB (87%)
Writing library                          : x264 core 155 r2917 0a84d98
Encoding settings                        : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x133 / me=hex / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=34 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=192 / keyint_min=96 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=3100 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=4700 / vbv_bufsize=6200 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : ac-3
Duration                                 : 1 h 46 min
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 340 MiB (13%)
Service kind                             : Complete Main
Default                                  : Yes
Alternate group                          : 1

When i did a search for that error message it seems to have something to do with the audio. Can you play other 5.1 videos in QT or it was only this file?

SYSophie commented 4 years ago

seems like videos is also in h265(hevc)..

it will be a interesting how to present the data. should we prefer h264(avc) over h265? 🤔

H264(AVC) has overall better performance for now, H265(HEVC) removes details, messes up a lot sometimes and has a general green tint to it.

According to this thread they're still tweaking the HEVC - Link

I posted a few samples in that thread comparing the two of them. Attaching them here too. Sample 1 - Link Sample 2 - Link

I think HEVC has a great future ahead of it but for now I think it's better to stick with H264 when looking at the quality difference and the compatibility.

@Sopor 1080p has been available at least since October 2019. Tipped media about it - Link Since then it has been available on everything newly published. With a few exceptions.

Thoxxx commented 4 years ago

@Sopor I can play other 5.1 videos in QT Player but no files from youtube-dl. But it works on other players. @SYSophie Agree that avc looks better

SYSophie commented 4 years ago

@Sopor I can play other 5.1 videos in QT Player but no files from youtube-dl. But it works on other players. @SYSophie Agree that avc looks better

the yt-dl issue is something I suggest you report in their repo. But it would be interesting to know which versions of the softwares (yt-dl & FFmpeg) that you are running I assume that you are up to date?

When I'm downloading manually the streams thru FFmpeg it plays fine thru any player.

Yeah some people might argue that H265 looks better on larger screen which I in some cases can agree on but then we have the general green tint, big mess ups from time to time and removed details.

Based on the scrubbing I have done thru 10-20 of these videos and comparing them I must say that I would say that AVC has a better performance overall. But I guess that might change soon as they are tweaking it.

EDIT:

If someone wanna compare videos side by side, SVT has developed their own tool for this it's called Vivict and to watch side by side you need to load the two manifests - Link to the tool

Link to article about it

Thoxxx commented 4 years ago

yt-dl version 2020.05.29 ffmpeg 4.1.4

I wrote ... --version in Terminal. Was that right?

Sopor commented 4 years ago

I run ffmpeg version 4.2.1 and youtube-dl 2020.05.29. Try update if possible...

Thoxxx commented 4 years ago

What's the best way to update FFmpeg ?

UWTD commented 4 years ago

@Thoxxx what OS do you use?

Sopor commented 4 years ago

I think he is running macos ...

Thoxxx commented 4 years ago

Mojave. I reinstalled ffmpeg with Homebrew and got 4.2.3 But still the same problem with QT Player. Works on VLC and Apple TV. Is there an updated svtplay-dl coming up?

Thoxxx commented 4 years ago

Any news about this?

SYSophie commented 4 years ago

@Thoxxx UWTD has released a version of it's custom svtplay-dl that supports it and made a PR for this repo.

Thoxxx commented 4 years ago

I'm sorry, I'm not sure how to get/use it

Thoxxx commented 4 years ago

I managed to get UWTD's version to run; git clone https://github.com/UWTD/svtplay-dl.git Now the --version says svtplay-dl 2.4-42-g916e199 But still only 2 channels AAC

UWTD commented 4 years ago

@Thoxxx url yo the video?

SYSophie commented 4 years ago

@Thoxxx not all videos is using 5.1 it's still in testing. This is why @UWTD is asking which URL you're using as for the most part of the videos AAC 2-channel is still the highest rated audio available.

Thoxxx commented 4 years ago

Here are some URL:s that's in ac3 5.1 but svtplay-dl still only gives 2 channel AAC https://www.svtplay.se/video/26844873/euphoria?start=auto https://www.svtplay.se/video/26560142/normala-manniskor/normala-manniskor-sasong-1-avsnitt-1?start=auto https://www.svtplay.se/video/27065201/the-frankenstein-chronicles/the-frankenstein-chronicles-sasong-2-prodigal-son Even old series they stream again can sometimes be ac3: https://www.svtplay.se/video/18584390/akta-manniskor/akta-manniskor-sasong-1-avsnitt-1

Many new series and quite a few feature films are now 5.1

Thoxxx commented 4 years ago

You can see directly when svtplay-dl starts that it downloads a stereo m4a file first

UWTD commented 4 years ago

@Thoxxx https://delafil.se/4bf3f93822990487/svtplay-dl.rar use the svtplay-dl with python

Thoxxx commented 4 years ago

I don't know how to use this...

UWTD commented 4 years ago

@Thoxxx Install python: https://www.python.org/downloads/ Install PyYAML with command in powershell or cmd: pip install PyYAML Install cryptography with command in powershell or cmd: pip install cryptography then run svtplay-dl like this in powershell or cmd: python .\svtplay-dl https://www.svtplay.se/video/26844873/euphoria

https://delafil.se/9d5277eb9750c71b/Ny_mapp[2].mp4

Thoxxx commented 4 years ago

I'm using macOS 10.14.6 (Mojave) Are these commands for Mac? Have installed python from their website Have installed PowerShell (with brew). Don't know what it is Should I do anything with this link you sent: https://delafil.se/4bf3f93822990487/svtplay-dl.rar

Skärmavbild 2020-06-17 kl  00 05 34