Re: [FFmpeg-user] ADD REAL TIME STAMP TO RTSP STREAM SEGMENT

2019-09-06 Thread Michael Shaffer
I've been using Python to archive my RTSP IP camera footage. This is the
Python code I use to name the file the current date and time. Basically I
have the program terminate and start a new ffmpeg instance every 20
minutes. It would be nice though if ffmpeg could segment and timestamp the
files itself. Not sure how you would do that exactly.

timestr = time.strftime("%Y%m%d-%H%M%S")

myUrl='ffmpeg1rec -rtsp_transport tcp -y -rtbufsize 200M -i \"rtsp://
admin:password@192.168.1.23:554/Streaming/Channels/101/\" -f lavfi -f dshow
-i audio="virtual-audio-capturer" -c:a libmp3lame -ab 192k -ar 48000
-map_channel 1.0.0 -bufsize 5096k -c:v copy -f flv recordings/cam1-' +
timestr + '.mp4'

subprocess.Popen(myUrl, shell=True)

On Tue, Sep 3, 2019 at 5:01 PM Alejandro Escudero <
escuderoserr...@hotmail.com> wrote:

> Hi,
>
> I am trying to get a RTSP stream from an IP Camera and save that stream as
> several  MP4 segments, but i need that each file segment name gets the real
> time stamp of the video stream. (If I use the -strftime 1, it gets the time
> of the local machine but i need the real rtsp time). How can I get the Real
> Time Stamp?
>
> I am suing this command:
>
>
> ffmpeg -rtsp_transport tcp -i "rtsp://
> admin:p...@myddns.dyndns.org:554/cam/realmonitor?channel=1&subtype=0" –f
> segment -segment_time 5 -c copy  OUT%d.mp4
>
>
>
> Thanks!
>
>
> Alejandro
>
> [
> https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif
> ]<
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> Libre de virus. www.avast.com<
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> ___
> 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] ADD REAL TIME STAMP TO RTSP STREAM SEGMENT

2019-09-06 Thread Michael Shaffer
Nevermind I just read your question again and I guess it sounds like you
want the time stamp from the camera itself. Not sure how you would do that.

On Fri, Sep 6, 2019 at 11:29 PM Michael Shaffer 
wrote:

> I've been using Python to archive my RTSP IP camera footage. This is the
> Python code I use to name the file the current date and time. Basically I
> have the program terminate and start a new ffmpeg instance every 20
> minutes. It would be nice though if ffmpeg could segment and timestamp the
> files itself. Not sure how you would do that exactly.
>
> timestr = time.strftime("%Y%m%d-%H%M%S")
>
> myUrl='ffmpeg1rec -rtsp_transport tcp -y -rtbufsize 200M -i \"rtsp://
> admin:password@192.168.1.23:554/Streaming/Channels/101/\
> " -f
> lavfi -f dshow -i audio="virtual-audio-capturer" -c:a libmp3lame -ab 192k
> -ar 48000 -map_channel 1.0.0 -bufsize 5096k -c:v copy -f flv
> recordings/cam1-' + timestr + '.mp4'
>
> subprocess.Popen(myUrl, shell=True)
>
> On Tue, Sep 3, 2019 at 5:01 PM Alejandro Escudero <
> escuderoserr...@hotmail.com> wrote:
>
>> Hi,
>>
>> I am trying to get a RTSP stream from an IP Camera and save that stream
>> as several  MP4 segments, but i need that each file segment name gets the
>> real time stamp of the video stream. (If I use the -strftime 1, it gets the
>> time of the local machine but i need the real rtsp time). How can I get the
>> Real Time Stamp?
>>
>> I am suing this command:
>>
>>
>> ffmpeg -rtsp_transport tcp -i "rtsp://
>> admin:p...@myddns.dyndns.org:554/cam/realmonitor?channel=1&subtype=0" –f
>> segment -segment_time 5 -c copy  OUT%d.mp4
>>
>>
>>
>> Thanks!
>>
>>
>> Alejandro
>>
>> [
>> https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif
>> ]<
>> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>> Libre de virus. www.avast.com<
>> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
>> >
>> ___
>> 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] Visualization filter colors and scale.

2019-09-06 Thread Paul B Mahol
On 9/6/19, Zsolt  wrote:
> Paul B Mahol  ezt írta (időpont: 2019. szept. 6., P,
> 20:22):
>
>> On 9/6/19, Zsolt  wrote:
>> > Thanks for the reply.
>> >
>> > Paul B Mahol  ezt írta (időpont: 2019. szept. 6., P,
>> > 19:05):
>> >
>> >>
>> >> Very basic question, just add scale= after your A->V filter, do
>> >> not forget to use  "," as filter separator.
>> >>
>> >
>> >
>> > Perhaps, however it doesn't work:
>> > -filter_complex
>> >
>> "[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#99|#77,format=yuv444p[vid],scale=out_color_matrix=bt709:out_range=pc"
>> >
>> > I get a not too helpful error: "Cannot find a matching stream for
>> unlabeled
>> > input pad 0 on filter Parsed_scale_2"
>> >
>>
>> Your command is simply wrong. Read documentation carefully next time.
>>
>
> I can't see why though. I just added scale to the end of the filters, like
> you said.

[vid] should be at far end.

> ___
> 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] Visualization filter colors and scale.

2019-09-06 Thread Zsolt
Paul B Mahol  ezt írta (időpont: 2019. szept. 6., P,
20:22):

> On 9/6/19, Zsolt  wrote:
> > Thanks for the reply.
> >
> > Paul B Mahol  ezt írta (időpont: 2019. szept. 6., P,
> > 19:05):
> >
> >>
> >> Very basic question, just add scale= after your A->V filter, do
> >> not forget to use  "," as filter separator.
> >>
> >
> >
> > Perhaps, however it doesn't work:
> > -filter_complex
> >
> "[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#99|#77,format=yuv444p[vid],scale=out_color_matrix=bt709:out_range=pc"
> >
> > I get a not too helpful error: "Cannot find a matching stream for
> unlabeled
> > input pad 0 on filter Parsed_scale_2"
> >
>
> Your command is simply wrong. Read documentation carefully next time.
>

I can't see why though. I just added scale to the end of the filters, like
you said.
___
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] Fwd: coding video for some old Sony

2019-09-06 Thread Erik Dobák
On Thu, 5 Sep 2019 at 19:12, Erik Dobák  wrote:

>
>
> On Wed, 4 Sep 2019 at 23:06, Kieran O Leary 
> wrote:
>
>> On Wed, 4 Sep 2019, 20:19 Erik Dobák,  wrote:
>>
>> > On Tue, 3 Sep 2019 at 18:01, Michael Castellon <
>> castellonmich...@gmail.com
>> > >
>> > wrote:
>> >
>> > > maybe bitrate,
>> > > please try a short video so you don't get tired.
>> > > this scale for old tv (crt), 640x480
>> > > ffmpeg -strict experimental -i input.mp4 -vcodec libxvid -threads 8 -s
>> > > 624x352 -g 400 -dia_size 514 -bf 1 -b:v 1200k -trellis 2 -aspect 1.860
>> > > -level 5.1 -r 25 -acodec libmp3lame -ab 128k -ac 2 -async 1 -y
>> output.avi
>> > > or,
>> > > ffmpeg -strict experimental -i input.mp4 -vcodec libxvid -threads 3 -s
>> > > 624x352 -g 400 -dia_size 514 -bf 1 -b:v 816k -trellis 2 -aspect 1.860
>> > > -level 5.1 -r 25 -acodec libmp3lame -ab 128k -ac 2 -async 1 -y
>> output.mp4
>> > >
>> > > look..
>> > >
>> > >
>> > > On Sun, Sep 1, 2019 at 12:33 PM Erik Dobák 
>> wrote:
>> > >
>> > > > the catch22 original did not work. all my attempts to convert it
>> > resulted
>> > > > also in a non working video.
>> > > > E
>> > > >
>> > > > On Sun, 1 Sep 2019 at 19:22, Kieran O Leary <
>> kieran.o.le...@gmail.com>
>> > > > wrote:
>> > > >
>> > > > > Did that catch-22 example you posted work or not? You never
>> > specified..
>> > > > >
>> > > > > K
>> > > > > ___
>> > > > > 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".
>> >
>> > ok here i can report some sort of success:
>> >
>> > i created these 3 videos according to your hints:
>> >
>> > catch22bv1200.avi
>> > catch22bv1200.mp4
>> > catch22bv816.mp4
>> >
>> > the mp4 play fine the video (no sound but i can care about this later)
>> > but the catch22bv1200.avi does not play at all despite the fact that i
>> just
>> > changed the extension of the output file in the command you have sent
>> me.
>> >
>>
>> Do both play fine? Please post full command line and terminal output of
>> this successful file. And the same for the avi that does not work.
>>
>> Best,
>>
>> Kieran
>> ___
>> 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".
>
>
> sorry forgot to do the terminal output this time. look at the outcome:
>
>
>  this does not play <
> ffmpeg -i Catch-22.\[1970\].DVDRip.XviD-BLiTZKRiEG.avi -b:v 1M -vcodec
> libxvid -acodec libmp3lame -q:a 2 catch22.avi
> ffmpeg version 4.1.4-1~deb10u1 Copyright (c) 2000-2019 the FFmpeg
> developers
>   built with gcc 8 (Debian 8.3.0-6)
>   configuration: --prefix=/usr --extra-version='1~deb10u1'
> --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
> --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
> --disable-stripping --enable-avresample --disable-filter=resample
> --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom
> --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
> --enable-libcdio --enable-libcodec2 --enable-libflite
> --enable-libfontconfig --enable-libfreetype --enable-libfribidi
> --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
> --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
> --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband
> --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
> --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab
> --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
> --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
> --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl
> --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883
> --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
>   libavutil  56. 22.100 / 56. 22.100
>   libavcodec 58. 35.100 / 58. 35.100
>   libavformat58. 20.100 / 58. 20.100
>   libavdevice58.  5.100 / 58.  5.100
>   libavfilter 7. 40.101 /  7. 40.101
>   libavresample   4.  0.  0 /  

Re: [FFmpeg-user] Visualization filter colors and scale.

2019-09-06 Thread Paul B Mahol
On 9/6/19, Zsolt  wrote:
> Thanks for the reply.
>
> Paul B Mahol  ezt írta (időpont: 2019. szept. 6., P,
> 19:05):
>
>>
>> Very basic question, just add scale= after your A->V filter, do
>> not forget to use  "," as filter separator.
>>
>
>
> Perhaps, however it doesn't work:
> -filter_complex
> "[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#99|#77,format=yuv444p[vid],scale=out_color_matrix=bt709:out_range=pc"
>
> I get a not too helpful error: "Cannot find a matching stream for unlabeled
> input pad 0 on filter Parsed_scale_2"
>

Your command is simply wrong. Read documentation carefully next time.

>
>
>> >
>> > *A different question:*
>> >
>> > I also tried the showspectrum filter. When I use fscale=log the result
>> > is
>> > quite horrible. as if it's the same linear scale only the lower
>> frequencies
>> > obscenely stretched, can this be helped?
>>
>> Try showcqt filter if you can use it.
>>
>
> Going by what screenshot and videos I saw of that, it suffers from the same
> issue.

Then use something else.


> ___
> 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] Visualization filter colors and scale.

2019-09-06 Thread Zsolt
Thanks for the reply.

Paul B Mahol  ezt írta (időpont: 2019. szept. 6., P,
19:05):

>
> Very basic question, just add scale= after your A->V filter, do
> not forget to use  "," as filter separator.
>


Perhaps, however it doesn't work:
-filter_complex
"[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#99|#77,format=yuv444p[vid],scale=out_color_matrix=bt709:out_range=pc"

I get a not too helpful error: "Cannot find a matching stream for unlabeled
input pad 0 on filter Parsed_scale_2"



> >
> > *A different question:*
> >
> > I also tried the showspectrum filter. When I use fscale=log the result is
> > quite horrible. as if it's the same linear scale only the lower
> frequencies
> > obscenely stretched, can this be helped?
>
> Try showcqt filter if you can use it.
>

Going by what screenshot and videos I saw of that, it suffers from the same
issue.
___
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] Visualization filter colors and scale.

2019-09-06 Thread Paul B Mahol
On 9/6/19, Zsolt  wrote:
> Hello!
>
> Does anyone know how do I set the color matrix and range when using
> filter_complex?
>
> I use this filter:
> -filter_complex
> "[0:a]showfreqs=s=1920x1080:cmode=combined:colors=#99|#77,format=yuv444p[vid]"
> picture:
> [image: 1.jpg]
>
>
> The colors look rather orange, even though I only set the red channel.

They look only reddish here.

> Normally I use "-vf scale=out_color_matrix=bt709:out_range=pc" when dealing
> with full range to get proper video, but of course I can't use vf with
> filter_complex. How do I do it in this case?

Very basic question, just add scale= after your A->V filter, do
not forget to use  "," as filter separator.

>
> *A different question:*
>
> I also tried the showspectrum filter. When I use fscale=log the result is
> quite horrible. as if it's the same linear scale only the lower frequencies
> obscenely stretched, can this be helped?

Try showcqt filter if you can use it.

> snapshot:
>
> [image: 2.jpg]
>
___
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] V360 filter

2019-09-06 Thread Michael Koch

Hi all,

I see the progress on the V360 filter... that's very good!
A few suggestions for improvement:
-- (Single-)Fisheye as input and output format, with a selectable field 
of view up to 360° (little planet).
-- A "color" option for filling those areas that have got no data from 
the input.
-- I think the d_flip parameter needs some more documentation. What's an 
"in-depth" flip?


Michael
___
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".