-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The downloaded videos are compressed to low quality #48
Comments
Hi @jianzongwu, |
Hello, I tried to set the target resolution to 720p and 360p. The downloaded videos are as the resolution, but both have compressed patches. How to use the 'bv' tag in the downloading script? |
config-720.mp4I tried again to download a 720p video. The downloaded video is 720x1280, but it is still severely compressed. It's not the resolution problem. The problem is that the downloaded videos do not look the same as YouTube videos if you look at them online. I'm wondering if anyone has the same problem as I have. |
Hi @jianzongwu, Could you please try to run this command: |
Interestingly, it is not compressed. I followed your command and downloaded the sunrise video with I also downloaded the 360p version of this video by this command: I notice a difference between my downloading previous times and this time. The compressed videos can not be identified and opened in VSCode. I must download the videos to my local machine and open it with MP4 player. However, the successfully downloaded videos without compression can be opened directly by VSCode. So, the problem is in the codebase, where it calls yt-dlp and saves the videos? |
subsampling: {}
reading:
yt_args:
download_size: 360
download_audio: False
yt_metadata_args:
writesubtitles: False
subtitleslangs: ['en']
writeautomaticsub: False
get_info: False
timeout: 60
sampler: null
storage:
number_sample_per_shard: 100
oom_shard_count: 5
captions_are_subtitles: False
distribution:
processes_count: 32
thread_count: 32
subjob_size: 10000
distributor: "multiprocessing" This is my config. |
Hi @jianzongwu,
Yes, could you please print these lines and try to run yt-dlp command using the same option and see whether you will get the compressed videos? |
Hi, I have solved the problem. It is caused by ffmpeg, it compress the videos when splitting the videos by timestamps. I did not find the calling place of ffmpeg in the codebase, so I re-write a download script myself based on Feel free to close this issue. |
Hi @jianzongwu, Great to hear you solved the problem! And thanks for providing the useful information. |
Hello, I used the download script to download validation videos but found that they are compressed a lot and, as a result, of low quality. Do you have any idea about this? I guess this may be caused by YouTube compressing the videos when downloading.
The images above are extracted frames and there seem to be many pixel patches, especially on the background
Does anyone have the same issue as I do?
The text was updated successfully, but these errors were encountered: