so why isnt it working now i have changed bat file
what i mean by delogo is how do you know what delogo max sizes are etc
I really like the effect it makes on subtitles, so why can I not get this working it did earlier on a small clip of movie to test
EDIT: this is so weird as now I have just called movie Annabelle its now working again. it seems you have to just call a movie 1 name only not 2
Closed Thread
Results 31 to 60 of 82
-
Last edited by natty; 14th Oct 2017 at 09:39.
-
Last edited by jagabo; 14th Oct 2017 at 10:38.
-
Be sure to view the file pixel-for-pixel, not enlarged to full screen or some other size, not letterboxed or pillarboxed in a window that's not the same size as the video, not scaled for SAR or DAR flags, etc.
-
For example, PAL DVD uses a 720x576 frame for 16:9 video. Usually, if you view that video in a window the player will scale the video to a 16:9 ratio, like 1024x576. But you don't want that. You need to see it unscaled, at 720x576. VLC's snapshot shows the the scaled image. MPCHC's File -> Save Image function saves an unscaled image.
-
ok many thanks to you and others here for there fantastic help. I have just tried ffmpeg delogo on movie and its done a good job.
is there any tutorials for ffmpeg besides delogo
-
The simplest method I have found, now that setting up the batch file has been explained, is to download one of several pixel rulers. My favorite is http://ccm.net/download/download-636-jk-ruler. Play your video and pause the screen at the subtitle area you wish to blur. Use one or more rulers (they are multi launch as well as stretchable and movable with cursor or keys.)
Adjust your batch file as necessary:
Code:"c:\Program Files\ffmpeg-3.3.3-win64-static\bin\ffmpeg" -i "%1" -vf delogo=x=425:y=415:w=449:h=120 -c:a aac -b:a 192k "%~dpn1.delogo.mkv" pause
Code::show=1
Code:"ffplay" -i %1 -vf delogo=x=340:y=400:w=230:h=30:show=1 pause
You can resize but do it AFTER you set delogo:
Code:ffplay "C:\Users\Bud\Desktop\aCommercial HDCNVRTED.flv" -vf delogo=x=400:y=398:w=273:h=32:band=4,scale=854:480,setdar=1.779
NOW notice I have purposely used an anamorphic video. That is a video stored at 720X480 but is actually displayed as 854x480. This is why the blurred area is offset. You will just adjust slightly. If you wish to do the math for anamorphic:
854/720=1.186
400/1.186=340 (400 is shown in actually previewed resized video)
-
Hi thank you so much for your help. in that 1st picture I see you have 4 rulers on picture, so basicly I would have to measure 1: left side of screen to left side of subtitle
2: top of subtitle to top of screen. 3: width of ST , and 4: height
so is that x y w h so batch file would say in accordance to your picture
Code:"c:\Program Files\ffmpeg-3.3.3-win64-static\bin\ffmpeg" -i "%1" -vf delogo=x=204:y=261:w=381:h=72 -c:a aac -b:a 192k "%~dpn1.delogo.mkv" pause
I dont quite understand about that ffplay, would i have to make another bat file for that
this is a bit confusing for me as like i said earlier I am useless at all this but willing to learn
btw I did notice when I played my converted movie back where i blurred subtitles. it was just a single line blurred, as it showed a ST above where i blurred so it seems you have to look for the biggest ST like maybe 3 linesLast edited by natty; 15th Oct 2017 at 07:16.
-
Hi,
I dont know if it was mentioned here. There is plugin for virtualdub, that removes subtitles. It needed two passes and result vary. Just try on small piece of video.
Here is the link: http://www.compression.ru/video/subtitles_removal/index_en.html
as mentioned on the site there are two methods
Two subtitle removing methods
Blur (Spatial extrapolation)
Motion compensation for correct subtitle area filling (Effect of objects "crawling" over the subtitles)
BernixLast edited by Bernix; 15th Oct 2017 at 10:18.
-
Hi I have tried MSU Subtitle Remover but it says 2 passes, so do that mean i would have to run video all way through, then again to remove subtitles or mask them again run movie all way through a 3rd time. as that seems a hell of a long while to remove subtitles. 3 times of running movie. what do 2 passes me, as i assumed it means what i said run movie 2 times all way through
-
Hi,
first pass to write log file info about subtitles, second pass you point to this log file. Or there is one pass without temporally files. But I think two pass will have better result. There is several settings. You can see all of them on the page I posted. But If you want process only one movie and if you have slow computer, I don't know if is it worth of it. Because you have to find optimal settings for you. Which takes some times. It is old filter (doesn't mean is bad) But nowadays computer are much faster, so I think it will not take much time.
Bernix
-
Well I have just cut a short clip from movie to test, I had to play all way through, with subtitle remover plug in. to detect subtitles. which it made masks over ST text then when done I have to set it to remove ST so 2nd time of running video all way through or short clip I mean, now 3rd time I am saving video as .avi so thats 3 times i have had to run movie clip all way through
EDIT: Dam I have now saved movie clip and its not removed subtitles. I must be doing something wrong
-
One video is worth than tousand words.
https://www.youtube.com/watch?v=hvdkkGJnyMo
Bernix
-
Last edited by natty; 15th Oct 2017 at 12:03.
-
You can also use multiple instances of the delogo filter with different frame ranges and different coordinates. For example, this script:
Code:"c:\Program Files\ffmpeg-3.3.3-win64-static\bin\ffmpeg" -y -i %1 -vf ^ "delogo=enable='between(n,24,71)':x=285:y=656:w=709:h=43, ^ delogo=enable='between(n,96,143)':x=285:y=656:w=709:h=43, ^ delogo=enable='between(n,168,215)':x=285:y=656:w=709:h=43 ^ " -c:a copy "%~dpn1.delogo.mkv" pause
-
You have to change the coordinates and frame numbers for each video. This is probably a lot more work than you want to do but it allows you to have a clean picture whenever there are no subtitles. Or, for example, you could have one permanent blur area for one line, then manually fix the few places in the video where the subtitles appear over two or three lines -- so less of the picture is ruined for most of the video.
-
Thank you so much and also everyone here who has helped, I know someone suggested Virtualdub msu_subtitle_remover, and I will also try that as well later, but I think its best to stick to 1 subject like ffmpeg, as I will get so confused.
I am still waiting to hear back from Budman1, as I cant understand about those bat files he posted. Im sorry all but I need reral simple help on all this ffmpeg, I love learning all this, as its like a nice hobby.
once again thanks to everyone here believe me its most appreciated, just that I am a slow learner
In this 1st snap what budman1 posted am I correct in saying thats X, Y, W, H I marked on rulers
I am getting a lot of conversion failed errors too when I place in the x y w h coordinate numbers cant understand why. as I have tried with rulers and irfanview methodLast edited by natty; 16th Oct 2017 at 04:46.
-
well i tried using 4 rulers on movie, x y w h added them 3 lines as so below
Code:"c:\Program Files\ffmpeg-3.3.3-win64-static\bin\ffmpeg" -y -i %1 -vf ^ "delogo=enable='between(n,24,71)':x=465:y=437:w=360:h=104, ^ delogo=enable='between(n,96,143)':x=465:y=437:w=360:h=104, ^ delogo=enable='between(n,168,215)':x=465:y=437:w=360:h=104, ^ " -c:a copy "%~dpn1.delogo.mkv" pause
but bat file said this
D:\>"c:\Program Files\ffmpeg-3.3.3-win64-static\bin\ffmpeg" -y -i D:\Annabelle.mkv -vf "delogo=enable='between(n,24,71)'=465:y=437:w=360:h=104, delogo=enable='between(n,96,143)'
=465:y=437:w=360:h=104, delogo=enable='between(n,168,215)'
=465:y=437:w=360:h=104, " -c:a copy "D:\Annabelle.delogo.mkv"
ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.1.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, matroska,webm, from 'D:\Annabelle.mkv':
Metadata:
title : Annabelle Creation 2017 720p HC HDRip-x264-AC3 5.1-Zi$t-WWRG
encoder : libebml v1.3.4 + libmatroska v1.4.5
creation_time : 2017-09-14T12:17:08.000000Z
Duration: 01:49:28.10, start: 0.000000, bitrate: 802 kb/s
Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1280x536 [SAR 402:403 DAR 960:403], SAR 254:255 DAR 8128:3417, 23.98 fps, 23.98 tbr, 1k tbn, 180k tbc (default)
Metadata:
BPS : 417026
BPS-eng : 417026
DURATION : 01:49:28.102000000
DURATION-eng : 01:49:28.102000000
NUMBER_OF_FRAMES: 157469
NUMBER_OF_FRAMES-eng: 157469
NUMBER_OF_BYTES : 342384348
NUMBER_OF_BYTES-eng: 342384348
_STATISTICS_WRITING_APP: mkvmerge v13.0.0 ('The Juggler') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v13.0.0 ('The Juggler') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-09-14 12:17:08
_STATISTICS_WRITING_DATE_UTC-eng: 2017-09-14 12:17:08
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
Metadata:
BPS : 384000
BPS-eng : 384000
DURATION : 01:49:28.032000000
DURATION-eng : 01:49:28.032000000
NUMBER_OF_FRAMES: 205251
NUMBER_OF_FRAMES-eng: 205251
NUMBER_OF_BYTES : 315265536
NUMBER_OF_BYTES-eng: 315265536
_STATISTICS_WRITING_APP: mkvmerge v13.0.0 ('The Juggler') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v13.0.0 ('The Juggler') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-09-14 12:17:08
_STATISTICS_WRITING_DATE_UTC-eng: 2017-09-14 12:17:08
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[Parsed_delogo_0 @ 0000000002617c00] Note: default band value was changed from 4 to 1.
[Parsed_delogo_1 @ 0000000002a7ef20] Note: default band value was changed from 4 to 1.
[Parsed_delogo_2 @ 0000000002679da0] Note: default band value was changed from 4 to 1.
[AVFilterGraph @ 00000000023e98e0] No such filter: ''
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!
D:\>pause
Press any key to continue . . .
Similar Threads
-
Recording video without blurring using Canon 550d
By Norma17 in forum Newbie / General discussionsReplies: 3Last Post: 10th Mar 2017, 12:55 -
Showing subtitle in Reverse Order | Arabic Subtitle - Samsung LED 49K6965
By ashkan_vpm2 in forum SubtitleReplies: 2Last Post: 10th Feb 2017, 01:51 -
Convert pac subtitle to something that I can open in Subtitle workshop
By Tiger_1982 in forum SubtitleReplies: 11Last Post: 15th Aug 2015, 20:49 -
Turning on subtitles is blurring the picture
By killerteengohan in forum Software PlayingReplies: 1Last Post: 25th Jul 2015, 20:26 -
Blurring Effect
By rmccam in forum EditingReplies: 8Last Post: 29th Jan 2015, 14:35