Re: [FFmpeg-user] RTSP to Twitch

2021-03-10 Thread Michael Shaffer
On Wed, Mar 10, 2021 at 6:56 AM Sébastien Bonaimé 
wrote:

> Hi,
>
> I would like to stream a Revotech H6EV200-S-30-L 0S77
> (
> https://www.desertcart.com.my/products/57000744-revotech-hd-1920-x-1080p-2-0mp-indoor-ip-camera-mini-type-security-metal-camera-onvif-p2p-ip-cctv-cam-system-i706-black
> )
> camera pointing to a bird nest through my raspberry pi4 to my twitch
> channel.
>
> First, I need to configure CBR or VBR in the camera. Using ffprobe
> with the url of the camera I have the following results:
> VBR 3072 smart_codec enable
> Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive),
> 1920x1080, 25 fps, 25 tbr, 90k tbn, 180k tbc
> CBR 3072 smart_codec enable
> Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive),
> 1920x1080, 25 tbr, 90k tbn, 180k tbc
>
> FFmpeg version is
> ffmpeg version 4.1.6-1~deb10u1+rpt1 Copyright (c) 2000-2020 the FFmpeg
> developers
>   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
>
> included x264 codec are : libx264 libx264rgb h264_omx h264_v4l2m2m
> h264_vaapi
>
> Here is my command line
>
> url='rtsp://user:password@192.168.1.32:8554/0/av0'
> twitch_url='rtmp://cdg.contribute.live-video.net/app/MY_twith_key'
>
>  QUAL="ultrafast"  # one of the many FFMPEG preset
>  CBR="3500k" # constant bitrate (should be between 1000k - 3000k)
>
> ffmpeg  -probesize  10M  -rtsp_transport tcp -thread_queue_size
> 1000k \
>   -i $url \
> -vsync 0 -enc_time_base -1 \
>  -bufsize 1024k -preset "$QUAL" \
> -b:v $CBR  -minrate $CBR -maxrate $CBR   -keyint_min 24 -g
> 24 \
> -crf 10  -c:v libx264\
> -f flv $twitch_url
>
>
> With camera in CBR mode, I can't reach 25 FPS but only 14. And the
> stream to twitch does not last more than ew seconds. What can I do to
> improve the command ?
>
> Thanks
>
> [rtsp @ 0x8952e0] Missing PPS in sprop-parameter-sets, ignoring
> Input #0, rtsp, from 'rtsp://user:password@192.168.1.32:8554/0/av0':
>   Metadata:
> title   : Session Streamed by LIBZRTSP
> comment : 0
>   Duration: N/A, start: 0.04, bitrate: N/A
> Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive),
> 1920x1080, 25 fps, 25 tbr, 90k tbn, 180k tbc
> Stream mapping:
>   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
> Press [q] to stop, [?] for help
> [libx264 @ 0x8fd140] MB rate (73440) > level limit (16711680)
> [libx264 @ 0x8fd140] using cpu capabilities: ARMv6 NEON
> [libx264 @ 0x8fd140] profile Constrained Baseline, level 6.2
> [libx264 @ 0x8fd140] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC
> codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html -
> options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1
> psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1
> 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0
> threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1
> interlaced=0
> bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=24
> keyint_min=13 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=crf
> mbtree=0 crf=10.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
> vbv_maxrate=3500 vbv_bufsize=1024 crf_max=0.0 nal_hrd=none filler=0
> ip_ratio=1.40 aq=0
> Output #0, flv, to 'rtmp://cdg.contribute.live-video.net/app/MY_twith_key
> ':
>   Metadata:
> title   : Session Streamed by LIBZRTSP
> comment : 0
> encoder : Lavf58.20.100
> Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007),
> yuvj420p(pc), 1920x1080, q=-1--1, 3500 kb/s, 25 fps, 1k tbn, 90k tbc
> Metadata:
>   encoder : Lavc58.35.100 libx264
> Side data:
>   cpb: bitrate max/min/avg: 350/0/350 buffer size: 1024000
> vbv_delay: -1
> [libx264 @ 0x8fd140] non-strictly-monotonic PTS
> frame=  190 fps= 14 q=23.0 size=3136kB time=00:00:08.88
> bitrate=2892.7kbits/s speed=0.66x
> ___
> 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".

In the camera settings, set the bitrate to the maximum your connection can
handle. Then use the “stream copy” mode in ffmpeg.

Currently, your command is trying to re-encode the video on a Raspberry Pi,
which is kind of underpowered for that task. It can handle stream copy mode
fine though.
___
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] Compiling FFmpeg with Nvidia GPU acceleration

2021-01-16 Thread Michael Shaffer
Yes, it replaces Windows.

https://ubuntu.com/tutorials/install-ubuntu-desktop#1-overview

On Sat, Jan 16, 2021 at 10:49 AM madderek--- via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

>
>
> -Original Message-
> From: ffmpeg-user  On Behalf Of Michael
> Shaffer
> Sent: 16 January 2021 15:23
> To: FFmpeg user questions 
> Subject: Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration
>
> Thanks for reply
>
> Does that mean installing ubuntu rather than Windows? (which I've never
> done but happy to try!!)
>
> Derek
>
> You could try using Ubuntu Linux. I followed the Nvidia instructions for
> installing acceleration on my GTX 1080 and it worked fine.
>
> On Sat, Jan 16, 2021 at 9:47 AM madderek--- via ffmpeg-user <
> ffmpeg-user@ffmpeg.org> wrote:
>
> >
> >
> >
> >
> > -Original Message-
> > From: ffmpeg-user  On Behalf Of Carl
> > Zwanzig
> > Sent: 15 January 2021 21:13
> > To: ffmpeg-user@ffmpeg.org
> > Subject: Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU
> > acceleration
> >
> >
> >
> > Thanks very much for taking the trouble to reply.
> >
> >
> >
> > I'm following the instructions here, Windows section:
> >
> >
> > https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with
> > -nvidia-gpu/
> >
> >
> >
> > What I'm trying to achieve is joining many images together which have
> > been produced by a video enhancing program.  The command line is:
> >
> > ffmpeg -framerate 59.94  -start_number 160004 -i P:\xmas5\%06d.png
> > -c:v
> > libx264 -preset veryslow -tune film -profile:v high -pix_fmt yuv420p
> > -level
> > 4.1 -crf 17 -r 59.94 -threads 2
> > P:\xmaspng_80002-99932_Dione-DVx4_png.mkv
> >
> >
> >
> > Some times it's TIFFs not PNGs.
> >
> >
> >
> > I am hoping that the Nvidia GPU acceleration will speed up what is a
> > very slow process.  That's all I want it for, and I'm trying to
> > achieve this on a clean install of Windows 10 on a spare disc.  Nvidia
> RTX 2080Ti.
> >
> > I've managed to install make (I'm not an expert on any of this!) but
> > now the make command produces:
> >
> >
> >
> > C:\Windows\System32\nv-codec-headers>make install PREFIX=/usr
> >
> > make: *** No rule to make target `install'.  Stop.
> >
> >
> >
> > The makefile in that directory contains:
> >
> >
> >
> > PREFIX = /usr/local
> >
> > LIBDIR = lib
> >
> > INSTALL = install
> >
> > SED = sed
> >
> >
> >
> > all:
> >
> > ifeq ($(OS),Windows_NT)
> >
> >   $(SED) 's#@@PREFIX@@#$(shell cygpath -m ${PREFIX})#'
> > ffnvcodec.pc.in > ffnvcodec.pc
> >
> > else
> >
> >   $(SED) 's#@@PREFIX@@#$(PREFIX)#' ffnvcodec.pc.in >
> > ffnvcodec.pc
> >
> > endif
> >
> >
> >
> > install: all
> >
> >   $(INSTALL) -m 0755 -d
> '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
> >
> >   $(INSTALL) -m 0644 include/ffnvcodec/*.h
> > '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
> >
> >   $(INSTALL) -m 0755 -d
> > '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig'
> >
> >   $(INSTALL) -m 0644 ffnvcodec.pc
> > '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig'
> >
> >
> >
> > uninstall:
> >
> >   rm -rf '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
> > '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig/ffnvcodec.pc'
> >
> >
> >
> > .PHONY: all install uninstall
> >
> >
> >
> > The following command from the documentation also fails:
> >
> >
> >
> > C:\FFmpeg>./configure --enable-nonfree -disable-shared
> > --enable-cuda-sdk --enable-libnpp --toolchain=msvc
> > --extra-cflags=-I../nv_sdk --extra-ldflags=-libpath:../nv_sdk
> >
> > '.' is not recognized as an internal or external command,
> >
> > operable program or batch file.
> >
> >
> >
> > But I'm not sure whether this is due to the previous failure.
> >
> >
> >
> > If I'm on the completely wrong track I'm prepared to format the disc
> > and start again!  (What a pity there's not an image of Windows all
> > prepared with this and ready to go!)
> >
> >
> >
> > Thanks again for taking an interest in my problem - I am a beginner here!
> >
> >
> >
> > Derek
> >
> >
> >

Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration

2021-01-16 Thread Michael Shaffer
You could try using Ubuntu Linux. I followed the Nvidia instructions for
installing acceleration on my GTX 1080 and it worked fine.

On Sat, Jan 16, 2021 at 9:47 AM madderek--- via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

>
>
>
>
> -Original Message-
> From: ffmpeg-user  On Behalf Of Carl
> Zwanzig
> Sent: 15 January 2021 21:13
> To: ffmpeg-user@ffmpeg.org
> Subject: Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration
>
>
>
> Thanks very much for taking the trouble to reply.
>
>
>
> I'm following the instructions here, Windows section:
>
>
> https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/
>
>
>
> What I'm trying to achieve is joining many images together which have been
> produced by a video enhancing program.  The command line is:
>
> ffmpeg -framerate 59.94  -start_number 160004 -i P:\xmas5\%06d.png -c:v
> libx264 -preset veryslow -tune film -profile:v high -pix_fmt yuv420p -level
> 4.1 -crf 17 -r 59.94 -threads 2 P:\xmaspng_80002-99932_Dione-DVx4_png.mkv
>
>
>
> Some times it's TIFFs not PNGs.
>
>
>
> I am hoping that the Nvidia GPU acceleration will speed up what is a very
> slow process.  That's all I want it for, and I'm trying to achieve this on
> a clean install of Windows 10 on a spare disc.  Nvidia RTX 2080Ti.
>
> I've managed to install make (I'm not an expert on any of this!) but now
> the make command produces:
>
>
>
> C:\Windows\System32\nv-codec-headers>make install PREFIX=/usr
>
> make: *** No rule to make target `install'.  Stop.
>
>
>
> The makefile in that directory contains:
>
>
>
> PREFIX = /usr/local
>
> LIBDIR = lib
>
> INSTALL = install
>
> SED = sed
>
>
>
> all:
>
> ifeq ($(OS),Windows_NT)
>
>   $(SED) 's#@@PREFIX@@#$(shell cygpath -m ${PREFIX})#'
> ffnvcodec.pc.in > ffnvcodec.pc
>
> else
>
>   $(SED) 's#@@PREFIX@@#$(PREFIX)#' ffnvcodec.pc.in >
> ffnvcodec.pc
>
> endif
>
>
>
> install: all
>
>   $(INSTALL) -m 0755 -d '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
>
>   $(INSTALL) -m 0644 include/ffnvcodec/*.h
> '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
>
>   $(INSTALL) -m 0755 -d
> '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig'
>
>   $(INSTALL) -m 0644 ffnvcodec.pc
> '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig'
>
>
>
> uninstall:
>
>   rm -rf '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
> '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig/ffnvcodec.pc'
>
>
>
> .PHONY: all install uninstall
>
>
>
> The following command from the documentation also fails:
>
>
>
> C:\FFmpeg>./configure --enable-nonfree -disable-shared --enable-cuda-sdk
> --enable-libnpp --toolchain=msvc --extra-cflags=-I../nv_sdk
> --extra-ldflags=-libpath:../nv_sdk
>
> '.' is not recognized as an internal or external command,
>
> operable program or batch file.
>
>
>
> But I'm not sure whether this is due to the previous failure.
>
>
>
> If I'm on the completely wrong track I'm prepared to format the disc and
> start again!  (What a pity there's not an image of Windows all prepared
> with this and ready to go!)
>
>
>
> Thanks again for taking an interest in my problem - I am a beginner here!
>
>
>
> Derek
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On 1/15/2021 10:49 AM, madderek--- via ffmpeg-user wrote:
>
>
>
> > I cannot get the 'make' command to work - I get  'make' is not
>
> > recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
>
>
> Well install make (nvidia's instructions include that).
>
>
>
> What's your intended build environment? VisualStudio of msys2/mingw? If
> mingw, did you install the 'c' compiler?
>
>
>
> The nvidia instructions don't cover installing a heap of things, like the
> compiler and a lot of packages. (They also say "–-toolchain=msvc" even as
> they're giving instructions for mingw, which is suspect (I haven't looked
> at the code yet to see if it matters.)
>
>
>
> So first, make sure you have a working build environment, that's out the
> scope of this list. Then look at the instructions for building ffmpeg-
>
>
>
> I use "Option 2: MSYS2" of
>
>  
> https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW
>
>
>
> If you're using visual studio, see
>
>  
> https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC
>
>
>
> You'll have to manually install any needed packages, usually ./configure
> will tell you when something's missing.
>
>
>
> Once you can build ffmpeg without cuda, then try building with cuda. And
> you may want to follow up with nvidia if you're using their instructions.
>
>
>
> Later,
>
>
>
> z!
>
> ___
>
> 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> 

Re: [FFmpeg-user] Contractor to help with filters

2019-12-30 Thread Michael Shaffer
Issues 1 and 2 would be pretty simple to fix. I would use Adobe Photoshop
create a "curves" layer which can then be exported as a .crv file. The .crv
file can be loaded by ffmpeg and applied to the image. Adobe Photoshop has
an auto-adjust button which gets it close, then you can tweak the
individual RGB values. That is how I eliminate atmospheric haze in real
time on my live cam. Here's a view of how it looks:
https://www.youtube.com/watch?v=_ixjB6dKsgk

I'm not sure about how you would auto detect changes in the
brightness/contrast. I know OpenCV can do that by calculating a histogram
of the entire image. I'm not sure if ffmpeg can do that or not since I've
never needed to do that.

Michael



On Mon, Dec 30, 2019 at 4:52 PM Oliver Dain  wrote:

> Hi ffmpeg-users,
>
> My company, revl.com, has several videos that could be improved. We've
> played around with ffmpeg filters and haven't had much success. We're
> hoping to find a contractor who can help. This would be a paid contract
> probably lasting about a week.
>
> Specifically we have 4 types of issues:
>
> 1. Sections of video that are too dark due to back-lighting
> 2. Sections of video that are too dark due to general low-light levels
> 3. Bits of video that are shaky
> 4. Videos that generally look OK but could look even better with different
> saturation or contrast settings.
>
> Ffmpeg provides a lot of filters and each filter can take a variety of
> configuration options. What we're hoping to find is a set of filter
> configurations (e.g. a string passed --filter-complex) that will improve
> our footage. These filters need to be configured to automatically detect
> frames that exhibit the issue; applying a filter at specific manually
> determined time points is not sufficient. It is OK to tell ffmpeg which
> parts of the video frame to use for determining proper light levels
> however.
>
> If you're interested please reply directly to me and we can setup a quick
> video chat to discuss the project in detail.
>
> Thanks,
> Oliver Dain
> ___
> 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 soft subtitles to YouTube Stream Now?

2019-11-20 Thread Michael Shaffer
I noticed your Youtube streams only last a day or so. I have a Python
script I made that keeps the ffmpeg process sending to Youtube. I have 5 IP
cameras going to youtube and they have been going about 9 months without
the stream ending. Anyways, if you want I could show you how the script
works. You would just have to change the stream keys and the bitrate that
each camera uses, so it knows when to restart the stream.

Michael

On Wed, Nov 20, 2019 at 12:17 AM Steven Kan  wrote:

> First time poster, so please be kind if I ask anything stupid!
>
> I have a live BeeCam feed on YouTube:
>
> https://www.youtube.com/channel/UCE0jx2Z6qbc5Co8x8Kyisag/live <
> https://www.youtube.com/channel/UCE0jx2Z6qbc5Co8x8Kyisag/live>
>
> using YouTube’s “Stream Now” feature, which is distinct from a streaming
> “event” because I don’t have to schedule it. Whenever I’m pushing video to
> YouTube, the channel goes live.
>
> The stream is supplied by a Raspberry Pi running as an ffmpeg “relay
> server,” e.g. it’s not doing any transcoding; it’s just repacking an RTSP
> stream from an off-the-shelf camera:
>
> ./ffmpeg -re -thread_queue_size 512 -rtsp_transport tcp -i "rtsp://
> anonymous:password@192.168.1.11:554" -f concat -safe 0 -i playlist.txt
> -vcodec copy -acodec copy -t 01:47:02 -f flv "rtmp://
> a.rtmp.youtube.com/live2/my-youtube-streaming-key”
>
> The -t and playlist.txt are because my camera lacks and audio feed, and YT
> requires an audio stream, so I have a collection of royalty-free mp3s in
> the playlist, and I’m wrapping this command in a loop.
>
> When I run this on my RPi 2, CPU utilization for ffmpeg is 10%, which
> is what I want, because I will have up to 3 instances of ffmpeg pushing 3
> camera streams to 3 YT channels during honey bee swarm season in Spring.
>
> What I want to do is add some captions to the video as soft subtitles,
> e.g. my location, the present temperature, and the weather forecast. I
> don’t have enough CPU on the Pi to burn these into the video stream.
>
> Is this possible in ffmpeg and with YouTube’s “stream now” feature?
>
> I can get ffmpeg to put a soft subtitle into a local .mkv file:
>
> ./ffmpeg -i video.mp4" -i SubtitleTest.srt -acodec copy -scodec copy
> out.mkv
>
> but I changing the output to .m4v, mp4, or .flv results in errors such as:
>
> Subtitle codec 'ass' for stream 2 is not compatible with FLV
>
> and pushing mkv to YouTube via:
>
> ./ffmpeg -i video.mp4" -acodec copy -f mkv "rtmp://
> a.rtmp.youtube.com/live2/my-youtube-streaming-key”
>
> returns:
>
> Requested output format 'mkv' is not a suitable output format
> rtmp://a.rtmp.youtube.com/live2/my-youtube-streaming-key  a.rtmp.youtube.com/live2/my-youtube-streaming-key>
>
> Am I doing this fundamentally wrong? Or is this just not possible? If it’s
> possible I will continue reading documentation until I get it working!!!
>
> Thanks!
>
> ___
> 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] Timestamp using PC Clock - possible payment for solution.

2019-11-12 Thread Michael Shaffer
You could make a Python script that updates a text file with the current
system time. Then use ffmpeg to reload and overlay the text file for each
frame. I have to admit, I tried something similar to this though and
sometimes it would crash because they were both accessing the file.

On Tue, Nov 12, 2019 at 3:37 PM Byron J  wrote:

> Hello,
>
> What are some methods of timestamping video? I found one method using the
> framerate but I would like to use the PC clock.
>
> Any help would be greatly appreciated. If anyone is interested, payment for
> the solution could be a possibility.
>
> Here is the .bat file with the FFMPEG commands running the postprocessing.
>
>
> setlocal
> @echo off
> set sourcefile=%~1
> set destfile=%~2
> shift
> shift
> REM Variables
> set sourcefile=%sourcefile%
> set destfile=%destfile%
> set tempfile=%sourcefile:~0,-3%_tmp.mp4
> set logofile=C:\Users\Public\WinTV\fox49-logo-header-v2.png
> set hour=%sourcefile:~-7,2%
> set min=%sourcefile:~-5,2%
> set year=%date:~10,4%
> set month=%date:~4,2%
> set day=%date:~7,2%
> set dts=%year%_%month%_%day%
> echo WinTV8 Post processing log. > postprocess.log
> echo sourcefile = %sourcefile%  >> postprocess.log
> echo destfile = %destfile% >> postprocess.log
> echo tempfile = %tempfile% >> postprocess.log
> echo logofile = %logofile% >> postprocess.log
> echo hour = %hour% >> postprocess.log
> echo min = %min% >> postprocess.log
> echo dts = %dts% >> postprocess.log
> REM Video Processing
> echo Starting timecode overlay... >> postprocess.log
> ffmpeg -y -i %sourcefile% -b:v 1M -vcodec libx264 -preset ultrafast -s
> 480X360 -vf drawtext="text='%dts%\ \ \ \
> ':timecode='%hour%\:%min%\:00\:00': rate=25:
> fontfile=C\\:\\Windows\\Fonts\\Ariel.ttf: x=400: y=h-lh-1:
>
> fontcolor=white:shadowcolor=black:shadowx=1:shadowy=1:fontsize=72:box=1:boxcolor=black@0.5
> :boxborderw=5:"
> %tempfile%
> echo End timecode overlay. >> postprocess.log
> echo Starting image overlay... >> postprocess.log
> ffmpeg -y -i %tempfile% -i %logofile% -filter_complex
> "[1:v]format=argb,geq=r='r(X,Y)':a='0.5*alpha(X,Y)'[image];
> [0:v][image]overlay=(main_w-overlay_w-0):(main_h-overlay_h-2)" %destfile%
> echo End image overlay. >> postprocess.log
> REM Validate file exsists and cleanup
> if exist "%destfile%" (
> del %tempfile% >> postprocess.log
> del %sourcefile% >> postprocess.log
> ) else (
> echo Error processing file %sourcefile%. >> postprocessing.log
> )
> echo End post processing. >> postprocess.log
> endlocal
>
>
>
>
>
>
>
> Byron Johnson
> ___
> 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] youtube formats not recognized by latest ffmpeg

2019-11-10 Thread Michael Shaffer
On Sun, Nov 10, 2019 at 1:10 PM JD  wrote:

> Dear all,
> there are new formats on youtube that latest firefox cannot play,
> neither can latest mplayer nor latest ffplay.
> Example of these formats, as seen when one invokes
> youtube-dl -F   (such as
> https://www.youtube.com/watch?v=pD5oUCVFmv0):
>
> 225  mp41280x534   720p 4534k , avc1.4d401f, 24fps,
> video only, 1.90GiB
> 226  mp41920x800   1080p 4614k , avc1.640028, 24fps,
> video only, 2.32GiB
> 227  mp41920x800   1080p 6378k , avc1.640028, 24fps,
> video only, 3.45GiB (best)
>
> What player can play these formats?
>
> Thanx.
> ___
> 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".


Have you tried VLC player?
___
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] Reducing video file size

2019-11-04 Thread Michael Shaffer
Reduce the frame rate.

On Mon, Nov 4, 2019 at 10:05 AM Morten W. Petersen 
wrote:

> Hi.
>
> I'm wondering what the options are for reducing video size.
>
> Encoding in black and white / low color depth, reducing the resolution,
> removing audio etc. are all options I can consider using.
>
> Regards,
>
> Morten
> ___
> 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] 453 Not Enough Bandwidth Error when streaming from IP camera

2019-10-21 Thread Michael Shaffer
Ok thanks, I didn't realize that was coming from the camera.

On Sun, Oct 20, 2019 at 7:09 PM Carl Eugen Hoyos  wrote:

> Am Mo., 21. Okt. 2019 um 01:03 Uhr schrieb Michael Shaffer
> :
> >
> > I have a Sanyo IP camera that I'm streaming to Youtube via rtsp and
> ffmpeg.
> > The camera is supposed to be capable of 1080p but I can only get it to
> work
> > in 720p mode. When I try 1080p mode ffmpeg gives the following error
> below.
> > If anyone has any ideas I'd really appreciate it.
> >
> > user@user-computer:~$ ffmpeg -rtsp_transport tcp -y -rtbufsize 200M -i
> > "rtsp://admin:password@192.168.1.103:554/VideoInput/1/h264/1" -c:a copy
> > -c:v copy -f flv 1080test.mp4
> >
> > ffmpeg version N-50401-gdd01947397-static
> https://johnvansickle.com/ffmpeg/
> >  Copyright (c) 2000-2019 the FFmpeg developers
> >   built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
> >   configuration: --enable-gpl --enable-version3 --enable-static
> > --disable-debug --disable-ffplay --disable-indev=sndio
> > --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r
> > --enable-gnutls --enable-gmp --enable-libgme --enable-gray
> > --enable-libfribidi --enable-libass --enable-libfreetype
> > --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> > --enable-libopenjpeg --enable-librubberband --enable-libsoxr
> > --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus
> > --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc
> > --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
> > --enable-libxml2 --enable-libxvid --enable-libzimg
> >   libavutil  56. 35.101 / 56. 35.101
> >   libavcodec 58. 59.102 / 58. 59.102
> >   libavformat58. 33.100 / 58. 33.100
> >   libavdevice58.  9.100 / 58.  9.100
> >   libavfilter 7. 62.101 /  7. 62.101
> >   libswscale  5.  6.100 /  5.  6.100
> >   libswresample   3.  6.100 /  3.  6.100
> >   libpostproc55.  6.100 / 55.  6.100
>
> > [rtsp @ 0xbafb380] method SETUP failed: 453 Not Enough Bandwidth
> > rtsp://admin:password@192.168.1.103:554/VideoInput/1/h264/1: Server
> > returned 4XX Client Error, but not one of 40{0,1,3,4}
>
> I may be missing something but this is an error that your camera
> returns (FFmpeg only shows the error to you).
>
> Carl Eugen
> ___
> 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] 453 Not Enough Bandwidth Error when streaming from IP camera

2019-10-20 Thread Michael Shaffer
I have a Sanyo IP camera that I'm streaming to Youtube via rtsp and ffmpeg.
The camera is supposed to be capable of 1080p but I can only get it to work
in 720p mode. When I try 1080p mode ffmpeg gives the following error below.
If anyone has any ideas I'd really appreciate it.

user@user-computer:~$ ffmpeg -rtsp_transport tcp -y -rtbufsize 200M -i
"rtsp://admin:password@192.168.1.103:554/VideoInput/1/h264/1" -c:a copy
-c:v copy -f flv 1080test.mp4

ffmpeg version N-50401-gdd01947397-static https://johnvansickle.com/ffmpeg/
 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-debug --disable-ffplay --disable-indev=sndio
--disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-gmp --enable-libgme --enable-gray
--enable-libfribidi --enable-libass --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-librubberband --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus
--enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxml2 --enable-libxvid --enable-libzimg
  libavutil  56. 35.101 / 56. 35.101
  libavcodec 58. 59.102 / 58. 59.102
  libavformat58. 33.100 / 58. 33.100
  libavdevice58.  9.100 / 58.  9.100
  libavfilter 7. 62.101 /  7. 62.101
  libswscale  5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc55.  6.100 / 55.  6.100
[rtsp @ 0xbafb380] method SETUP failed: 453 Not Enough Bandwidth
rtsp://admin:password@192.168.1.103:554/VideoInput/1/h264/1: Server
returned 4XX Client Error, but not one of 40{0,1,3,4}
___
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] Need help with Live Streaming using GPU

2019-10-10 Thread Michael Shaffer
I'm no expert but it sounds like you've reached the limitations of your CPU
/ GPU.

On Thu, Oct 10, 2019 at 1:07 AM Karan Singh 
wrote:

> Didn't get your point , can you elaborate ?
> I am able to run 6 live streams with before mentioned parameters but after
> that frames start dropping and CPU/GPU usage reaches 80~100% . Memory and
> storage bandwidth is not much used .
> If you can help me in correct usage of parameters with live streaming ,
> that would be great .
>
> Regards
> Karan Singh
>
> On Thu, Oct 10, 2019 at 11:47 AM Bo Zhou 
> wrote:
>
> > Have you benchmark the ffmpeg during the runtime to check where is the
> > bottleneck ?
> >
> > On Thu, Oct 10, 2019 at 10:11 AM Karan Singh <
> karanveersingh5...@gmail.com
> > >
> > wrote:
> >
> > > Hi Team
> > >
> > > Any update on this?
> > >
> > >
> > > i am struggling with live streaming of 4k videos with or without GPU.
> > >
> > > My question before describing my issue is what is number of 4k videos
> > that
> > > can transcoded and live streamed using below configuration .
> > >
> > >
> > > 1 X R740xd dell system  - configuration is 2 socket , 88 core
> processors
> > > with 256 GB of RAM- (ubuntu 18.04.02 OS )
> > >
> > >  +
> > >
> > > Tesla T4 GPU
> > >
> > > +
> > >
> > > Nginix & RTMP
> > >
> > > Transcoding and streaming all happening in one system , viewing of
> stream
> > > is in windows system with vlc player .
> > >
> > >
> > > Below is the first command I was trying , the issue is that the video
> > live
> > > streaming runs perfectly with 6 simultaneous streams of 4k but when the
> > 7th
> > > stream starts , all goes bad and fps start dropping [ Its with CPU ] .
> > The
> > > only thing i notice is more CPU utilization and that could be reason of
> > FPS
> > > drop
> > >
> > >
> > > ffmpeg -re -i Stranger09.mkv -c:v libx264 -b:v 50M -preset ultrafast
> > -tune
> > > zerolatency -b:a 128k -s 4096x2160 -bufsize 5M -x264opts keyint=500 -g
> 60
> > > -pix_fmt yuv420p -f flv rtmp://194.167.137.11/live-test/Strange09_4k
> > >
> > >
> > > Some guys on IRC channel recommended me to omit / edit below mentioned
> > > parameters but still its not working
> > >
> > > Remove -tune zerolatency
> > >
> > > keyint=500 -g 60 , both are same so does use it together
> > >
> > > need to limit thread by adding  -thread x
> > >
> > >
> > > I tried using GPU to scale up the simultaneous streaming but it also
> > going
> > > bad after 6 streams , below is the command . Here I can see less CPU
> > > utilization , like 20% , 80% is still free but GPU is 100% stressed .
> > >
> > >
> > > fmpeg -hwaccel_device 1 -hwaccel cuvid -re -i Stranger02.mkv -c:v
> > > h264_nvenc -preset fast -b:v 10M -bufsize 20M -x264opts keyint=500
> > -pix_fmt
> > > yuv420p -f flv rtmp://194.167.137.11/live-test/Strange02_4k
> > >
> > >
> > > I tried using GPU + CPU as 80% CPU is free after 100% GPU utilization
> > but I
> > > cannot run more than 7 simultaneous streams .
> > >
> > >
> > > Please help me with correct usage of FFMPEG to scale up the 4k videos .
> > >
> > > My end goal is to achieve 1Gbps read/writes on storage media. Network
> is
> > > not in picture as transcoding and streaming all running on 1 server .
> > >
> > > On Wed, Oct 9, 2019 at 10:47 AM Karan Singh <
> > karanveersingh5...@gmail.com>
> > > wrote:
> > >
> > > > >  The nginx server, how many workers are running?
> > > >
> > > > 1024 workers running
> > > >
> > > > On Tue, Oct 8, 2019 at 12:14 PM Ted Park 
> > wrote:
> > > >
> > > >> > Is there any other issue that is causing problems in running more
> > > >> number of
> > > >> > simoultaneus streams ?
> > > >>
> > > >> The nginx server, how many workers are running?
> > > >> ___
> > > >> 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".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link 

Re: [FFmpeg-user] Need help with Live Streaming using GPU

2019-10-07 Thread Michael Shaffer
Try setting the output bitrate from the GPU to something higher. You have
it set to 10M. Try 100M. I'm not sure what the maximum bitrate output is.

On Mon, Oct 7, 2019 at 7:15 AM Karan Singh 
wrote:

> Hi Team
>
> i am struggling with live streaming of 4k videos with or without GPU.
>
> My question before describing my issue is what is number of 4k videos that
> can transcoded and live streamed using below configuration .
>
>
> 1 X R740xd dell system  - configuration is 2 socket , 88 core processors
> with 256 GB of RAM- (ubuntu 18.04.02 OS )
>
>  +
>
> Tesla T4 GPU
>
> +
>
> Nginix & RTMP
>
> Transcoding and streaming all happening in one system , viewing of stream
> is in windows system with vlc player .
>
>
> Below is the first command I was trying , the issue is that the video live
> streaming runs perfectly with 6 simultaneous streams of 4k but when the 7th
> stream starts , all goes bad and fps start dropping [ Its with CPU ] . The
> only thing i notice is more CPU utilization and that could be reason of FPS
> drop
>
>
> ffmpeg -re -i Stranger09.mkv -c:v libx264 -b:v 50M -preset ultrafast -tune
> zerolatency -b:a 128k -s 4096x2160 -bufsize 5M -x264opts keyint=500 -g 60
> -pix_fmt yuv420p -f flv rtmp://194.167.137.11/live-test/Strange09_4k
>
>
> Some guys on IRC channel recommended me to omit / edit below mentioned
> parameters but still its not working
>
> Remove -tune zerolatency
>
> keyint=500 -g 60 , both are same so does use it together
>
> need to limit thread by adding  -thread x
>
>
> I tried using GPU to scale up the simultaneous streaming but it also going
> bad after 6 streams , below is the command . Here I can see less CPU
> utilization , like 20% , 80% is still free but GPU is 100% stressed .
>
>
> fmpeg -hwaccel_device 1 -hwaccel cuvid -re -i Stranger02.mkv -c:v
> h264_nvenc -preset fast -b:v 10M -bufsize 20M -x264opts keyint=500 -pix_fmt
> yuv420p -f flv rtmp://194.167.137.11/live-test/Strange02_4k
>
>
> I tried using GPU + CPU as 80% CPU is free after 100% GPU utilization but I
> cannot run more than 7 simultaneous streams .
>
>
> Please help me with correct usage of FFMPEG to scale up the 4k videos .
>
> My end goal is to achieve 1Gbps read/writes on storage media. Network is
> not in picture as transcoding and streaming all running on 1 server .
>
>
>
>
> Regards
>
> Karan Singh
> ___
> 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
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=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_source=link_campaign=sig-email_content=webmail>
> Libre de virus. www.avast.com<
> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_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/\
> <http://admin:password@192.168.1.23:554/Streaming/Channels/101/%5C>" -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=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_source=link_campaign=sig-email_content=webmail>
>> Libre de virus. www.avast.com<
>> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_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] UNABLE TO READ RTSP FROM IP CAMERA

2019-08-21 Thread Michael Shaffer
I'm using two Hikvision cameras with RTSP with ffmpeg and it works fine.

What happens if you try this? (writing the video to a file)

ffmpeg -rtsp_transport tcp -y -rtbufsize 200M -i "rtsp://
admin:password@192.168.0.103:554/cam/realmonitor?channel=1=0" -f
lavfi -f dshow -c:v copy -c:a copy -f flv test.mp4

On Tue, Aug 20, 2019 at 6:44 PM Alejandro Escudero <
escuderoserr...@hotmail.com> 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=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=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
> ]<
> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
> Libre de virus. www.avast.com<
> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_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] ffmpeg streaming to YouTube works better in Windows 10 than in Windows 7

2019-08-06 Thread Michael Shaffer
Does the Windows 7 computer stream at the full 25fps when stream-copying
from the camera to youtube?

You could try streaming the .mkv file to youtube from a different Windows 7
computer, and see if that works. Maybe will help narrow down if it's
Youtube, your ffmpeg command, or your computer.

Personally, I used to stream to youtube with Windows 10, but switched to
Ubuntu because there's less extra stuff included with the OS, etc. Just
seems simpler. I'm streaming 6 cameras to youtube now from one Ubuntu
computer and it's really stable.


On Mon, Aug 5, 2019 at 1:24 PM life...@gmail.com  wrote:

> Hello. I tried to stream video from an IP camera to YouTube and found a
> strange performance difference between Windows 10 and Windows 7.
> The command line is same in both cases
>
> ffmpeg -i test.mkv -c:v copy -c:a copy -f flv rtmp://
> a.rtmp.youtube.com/live2/my-youtube-api-key
> (Data in MKV is unchanged video stream from camera + encoded aac sound )
> I made test.mkv with following command:
> ffmpeg -loglevel debug -f lavfi -i anullsrc -rtsp_transport tcp -i rtsp://
> login:password@1.2.3.4/media/video1/video -c:v copy -c:a aac test.mkv
>
> In Windows 7 speed is usually around 0.5x and fps are respectively low ,
> around 12-13 (original video stream has 25 fps) also  I have image
> corruption.
>
> In Windows 10 speed is around 1x / 25fps while streaming live video from
> camera and 3x  when I stream mkv file. No problems with quality.
>
> tried ffmpeg-latest and ffmpeg 3.2 static builds, the same result.
>
> Windows 7 and Windows 10 installed on the same machine: AMD Phenom CPU 9650
> + 4GB Ram
> Link to test.mkv :
> https://www.dropbox.com/s/6o6peadsj7gfn4e/test.mkv?dl=0
>
> I would really appreciate if someone help me to understand what is
> happening ;)
> Thanks in advance!
>
>
> Windows 7:
> =
> ffmpeg started on 2019-08-05 at 19:39:39
> Report written to "ffmpeg-20190805-193939.log"
> Command line:
> ffmpeg -v 9 -loglevel 99 -report -i test.mkv -c:v copy -c:a copy -f flv
> rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key
> ffmpeg version N-94455-g01994c93db Copyright (c) 2000-2019 the FFmpeg
> developers
>   built with gcc 9.1.1 (GCC) 20190716
>   configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
> --enable-libdav1d --enable-libbluray --enable-libfreetype
> --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
> --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
> --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
> --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
> --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
> --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
> --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
> --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
> --enable-avisynth --enable-libopenmpt
>   libavutil  56. 33.100 / 56. 33.100
>   libavcodec 58. 55.100 / 58. 55.100
>   libavformat58. 30.100 / 58. 30.100
>   libavdevice58.  9.100 / 58.  9.100
>   libavfilter 7. 58.100 /  7. 58.100
>   libswscale  5.  6.100 /  5.  6.100
>   libswresample   3.  6.100 /  3.  6.100
>   libpostproc55.  6.100 / 55.  6.100
> Splitting the commandline.
> Reading option '-v' ... matched as option 'v' (set logging level) with
> argument '9'.
> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
> level) with argument '99'.
> Reading option '-report' ... matched as option 'report' (generate a report)
> with argument '1'.
> Reading option '-i' ... matched as input url with argument 'test.mkv'.
> Reading option '-c:v' ... matched as option 'c' (codec name) with argument
> 'copy'.
> Reading option '-c:a' ... matched as option 'c' (codec name) with argument
> 'copy'.
> Reading option '-f' ... matched as option 'f' (force format) with argument
> 'flv'.
> Reading option 'rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key' ...
> matched as output url.
> Finished splitting the commandline.
> Parsing a group of options: global .
> Applying option v (set logging level) with argument 9.
> Applying option loglevel (set logging level) with argument 99.
> Applying option report (generate a report) with argument 1.
> Successfully parsed a group of options.
> Parsing a group of options: input url test.mkv.
> Successfully parsed a group of options.
> Opening an input file: test.mkv.
> [NULL @ 005813c0] Opening 'test.mkv' for reading
> [file @ 00582c80] Setting default whitelist 'file,crypto'
> [matroska,webm @ 005813c0] Format matroska,webm probed with
> size=2048 and score=100
> st:0 removing common factor 100 from timebase
> st:1 removing common factor 100 from timebase
> 

[FFmpeg-user] Panasonic GH4 4K live stream using ffmpeg

2019-07-14 Thread Michael Shaffer
Can anyone recommend a good HDMI input card that will work with ffmpeg in
Ubuntu Linux?

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

Re: [FFmpeg-user] How to programmingly stream webcam and access live video via browser

2019-04-15 Thread Michael Shaffer
I just had this article emailed to me today. It might help with your
project.
https://www.pyimagesearch.com/2019/04/15/live-video-streaming-over-network-with-opencv-and-imagezmq/

I've been wanting to do the same thing as you.. use OpenCV to modify a
camera feed and then restream it to youtube. However OpenCV doesn't have an
RTSP output method. Maybe the imagezmg library in that article will help. I
haven't had time to read it all yet.

On Mon, Apr 15, 2019 at 7:43 AM Yixun Liu  wrote:

> Hi All,
> I am new to ffmpeg and need your help to finish my project.
> My project is to stream a webcam to a server and then restream the video
> in order to allow many people access the live stream via browser.
>
> I do not want to stream the original video, but the video modified by
> OpenCV such as adding a contour on the original frame. So I want to know
> how to programmingly encode the modified video and send it.
>
> Thank you so much!
>
> Yixun
> ___
> 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] does ffmpeg support ffserver

2019-03-31 Thread Michael Shaffer
s != 0:
cam5avg = (cam5sum / cam5instances) * 8
  totalUploadAvg = cam1avg + cam2avg + cam3avg + cam4avg + cam5avg

  print("Instances in file")
  print(cam1instances)
  print(cam2instances)
  print(cam3instances)
  print(cam4instances)
  print(cam5instances)
  c2uptimeavg = c2UptimeTotal / cam2RestartCount
  print("Camera 1 - Avg Speed: ",cam1avg," Uptime: ",getUptime(1),"
Restarts: ",cam1RestartCount,"Record Uptime: ",c1RecordUptime)
  print("Camera 2 - Avg Speed: ",cam2avg," Uptime: ",getUptime(2),"
Restarts: ",cam2RestartCount,"Record Uptime: ",c2RecordUptime)
  print("Camera 3 - Avg Speed: ",cam3avg," Uptime: ",getUptime(3),"
Restarts: ",cam3RestartCount,"Record Uptime: ",c3RecordUptime)
  print("Camera 4 - Avg Speed: ",cam4avg," Uptime: ",getUptime(4),"
Restarts: ",cam4RestartCount,"Record Uptime: ",c4RecordUptime)
  print("Camera 5 - Avg Speed: ",cam5avg," Uptime: ",getUptime(5),"
Restarts: ",cam5RestartCount,"Record Uptime: ",c5RecordUptime)
  print("   Total UL:  ",totalUploadAvg)

  if autoRestart == 1:
if cam1 == 1:
  if cam1avg < 50 or cam1instances == 0:
Start1()
if cam2 == 1:
  if cam2avg < 50 or cam2instances == 0:
Start2()
if cam3 == 1:
  if cam3avg < 50 or cam3instances == 0:
Start3()
if cam4 == 1:
  if cam4avg < 50 or cam4instances == 0:
Start4()
if cam5 == 1:
  if cam5avg < 50 or cam5instances == 0:
Start5()
  t = threading.Timer(10, check)
  t.start()

check()

def AutoRestartOn():
  global autoRestart
  t = threading.Timer(5, check)
  t.start()
  autoRestart = 1
  print("Auto restart ON")

def AutoRestartOff():
  global autoRestart
  t.cancel()
  autoRestart = 0
  print("Auto restart OFF")

B = tk.Button(top, text ="Cam 1 Start", command = Start1)
B.pack()
B = tk.Button(top, text ="Cam 2 Start", command = Start2)
B.pack()
B = tk.Button(top, text ="Cam 3 Start", command = Start3)
B.pack()
B = tk.Button(top, text ="Cam 4 Start", command = Start4)
B.pack()
B = tk.Button(top, text ="Cam 5 Start", command = Start5)
B.pack()
B = tk.Button(top, text ="Cam 1 Stop", command = Stop1)
B.pack()
B = tk.Button(top, text ="Cam 2 Stop", command = Stop2)
B.pack()
B = tk.Button(top, text ="Cam 3 Stop", command = Stop3)
B.pack()
B = tk.Button(top, text ="Cam 4 Stop", command = Stop4)
B.pack()
B = tk.Button(top, text ="Cam 5 Stop", command = Stop5)
B.pack()
B = tk.Button(top, text ="Start All", command = StartAll)
B.pack()
B = tk.Button(top, text ="Stop All", command = StopAll)
B.pack()
B = tk.Button(top, text ="List Processes", command = ListProcesses)
B.pack()
B = tk.Button(top, text ="Auto Restart Off", command = AutoRestartOff)
B.pack()
B = tk.Button(top, text ="Auto Restart On", command = AutoRestartOn)
B.pack()

top.mainloop()

On Sun, Mar 31, 2019 at 5:55 PM Michael Shaffer 
wrote:

> Hmm I don't know. My python script basically just runs ffmpeg in a shell.
> It uses nethogs (in Ubunu) to measure how much bandwidth ffmpeg is using.
> If it drops below a certain level the script restarts the ffmpeg process. I
> also have different buttons for manually starting and stopping each of the
> 5 camera streams. Plus turning the auto-restart on and off.
>
> It wouldn't be hard at all to make a script that would let you switch
> which input stream to use for the destination. The ffmpeg process would
> restart though so there would be a very short interruption in the sending
> to the destination rtmp address.
>
> Basically I'm using python to manage ffmpeg sessions. I"m not using a rtmp
> library in python. I don't know if there is one.
>
> On Sun, Mar 31, 2019 at 2:47 AM qw  wrote:
>
>> Hi,
>>
>>
>> Does python's rtmp lib support switch two input rtmp streams, and relay
>> one of them to destination rtmp address?
>>
>>
>> Thanks!
>>
>>
>> Regards
>>
>>
>> Andrew
>>
>>
>>
>> At 2019-03-31 00:09:17, "Michael Shaffer"  wrote:
>> >I haven't used Nginx but I think it does rtmp relay. I used a python
>> script
>> >for relaying from my ip cameras to youtube..
>> >
>> >On Sat, Mar 30, 2019 at 12:08 PM Michael Shaffer 
>> >wrote:
>> >
>> >> Nginx
>> >>
>> >> On Sat, Mar 30, 2019 at 12:05 PM qw  wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>>
>> >>> Is there some acti

Re: [FFmpeg-user] does ffmpeg support ffserver

2019-03-31 Thread Michael Shaffer
Hmm I don't know. My python script basically just runs ffmpeg in a shell.
It uses nethogs (in Ubunu) to measure how much bandwidth ffmpeg is using.
If it drops below a certain level the script restarts the ffmpeg process. I
also have different buttons for manually starting and stopping each of the
5 camera streams. Plus turning the auto-restart on and off.

It wouldn't be hard at all to make a script that would let you switch which
input stream to use for the destination. The ffmpeg process would restart
though so there would be a very short interruption in the sending to the
destination rtmp address.

Basically I'm using python to manage ffmpeg sessions. I"m not using a rtmp
library in python. I don't know if there is one.

On Sun, Mar 31, 2019 at 2:47 AM qw  wrote:

> Hi,
>
>
> Does python's rtmp lib support switch two input rtmp streams, and relay
> one of them to destination rtmp address?
>
>
> Thanks!
>
>
> Regards
>
>
> Andrew
>
>
>
> At 2019-03-31 00:09:17, "Michael Shaffer"  wrote:
> >I haven't used Nginx but I think it does rtmp relay. I used a python
> script
> >for relaying from my ip cameras to youtube..
> >
> >On Sat, Mar 30, 2019 at 12:08 PM Michael Shaffer 
> >wrote:
> >
> >> Nginx
> >>
> >> On Sat, Mar 30, 2019 at 12:05 PM qw  wrote:
> >>
> >>> Hi,
> >>>
> >>>
> >>> Is there some active popular rtmp server that can relay rtmp stream?
> >>>
> >>>
> >>>
> >>> Thanks!
> >>>
> >>>
> >>> Regards
> >>>
> >>>
> >>> Andrew
> >>>
> >>>
> >>>
> >>>
> >>> At 2019-03-30 23:52:45, "Michael Shaffer" 
> wrote:
> >>> >I don't think so. I think you have to use an older version of ffmpeg.
> I
> >>> >could never get ffserver to work right..
> >>> >
> >>> >On Sat, Mar 30, 2019 at 11:49 AM qw  wrote:
> >>> >
> >>> >> Hi,
> >>> >>
> >>> >>
> >>> >> does ffmpeg 4 still support ffserver?
> >>> >>
> >>> >>
> >>> >>
> >>> >> Regards
> >>> >>
> >>> >>
> >>> >> Andrew
> >>> >> ___
> >>> >> 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".
> ___
> 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] does ffmpeg support ffserver

2019-03-30 Thread Michael Shaffer
I haven't used Nginx but I think it does rtmp relay. I used a python script
for relaying from my ip cameras to youtube..

On Sat, Mar 30, 2019 at 12:08 PM Michael Shaffer 
wrote:

> Nginx
>
> On Sat, Mar 30, 2019 at 12:05 PM qw  wrote:
>
>> Hi,
>>
>>
>> Is there some active popular rtmp server that can relay rtmp stream?
>>
>>
>>
>> Thanks!
>>
>>
>> Regards
>>
>>
>> Andrew
>>
>>
>>
>>
>> At 2019-03-30 23:52:45, "Michael Shaffer"  wrote:
>> >I don't think so. I think you have to use an older version of ffmpeg. I
>> >could never get ffserver to work right..
>> >
>> >On Sat, Mar 30, 2019 at 11:49 AM qw  wrote:
>> >
>> >> Hi,
>> >>
>> >>
>> >> does ffmpeg 4 still support ffserver?
>> >>
>> >>
>> >>
>> >> Regards
>> >>
>> >>
>> >> Andrew
>> >> ___
>> >> 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] does ffmpeg support ffserver

2019-03-30 Thread Michael Shaffer
Nginx

On Sat, Mar 30, 2019 at 12:05 PM qw  wrote:

> Hi,
>
>
> Is there some active popular rtmp server that can relay rtmp stream?
>
>
>
> Thanks!
>
>
> Regards
>
>
> Andrew
>
>
>
>
> At 2019-03-30 23:52:45, "Michael Shaffer"  wrote:
> >I don't think so. I think you have to use an older version of ffmpeg. I
> >could never get ffserver to work right..
> >
> >On Sat, Mar 30, 2019 at 11:49 AM qw  wrote:
> >
> >> Hi,
> >>
> >>
> >> does ffmpeg 4 still support ffserver?
> >>
> >>
> >>
> >> Regards
> >>
> >>
> >> Andrew
> >> ___
> >> 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] does ffmpeg support ffserver

2019-03-30 Thread Michael Shaffer
I don't think so. I think you have to use an older version of ffmpeg. I
could never get ffserver to work right..

On Sat, Mar 30, 2019 at 11:49 AM qw  wrote:

> Hi,
>
>
> does ffmpeg 4 still support ffserver?
>
>
>
> Regards
>
>
> Andrew
> ___
> 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] Low FPS and upload speeds after Windows Update

2019-02-03 Thread Michael Shaffer
I'm streaming from an ip camera to youtube live. Windows 10 installed some
update when I had to reboot. Now ffmpeg only does about 15fps and the
upload bandwidth seems limited to 6000kbps. I've tried with a couple
different ip cameras and it's the same. I also tried with the newest
version of ffmpeg. I tried streaming with OBS studio and it was also
throttled. I ran a program called TCP Optimizer and it fixed OBS studio.
However ffmpeg still seems throttled. The only reason I'm using Windows is
I need the GPU for the defog and I haven't tried installing the Nvidia
drivers on Ubuntu yet. My Ubuntu computer can stream the camera fine, so
it's not an internet connection speed. I tried several fixes I found online
but still ffmpeg only sends about 15fps and 6000kbps.

Any ideas?

Thanks
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://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 ip cam stream with drawtext

2019-01-31 Thread Michael Shaffer
I was looking at this, it lists decode capability but not encode.
https://trac.ffmpeg.org/wiki/Hardware/QuickSync

As for putting text on the video, there's a library called OpenCV that lets
you put text on the video and do lots of other things. It probably would be
too much trouble though, since OpenCV can read an RTSP stream, but can't
send it to youtube. You'd have to capture the OpenCV window or something.

On Thu, Jan 31, 2019 at 3:47 AM frhun  wrote:

> excuse me, at first I did not read properly what you wrote
>
> you look ,I delete the drawtext, and do not use c:v copy
> but the cpu usage same with drawtext ~30%
>
> ffmpeg -r 25 -rtsp_transport tcp -i
> rtsp://admin:12341@192.168.2.25/Streaming/Channels/1 -c:v libx264 -b:v
> 2M -c:a copy -preset ultrafast -f flv
> rtmp://a.rtmp.youtube.com/live2/x-x-x-x
>
>
> I seen the gpu, this is Ironlake-M
> the cpu is Mobile Dual Core i5-560M
>
> whether can be used ffmpeg with gpu ?
>
> thank you for dealing my problem!
> Robert
>
> 2019. 01. 30. 14:36 keltezéssel, Moritz Barsnick írta:
> > On Wed, Jan 30, 2019 at 13:25:26 +0100, frhun wrote:
> >> if -c:v copy then not working drawtext!
> >
> > Of course not! What I asked was "how does this performance change if you
> omit all the
> > filters" - and you are *not* supposed to use "-c:v copy", so we can see
> > approximately how much of your CPU performance is used by the encoding
> > process, and how much by the filter.
> >
> >> so the drawtext re encoding do high cpu usage, I use the notebook (
> >> thinkpad i5 3 generations) gpu is no to perfect :)
> >
> > That's not true. The filter *implies* not being able to do "-c:v copy",
> > but it may not be the actual filter using all the compute power, but
> > the CPU-based encoding. And if so, we might be able to help you by
> > recommending other encoding parameters or use of a GPU based encoder.
> >
> > Moritz
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > http://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
> http://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
http://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 ip cam stream with drawtext

2019-01-29 Thread Michael Shaffer
Ok, I didn't know that. I guess it must be the encoding to h264 that the
GPU is helping with.

On Mon, Jan 28, 2019 at 11:23 PM Carl Eugen Hoyos 
wrote:

> 2019-01-29 0:06 GMT+01:00, Michael Shaffer :
> > Hi, we are also streaming a Hikvision cctv camera to youtube. We're not
> > putting text on the image but are using the "-vf curves" command to
> > eliminate fog. The CPU was unable to do the curves filter at 30fps above
> > 1080p. We put my GeForce 1060 3GB in the computer, and it doesn't use
> much
> > CPU at all now. Here is the command we're using that uses the Nvidia GPU.
>
> This may not be related but allow me to add that the curves filter can
> only run on CPU, and does not use GPU at all.
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://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 ip cam stream with drawtext

2019-01-28 Thread Michael Shaffer
Hi, we are also streaming a Hikvision cctv camera to youtube. We're not
putting text on the image but are using the "-vf curves" command to
eliminate fog. The CPU was unable to do the curves filter at 30fps above
1080p. We put my GeForce 1060 3GB in the computer, and it doesn't use much
CPU at all now. Here is the command we're using that uses the Nvidia GPU.

c:\ffmpeg\bin\ffmpeg1.exe -re -rtsp_transport tcp -y -i "rtsp://
admin:12345@192.168.1.64:554" -f lavfi -f dshow -rtbufsize 2000M
-thread_queue_size 5096 -i audio="virtual-audio-capturer" -c:a libmp3lame
-ab 128k -ar 44100 -bufsize 5096k -c:v h264_nvenc -preset:v hq -rc cbr_hq
-b:v 12M -buffer_size 1k -vf curves=psfile=c22.acv -f flv "rtmp://
a.rtmp.youtube.com/live2/abcd-efgh-1234-1234"

If you an afford  it, a GPU would help a lot.
Michael

On Mon, Jan 28, 2019 at 1:47 PM frhun  wrote:

> Hi all
>
> I am new in the mail list.
> I from Hungary, I usualy helped sport competition, streaming to youtube...
>
> I hope someone helps me.
>
> I have a ip cam ( hikvision) , so far using only stream to youtube
> function.
>
> ( ffmpeg -re -rtsp_transport tcp -i
> rtsp://admin:x@192.168.2.25:554/Streaming/Channels/1 -tune
> zerolatency -vcodec libx264  -pix_fmt + -c:v copy -ac 1 -c:a aac -strict
> experimental -f flv rtmp://a.rtmp.youtube.com/live2/x-x-x-x )
>
> working as well,
> but now I want drawing text from dynamic text file.
>
> ffmpeg -re -rtsp_transport tcp -i
> rtsp://admin:x@192.168.2.25/Streaming/Channels/1 -acodec aac -ar
> 8000 -b:a 64k -vcodec libx264 -vf
> "[in]drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf':
> textfile='Z\:\\k\\v\\T_A\\P.txt': x=180: y=30: reload=1:
> fontcolor=black: fontsize=50: box=1: boxborderw=5: boxcolor=red@0.8 ,
> drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf':
> textfile='Z\:\\k\\v\\T_A\\F.txt': x=180: y=75: reload=1:
> fontcolor=black: fontsize=50: box=1: boxborderw=5: boxcolor=white@0.8 ,
> drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf':
> textfile='Z\:\\k\\v\\T_A\\O.txt': x=30: y=30: reload=1: fontcolor=black:
> fontsize=60: box=1: boxborderw=5: boxcolor=aqua@0.8 ,
> drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf':
> textfile='Z\:\\k\\v\\T_A\\M.txt': x=30: y=80: reload=1: fontcolor=black:
> fontsize=47: box=1: boxborderw=5: boxcolor=yellow@0.8[out]" -f flv
> rtmp://a.rtmp.youtube.com/live2/x-x-x-x
>
> 4 txt files writing per second a program (scoreboard) names, points,
> time, line number
>
> both bat files ( I using on win 10) working well, but first code cpu
> usage is 4-5 percent, and the second cpu usage is 50% !!!
> it is not so good because 4-5 pieces stream send to youtube...
>
> What is te perfect solution that the cpu usage be small.
>
> Thanks!
>
> Robert
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] IP Camera stream copy to multiple outputs

2018-12-18 Thread Michael Shaffer
I'm using ffmpeg to stream copy from an IP camera to youtube live. I would
also like to save a copy of the video to my hard drive. The problem is the
IP camera only supports one connection at a time. Is there a way to send
ffmpeg to a program that would "multiply" the video so I could use as many
copies as I want? I want to write 3 separate python programs to manage the
different tasks I want to do with the video. One for streaming to youtube.
One for archiving the footage. A third one for experimenting with OpenCV
motion detection on the video.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Detect Frozen video

2018-11-30 Thread Michael Shaffer
Hi Mustafa, here's a link to a zip file containing the restart program I
made.

https://github.com/mcshaf01/ffmpeg-stream-restart-tool/blob/master/ffmpeg-restart-tool-v030.zip

Setup instructions:
Make a directory called c:\ffmpeg\bin\
rename and copy ffmpeg.exe to several different ffmpeg's in the
c:\ffmpeg\bin\ folder
c:\ffmpeg\bin\ffmpeg1.exe
c:\ffmpeg\bin\ ffmpeg2.exe
c:\ffmpeg\bin\ ffmpeg3.exe
c:\ffmpeg\bin\ ffmpeg4.exe
c:\ffmpeg\bin\ ffmpeg5.exe
c:\ffmpeg\bin\ ffmpeg6.exe

In the c:\ffmpeg\bin directory, put a batch file called
c:\ffmpeg\bin\stream1.bat
c:\ffmpeg\bin\stream2.bat
c:\ffmpeg\bin\stream3.bat
c:\ffmpeg\bin\stream4.bat
c:\ffmpeg\bin\stream5.bat
c:\ffmpeg\bin\stream6.bat

Put the ffmpeg command for each stream in each batch file
For instance my stream1.bat looks like this

c:\ffmpeg\bin\ffmpeg1.exe -re -rtsp_transport tcp -i "rtsp://
admin:password@201.58.112.10:554/VideoInput/1/h264/1" -f lavfi -f dshow
-rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer"
-c:a libmp3lame -ab 128k -ar 44100 -c:v copy -threads 0 -bufsize 512k -f
flv "rtmp://a.rtmp.youtube.com/live2/bfbp-3e10-sdh2-3hgj"

If you only have one stream you can just create the ffmpeg1.exe and
stream1.bat. It will give an error though if you try to start one of the
other streams and you didn't make the ffmpeg and batch file for it.

Here's a picture with some instructions.
https://github.com/mcshaf01/ffmpeg-stream-restart-tool/blob/master/instructions.jpg


On Wed, Nov 28, 2018 at 7:19 AM Mustafa Al Ani 
wrote:

> Hi Michael,
>
> I'm interested in your way of monitoring the bandwidth, can you share more
> info please?
>
> Regards,
> Mustafa
>
> On Wed, Nov 28, 2018 at 1:16 PM Michael Shaffer 
> wrote:
>
> > I don't know if there is a way to use ffmpeg to do it. I use a little
> > program I made to monitor the bandwidth and if it drops off it restarts
> the
> > stream. I'm using Ubuntu Linux and Python with the sysdig command to get
> > the bandwidth of each individual ffmpeg process. I have 5 ffmpeg's going
> at
> > once so this way I can restart only the one that crashes. With Windows
> you
> > can only get the bandwidth of the entire network card.
> >
> > On Wed, Nov 28, 2018 at 6:46 AM José María Infanzón  >
> > wrote:
> >
> > > Hi All, I'm streaming a live channel and I want to use ffmpeg to
> monitor
> > > the stream, what I need to check is when the image is frozen. Is there
> a
> > > way yo achieve this? I've read that I can use blend function, but not
> > sure
> > > how.
> > >
> > > Thanks!
> > > ___
> > > ffmpeg-user mailing list
> > > ffmpeg-user@ffmpeg.org
> > > http://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
> > http://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
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Trouble streaming IP camera from virtual OS

2018-11-29 Thread Michael Shaffer
I'm trying to use FFMpeg to send from an IP camera to youtube, from within
a virtual OS. Youtube says it's not receiving data. I can stream a file to
youtube fine, just can't input from the IP camera and send to youtube. The
"real" OS is Windows 10. I've tried Ubuntu virtual OS and a Windows 10
virtual OS. Both have the same problem of no data reaching youtube. There
are no errors in FFMpeg, it says sending like normal. I am using the same
FFMpeg commands I've used for a while, so it's not those. It's just
something about running on a virtual OS that it can't reach youtube.
(Although streaming a file on the hard drive to youtube works fine). Does
anyone have any ideas? The virtualization software I'm using is Hyper V and
also VMWare. Both have the same problem of not reaching youtube's servers.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Detect Frozen video

2018-11-28 Thread Michael Shaffer
I don't know if there is a way to use ffmpeg to do it. I use a little
program I made to monitor the bandwidth and if it drops off it restarts the
stream. I'm using Ubuntu Linux and Python with the sysdig command to get
the bandwidth of each individual ffmpeg process. I have 5 ffmpeg's going at
once so this way I can restart only the one that crashes. With Windows you
can only get the bandwidth of the entire network card.

On Wed, Nov 28, 2018 at 6:46 AM José María Infanzón 
wrote:

> Hi All, I'm streaming a live channel and I want to use ffmpeg to monitor
> the stream, what I need to check is when the image is frozen. Is there a
> way yo achieve this? I've read that I can use blend function, but not sure
> how.
>
> Thanks!
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] GPU acceleration

2018-10-31 Thread Michael Shaffer
It depends on how fast your CPU is and the bitrate of the video. Personally
I had to start using the GPU when I streamed above 1080p resolution. My CPU
couldn't process a 4k stream and maintain 30fps.

On Wed, Oct 31, 2018 at 9:18 PM zbuff <393969...@qq.com> wrote:

> I want to add watermark to my video. I want to know whether it is
> necessary to use nvidia's GPU accelerate? How much accelerate will be
> achieved when used the GPU? which architecture GPU is the best choice?
>
>
> Thanks,
> Zbuff
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] install

2018-09-26 Thread Michael Shaffer
Ignore the last line, didn't mean to include that.

On Wed, Sep 26, 2018 at 9:27 PM, Michael Shaffer 
wrote:

> Uncompress ffmpeg to a directory, like c:\ffmpeg
>
> You don't have to install it. The program is located at
> c:\ffmpeg\bin\ffmpeg.exe
>
> The simplest way is to put your mkv files in the c:\ffmpeg\bin\ directory
> and run ffmpeg on them from there.
>
> For example
> cd c:\ffmpeg\bin\
> ffmpeg -i homevideo1.mkv -c:v copy -c:a copy homevideo1.mp4
>
> c:\ffmpeg\bin\ffmpeg.exe -i mymovie.avi -c:v copy -c:a copy -f
>
> On Wed, Sep 26, 2018 at 10:40 AM, M M  wrote:
>
>> A buddy told me to try ffmpeg to make my MKV files into DIVX. I just
>> downloading but have no clue how to do this or install the program, could
>> you help?
>>
>>
>> Thanks
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] install

2018-09-26 Thread Michael Shaffer
Uncompress ffmpeg to a directory, like c:\ffmpeg

You don't have to install it. The program is located at
c:\ffmpeg\bin\ffmpeg.exe

The simplest way is to put your mkv files in the c:\ffmpeg\bin\ directory
and run ffmpeg on them from there.

For example
cd c:\ffmpeg\bin\
ffmpeg -i homevideo1.mkv -c:v copy -c:a copy homevideo1.mp4

c:\ffmpeg\bin\ffmpeg.exe -i mymovie.avi -c:v copy -c:a copy -f

On Wed, Sep 26, 2018 at 10:40 AM, M M  wrote:

> A buddy told me to try ffmpeg to make my MKV files into DIVX. I just
> downloading but have no clue how to do this or install the program, could
> you help?
>
>
> Thanks
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Max rtbufsize Via dshow

2018-09-19 Thread Michael Shaffer
>
> If I watch my encoding performance through task manager everything is
> consistent / flat at about 60% usage, until I end the recording, then it
> jumps up to 100% usage for a few seconds. VRAM, RAM, CPU, GPU (3D), and
> DISK are well below 50% usage throughout the entire process.
>
> I don't really know anything but I would assume this has something to do
> with the buffer being off-loaded to the encoder all at once when
> ending a recording?
>

I'm using a GeForce 1060 3GB and when I stop the process the GPU usage
spikes. Not sure why..

http://kdca.neocities.org/gpuspike.jpg
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] RTSP input re-encoded/copied to RTSP output stream

2018-09-16 Thread Michael Shaffer
I don't see why you aren't using

ffmpeg -i rtsp://172.x.x.x -c:v copy http://127.0.0.1:8090/feed1.ffm

Then it wouldn't even re-encode the video and would use less CPU and have
higher quality.

Also when I stream my IP cameras I put these two switches at the front of
the command

ffmpeg -re -rtsp_transport -i rtsp://172.x.x.x -c:v copy
http://127.0.0.1:8090/feed1.ffm

Also, if you happen to have an Nvidia graphics card you might be able to
use nvenc instead of libx264 to shift the processing from your CPU to your
GPU (wish I had realized this a while ago).

I haven't used ffserver so I can't give any input about that.

On Sun, Sep 16, 2018 at 5:01 PM, Dave Pritchard  wrote:

> Hi all,
> I am trying to use ffmpeg and ffserver on Ubuntu to take in an RTSP stream
> and then send it back out where I will be ingesting it into a Genetec
> Security Centre server.
>
> Short version as to why I want to do this is because the RTSP input source
> does not handshake correctly with Genetec so it does not initiate the
> stream, but I digress.
>
> I am trying to get the correct settings to make this work however have had
> limited success.
>
> The input stream is 1440x1080 @ 25fps and I would like to keep as much
> quality intact as possible, can anyone point me in the right direction as
> to what my ffserver.conf and ffmpeg strings should be!?!  Thank you.
>
> My current ffmpeg command I use to run it is;
> ffmpeg -i rtsp://172.x.x.x -vcodec libx264 -tune zerolatency -crf 18
> http://127.0.0.1:8090/feed1.ffm
>
> My ffserver.conf has minimal configuration in it, specifying RTSP port and
> ingest port.
>
> Any help would be amazing to get the config and commands right!
>
> Many thanks!
>
> Dave
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] h.265 streaming to youtube

2018-09-13 Thread Michael Shaffer
Thanks for the replies. I guess I'll just have to stream it in h.264. That
seems to work fine.

On Sat, Sep 8, 2018 at 6:10 PM, DopeLabs  wrote:

> it would also help if youtube actually supported hevc ingestion...
>
> https://support.google.com/youtube/answer/2853702?hl=en
>
>
>
> > On Sep 8, 2018, at 7:09 46AM, Carl Eugen Hoyos 
> wrote:
> >
> > 2018-09-08 12:28 GMT+02:00, Michael Shaffer :
> >
> >> c:\ffmpeg\bin\ffmpeg1.exe -re -rtsp_transport tcp -i "rtsp://
> >> admin:password@192.168.1.64:554" -f lavfi -f dshow -rtbufsize 2000M
> >> -thread_queue_size 5096 -i audio="virtual-audio-capturer" -c:a
> libmp3lame
> >> -ab 128k -ar 44100 -c:v copy -threads 0 -bufsize 512k -f hevc "rtmp://
> >> a.rtmp.youtube.com/live2/bmbp-3c10-f2b3-3hgj"
> >
> > (Complete, uncut console output missing, "-f hevc" looks wrong,
> > "threads 0" seems useless.)
> >
> > hevc is not defined for flv, this is therefore not (yet) possible.
> >
> > Carl Eugen
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > http://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
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Reconnecting ffmpeg rtsp connection

2018-09-11 Thread Michael Shaffer
Yea ffmpeg tends to crash every once in a while. I'm streaming 5 cameras to
youtube. I had to write a program to monitor the bandwidth usage and
restart ffmpeg automatically when it crashes.

On Mon, Sep 10, 2018 at 10:46 PM, YAYINCOMTR CANLI YAYIN HIZMETLERI <
yayinco...@gmail.com> wrote:

> Reconnecting ffmpeg rtsp connection
>
> Why does not rtsp reconnect when broadcast is interrupted?
>
> ssh command
> debian
>
> ffmpeg -rtsp_transport tcp -stimeout 15000 -stream_loop -1 -i
> rtsp://wowzaip:554/live/camera1
>
> ffmpeg closes when rtsp source is cut off
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] h.265 streaming to youtube

2018-09-08 Thread Michael Shaffer
Does ffmpeg support h.265 streaming of an IP camera? I would like to use
copy mode, just take the video from the camera and send it to youtube with
no extra processing.

This is the command I'm using

c:\ffmpeg\bin\ffmpeg1.exe -re -rtsp_transport tcp -i "rtsp://
admin:password@192.168.1.64:554" -f lavfi -f dshow -rtbufsize 2000M
-thread_queue_size 5096 -i audio="virtual-audio-capturer" -c:a libmp3lame
-ab 128k -ar 44100 -c:v copy -threads 0 -bufsize 512k -f hevc "rtmp://
a.rtmp.youtube.com/live2/bmbp-3c10-f2b3-3hgj"

I have done a lot of googling and haven't found anyone trying to use h.265
in  stream copy mode.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] How to perform two filters: overlay an image and apply .acv color curve?

2018-08-25 Thread Michael Shaffer
I got it working,

c:\ffmpeg\bin\ffmpeg1.exe -f image2 -loop 1 -i
C:\Users\USER500\Downloads\Aexport.png -re -rtsp_transport tcp -i "rtsp://
admin:admin@192.168.1.101:554/VideoInput/1/h264/1" -filter_complex
"[0:v]format=argb,geq=r='r(X,Y)':a='0.7*alpha(X,Y)'[ov1];
[1:v]curves=psfile=vvvlight.acv[ov2];
[ov2][ov1]overlay=5:main_h-overlay_h" -f lavfi -f dshow -rtbufsize 2000M
-thread_queue_size 5096 -i audio="virtual-audio-capturer" -c:a libmp3lame
-ab 128k -ar 44100 -c:v libx264 -preset fast -crf 30 -x264-params
keyint=60:scenecut=0 -threads 0 -bufsize 512k -f flv "rtmp://
b.rtmp.youtube.com/live2?backup=1/bmbp---3hgj"



On Sun, Aug 19, 2018 at 7:37 PM Michael Shaffer 
wrote:

> I am streaming a ip camera feed. I want to display an image overlay on the
> bottom of the screen with an image that refreshes. I also want to apply an
> .acv color curve to the image to get rid of fog and haze. I have figured
> out how to do both operations separately, but am having trouble figuring
> out doing them both. I've read the filter_complex documentation and I'm a
> bit lost.
>
> This is my command for just apply the .acv color curve. It works great.
> c:\ffmpeg\bin\ffmpeg1.exe -re -rtsp_transport tcp -i "rtsp://
> admin:password@192.168.1.101:554/VideoInput/1/h264/1" -f lavfi -f dshow
> -rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer"
> -c:a libmp3lame -ab 128k -ar 44100 -c:v libx264 -preset fast -crf 30
> -x264-params keyint=60:scenecut=0 -threads 0 -bufsize 512k -vf
> curves=psfile=test.acv -f flv "rtmp://
> a.rtmp.youtube.com/live2/bmbp---3hgj"
>
> This is my attempt to apply the overlay, test.png, and apply the .acv
> color curve
>
> c:\ffmpeg\bin\ffmpeg1.exe -report -i test.png -rtsp_transport tcp -i
> "rtsp://admin:password@192.168.1.101:554/VideoInput/1/h264/1"
> -filter_complex
> "[0:v]format=argb,geq=r='r(X,Y)':a='0.9*alpha(X,Y)'[overlay];
> [1:v][overlay]overlay; [2]curves=psfile=test.acv" -f lavfi -f dshow
> -rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer"
> -c:a libmp3lame -ab 128k -ar 44100 -c:v libx264 -preset fast -crf 30
> -x264-params keyint=60:scenecut=0 -threads 0 -bufsize 512k -pix_fmt yuv420p
> -f flv "rtmp://a.rtmp.youtube.com/live2/zw6v---9g0b"
>
> I know have to use the filter_complex command but beyond that I'm lost.. I
> would really appreciate help.
>
> Thanks
> Michael Shaffer
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] How to perform two filters: overlay an image and apply .acv color curve?

2018-08-19 Thread Michael Shaffer
I am streaming a ip camera feed. I want to display an image overlay on the
bottom of the screen with an image that refreshes. I also want to apply an
.acv color curve to the image to get rid of fog and haze. I have figured
out how to do both operations separately, but am having trouble figuring
out doing them both. I've read the filter_complex documentation and I'm a
bit lost.

This is my command for just apply the .acv color curve. It works great.
c:\ffmpeg\bin\ffmpeg1.exe -re -rtsp_transport tcp -i "rtsp://
admin:password@192.168.1.101:554/VideoInput/1/h264/1" -f lavfi -f dshow
-rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer"
-c:a libmp3lame -ab 128k -ar 44100 -c:v libx264 -preset fast -crf 30
-x264-params keyint=60:scenecut=0 -threads 0 -bufsize 512k -vf
curves=psfile=test.acv -f flv "rtmp://
a.rtmp.youtube.com/live2/bmbp---3hgj"

This is my attempt to apply the overlay, test.png, and apply the .acv color
curve

c:\ffmpeg\bin\ffmpeg1.exe -report -i test.png -rtsp_transport tcp -i
"rtsp://admin:password@192.168.1.101:554/VideoInput/1/h264/1"
-filter_complex
"[0:v]format=argb,geq=r='r(X,Y)':a='0.9*alpha(X,Y)'[overlay];
[1:v][overlay]overlay; [2]curves=psfile=test.acv" -f lavfi -f dshow
-rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer"
-c:a libmp3lame -ab 128k -ar 44100 -c:v libx264 -preset fast -crf 30
-x264-params keyint=60:scenecut=0 -threads 0 -bufsize 512k -pix_fmt yuv420p
-f flv "rtmp://a.rtmp.youtube.com/live2/zw6v---9g0b"

I know have to use the filter_complex command but beyond that I'm lost.. I
would really appreciate help.

Thanks
Michael Shaffer
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Defog/Dehaze filter for FFMPEG?

2018-07-17 Thread Michael Shaffer
Thanks, I tried the libavfilter unsharp filter and it does seem to help.

On Tue, Jul 17, 2018 at 3:44 PM, Francois Visagie <
francois.visa...@gmail.com> wrote:

> > -Original Message-
> > From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of
> > Michael Shaffer
> > Sent: 17 July 2018 18:10
> > To: FFmpeg user questions
> > Subject: [FFmpeg-user] Defog/Dehaze filter for FFMPEG?
> >
> > Are there any libraries/filters for FFMPEG for removing fog and haze? I
> found
> > one called libxcam but I'm not sure if it's been fully implemented yet
> to work
> > with FFMPEG.
>
> I haven't checked whether ffmpeg provides one, but you should get good
> results with an Unsharp Mask filter set to a wide radius = Local Contrast
> Enhancement.
>
> > Thanks,
> > Michael Shaffer
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > http://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
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Defog/Dehaze filter for FFMPEG?

2018-07-17 Thread Michael Shaffer
Are there any libraries/filters for FFMPEG for removing fog and haze? I
found one called libxcam but I'm not sure if it's been fully implemented
yet to work with FFMPEG.

Thanks,
Michael Shaffer
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] how ffmpeg use network streaming as input?

2018-07-13 Thread Michael Shaffer
Hi, I'm not exactly sure what problem you're having. However I am streaming
from IP cameras to youtube live. This is the command I'm using. Maybe this
will help you..

c:\ffmpeg\bin\ffmpeg3.exe -re -rtsp_transport tcp -i "rtsp://
admin:admin@192.168.1.230:554/VideoInput/1/h264/1" -f lavfi -f dshow
-rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer"
-c:a libmp3lame -ab 128k -ar 44100 -c:v copy -threads 0 -bufsize 512k -f
flv "rtmp://a.rtmp.youtube.com/live2/7ddp-1234-5678-f3ff"

I have six cameras total. I renamed ffmpeg.exe to ffmpeg1.exe, ffmpeg2.exe,
ffmpeg3.exe, ffmpeg4.exe, ffmpeg5.exe and ffmpeg6.exe. This allows me to
terminate and restart each camera individually by looking at their process
name (in Windows 10). I made a separate program in C# that looks at the
bandwidth being used and determines if one of the processes has locked up.
It then restarts all of them.



On Fri, Jul 13, 2018 at 3:07 AM, zhangkai.gis  wrote:

> Hi,
>  I am a newbie to ffmpeg.I want ffmpeg to convert H.264 stream to
> rtmp.I googled it.But I always find regular file as ffmpeg's input.but my
> input is a stream,the stream is H.264's I frame,P frame.How can I use the
> stream as ffmpeg's input?
>  PS: I have many device cameras.these cameras send its video and audio
> to my server through RTP. I parse the packages and recollect it to H.264's
> Frame.Then I want to send the network stream to media server(nginx+rtmp).So
> I have the problem above.Any good ideas?
>
> Thanks in advance
> zhangkai
> 2018-7-13
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] 453 Not enough bandwidth error

2018-07-13 Thread Michael Shaffer
I guess it could be youtube that is the problem. I'll try finding another
streaming service and see if it works there.

On Fri, Jul 13, 2018 at 3:49 PM, Michael Shaffer 
wrote:

> It plays fine in VLC player at 1080p, but FFMPEG won't work. I've googled
> this problem and only found one or two topics.
>
> This is the stream I'm trying to get in to 1080p mode
> https://www.youtube.com/watch?v=jYzQWfIBXQo
> It's getting a lot of viewers, I wish I could get it to work in the higher
> resoltuion.
>
> On Thu, Jul 12, 2018 at 7:26 AM, Michael Shaffer 
> wrote:
>
>> Here is the command, with a screen shot of it and the error.
>>
>> c:\ffmpeg\bin\ffmpeg3.exe -re -rtsp_transport tcp -i "rtsp://
>> admin:admin@192.168.1.230:554/VideoInput/1/h264/1" -f lavfi -f dshow
>> -rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer"
>> -c:a libmp3lame -ab 128k -ar 44100 -c:v copy -threads 0 -bufsize 512k -f
>> flv "rtmp://a.rtmp.youtube.com/live2/7ddp-1234-5678-f3ff"
>>
>> Screenshot:
>> https://kdca.neocities.org/command.jpg
>>
>>
>> On Tue, Jul 10, 2018 at 5:36 AM, Moritz Barsnick 
>> wrote:
>>
>>> Hi Michael,
>>>
>>> On Mon, Jul 09, 2018 at 16:39:32 -0400, Michael Shaffer wrote:
>>> > Hi, I'm trying to stream an IP camera to youtube, using FFMPEG to push
>>> the
>>> > stream. The problem is, if I put the camera in 1080p mode, I get this
>>> error:
>>> >
>>> > method SETUP failed: 453 Not Enough Bandwidth
>>> > Server returned 4XX Client Error, but not one of 40{0,1,3,4}
>>>
>>> Could you please show us the actual ffmpeg command line and its
>>> complete, uncut console output?
>>>
>>> > Anyways, is there a way to allow FFMPEG to use more bandwidth? I have
>>> some
>>> > programming experience, could I edit the FFMPEG code somehow to allow
>>> more
>>> > bandwidth?
>>>
>>> That error message isn't caused by ffmpeg. ffmpeg can handle plenty of
>>> bandwidth (assuming enough CPU and I/O), the RTMP server you're sending
>>> to probably can't. We'll see when we see the output requested above.
>>>
>>> Cheers,
>>> Moritz
>>> ___
>>> ffmpeg-user mailing list
>>> ffmpeg-user@ffmpeg.org
>>> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] 453 Not enough bandwidth error

2018-07-13 Thread Michael Shaffer
It plays fine in VLC player at 1080p, but FFMPEG won't work. I've googled
this problem and only found one or two topics.

This is the stream I'm trying to get in to 1080p mode
https://www.youtube.com/watch?v=jYzQWfIBXQo
It's getting a lot of viewers, I wish I could get it to work in the higher
resoltuion.

On Thu, Jul 12, 2018 at 7:26 AM, Michael Shaffer 
wrote:

> Here is the command, with a screen shot of it and the error.
>
> c:\ffmpeg\bin\ffmpeg3.exe -re -rtsp_transport tcp -i "rtsp://
> admin:admin@192.168.1.230:554/VideoInput/1/h264/1" -f lavfi -f dshow
> -rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer"
> -c:a libmp3lame -ab 128k -ar 44100 -c:v copy -threads 0 -bufsize 512k -f
> flv "rtmp://a.rtmp.youtube.com/live2/7ddp-1234-5678-f3ff"
>
> Screenshot:
> https://kdca.neocities.org/command.jpg
>
>
> On Tue, Jul 10, 2018 at 5:36 AM, Moritz Barsnick  wrote:
>
>> Hi Michael,
>>
>> On Mon, Jul 09, 2018 at 16:39:32 -0400, Michael Shaffer wrote:
>> > Hi, I'm trying to stream an IP camera to youtube, using FFMPEG to push
>> the
>> > stream. The problem is, if I put the camera in 1080p mode, I get this
>> error:
>> >
>> > method SETUP failed: 453 Not Enough Bandwidth
>> > Server returned 4XX Client Error, but not one of 40{0,1,3,4}
>>
>> Could you please show us the actual ffmpeg command line and its
>> complete, uncut console output?
>>
>> > Anyways, is there a way to allow FFMPEG to use more bandwidth? I have
>> some
>> > programming experience, could I edit the FFMPEG code somehow to allow
>> more
>> > bandwidth?
>>
>> That error message isn't caused by ffmpeg. ffmpeg can handle plenty of
>> bandwidth (assuming enough CPU and I/O), the RTMP server you're sending
>> to probably can't. We'll see when we see the output requested above.
>>
>> Cheers,
>> Moritz
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] 453 Not enough bandwidth error

2018-07-12 Thread Michael Shaffer
Here is the command, with a screen shot of it and the error.

c:\ffmpeg\bin\ffmpeg3.exe -re -rtsp_transport tcp -i "rtsp://
admin:admin@192.168.1.230:554/VideoInput/1/h264/1" -f lavfi -f dshow
-rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer"
-c:a libmp3lame -ab 128k -ar 44100 -c:v copy -threads 0 -bufsize 512k -f
flv "rtmp://a.rtmp.youtube.com/live2/7ddp-1234-5678-f3ff"

Screenshot:
https://kdca.neocities.org/command.jpg


On Tue, Jul 10, 2018 at 5:36 AM, Moritz Barsnick  wrote:

> Hi Michael,
>
> On Mon, Jul 09, 2018 at 16:39:32 -0400, Michael Shaffer wrote:
> > Hi, I'm trying to stream an IP camera to youtube, using FFMPEG to push
> the
> > stream. The problem is, if I put the camera in 1080p mode, I get this
> error:
> >
> > method SETUP failed: 453 Not Enough Bandwidth
> > Server returned 4XX Client Error, but not one of 40{0,1,3,4}
>
> Could you please show us the actual ffmpeg command line and its
> complete, uncut console output?
>
> > Anyways, is there a way to allow FFMPEG to use more bandwidth? I have
> some
> > programming experience, could I edit the FFMPEG code somehow to allow
> more
> > bandwidth?
>
> That error message isn't caused by ffmpeg. ffmpeg can handle plenty of
> bandwidth (assuming enough CPU and I/O), the RTMP server you're sending
> to probably can't. We'll see when we see the output requested above.
>
> Cheers,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] 453 Not enough bandwidth error

2018-07-09 Thread Michael Shaffer
Hi, I'm trying to stream an IP camera to youtube, using FFMPEG to push the
stream. The problem is, if I put the camera in 1080p mode, I get this error:

method SETUP failed: 453 Not Enough Bandwidth
Server returned 4XX Client Error, but not one of 40{0,1,3,4}

It works fine in 720p mode but not 1080p. It seems to be just this camera
model (Sanyo VCC-HD4000) since I have 3 other cameras that work fine on
1080p.

I read a review on this camera and they said it uses a lot of bandwidth
compared to other cameras. On 720p mode it's using about 5000kbps, which
most of my other cameras use on 1080p mode.

Anyways, is there a way to allow FFMPEG to use more bandwidth? I have some
programming experience, could I edit the FFMPEG code somehow to allow more
bandwidth?

Thanks,

Michael Shaffer
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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