Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-02

[Pol] Stream video and save in client

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

aradeonas

Hi,

I want to know your opinions about this situation:

I want to make an app that let user to stream video and also cache them so another time when he/she wants to play there is no need to stream it again.
For this I read all sources that I found and still Its not clear for me: 1-What is the best file format for streaming and saving to user device for lather use,flv,mp4 or ...?
2-Can I use rtmp or other stream protocol or its need a custom stream system?

Regards,
Ara

http://www.fastmail.com - mmm... Fastmail...

Reply by email

Graeme Geldenhuys
to aradeonas
aradeonas wrote
1-What is the best file format for streaming and saving to user device for lather use,flv,mp4 or ...?

OGV, MP4, WEBM, and I believe the first and last ones are supported out of the box on web browsers like Firefox and Chrome (on multiple platforms - even FreeBSD ;-)) without the need of any plugins.

But then again, everybody should have a copy of VLC installed - which means ANY video and audio format is supported. ;-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

aradeonas
to Graeme Geldenhuys

Thank you Graeme,

Its very pleasant to have friends that you can take their guidance. Do you know about converting resource of them?Because my source file are mp4 and it better for me to reduce resource usage. Also I want to use this videos with a client app not a web browser and cache played video so if stream or transferring mp4 is possible I think its might be better.

Regards,
Ara

Graeme Geldenhuys wrote 23 lines
On 2015-02-20 13:38, aradeonas wrote: > 1-What is the best file format for streaming and saving to user device > for lather use,flv,mp4 or ...? OGV, MP4, WEBM, and I believe the first and last ones are supported out of the box on web browsers like Firefox and Chrome (on multiple platforms - even FreeBSD ;-)) without the need of any plugins. But then again, everybody should have a copy of VLC installed - which means ANY video and audio format is supported. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
http://www.fastmail.com - Access your email from home and the web

Reply by email

Graeme Geldenhuys
to aradeonas
aradeonas wrote
Do you know about converting resource of them?

I always use ffmpeg to do any encoding or conversions. It is a command line app with a huge selection of configuration, but you can stick to more simple command line parameters which gives fairly good results. I believe I have seen GUI front-ends for ffmpeg too - one I think is even implemented with Lazarus. A quick Google search...

https://code.google.com/p/winff/

Also I want to use this videos with a client app not a web browser and cache played video

I didn't know how to code/develop something like that. I do know VLC supports that out of the box. You can play videos from a remote URL (Media -> Open Network Stream) and tell it to save or re-encode it to a local file at the same time.

For example, in VLC: Media -> Open Network Stream, then enter a URL like https://www.youtube.com/watch?v=u4G-8RIvR3Q

More details on opening a stream and saving it to file using VLC:

https://wiki.videolan.org/Documentation:Streaming_HowTo/Receive_and_Save_a_Stream/

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

aradeonas
to Graeme Geldenhuys

Thank you Graeme,

Do you know about converting resource of them?

I mean usage resources like CPU,My English is poor,excuse me. Sure I use ffmpeg. I want to know any one have experiance with case like this and help me.

Regards, Ara

Graeme Geldenhuys wrote 40 lines
On 2015-02-21 11:23, aradeonas wrote: > Do you know about converting resource of them? I always use ffmpeg to do any encoding or conversions. It is a command line app with a huge selection of configuration, but you can stick to more simple command line parameters which gives fairly good results. I believe I have seen GUI front-ends for ffmpeg too - one I think is even implemented with Lazarus. A quick Google search... https://code.google.com/p/winff/ > Also I want to use this videos with a client app not a web browser > and cache played video I didn't know how to code/develop something like that. I do know VLC supports that out of the box. You can play videos from a remote URL (Media -> Open Network Stream) and tell it to save or re-encode it to a local file at the same time. For example, in VLC: Media -> Open Network Stream, then enter a URL like https://www.youtube.com/watch?v=u4G-8RIvR3Q More details on opening a stream and saving it to file using VLC: https://wiki.videolan.org/Documentation:Streaming_HowTo/Receive_and_Save_a_Stream/ Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
http://www.fastmail.com - Access all of your messages and folders wherever you are -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150221/b469e6d3/attachment.html>

Reply by email