[FFmpeg-user] 608 to scc has truncated lines... maybe?

a at slo.me a at slo.me
Tue Sep 3 03:19:35 EEST 2019



On 09/02/2019 11:46 PM, a at slo.me wrote:
> I'm running the command
> 
> ffmpeg  -f lavfi -i movie="1.mp4[out+subcc]" \
>  -map 0:1 -c copy  out1.scc \
>  -map 0:1  out1.vtt \
>  2> con.txt
> 
> The video file is here
> 
>> https://slo.me/ffscc/1.mp4
> 
> con.txt, out1.scc, and out1.vtt are attached.
> 
> 
> ffmpeg version N-94431-g42a2edcc1d Copyright (c) 2000-2019 the FFmpeg
> developers
>   built with OpenBSD clang version 7.0.1 (tags/RELEASE_701/final) (based
> on LLVM 7.0.1)
>   configuration: --enable-libx264 --enable-libx265 --enable-libopus
> --enable-gpl --enable-version3 --enable-shared --enable-libfdk-aac
> --enable-gnutls --enable-nonfree --disable-debug
>   libavutil      56. 32.100 / 56. 32.100
>   libavcodec     58. 55.100 / 58. 55.100
>   libavformat    58. 30.100 / 58. 30.100
>   libavdevice    58.  9.100 / 58.  9.100
>   libavfilter     7. 58.100 /  7. 58.100
>   libswscale      5.  6.100 /  5.  6.100
>   libswresample   3.  6.100 /  3.  6.100
>   libpostproc    55.  6.100 / 55.  6.100
> Input #0, lavfi, from 'movie=1.mp4[out+subcc]':
>   Duration: N/A, start: 0.033000, bitrate: N/A
>     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 400x224
> [SAR 1:1 DAR 25:14], 29.97 tbr, 90k tbn, 90k tbc
>     Stream #0:1: Subtitle: eia_608
> Output #0, scc, to 'out1.scc':
>   Metadata:
>     encoder         : Lavf58.30.100
>     Stream #0:0: Subtitle: eia_608
> Output #1, webvtt, to 'out1.vtt':
>   Metadata:
>     encoder         : Lavf58.30.100
>     Stream #1:0: Subtitle: webvtt
>     Metadata:
>       encoder         : Lavc58.55.100 webvtt
> Stream mapping:
>   Stream #0:1 -> #0:0 (copy)
>   Stream #0:1 -> #1:0 (eia_608 (cc_dec) -> webvtt (native))
> Press [q] to stop, [?] for help
> size=       5kB time=00:00:37.30 bitrate=   1.2kbits/s speed=74.6x
> ^Msize=      12kB time=00:01:14.90 bitrate=   1.3kbits/s speed=74.9x
> ^Msize=      17kB time=00:01:45.83 bitrate=   1.3kbits/s speed=70.5x
> ^Msize=      24kB time=00:02:23.00 bitrate=   1.4kbits/s speed=71.5x
> ^M[Parsed_movie_0 @ 0xe35d837ea00] EOF timestamp not reliable
> size=      27kB time=00:02:41.26 bitrate=   1.4kbits/s speed=70.2x
> video:0kB audio:0kB subtitle:286kB other streams:0kB global headers:0kB
> muxing overhead: unknown
> 
> 
> 
> my scc file comes out like this
> 
> 
> 
> Scenarist_SCC V1.0
> 
> 00:00:00:03     9420
> 
> 00:00:00:04     94f4
> 
> 00:00:00:05     5b6d
> 
> 00:00:00:06     7573
> 
> 00:00:00:07     e9e3
> 
> 00:00:00:08     2070
> 
> 00:00:00:09     ec61
> 
> 00:00:00:10     79e9
> 
> 00:00:00:11     6e67
> 
> 00:00:00:12     5d80
> 
> 00:00:00:13     942c
> 
> 00:00:00:16     942f
> 
> 00:00:02:04     942c
> 
> 00:00:04:13     9420
> 
> 00:00:04:14     9452
> 
> 
> however, my webvtt file comes out as expected
> 
> 
> WEBVTT
> 
> 00:00.533 --> 00:02.135
> [music playing]
> 
> 00:05.538 --> 00:08.641
> \h\h\h- In Egypt’s capital,
> Cairo, one environmentalist
> 
> 00:08.742 --> 00:13.546
> taps into the power of community
> to spread his green message.
> 
> 00:13.646 --> 00:14.981
> My name is Sharif Hosny.
> 
> 00:15.081 --> 00:16.916
> I’m the co-founder of Schaduf.
> 
> 00:17.017 --> 00:21.187
> - Schaduf is an Arabic word for
> an ancient irrigation tool that
> 
> 00:21.287 --> 00:24.190
> is still used by farmers today.
> 
> 00:24.290 --> 00:28.228
> It lifts water to irrigate
> \hcanals to harvest crops.
> 
> 
> 
> 
> I'm not sure of my mistake.
> 
> 
> Thank you for your time,
> 
> Adrian
> 
> 



My apologies, I see it now.

ffmpeg   -i out1.scc -map 0 out2.vtt

and it outputs the same as the out1.vtt .



More information about the ffmpeg-user mailing list