[FFmpeg-user] Closed Captions for zone 1 DVD

PPRJ01 pprj01 at orange.fr
Fri May 8 23:28:50 EEST 2020


Hello Carl Eugen,

Please find attached a short sample file named "2005.mp4". This is the result of command :

ffmpeg -ss 99 -to 103 -i 2005.VOB 2005.mp4

Additional information can be :
- ffprobe says that file 2005.VOB contains Closed Captions
- ffprobe says that file 2005.mp4 does NOT contain Closed Captions
- VLC software fully displays all Closed Captions from both files 2005.VOB and 2005.mp4

In my understanding ffmpeg does copy the Closed Captions to the output video stream itself but do not set any metadata tag in the output file.

The output of the "ffmpeg -ss 99 -to 103 -i 2005.VOB 2005.mp4" command is below.
 
Rgds
______

Input #0, mpeg, from '2005.VOB':
  Duration: 02:12:51.14, start: 0.028833, bitrate: 4568 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 32:27 DAR 16:9], Closed Captions, 29.08 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg2video (native) -> h264 (libx264))
  Stream #0:2 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[ac3 @ 0000022d59f5ccc0] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
[aac @ 0000022d59fc5680] Using a PCE to encode channel layout "5.1(side)"
[libx264 @ 0000022d5a4c1040] using SAR=32/27
[libx264 @ 0000022d5a4c1040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0000022d5a4c1040] profile High, level 3.0, 4:2:0, 8-bit
[libx264 @ 0000022d5a4c1040] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '2005.mp4':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc58.35.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1(side), fltp, 394 kb/s
    Metadata:
      encoder         : Lavc58.35.100 aac
frame=   51 fps=0.0 q=29.0 size=       0kB time=00:00:01.64 bitrate=   0.2kbits/s dup=10 drop=0 speed=3.22x    
frame=   65 fps= 52 q=29.0 size=       0kB time=00:00:02.13 bitrate=   0.2kbits/s dup=13 drop=0 speed= 1.7x    
frame=   83 fps= 47 q=29.0 size=       0kB time=00:00:02.70 bitrate=   0.1kbits/s dup=16 drop=0 speed=1.53x    
frame=   96 fps= 42 q=29.0 size=       0kB time=00:00:03.15 bitrate=   0.1kbits/s dup=19 drop=0 speed=1.39x    
frame=  120 fps= 43 q=29.0 size=     256kB time=00:00:03.94 bitrate= 531.5kbits/s dup=24 drop=0 speed= 1.4x    
frame=  121 fps= 30 q=-1.0 Lsize=     431kB time=00:00:04.01 bitrate= 881.3kbits/s dup=24 drop=0 speed=1.01x    
video:232kB audio:194kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.338844%
[libx264 @ 0000022d5a4c1040] frame I:1     Avg QP:20.52  size: 29187
[libx264 @ 0000022d5a4c1040] frame P:32    Avg QP:21.69  size:  5208
[libx264 @ 0000022d5a4c1040] frame B:88    Avg QP:23.81  size:   467
[libx264 @ 0000022d5a4c1040] consecutive B-frames:  0.8%  5.0%  5.0% 89.3%
[libx264 @ 0000022d5a4c1040] mb I  I16..4: 18.2% 71.7% 10.1%
[libx264 @ 0000022d5a4c1040] mb P  I16..4:  0.4%  0.5%  0.0%  P16..4: 29.5%  7.9%  7.6%  0.0%  0.0%    skip:54.1%
[libx264 @ 0000022d5a4c1040] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 21.0%  0.5%  0.1%  direct: 0.4%  skip:77.8%  L0:40.0% L1:55.7% BI: 4.4%
[libx264 @ 0000022d5a4c1040] 8x8 transform intra:67.2% inter:77.3%
[libx264 @ 0000022d5a4c1040] coded y,uvDC,uvAC intra: 54.8% 61.3% 33.9% inter: 5.6% 7.3% 1.0%
[libx264 @ 0000022d5a4c1040] i16 v,h,dc,p: 43% 38% 13%  6%
[libx264 @ 0000022d5a4c1040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 24% 30%  3%  2%  5%  3%  5%  8%
[libx264 @ 0000022d5a4c1040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 23% 15%  4%  4%  6%  5%  5%  8%
[libx264 @ 0000022d5a4c1040] i8c dc,h,v,p: 52% 26% 18%  5%
[libx264 @ 0000022d5a4c1040] Weighted P-Frames: Y:3.1% UV:0.0%
[libx264 @ 0000022d5a4c1040] ref P L0: 54.8% 11.9% 23.1%  9.9%  0.2%
[libx264 @ 0000022d5a4c1040] ref B L0: 76.2% 17.9%  5.9%
[libx264 @ 0000022d5a4c1040] ref B L1: 92.6%  7.4%
[libx264 @ 0000022d5a4c1040] kb/s:469.54
[aac @ 0000022d59fc5680] Qavg: 189.273


____________________________________________________________
 
Am Di., 5. Mai 2020 um 23:12 Uhr schrieb PPRJ01 
:

> I tried adding large values with options "-analyzeduration" and
> "probesize" but this does NOT work for Closed Captions even
> if it works properly for regular subtitle streams.

> Please understand that I am not a beginner.

Very bad try.

Please provide a sample, Carl Eugen

And please consider using a sane mail client...
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
 

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2005.mp4
Type: video/mp4
Size: 441810 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200508/0c9fa733/attachment.mp4>


More information about the ffmpeg-user mailing list