Re: [FFmpeg-user] UNABLE TO READ RTSP FROM IP CAMERA

2019-08-20 Thread R C
I have a uniden/hikvison doorbell that does the same.  It seems that  
the rtsp protocol is not really compatible (the hikvison doesn't 
comply).  However VLC seems to be filling in the gaps.



Ron

On 8/20/19 4:44 PM, Alejandro Escudero wrote:

Hi,

I can´t achieve to listen a RTSP from an IP Camera, 
rtsp://admin:password@192.168.0.103:554/cam/realmonitor?channel=1&subtype=0

I can play it on VLC normally but I can´t listen and open it with ffmpeg - 
ffplay

Here is what I have tried:


ffmpeg -rtsp_flags listen -i 
rtsp://admin:password@192.168.0.103:554/cam/realmonitor?channel=1&subtype=0

Unable to open RTSP for listening
rtsp://admin:password@192.168.0.103:554/cam/realmonitor?channel=1: Unknown error
"subtype" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.


Thanks



Alejandro

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]
  Libre de virus. 
www.avast.com
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] combining concatenating movies

2019-07-05 Thread R C

Hello,


what I came up with is something like this:

ffmpeg -f concat safe 0 -i movlist.txt -codec copy output.mp4

here movlist has entries like:

file '../07-04-2019/2019_0704_133725_071.MOV'



I had a dozen or so entries.



(after that I turned it into a timelapsed movie using something like:

ffmpeg -i sf2la.mp4 -filter:v "setpts=0.5*PTS" -an output.mp4



thanks,


Ron


On 7/5/19 12:34 AM, Stéphane Chauveau wrote:
I was wondering the same things a few days ago and a simple solution 
seems to be the concat filter.


https://ffmpeg.org/ffmpeg-filters.html#concat

A simple example that works fine for me for inputs of the same size 
and no audio is:


ffmpeg \
   -ss 00:00 -t 4 -i input1.mp4 \
   -ss 00:06 -t 5 -i input2.mp4 \
   -ss 01:00 -t 3 -i input3.mp4 \
   -filter_complex 'concat=n=3:v=1:a=0' \
   -an output.mp4

Each of the -ss and -t specifies the start and the duration of the 
next input. You can remove them if you want the full videos but short 
durations are very convenient while experimenting.


The value n=3 passed to the concat filter should match the number of 
inputs.Be careful, ffmpeg will complain if n is too large but it will 
silently ignore some videos if n is too small.


That method requires that the videos are re-encoded so you may want to 
add a few options to control the encoding quality.



On 7/5/19 2:28 AM, R C wrote:

Hello,


I would like to combine a bunch of movies (a dozen or so short ones) 
to one long movie.


The short movies are from a dashcam, here is some info;

container: Quicktime

dimensions: 1920x1080

Codec: H.264

Framerate: 30 frames per second

Bitrate: varies per file ...

Audio doesn't matter much, there should be no audio


I tried a few  ffmpeg  options, tried to find examples online.


Any suggestions?


thanks,


Ron

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] combining concatenating movies

2019-07-04 Thread R C

Hello,


I would like to combine a bunch of movies (a dozen or so short ones) to 
one long movie.


The short movies are from a dashcam, here is some info;

container: Quicktime

dimensions: 1920x1080

Codec: H.264

Framerate: 30 frames per second

Bitrate: varies per file ...

Audio doesn't matter much, there should be no audio


I tried a few  ffmpeg  options, tried to find examples online.


Any suggestions?


thanks,


Ron

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg for transcoding/stream into web pag

2019-05-12 Thread R C


On 5/12/19 11:03 PM, Ted Park wrote:

I am using: ffmpeg -i 
"rtsp://192.168.x.y:554/user=admin_password=_channel=1_stream=0.sdp?real_stream"
 -y -c:a aac -b:a 16 -ac 2 -s 960x540 -c:v libx264 -b:v 80 -hls_time 10 
-hls_list_size 10 -start_number 1 mystream.m3u8
ffmpeg creates a new file "mystreamnn.ts" every so much time, can the old files be 
deleted automatically, or can it "wrap around" and start from the start of the file again 
after a certain amount of time?

You set the maximum number of entries in the playlist to 10, so if you add 
-hls_flags delete_segments by default it should only keep 10 + 1 segments 
before deleting them.


I changed it to this:

ffmpeg -i 
"rtsp://192.168.x.y:554/user=admin_password=_channel=1_stream=0.sdp?real_stream" 
-y -c:a aac -b:a 16 -ac 2 -s 960x540 -c:v libx264 -b:v 80 
-hls_time 6 -hls_list_size 10 -hls_flags delete_segments -start_number 1 
mystream.m3u8



that doesn't delete the "old files" though



mystream.m3u8 is created after "mystream1.ts" is created/finished, can it be created  as 
soon as ffmpeg starts, so the stream is "immediately" available?

Well this is partly because HLS isn’t really a streaming protocol, I can’t 
think of any good way to avoid that initial delay. The recommended target 
duration of each segment is 6 seconds (or adjusted for drop frame) so if you 
change hls_time from 10 to 6 you could make it shorter but I don’t think that’s 
usually the “bottleneck,” so to speak. There’s the time needed to connect to 
the original rtsp source and transcode, for instance.

If you keep an instance running constantly, this would be a non-issue though?


true,  but the delay is about 60 seconds or so,  I think that is because 
each segment is about that long?




___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] ffmpeg for transcoding/stream into web pag

2019-05-12 Thread R C

so I managed to create a stream and actually display it in a html/web page.


I am using: ffmpeg -i 
"rtsp://192.168.x.y:554/user=admin_password=_channel=1_stream=0.sdp?real_stream" 
-y -c:a aac -b:a 16 -ac 2 -s 960x540 -c:v libx264 -b:v 80 
-hls_time 10 -hls_list_size 10 -start_number 1 mystream.m3u8



To be honest, I "stole" it (from a youtube video of all places) and I 
have no idea what all the options do.



I would like to change a few things, in how ffmpeg is doing, what it is 
doing.



ffmpeg creates a new file "mystreamnn.ts" every so much time, can the 
old files be deleted automatically, or can it "wrap around" and start 
from the start of the file again after a certain amount of time?


mystream.m3u8 is created after "mystream1.ts" is created/finished, can 
it be created  as soon as ffmpeg starts, so the stream is "immediately" 
available?



Or would this need a completely different approach?


thanks,


Ron

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] ffmpeg for transcoding/stream into web pag

2019-05-12 Thread R C

Hello all,

I am a rookie at using ffmpeg (also trying gstreamer) to stream an IP 
camera feed into a web page.



as suggested; I am trying to use this ffmpeg command:

ffmpeg -i 
"rtsp://192.168.x.y:554/user=admin_password=_channel=1_stream=0.sdp?real_stream" 
-f hls -hls_playlist_type event -hls_segment_type mpegts 
-hls_segment_filename segment-%d.ts index.m3u8


which creates files like:

-rw-rw-r--   1 rocr rocr         276 May 12 19:56 index.m3u8
-rw-rw-r--   1 rocr rocr 1831120 May 12 19:53 segment-0.ts
-rw-rw-r--   1 rocr rocr 2272544 May 12 19:54 segment-1.ts
-rw-rw-r--   1 rocr rocr 1457752 May 12 19:55 segment-2.ts
-rw-rw-r--   1 rocr rocr 1456436 May 12 19:55 segment-3.ts
-rw-rw-r--   1 rocr rocr 1294380 May 12 19:56 segment-4.ts


the segment files are "MPEG-2 transport stream (video/mp2t)". Firefox 
(60.6.1esr 64-bi) doesn't really want to play them. VLC does,  and I can 
see there is actually video and audio in those files.



when I do this on a linux workstation, it works, as far as creating 
these segments goes. I have the impression that ffmpeg keeps creating 
new for as long as that comman runs? (that could become a problem),  
and  when i run this on a server,  the browser doesn't even find the 
files (and probably can't play them anyway).



any suggestions?


thanks,


Ron

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg for transcoding a stream into web pag

2019-05-11 Thread R C

about the "application/vnd.apple.mpegURL"

I'll try to mess with that a little today and see what happens



The HTML stuff,   I am not sure but if the doctype isn't there 
html/html5 is assume, but you're right, I put it there.
Since html5, and I want to use the html5 video tag,  the header in an 
html5 document is  now  instead of head.
I am aware I don't need it, if there's nothing in it, but at some point 
there will be..  once I have the video working


Ron

On 5/10/19 10:58 AM, Ted Park wrote:


   
   Your browser does not support the video tag.



The type for the “extended” m3u8 files for hls is registered as 
application/vnd.apple.mpegURL
Usually whatever handles mime types on your http server handles that for you.
personally I don’t mark mime types except maybe to make a link download instead 
of playing in browser.

You would put video/mp4 if it was an ISO format being embedded as a prerecorded 
file, but the m3u8 is just a text listing of where to find all the fragments.

Oh, and I forgot to mention, but the example I gave you was like the simplest 
thing that usually works on the major browsers. It doesn’t even meet the 
minimum specs for HLS, you might want to look into implementing more features 
(especially the ones notated “MUST”)



Sort of off topic, but maybe try using an HTML authoring tool out, or at least 
a decent text editor that checks syntax… I don’t know if any of these other 
things are contributing, probably not, but still:








You need to declare a document type, not sure if it got left out when you copy and 
pasted. i.e. 
You probably also meant to put , not , those are headers like you 
might see on the top of a page.
And If you actually don’t have anything in the html header, you don’t need to 
have them at all, just go from html to body.


Would be cool if I could have the output as a stream, that I can embed.

Were you referring to the same problem when you said this? Or some other 
difference from real streaming protocols?

Have a look at some options available with the muxer to see if any look like 
they might be helpful
# ffmpeg -h muxer=hls | more

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg for transcoding a stream into web pag

2019-05-10 Thread R C
I might have made a few mistakes, :), when I threw hat together real
quick.  For some quick tests I did the document type didn't really matter.
(I used the html more as an "entry point"

I'll clean it up this weekend and give it a shot.   I did notice that the
ffmpeg command keeps "adding" new files, and the old ones don't really go
awa (deleted) if not needed anymore..  so I would probably have to look
into that.

I haven't done much (I mean pretty much nothing) with streaming video,
understanding what  options do in ffmpeg (or gstreamer) would help (looking
for a guide with examples that are useful)

thanks,

Ron


On Fri, May 10, 2019 at 10:58 AM Ted Park  wrote:

> > 
> >   
> >   Your browser does not support the video tag.
> > 
>
>
> The type for the “extended” m3u8 files for hls is registered as
> application/vnd.apple.mpegURL
> Usually whatever handles mime types on your http server handles that for
> you.
> personally I don’t mark mime types except maybe to make a link download
> instead of playing in browser.
>
> You would put video/mp4 if it was an ISO format being embedded as a
> prerecorded file, but the m3u8 is just a text listing of where to find all
> the fragments.
>
> Oh, and I forgot to mention, but the example I gave you was like the
> simplest thing that usually works on the major browsers. It doesn’t even
> meet the minimum specs for HLS, you might want to look into implementing
> more features (especially the ones notated “MUST”)
>
>
>
> Sort of off topic, but maybe try using an HTML authoring tool out, or at
> least a decent text editor that checks syntax… I don’t know if any of these
> other things are contributing, probably not, but still:
>
> > 
> > 
> > 
> > 
>
>
> You need to declare a document type, not sure if it got left out when you
> copy and pasted. i.e. 
> You probably also meant to put , not , those are headers
> like you might see on the top of a page.
> And If you actually don’t have anything in the html header, you don’t need
> to have them at all, just go from html to body.
>
> > Would be cool if I could have the output as a stream, that I can embed.
>
> Were you referring to the same problem when you said this? Or some other
> difference from real streaming protocols?
>
> Have a look at some options available with the muxer to see if any look
> like they might be helpful
> # ffmpeg -h muxer=hls | more
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg for transcoding a stream into web pag

2019-05-08 Thread R C
0] Packets poorly interleaved, failed to avoid negative 
timestamp -3480 in stream 0.

Try -max_interleave_delta 0 as a possible workaround.
[hls @ 0x1089fa0] Opening 'index.m3u8.tmp' for writingitrate=N/A dup=6 
drop=4 speed= 1.4x
frame=   79 fps=7.0 q=-1.0 Lsize=N/A time=00:00:15.36 bitrate=N/A dup=6 
drop=4 speed=1.37x
video:519kB audio:68kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: unknown

[libx264 @ 0x108a9a0] frame I:1 Avg QP:13.54  size:114503
[libx264 @ 0x108a9a0] frame P:40    Avg QP:18.48  size:  8896
[libx264 @ 0x108a9a0] frame B:38    Avg QP:26.25  size:  1593
[libx264 @ 0x108a9a0] consecutive B-frames: 34.2%  0.0% 15.2% 50.6%
[libx264 @ 0x108a9a0] mb I  I16..4: 13.4% 23.7% 62.9%
[libx264 @ 0x108a9a0] mb P  I16..4:  0.3%  0.4%  0.2%  P16..4: 26.2%  
3.8%  2.7%  0.0%  0.0%    skip:66.4%
[libx264 @ 0x108a9a0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 23.7%  
1.0%  0.3%  direct: 0.2%  skip:74.8%  L0:45.3% L1:52.0% BI: 2.8%

[libx264 @ 0x108a9a0] 8x8 transform intra:28.8% inter:16.8%
[libx264 @ 0x108a9a0] coded y,uvDC,uvAC intra: 66.5% 0.0% 0.0% inter: 
8.1% 0.0% 0.0%

[libx264 @ 0x108a9a0] i16 v,h,dc,p: 48% 13% 19% 20%
[libx264 @ 0x108a9a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 52% 23% 16% 2%  1%  
1%  1%  2%  3%
[libx264 @ 0x108a9a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 22%  7% 3%  3%  
4%  4%  5%  4%

[libx264 @ 0x108a9a0] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x108a9a0] Weighted P-Frames: Y:2.5% UV:0.0%
[libx264 @ 0x108a9a0] ref P L0: 77.8%  3.3%  8.4% 10.0%  0.5%
[libx264 @ 0x108a9a0] ref B L0: 87.2%  5.0%  7.8%
[libx264 @ 0x108a9a0] ref B L1: 97.9%  2.1%
[libx264 @ 0x108a9a0] kb/s:322.58
[aac @ 0x10a6e80] Qavg: 60648.969
Exiting normally, received signal 2.







On 5/4/19 9:02 AM, Michael Shaffer wrote:

For example, here I have 4 IP cameras embedded in one webpage.

https://dca.neocities.org/

On Sat, May 4, 2019 at 11:01 AM Michael Shaffer <mailto:mikeshaf...@gmail.com>> wrote:


You could use ffmpeg to stream the video to youtube live. You can
embed youtube live videos in web pages..

On Fri, May 3, 2019 at 10:42 PM R C mailto:cjv...@gmail.com>> wrote:

uhm...   no...


basically, I just want "some way"  to pull a stream from a
camera, and display it in a web page,  basically rstsp over
http... I don't really want to try anything commercial. It
shouldn't be too difficult, accept, since a bit, streaming
with players is disabled in most browsers.


Ron



On 5/3/19 5:19 PM, Michael Shaffer wrote:

Have you experimented with Unreal Live Server?

http://www.umediaserver.net/umediaserver/download.html

On Fri, May 3, 2019 at 6:58 PM R C  
<mailto:cjv...@gmail.com>  wrote:


Hello Ted,


that seems to work!  thank you!!  That ffmpeg command is indeed making a
movie from that stream into a file, tried watching it, VLC does give me
trouble, but it shows it as a movie.

Would be cool if I could have the output as a stream, that I can embed.

I am new to ffmpeg and gstreamer things.. and the command options don't
seem to be too obvious to me


thanks,


Ron



On 5/3/19 2:17 AM, Ted Park wrote:

So my idea was tho use ffmpeg or gstreamer to  embed it in html, with

some

sort of player.

Html you’re gonna need to write yourself, but you can use the rtsp

stream as an input and output HLS to embed in your html, I think this 
will
get you what you want.

Something like

ffmpeg -irtsp://192.0.2.123/stream.sdp  -f hls -hls_playlist_type event

-hls_segment_type mpegts -hls_segment_filename segment-%d.ts index.m3u8

Will produce a playlist file pointing to little segments of ts files

that you can host with any http server. It should work,  (you might 
need to
transcode to h264 if it’s not) A html5 video element with the playlist 
file
as the source should play in most browsers nowadays.

This text displays if

the video element isn’t supported.

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org  <mailto:ffmpeg-user@ffmpeg.org>
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org  <mailto:ffmpeg-user-requ...@ffmpeg.org>  with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org  <mailto:ffmpeg-user@ffmpeg.org>
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org  <mailto:ffmpeg-user-requ...@ffmpeg.org>  with 
subject "unsubscribe".

__

Re: [FFmpeg-user] ffmpeg for transcoding a stream into web pag

2019-05-03 Thread R C

uhm...   no...


basically, I just want "some way"  to pull a stream from a camera, and 
display it in a web page,  basically rstsp over http...   I don't really 
want to try anything commercial.  It shouldn't be too difficult, accept, 
since a bit, streaming with players is disabled in most browsers.



Ron



On 5/3/19 5:19 PM, Michael Shaffer wrote:

Have you experimented with Unreal Live Server?

http://www.umediaserver.net/umediaserver/download.html

On Fri, May 3, 2019 at 6:58 PM R C  wrote:


Hello Ted,


that seems to work!  thank you!!  That ffmpeg command is indeed making a
movie from that stream into a file, tried watching it, VLC does give me
trouble, but it shows it as a movie.

Would be cool if I could have the output as a stream, that I can embed.

I am new to ffmpeg and gstreamer things.. and the command options don't
seem to be too obvious to me


thanks,


Ron



On 5/3/19 2:17 AM, Ted Park wrote:

So my idea was tho use ffmpeg or gstreamer to  embed it in html, with

some

sort of player.

Html you’re gonna need to write yourself, but you can use the rtsp

stream as an input and output HLS to embed in your html, I think this will
get you what you want.

Something like

ffmpeg -i rtsp://192.0.2.123/stream.sdp -f hls -hls_playlist_type event

-hls_segment_type mpegts -hls_segment_filename segment-%d.ts index.m3u8

Will produce a playlist file pointing to little segments of ts files

that you can host with any http server. It should work,  (you might need to
transcode to h264 if it’s not) A html5 video element with the playlist file
as the source should play in most browsers nowadays.

This text displays if

the video element isn’t supported.

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg for transcoding a stream into web pag

2019-05-03 Thread R C

Hello Ted,


that seems to work!  thank you!!  That ffmpeg command is indeed making a 
movie from that stream into a file, tried watching it, VLC does give me 
trouble, but it shows it as a movie.


Would be cool if I could have the output as a stream, that I can embed.

I am new to ffmpeg and gstreamer things.. and the command options don't 
seem to be too obvious to me



thanks,


Ron



On 5/3/19 2:17 AM, Ted Park wrote:

So my idea was tho use ffmpeg or gstreamer to  embed it in html, with some
sort of player.

Html you’re gonna need to write yourself, but you can use the rtsp stream as an 
input and output HLS to embed in your html, I think this will get you what you 
want.

Something like

ffmpeg -i rtsp://192.0.2.123/stream.sdp -f hls -hls_playlist_type event 
-hls_segment_type mpegts -hls_segment_filename segment-%d.ts index.m3u8

Will produce a playlist file pointing to little segments of ts files that you 
can host with any http server. It should work,  (you might need to transcode to 
h264 if it’s not) A html5 video element with the playlist file as the source 
should play in most browsers nowadays.

This text displays if the video 
element isn’t supported.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg for transcoding a stream into web pag

2019-05-02 Thread R C
I can get pretty much anything out of it I want.  It is an onvif camera,
so with some C, soap, xml, I can access it,  get URIs,  and can do things
like a reboot etc.
I can get snapshots out, and  streams,  H.264 and mp4.  I can also  access
it with VLC and stream different resolutions with it. So that part is not
the problem.

The problem is that I want some  that is common, stream over HTTP, are
flash etc, because as I said,  rtsp (and 'related protocols' are often
blocked.)

So my idea was tho use ffmpeg or gstreamer to  embed it in html, with some
sort of player.

On Thu, May 2, 2019 at 1:16 AM Ted Park  wrote:

> > I have a few IP cameras (onvif) that I can get stills and video out of
> with
> > scriprts.
> What exactly can you get out of your cameras? (Format, codec, protocol,
> etc.)
> Is this a live stream you want to serve?
>
> > What I would want to do is  put a stream into a web page, html document.
> > I'd prefer to used "something different" than  rtsp, to be used by the
> > browser because rtsp seems to be blocked more and more (people watching
> > baby monitors crashing networks).
> I don’t understand the bit about baby monitors crashing networks, but if
> you don’t want rtsp, you might consider HLS or DASH.
> More details about the source would be needed to know what steps to take.
>
> > From what I read is that ffmpeg can be used to 'transcode' an rtsp
> stream,
> > to a format that directly can be used in a browser (firefox)? If so, is
> > there an exam[le or write up for how to do that?
> With some configuration on the http server an rtsp stream can be served as
> is, but rtsp is a protocol, it doesn’t tell us anything about what is being
> streamed.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] ffmpeg for transcoding a stream into web pag

2019-05-01 Thread R C
Hello,

this  probably has been asked a million times before.

I have a few IP cameras (onvif) that I can get stills and video out of with
scriprts.

What I would want to do is  put a stream into a web page, html document.
I'd prefer to used "something different" than  rtsp, to be used by the
browser because rtsp seems to be blocked more and more (people watching
baby monitors crashing networks).

From what I read is that ffmpeg can be used to 'transcode' an rtsp stream,
to a format that directly can be used in a browser (firefox)? If so, is
there an exam[le or write up for how to do that?

thanks,

Ron
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".