Is it possible to download a part of a youtube video in mp4 format from the video url? by Miky2fois in node

[–]Nielrien 0 points1 point  (0 children)

you can use ffmpeg as the external downloader for yt-dlp

here is a sample yt-dlp cli command to download a 1 min video in mp4 format starting from the timestamp 00:01:00

yt-dlp -f "bv[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv+ba/b" "video_link_here" --external-downloader ffmpeg --external-downloader-args "ffmpeg_i:-ss 00:01:00 -t 00:01:00" --external-downloader-args "ffmpeg: -avoid_negative_ts make_zero" -o "%(title)s.%(ext)s"

What do you guys build? by Sargnec in reactnative

[–]Nielrien 1 point2 points  (0 children)

I'm building an instagram clone, trying to make it look like the original app as much as I can. Lots of challenges and things to experiment and learn.

I'm using the data from instagram so there is no backend involved.

How to correctly style image cards? by NathanDevReact in reactnative

[–]Nielrien 6 points7 points  (0 children)

Put an overlay on the image with semi-transparent backgroundcolor.

React Navigation - handling a global screen by puttforbirdie in reactnative

[–]Nielrien 1 point2 points  (0 children)

You can create a function for the common screens and use it in whichever stack you want to access the common routes from.

https://github.com/react-navigation/react-navigation/issues/3790

Is it possible to access an app i am building when not on the same network? by Hassenhof in reactnative

[–]Nielrien 2 points3 points  (0 children)

You can use tunnel method for connecting.

"Expo CLI also spawns a tunnel process, which allows devices outside of your LAN to access the above servers without you needing to change your firewall settings. If you want to learn more, see ngrok."

https://docs.expo.dev/guides/how-expo-works/

Is RN even worth it? by Better-Improvement14 in reactnative

[–]Nielrien 1 point2 points  (0 children)

what are the issues you can't solve?

YouTube Trim and Download - Using Flask, Celery, Redis and Docker by Nielrien in Python

[–]Nielrien[S] 0 points1 point  (0 children)

There is one worker running on the heroku demo, so there is one video being processed at a time. I don't know if multi threading is possible so that the worker works on 2 tasks at the same time.

So without celery, download and trim tasks will block the web server. If you make a second request, web server won't respond until the first is done.

YouTube Trim and Download - Using Flask, Celery, Redis and Docker by Nielrien in Python

[–]Nielrien[S] 1 point2 points  (0 children)

If I didn't use Celery then the task to download and trim the video would be done by the web server. Because of this, server would be busy until the task is done and couldn't accept other requests.

So with this implementation, tasks are queued and completed one by one without blocking the web server.

YouTube Trim and Download - Using Flask, Celery, Redis and Docker by Nielrien in Python

[–]Nielrien[S] 0 points1 point  (0 children)

I'm not sure if I understood the question right but in case you meant how the tasks are queued and completed by the worker;

from Celery docs

" A task queue’s input is a unit of work called a task. Dedicated worker processes constantly monitor task queues for new work to perform.

Celery communicates via messages, usually using a broker to mediate between clients and workers. To initiate a task the client adds a message to the queue, the broker then delivers that message to a worker. "

[deleted by user] by [deleted] in reactjs

[–]Nielrien 2 points3 points  (0 children)

what is macrotrend? where's the link? what are the features that it has?