Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > General > Subtitles

Thread Tools Search this Thread Display Modes
Old 27th December 2022, 11:04   #1  |  Link
Registered User
Selur's Avatar
Join Date: Oct 2001
Location: Germany
Posts: 7,243
FFMpeg ttxt subtitles 'Invalid data found when processing input'

I got a ttxt file with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!--GPAC 3GPP Text Stream-->
<TextStream version="1.1">
<TextStreamHeader layer="0" translation_x="0" width="1024" height="144" translation_y="576">
<TextSampleDescription verticalText="no" verticalJustification="bottom" backColor="00 00 00 00" horizontalJustification="center" fillTextRegion="no" continuousKaraoke="no" scroll="None">
<FontTableEntry fontID="1" fontName="Serif"/>
<TextBox left="0" bottom="0" right="0" top="0"/>
<Style color="ff ff ff ff" fontSize="18" styles="Normal"/>
<TextSample xml:space="preserve" sampleTime="00:00:00.000"/>
<TextSample xml:space="preserve" sampleTime="00:00:44.712">As quickly as you can,
snatch the pebble from my hand.</TextSample>
Mp4Box has no problem with it and can mux it without an issue.
FFmpeg on the other hand reports 'Invalid data found when processing input'.

even adding '-loglevel trace' only gives
Opening an input file: G:\Output\test_5m_0_en.ttxt.
[NULL @ 000001c091321c00] Opening 'G:\Output\test_5m_0_en.ttxt' for reading
[file @ 000001c0911ba8c0] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 000001c08f92e700] Statistics: 802 bytes read, 0 seeks
G:\Output\test_5m_0_en.ttxt: Invalid data found when processing input
[AVIOContext @ 000001c0911bac00] Statistics: 65881 bytes read, 2 seeks
=> Does anyone have an idea what the problem is?

Cu Selur
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 09:16.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.