Re: [FFmpeg-user] overlay_cuda

2019-11-07 Thread Paul B Mahol
No.

On 11/7/19, Alex <3.1...@ukr.net> wrote:
> We have overlay, overlay_qsv, overlay_opencl filters but don't have
> overlay_cuda for speed up transcoding videos on nvidia GPU only. Using sw
> overlay filter is slow down the transcoding because frames copied between
> CPU and GPU ram. Can You implement overlay_cuda filter, please?
> Alex
> ___
> 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] overlay_cuda

2019-11-07 Thread Alex
We have overlay, overlay_qsv, overlay_opencl filters but don't have 
overlay_cuda for speed up transcoding videos on nvidia GPU only. Using sw 
overlay filter is slow down the transcoding because frames copied between CPU 
and GPU ram. Can You implement overlay_cuda filter, please?
Alex
___
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] Using Hauppague PCIe TV Tuner card - Need Timestamp on Marque

2019-11-07 Thread Byron J
Hello all!

I have been searching for a way to add a running date/time stamp in a
marquee in videos recorded from a Huappauge Quad TV Tuner card. I have
something kind of working that post processes the recorded .TS video files
and adds a timestamp but the time is tied to the frame rate instead of the
PC clock.

Any ideas? Can I offer a reward for the solution?

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
___
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 & hashing algorithm speed

2019-11-07 Thread Peter B.

Thanks for the infos!

And "yes": My PHP/Python examples were not related to FFmpeg, but this 
discovery led me to become curious how FFmpeg does it - and therefore 
ask this question :)


Will read the Giorgio-Thread and maybe return with reproducible 
(commandline + uncut console output) question scenarios.




Thank you very much!
Pb


On 07/11/2019 00:21, Carl Eugen Hoyos wrote:

Am Do., 7. Nov. 2019 um 00:09 Uhr schrieb Carl Eugen Hoyos :

Am Mi., 6. Nov. 2019 um 23:40 Uhr schrieb Peter B. :


Hashing for fixity and transfer-checking seems to be quite a bottleneck
for archiving big video/film files for archiving.

Therefore I was considering if using "simpler" algorithms (like CRC
instead of SHA256) could speed up the process.
I was surprised that e.g. MD5 vs CRC in Python as well as PHP
seemed to be equally "fast".

But this is not related to FFmpeg, no?


So I was wondering:
Does FFmpeg have/do any speed optimization for hashing functionality
(framemd5, hash muxer, etc) in its code?

Some of Giorgio's commits were meant to increase hash function
speed:
http://git.videolan.org/?p=ffmpeg.git;a=search;s=vazzana;st=author
There is an email with a script to compare the implementation's speeds,
I don't know when it was sent to the development mailing list though.

This mail leads to a long thread:
http://mplayerhq.hu/pipermail/ffmpeg-devel/2013-May/143854.html
In the end a file tools/ffhash.c was created to compare hash
implementation speeds.

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