Live data from Hacker News

Show HN: YTPics – Download pictures from YouTube videos

ytpics.com

21–30 of 41 posts

Re: Show HN: YTPics – Download pictures from YouTube videos

#21

I have extracted frames with vlc before before. They always look like shit. Like with a lower resolution. Why? Like if you freeze a youtube video the pic looks clean.

If you use ffmpeg with png you will get sharper images. I was trying to extract a numberplate once and this worked out best.

Re: Show HN: YTPics – Download pictures from YouTube videos

#22
post #19

Earlier quoted context omitted.

This would be a good place to share that one line.

yt-dlp ${youtube_video_url} --get-url ffmpeg -ss ${seconds} -i "${first_url_from_yt-dlp}" -t 1 -r 4/1 -q:v 2 -vf scale="0:-1" ${target} -r 4/1: 4 frames per second Again this app is for mobile devices which lack yt-dlp+ffmpeg

Nice, if you install termux (from fdroid) you can run it directly on your android.

Re: Show HN: YTPics – Download pictures from YouTube videos

#23
post #12

Earlier quoted context omitted.

In the description it says app is for mobile devices

VLC runs on mobile devices: https://www.videolan.org/vlc/download-android.html

It’s nowhere near as powerful though, and I don’t think it can do this particular task.

Re: Show HN: YTPics – Download pictures from YouTube videos

#25
post #19

Earlier quoted context omitted.

This would be a good place to share that one line.

yt-dlp ${youtube_video_url} --get-url ffmpeg -ss ${seconds} -i "${first_url_from_yt-dlp}" -t 1 -r 4/1 -q:v 2 -vf scale="0:-1" ${target} -r 4/1: 4 frames per second Again this app is for mobile devices which lack yt-dlp+ffmpeg

Does this really not download the whole video? I havent checked but im just surprised that it's possible

Re: Show HN: YTPics – Download pictures from YouTube videos

#27
post #23

Earlier quoted context omitted.

VLC runs on mobile devices: https://www.videolan.org/vlc/download-android.html

It’s nowhere near as powerful though, and I don’t think it can do this particular task.

It is a full port of VLC so it should be able to handle this task. You're probably referring to the frontend which differs from the ones used on desktop but that does not mean the functionality is not available. It is, you just access it differently. Either enable the 'Take a screenshot' option (Controls Settings -> Take a screenshot) and use that or send an intent to do so. The former works while watching videos, the latter makes it possible to automate this task from within termux, Tasker or Automagic.

You can also just install vlc in termux and use the command line interface:

   ~ $ apt search vlc
   Sorting... Done
   Full Text Search... Done
   vlc/stable 3.0.18-7 aarch64
     A popular libre and open source media player and multimedia engine

   vlc-qt/x11 3.0.18-7 aarch64
     A popular libre and open source media player and multimedia engine

   vlc-qt-static/x11 3.0.18-7 aarch64
     Static libraries for vlc-qt

   vlc-static/stable 3.0.18-7 aarch64
     Static libraries for vlc

Re: Show HN: YTPics – Download pictures from YouTube videos

#28

I have extracted frames with vlc before before. They always look like shit. Like with a lower resolution. Why? Like if you freeze a youtube video the pic looks clean.

It's basically an optical illusion. When things are in motion, your brain is better at ignoring the compression artifacts. When they're still, they're glaringly obvious.

Re: Show HN: YTPics – Download pictures from YouTube videos

#29

Very cool. Just curious, is this legal? I would assume the legality falls on the user of the service?

Is taking screenshots of a paused YouTube video illegal?

Certain rights-holders want us believe that taking screenshots at 24Hz is illegal (see: youtube-dl takedowns)

Re: Show HN: YTPics – Download pictures from YouTube videos

#30
post #28

I have extracted frames with vlc before before. They always look like shit. Like with a lower resolution. Why? Like if you freeze a youtube video the pic looks clean.

It's basically an optical illusion. When things are in motion, your brain is better at ignoring the compression artifacts. When they're still, they're glaringly obvious.

parent comment specifically said that when frozen in player it looks clean
Post reply on HN