VideoHelp Forum




Closed Thread
Page 2 of 3
FirstFirst 1 2 3 LastLast
Results 31 to 60 of 82
  1. Originally Posted by teodz1984 View Post
    you dont.. you have to measure the screen and find the area to blur. it varies from movie to movie.
    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
    Last edited by natty; 14th Oct 2017 at 09:39.

  2. Originally Posted by teodz1984 View Post
    you dont.. you have to measure the screen and find the area to blur. it varies from movie to movie.
    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.
    Last edited by jagabo; 14th Oct 2017 at 10:38.

  3. Originally Posted by jagabo View Post
    Originally Posted by teodz1984 View Post
    you dont.. you have to measure the screen and find the area to blur. it varies from movie to movie.
    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.

    how do you mean view file pixel for pixel. I know what you mean by not full screen, and letterbox dont know what pillarboxed view is

  4. 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.
    Just for info: If a snapshot is taken in VLC (or MPC-HC) the original frame resolution is used regardless if fullscreen or other enlarged view is used in playback. Also in Irfan View coordinates is for the original image resolution regardless of any magnification.

  5. oh ok. btw I am now getting this in the cmd window what do that mean

    Past duration 0.602379 too large=

  6. Originally Posted by natty View Post
    how do you mean view file pixel for pixel.
    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.

  7. Originally Posted by jagabo View Post
    Originally Posted by natty View Post
    how do you mean view file pixel for pixel.
    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

  8. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    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.)

    Click image for larger version

Name:	ruled.jpg
Views:	843
Size:	67.7 KB
ID:	43382

    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
    If you wish to preview, use ffplay (comes with ffmpeg) and just add '
    Code:
    :show=1
    ' and omit output settings to display a box around your settings
    Code:
    "ffplay" -i %1 -vf delogo=x=340:y=400:w=230:h=30:show=1
    pause
    Click image for larger version

Name:	offset.jpg
Views:	847
Size:	113.0 KB
ID:	43383

    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
    Click image for larger version

Name:	large.jpg
Views:	870
Size:	110.8 KB
ID:	43384

    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)

  9. Originally Posted by Budman1 View Post
    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.)

    Image
    [Attachment 43382 - Click to enlarge]


    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
    If you wish to preview, use ffplay (comes with ffmpeg) and just add '
    Code:
    :show=1
    ' and omit output settings to display a box around your settings
    Code:
    "ffplay" -i %1 -vf delogo=x=340:y=400:w=230:h=30:show=1
    pause
    Image
    [Attachment 43383 - Click to enlarge]


    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
    Image
    [Attachment 43384 - Click to enlarge]


    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
    EDIT: As I just tried and it didnt work

    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 lines
    Last edited by natty; 15th Oct 2017 at 07:16.

  10. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    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)


    Bernix
    Last edited by Bernix; 15th Oct 2017 at 10:18.

  11. Originally Posted by Bernix View Post
    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)


    Bernix
    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

  12. Originally Posted by natty View Post
    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 lines
    Of course, the filter doesn't recognize subtitles or logos or anything else, it just interpolates pixels across a rectangular area. It's up to you to figure out what area that should be.

  13. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    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

  14. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    Hi.
    2nd pass removes subtitles and save videos in your format settings. Check manual. Second pass works as any other filters. Only first pass resulting in no video but log file.

    Bernix

  15. Originally Posted by jagabo View Post
    Originally Posted by natty View Post
    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 lines
    Of course, the filter doesn't recognize subtitles or logos or anything else, it just interpolates pixels across a rectangular area. It's up to you to figure out what area that should be.
    yes i noticed that so its best to find at 1st the biggest ST text

  16. Originally Posted by Bernix View Post
    Hi.
    2nd pass removes subtitles and save videos in your format settings. Check manual. Second pass works as any other filters. Only first pass resulting in no video but log file.

    Bernix
    so its correct then you have to run video all way through 1st then 2nd time you run all way through again, so it remove subtitles, then 3rd time its just saving the video

  17. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    Hi,
    no, second pass processes video to final video with removed subtitles. It depends on you what compression you use. My English is not good enough to explain it it seems....

    Bernix

  18. Originally Posted by Bernix View Post
    Hi,
    no, second pass processes video to final video with removed subtitles. It depends on you what compression you use. My English is not good enough to explain it it seems....

    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

  19. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    No, at second pass you can save video as avi. Just use the second pass checked, point to log temp file you created in first pass. Then save as avi. Filter will work and video at the end will be saved.

    Bernix

  20. Originally Posted by Bernix View Post
    No, at second pass you can save video as avi. Just use the second pass checked, point to log temp file you created in first pass. Then save as avi. Filter will work and video at the end will be saved.

    Bernix

    so you mean save as .avi in same folder as masks


    I must be doing something wrong here as its not removing them

  21. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    Originally Posted by natty View Post
    Originally Posted by Bernix View Post
    No, at second pass you can save video as avi. Just use the second pass checked, point to log temp file you created in first pass. Then save as avi. Filter will work and video at the end will be saved.

    Bernix

    so you mean save as .avi in same folder as masks
    No, you can save avi where you want. But in filter setting point log temp file, where you created it default path is I think C:\temp for that file. Avi video can be saved anywhere you want.

    Bernix

  22. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    One video is worth than tousand words.
    https://www.youtube.com/watch?v=hvdkkGJnyMo

    Bernix

  23. Originally Posted by Bernix View Post
    One video is worth than tousand words.
    https://www.youtube.com/watch?v=hvdkkGJnyMo

    Bernix

    I have seen that video before, but i think its because maybe i have settings on custom


    EDIT: No offence to you Bernix but I think I will stick to the ffmpeg method, as that seems better for me I know it leaves a blur where subs are but its best method I think
    Last edited by natty; 15th Oct 2017 at 12:03.

  24. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    I have not any problems with your decision

    Bernix

  25. 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
    applies the delogo filter to just first three subtitles of the video in videobruger's post #10.

  26. Originally Posted by jagabo View Post
    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
    applies the delogo filter to just first three subtitles of the video in videobruger's post #10.
    so you mean the post where he attached a blur.zip so i would have to still change the x y w h each time on thos 3 delogo lines above yeah

  27. Originally Posted by natty View Post
    Originally Posted by jagabo View Post
    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
    applies the delogo filter to just first three subtitles of the video in videobruger's post #10.
    so you mean the post where he attached a blur.zip so i would have to still change the x y w h each time on thos 3 delogo lines above yeah
    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.

  28. Originally Posted by jagabo View Post
    Originally Posted by natty View Post
    Originally Posted by jagabo View Post
    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
    applies the delogo filter to just first three subtitles of the video in videobruger's post #10.
    so you mean the post where he attached a blur.zip so i would have to still change the x y w h each time on thos 3 delogo lines above yeah
    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 method
    Last edited by natty; 16th Oct 2017 at 04:46.

  29. Yes, you have the coordinates labeled correctly.

  30. Originally Posted by jagabo View Post
    Yes, you have the coordinates labeled correctly.

    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
    from these measurements



    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

Visit our sponsor! Try DVDFab and backup Blu-rays!