Menu

Burning Subtitles on 4K 10-bit HDR Video

2023-03-07
2023-03-07
  • Steven T Pippin

    Steven T Pippin - 2023-03-07

    Hi,

    I'm trying to hard-code subtitles into a 4K, 10-bit, HDR video. I want to keep the quality (and the HDR) and would like it to encode with the same formats as the source. I've read all the forums here and found the command line (I thought) I should use, but I'm getting an error message. I've attached 3 photos... one that shows the current format of the video, a second showing I'm muxing a SRT subtitle file and the final photo shows the error message I am getting. Can you help?

     
  • Abel

    Abel - 2023-03-07

    Hi, can you show the the log file content, at main tab?

     
  • Steven T Pippin

    Steven T Pippin - 2023-03-07

    FFmpeg log sesion: 3/7/2023 8:34:55 AM

    Input #0, matroska,webm, from 'D:\4K Movies\FFBatch\Avatar 4K (2009).mkv':
    Metadata:
    title : Avatar
    RATING : PG-13
    SORT_WITH : Avatar
    ARTIST : Sam Worthington, Zoe Saldaña, Sigourney Weaver, Stephen Lang, Michelle Rodriguez, Giovanni Ribisi, Joel David Moore, CCH Pounder, Wes Studi, Laz Alonso, Dileep Rao, Matt Gerald, Sean Anthony Moran, Jason Whyte, Scott Lawrence, Kelly Kilgour, James Pa...
    ACTOR : Sam Worthington, Zoe Saldaña, Sigourney Weaver, Stephen Lang, Michelle Rodriguez, Giovanni Ribisi, Joel David Moore, CCH Pounder, Wes Studi, Laz Alonso, Dileep Rao, Matt Gerald, Sean Anthony Moran, Jason Whyte, Scott Lawrence, Kelly Kilgour, James Pa...
    DIRECTOR : James Cameron
    PRODUCER : James Cameron, Jon Landau
    PRODUCTION_STUDIO: Ingenious Media
    GENRE : Action, Adventure, Fantasy, Science Fiction
    DATE_RELEASED : 2009-12-15
    DATE_RELEASE : 2009-12-15
    DATE_RECORDED : 2009-12-15
    CONTENT_TYPE : Movie
    DESCRIPTION : Enter the world of Pandora.
    SUMMARY : Enter the world of Pandora.
    SYNOPSIS : In the 22nd century, a paraplegic Marine is dispatched to the moon Pandora on a unique mission, but becomes torn between following orders and protecting an alien civilization.
    LAW_RATING : PG-13
    ENCODER : Lavf59.27.100
    Duration: 02:58:08.30, start: 0.000000, bitrate: 5583 kb/s
    Chapters:
    Chapter #0:0: start 0.000000, end 0.000000
    Metadata:
    title : Chapter 1
    Stream #0:0: Video: hevc (Main 10), yuv420p10le(pc, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
    DURATION : 02:58:08.302000000
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
    Metadata:
    title : Surround
    DURATION : 02:58:08.257000000
    Multiple -filter, -af or -vf options specified for stream 0, only the last option '-filter:v subtitles=%ff:stream_index=0' will be used.
    [hevc @ 000001de2975a8c0] Using auto hwaccel type dxva2 with new default device.
    Stream mapping:
    Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
    Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [Parsed_subtitles_0 @ 000001de745ceec0] libass API version: 0x1600010
    [Parsed_subtitles_0 @ 000001de745ceec0] libass source: commit: 0.16.0-39-g5f57443f1784434fe8961275da08be6d6febc688
    [Parsed_subtitles_0 @ 000001de745ceec0] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 5.2.0 (COMPLEX)
    [Parsed_subtitles_0 @ 000001de745ceec0] Unable to open %ff
    [AVFilterGraph @ 000001de770ae800] Error initializing filter 'subtitles' with args '%ff:stream_index=0'
    Error reinitializing filters!
    Failed to inject frame into filter network: No such file or directory
    Error while processing the decoded data for stream #0:0
    Conversion failed!

    ---------------------End of Avatar 4K (2009).mkv log-------------------------------


    END OF LOG FILE

    Total time: 00h:00m:06s
    LOG SIZE: 3 KB

     
  • Steven T Pippin

    Steven T Pippin - 2023-03-07

    I don't know if I mentioned that the subtitles are not currently part of the MKV container. They're an external SRT file. Is the error because the source is 10-bit with HDR?

     
  • Abel

    Abel - 2023-03-07

    I think in this case you could use the main tab with those parameters, it is trying to use the subtitles file twice, and %ff variable is not yet implemented at subtitles tab.

     
  • Steven T Pippin

    Steven T Pippin - 2023-03-07

    That didn't work, although it did give me a different error message.

     
  • Steven T Pippin

    Steven T Pippin - 2023-03-07

    That didn't work, although it did give me a different error message.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.