VideoHelp Forum


Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!


Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.


+ Reply to Thread
Results 1 to 19 of 19
Thread
  1. In the majority of cases, yt-dlp can get subtitles from NBC, but sometimes there are videos that make yt-dlp fail. I was hoping there might be a manual way to get subtitles in such cases. I tried filtering and looking for VTT, XML, etc., but with no success.

    Can anyone help?

    Here are two examples of videos where yt-dlp fails:

    Code:
    https://www.nbc.com/ninos-ricos-pobres-padres/video/malos-consejos/9000207405
    https://www.nbc.com/madre-luna/video/dulce-atraccion/4348004
    Quote Quote  
  2. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Have you tried downloading the videos? Sometimes, they can't be found as external, neither as separate tracks in the manifest, but as closed captions in the file. You can then use ffmpeg to rip them from the video files.
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  3. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    extract subtitle with CCExtractor

    your es subtitles> https://gofile.io/d/URNZhv
    Quote Quote  
  4. Originally Posted by iamghost View Post
    extract subtitle with CCExtractor

    your es subtitles> https://gofile.io/d/URNZhv
    But how exactly?
    CCExtractor extracks subs from a video file, right?
    I downloaded a video from NBC but it doesn't have subtitles inside so CCExtractor won't extract them. What am I doing wrong?

    This is my downloaded video: https://gofile.io/d/ua5cI5
    Quote Quote  
  5. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Code:
    ffmpeg -f lavfi -i movie=62.mp4[out+subcc] -map 0:1 -c:s text -y "output.srt"
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  6. Thanks so much. What if there are two subtitles (languages) in a video?
    Quote Quote  
  7. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    That's actually a good question. Do you have a video like that? I'd like to test ffmpeg to see how it should be used in that case
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  8. This video should have two subtitle tracks (English and Spanish). https://gofile.io/d/FtRwtK

    Image
    [Attachment 81905 - Click to enlarge]
    Quote Quote  
  9. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    That's a tricky one. I don't have the answer for it. The ffmpeg command manages to get the spanish subtitle, but the english one no idea how to get it. I think it's better if you use ccextractor like @iamghost mentioned.

    Just for the sake of learning ffmpeg better, if an expert knows how, please let me know.
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  10. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    mkvinfo + mkvextract could do the job ?
    I downloaded the video and opened in VLC, no subs are detected, weird.
    Quote Quote  
  11. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    I think it's better if you use ccextractor like @iamghost mentioned.
    But ccextractor doesnt work for me at all. it just creates empty txt file. I used portable version with default settings.
    Quote Quote  
  12. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    ccextractor should work. Maybe someone that knows the tool can help you.

    Meanwhile there's this ffmpeg gui alternative. Apparently it works for both languages
    https://forum.videohelp.com/threads/396490-clever-FFmpeg-GUI-small-FFmpeg-UI-fully-por...on#post2577711

    You load the mp4, click main -> extract 608 and type in the small box 0 or 1. 0 for spa, 1 for eng. You can then use subtitle edit to get rid of any formatting

    1_S_0_extracted.srt
    1_S_1_extracted.srt

    Now I'm just curious what's the ffmpeg command used in background. After all, it's just a GUI
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  13. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    Now I'm just curious what's the ffmpeg command used in background. After all, it's just a GUI
    Maybe (not working all the time + need to be fast), you can try grabbing the command used :
    Code:
    ps -eaf | grep ffmpeg
    Quote Quote  
  14. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    That's a tricky one. I don't have the answer for it. The ffmpeg command manages to get the spanish subtitle, but the english one no idea how to get it. I think it's better if you use ccextractor like @iamghost mentioned.

    Just for the sake of learning ffmpeg better, if an expert knows how, please let me know.
    install the firefox browser addon called Netmon - https://addons.mozilla.org/en-US/firefox/addon/netmon/
    once installed, play the video and search for subtitle you'll get this - https://vod-lf-oneapp2-prd.akamaized.net/prod/telemundo/bKd/jnk/4348004/1683192341244-...Narrative=true

    which i guess is both English & Spanish subtitles ??
    Quote Quote  
  15. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    dont run gui just go to ccextractor folder run cmd from this folder
    -1 is track 1 spanish
    -2 is track 2 english
    Code:
    ccextractor.exe  --gui_mode_reports  -2 -out=srt -bom -latin1 "path video.mp4"
    https://files.videohelp.com/u/301156/CCExtractor.zip
    Last edited by iamghost; 1st Sep 2024 at 13:46.
    Quote Quote  
  16. To extract the EIA-608 closed captions with ffmpeg in Spanish:

    Code:
    ffmpeg -f lavfi -data_field 0 -i "movie=1.mp4[out+subcc]" -map 0:1 output-es.srt
    To extract the second track of closed captions in English:

    Code:
    ffmpeg -f lavfi -data_field 1 -i "movie=1.mp4[out+subcc]" -map 0:1 output-en.srt
    Quote Quote  
  17. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by pteque View Post
    To extract the second track of closed captions in English:

    Code:
    ffmpeg -f lavfi -data_field 1 -i "movie=1.mp4[out+subcc]" -map 0:1 output-en.srt
    Marvelous So it's all about -data_field.
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  18. Thank you all for your help.
    One more question. How do I know if a video has EIA-608 subtitles?
    They're are not available in video players, media info doesn't show information about them as well.
    Quote Quote  
  19. Originally Posted by m0ck View Post
    How do I know if a video has EIA-608 subtitles?
    They're are not available in video players, media info doesn't show information about them as well.
    ffprobe without arguments shows

    Code:
          Side data:
            audio service type: main
    To print the details of the "side data":

    Code:
    % ffprobe -v error -show_entries stream=index:stream_tags=language -of json /tmp/1.mp4
    {
        "programs": [
    
        ],
        "stream_groups": [
    
        ],
        "streams": [
            {
                "index": 0,
                "tags": {
                    "language": "und"
                }
            },
            {
                "index": 1,
                "tags": {
                    "language": "spa"
                },
                "side_data_list": [
                    {
    
                    }
                ]
            }
        ]
    }
    Quote Quote  



Similar Threads

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