[FFmpeg-cvslog] fate/subtitles: Add remuxing test for lrc

Andreas Rheinhardt git at videolan.org
Thu Oct 7 13:06:04 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Oct  1 20:38:57 2021 +0200| [1307089523e68fb0048f2d38c3789953b87595ca] | committer: Andreas Rheinhardt

fate/subtitles: Add remuxing test for lrc

It uses the test-lrc.lrc sample which was added years ago, but never
used until now.

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1307089523e68fb0048f2d38c3789953b87595ca
---

 tests/fate/subtitles.mak     |  3 +++
 tests/ref/fate/sub-lrc-remux | 49 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak
index cd162786d4..2f4c94f366 100644
--- a/tests/fate/subtitles.mak
+++ b/tests/fate/subtitles.mak
@@ -26,6 +26,9 @@ FATE_SUBTITLES-$(call DEMMUX, JACOSUB, JACOSUB) += fate-sub-jacosub-remux
 fate-sub-jacosub-remux: CMD = transcode jacosub $(TARGET_SAMPLES)/sub/JACOsub_capability_tester.jss jacosub "-map 0 -c copy" "-map 0 -c copy"
 fate-sub-jacosub-remux: CMP = diff
 
+FATE_SUBTITLES-$(call DEMMUX, LRC, LRC) += fate-sub-lrc-remux
+fate-sub-lrc-remux: CMD = fmtstdout lrc -i $(TARGET_SAMPLES)/sub/test-lrc.lrc
+
 FATE_SUBTITLES_ASS-$(call DEMDEC, MICRODVD, MICRODVD) += fate-sub-microdvd
 fate-sub-microdvd: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MicroDVD_capability_tester.sub
 
diff --git a/tests/ref/fate/sub-lrc-remux b/tests/ref/fate/sub-lrc-remux
new file mode 100644
index 0000000000..92d6c30f64
--- /dev/null
+++ b/tests/ref/fate/sub-lrc-remux
@@ -0,0 +1,49 @@
+[ti:Swansong]
+[al:Breadcrumbs]
+[ar:Josh Woodward]
+[length:04:21]
+[by:StarBrilliant]
+
+[-00:01.02](This is a negative timestamp which should not make program crash)
+[00:35.62]I never thought I'd see the day
+[00:38.42]I thought that I had finally moved along
+[00:43.80]And I had let you go so long ago, so long
+[00:49.26]This is not, this is not where I belong
+[00:57.38]So I wait for this shallow itch to pass
+[01:05.98]And I wait, yeah I wait
+[01:12.14]Hey hey, I'm ok
+[01:15.18]I don't need this anyway, I'm fine
+[01:19.82]What's yours and mine
+[01:23.64]Oh oh, I don't know
+[01:26.44]What I was ever hoping I would find
+[01:31.66]But it's time for me to leave this all behind
+[01:35.74]
+[01:46.20]I don't regret a single thing
+[01:48.98]I couldn't say it didn't feel alright
+[01:54.10]But I don't want to stay and I don't want to fight
+[01:59.76]All alone, with my foolish appetite
+[02:07.94]So I wait for this shallow itch to pass
+[02:16.52]And I wait, yeah I wait
+[02:22.72]Hey hey, I'm ok
+[02:25.68]I don't need this anyway, I'm fine
+[02:30.38]What's yours and mine
+[02:34.12]Oh oh, I don't know
+[02:36.98]What I was ever hoping I would find
+[02:42.28]But it's time for me to leave this all behind
+[02:45.36]I don't have the heart to give away to you again
+[02:51.08]I don't have the stomach for it, no one ever wins
+[02:56.70]We had our fun but I have sung this song to you before
+[03:01.68]Here's my last refrain
+[03:08.05]Hey hey, I'm ok
+[03:10.81]I don't need this anyway, I'm fine
+[03:15.50]What's yours and mine
+[03:19.31]Oh oh, I don't know
+[03:22.11]What I was ever hoping I would find
+[03:27.34]But it's time for me to leave this all behind
+[03:30.81]Hey hey, I'm ok
+[03:32.98]I don't need this anyway, I'm fine
+[03:38.02]What's yours and mine
+[03:41.91]Oh oh, I don't know
+[03:44.54]What I was ever hoping I would find
+[03:50.04]But it's time for me to leave this all behind
+[03:54.82]



More information about the ffmpeg-cvslog mailing list