Opened 3 years ago

Closed 3 years ago

#5877 closed defect (duplicate)

subrip always converted to mov_txt for mp4

Reported by: blacktrash Owned by:
Priority: normal Component: avformat
Version: git-master Keywords:
Cc: blacktrash@gmx.net Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Subtitles are non-discardable when transcoding to mp4. -sn or mapping does not help.
Variant of #5492.

Setting to important. Similarly to #5492, I want ffmpeg to do what I tell it.
To add insult to injury ffmpeg lies in its output by pretending to convert only video and audio.

How to reproduce:

$ ffmpeg -i subrip-short.mkv -dn -sn -map 0:V -map 0:a test.mp4
ffmpeg version N-81879-g3cc9d6d Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --enable-gpl --enable-nonfree --disable-ffserver --enable-shared --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib --enable-gnutls
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 60.101 / 57. 60.101
  libavformat    57. 51.102 / 57. 51.102
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, matroska,webm, from 'subrip-short.mkv':
  Metadata:
    ENCODER         : Lavf57.51.102
  Duration: 00:00:03.38, start: 0.000000, bitrate: 4970 kb/s
    Chapter #0:0: start 0.000000, end 3.000000
    Metadata:
      title           : Chapter 2
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x534, SAR 1:1 DAR 640:267, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      DURATION        : 00:00:03.086000000
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      DURATION        : 00:00:03.006000000
    Stream #0:2(fre): Subtitle: subrip
    Metadata:
      DURATION        : 00:00:03.379000000
[libx264 @ 0x7f879c0e5200] using SAR=1/1
[libx264 @ 0x7f879c0e5200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7f879c0e5200] profile High, level 3.1
[libx264 @ 0x7f879c0e5200] 264 - core 148 r2721 72d53ab - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - 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=12 lookahead_threads=2 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=23 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 'test.mp4':
  Metadata:
    encoder         : Lavf57.51.102
    Chapter #0:0: start 0.000000, end 3.000000
    Metadata:
      title           : Chapter 2
    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], q=-1--1,23.98 fps, 24k tbn, 23.98 tbc (default)
    Metadata:
      DURATION        : 00:00:03.086000000
      encoder         : Lavc57.60.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, 5.1(side), fltp, 341 kb/s
    Metadata:
      DURATION        : 00:00:03.006000000
      encoder         : Lavc57.60.101 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
frame=   74 fps= 58 q=-1.0 Lsize=     550kB time=00:00:03.01 bitrate=1492.5kbits/s speed=2.37x
video:420kB audio:125kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.725212%
[libx264 @ 0x7f879c0e5200] frame I:3     Avg QP:20.25  size: 31525
[libx264 @ 0x7f879c0e5200] frame P:21    Avg QP:23.35  size:  8062
[libx264 @ 0x7f879c0e5200] frame B:50    Avg QP:25.10  size:  3317
[libx264 @ 0x7f879c0e5200] consecutive B-frames:  6.8%  5.4% 12.2% 75.7%
[libx264 @ 0x7f879c0e5200] mb I  I16..4: 19.3% 62.0% 18.7%
[libx264 @ 0x7f879c0e5200] mb P  I16..4:  4.4% 10.7%  1.4%  P16..4: 32.3%  6.8%  3.4%  0.0%  0.0%    skip:41.1%
[libx264 @ 0x7f879c0e5200] mb B  I16..4:  0.7%  1.0%  0.1%  B16..8: 37.3%  4.1%  0.6%  direct: 1.4%  skip:54.8%  L0:45.4% L1:49.7% BI: 4.8%
[libx264 @ 0x7f879c0e5200] 8x8 transform intra:62.8% inter:87.5%
[libx264 @ 0x7f879c0e5200] coded y,uvDC,uvAC intra: 55.2% 60.7% 22.3% inter: 9.1% 9.6% 0.1%
[libx264 @ 0x7f879c0e5200] i16 v,h,dc,p: 46% 36%  3% 14%
[libx264 @ 0x7f879c0e5200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 23% 14%  4%  4%  5%  4%  5%  6%
[libx264 @ 0x7f879c0e5200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 28% 10%  4%  5%  6%  5%  4%  4%
[libx264 @ 0x7f879c0e5200] i8c dc,h,v,p: 43% 29% 25%  3%
[libx264 @ 0x7f879c0e5200] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7f879c0e5200] ref P L0: 66.8% 17.0% 10.6%  5.6%
[libx264 @ 0x7f879c0e5200] ref B L0: 93.4%  5.5%  1.1%
[libx264 @ 0x7f879c0e5200] ref B L1: 98.0%  2.0%
[libx264 @ 0x7f879c0e5200] kb/s:1113.88
[aac @ 0x7f879c0e8600] Qavg: 121.899
$ ffprobe -select_streams s -show_entries stream=codec_name test.mp4
ffprobe version N-81879-g3cc9d6d Copyright (c) 2007-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --enable-gpl --enable-nonfree --disable-ffserver --enable-shared --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib --enable-gnutls
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 60.101 / 57. 60.101
  libavformat    57. 51.102 / 57. 51.102
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.51.102
  Duration: 00:00:03.09, start: 0.000000, bitrate: 1458 kb/s
    Chapter #0:0: start 0.000000, end 3.000000
    Metadata:
      title           : Chapter 2
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], 1115 kb/s, 23.98fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 342 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574), 0 kb/s
    Metadata:
      handler_name    : SubtitleHandler
[STREAM]
codec_name=mov_text
[/STREAM]

Sample attached.

Attachments (1)

subrip-short.mkv (2.0 MB) - added by blacktrash 3 years ago.

Change History (12)

Changed 3 years ago by blacktrash

comment:1 follow-up: Changed 3 years ago by cehoyos

  • Priority changed from important to normal
  • Resolution set to duplicate
  • Status changed from new to closed

comment:2 in reply to: ↑ 1 Changed 3 years ago by blacktrash

  • Resolution duplicate deleted
  • Status changed from closed to reopened

Replying to cehoyos:
Could you explain why this is a duplicate?
If you mean it's a duplicate re: #5492, then:

  • it is a duplicate in the sense that ffmpeg silently doesn't obey the options given
  • however, strictly speaking #5492 is about copying unknown tracks (and -dn not obeyed and -copy_unknown being enforced) whereas this one is about converting a known s track silently

I'd consider that closely related, but not a duplicate.
Main thing though would be that it gets fixed.

comment:3 follow-up: Changed 3 years ago by cehoyos

  • Resolution set to duplicate
  • Status changed from reopened to closed

Your command line does not convert a subtitle stream.

comment:4 in reply to: ↑ 3 Changed 3 years ago by blacktrash

  • Resolution duplicate deleted
  • Status changed from closed to reopened

Replying to cehoyos:

Your command line does not convert a subtitle stream.

??? The subrip subtitle is converted to mov_text s track. See above.

comment:5 follow-up: Changed 3 years ago by Cigaes

Examine more carefully: there is a subtitle stream in your output file, but it is empty and does not come from the input subtitles.

Also, do you know that the sample you provided is invalid?

comment:6 in reply to: ↑ 5 Changed 3 years ago by blacktrash

Replying to Cigaes:

Examine more carefully: there is a subtitle stream in your output file, but it is empty and does not come from the input subtitles.

Also, do you know that the sample you provided is invalid?

The point is that I want to discard the subtitle track, regardless of whether it's valid or not. And there is no way of doing it for mp4 (or most likely mov).

  • ffmpeg does not do what I tell it to do
  • ffmpeg pretends to do what I tell it to do

comment:7 follow-up: Changed 3 years ago by Cigaes

FFmpeg is discarding the subtitle stream. Something is creating another one, but the input subtitle stream is discarded.

comment:8 in reply to: ↑ 7 ; follow-up: Changed 3 years ago by blacktrash

Replying to Cigaes:

FFmpeg is discarding the subtitle stream. Something is creating another one, but the input subtitle stream is discarded.

Then that "something" would "create" it (or try to do so) for other target formats as well, but it doesn't.

$ cat subriptoavi
ffmpeg started on 2016-10-06 at 16:49:53
Report written to "subriptoavi"
Command line:
ffmpeg -v verbose -i subrip-short.mkv -sn test.avi
ffmpeg version N-81879-g3cc9d6d Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --enable-gpl --enable-nonfree --disable-ffserver --enable-shared --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib --enable-gnutls
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 60.101 / 57. 60.101
  libavformat    57. 51.102 / 57. 51.102
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'verbose'.
Reading option '-i' ... matched as input file with argument 'subrip-short.mkv'.
Reading option '-sn' ... matched as option 'sn' (disable subtitle) with argument '1'.
Reading option 'test.avi' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument verbose.
Successfully parsed a group of options.
Parsing a group of options: input file subrip-short.mkv.
Successfully parsed a group of options.
Opening an input file: subrip-short.mkv.
[file @ 0x7fdf825007a0] Setting default whitelist 'file,crypto'
[matroska,webm @ 0x7fdf83002000] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
st:2 removing common factor 1000000 from timebase
[matroska,webm @ 0x7fdf83002000] Before avformat_find_stream_info() pos: 972 bytes read:32768 seeks:0 nb_streams:3
[h264 @ 0x7fdf83003a00] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fdf83003a00] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x7fdf83003a00] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fdf83003a00] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x7fdf83003a00] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x7fdf83003a00] Reinit context to 1280x544, pix_fmt: yuv420p
[h264 @ 0x7fdf83003a00] no picture 
[matroska,webm @ 0x7fdf83002000] All info found
[matroska,webm @ 0x7fdf83002000] After avformat_find_stream_info() pos: 160041 bytes read:173489 seeks:0 frames:5
Input #0, matroska,webm, from 'subrip-short.mkv':
  Metadata:
    ENCODER         : Lavf57.51.102
  Duration: 00:00:03.38, start: 0.000000, bitrate: 4970 kb/s
    Chapter #0:0: start 0.000000, end 3.000000
    Metadata:
      title           : Chapter 2
    Stream #0:0(eng), 4, 1/1000: Video: h264 (High), 1 reference frame, yuv420p, 1280x534 (1280x544), SAR 1:1 DAR 640:267, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      DURATION        : 00:00:03.086000000
    Stream #0:1(eng), 1, 1/1000: Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      DURATION        : 00:00:03.006000000
    Stream #0:2(fre), 0, 1/1000: Subtitle: subrip
    Metadata:
      DURATION        : 00:00:03.379000000
Successfully opened the file.
Parsing a group of options: output file test.avi.
Applying option sn (disable subtitle) with argument 1.
Successfully parsed a group of options.
Opening an output file: test.avi.
[file @ 0x7fdf8243d4c0] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:0 @ 0x7fdf82600280] Setting 'video_size' to value '1280x534'
[graph 0 input from stream 0:0 @ 0x7fdf82600280] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 0x7fdf82600280] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 0x7fdf82600280] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x7fdf82600280] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x7fdf82600280] Setting 'frame_rate' to value '24000/1001'
[graph 0 input from stream 0:0 @ 0x7fdf82600280] w:1280 h:534 pixfmt:yuv420p tb:1/1000 fr:24000/1001 sar:1/1 sws_param:flags=2
[format @ 0x7fdf826009a0] compat: called with args=[yuv420p]
[format @ 0x7fdf826009a0] Setting 'pix_fmts' to value 'yuv420p'
[AVFilterGraph @ 0x7fdf8243d760] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
[graph 1 input from stream 0:1 @ 0x7fdf82500560] Setting 'time_base' to value '1/48000'
[graph 1 input from stream 0:1 @ 0x7fdf82500560] Setting 'sample_rate' to value '48000'
[graph 1 input from stream 0:1 @ 0x7fdf82500560] Setting 'sample_fmt' to value 'fltp'
[graph 1 input from stream 0:1 @ 0x7fdf82500560] Setting 'channel_layout' to value '0x60f'
[graph 1 input from stream 0:1 @ 0x7fdf82500560] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f
[audio format for output stream 0:1 @ 0x7fdf82507b00] Setting 'sample_fmts' to value 's32p|fltp|s16p'
[audio format for output stream 0:1 @ 0x7fdf82507b00] Setting 'sample_rates' to value '44100|48000|32000|22050|24000|16000|11025|12000|8000'
[audio format for output stream 0:1 @ 0x7fdf82507b00] Setting 'channel_layouts' to value '0x4|0x3'
[audio format for output stream 0:1 @ 0x7fdf82507b00] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1'
[AVFilterGraph @ 0x7fdf82600d40] query_formats: 4 queried, 7 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7fdf825081a0] [SWR @ 0x7fdf83063200] Using fltp internally between filters
[auto-inserted resampler 0 @ 0x7fdf825081a0] [SWR @ 0x7fdf83063200] Matrix coefficients:
[auto-inserted resampler 0 @ 0x7fdf825081a0] [SWR @ 0x7fdf83063200] FL: FL:1.000000 FR:0.000000 FC:0.707107 LFE:0.000000 SL:0.707107 SR:0.000000 
[auto-inserted resampler 0 @ 0x7fdf825081a0] [SWR @ 0x7fdf83063200] FR: FL:0.000000 FR:1.000000 FC:0.707107 LFE:0.000000 SL:0.000000 SR:0.707107 
[auto-inserted resampler 0 @ 0x7fdf825081a0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz
[h264 @ 0x7fdf8300a000] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fdf8300a000] nal_unit_type: 8, nal_ref_idc: 3
[mpeg4 @ 0x7fdf8282fc00] intra_quant_bias = 0 inter_quant_bias = -64
Output #0, avi, to 'test.avi':
  Metadata:
    ISFT            : Lavf57.51.102
    Chapter #0:0: start 0.000000, end 3.000000
    Metadata:
      title           : Chapter 2
    Stream #0:0(eng), 0, 1001/24000: Video: mpeg4, 1 reference frame (FMP4 / 0x34504D46), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
    Metadata:
      DURATION        : 00:00:03.086000000
      encoder         : Lavc57.60.101 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng), 0, 3/125: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, delay 1105
    Metadata:
      DURATION        : 00:00:03.006000000
      encoder         : Lavc57.60.101 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (ac3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf8300a000] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x7fdf8300a000] Reinit context to 1280x544, pix_fmt: yuv420p
[h264 @ 0x7fdf8300a000] no picture 
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf83079800] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf83079800] no picture 
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf83079e00] nal_unit_type: 1, nal_ref_idc: 2
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf8307a400] nal_unit_type: 1, nal_ref_idc: 0
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf8307aa00] nal_unit_type: 1, nal_ref_idc: 0
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf830cc400] nal_unit_type: 1, nal_ref_idc: 0
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf830cca00] nal_unit_type: 1, nal_ref_idc: 2
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf830cd000] nal_unit_type: 1, nal_ref_idc: 2
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf830cd600] nal_unit_type: 1, nal_ref_idc: 0
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf8300a000] nal_unit_type: 1, nal_ref_idc: 0
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264 @ 0x7fdf83079800] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.000008
[h264 @ 0x7fdf83079e00] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.009972
[h264 @ 0x7fdf8307a400] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.002983
[h264 @ 0x7fdf8307aa00] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf830cc400] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf830cca00] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.005974
[h264 @ 0x7fdf830cd000] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf830cd600] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8300a000] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.008995
[h264 @ 0x7fdf83079800] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.001976
[h264 @ 0x7fdf83079e00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8307a400] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8307aa00] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.004997
[h264 @ 0x7fdf830cc400] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf830cca00] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf830cd000] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.007988
[h264 @ 0x7fdf830cd600] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.000999
[h264 @ 0x7fdf8300a000] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf83079800] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf83079e00] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.003990
[h264 @ 0x7fdf8307a400] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8307aa00] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf830cc400] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.006981
[h264 @ 0x7fdf830cca00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf830cd000] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf830cd600] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.009972
[h264 @ 0x7fdf8300a000] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.002983
[h264 @ 0x7fdf83079800] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf83079e00] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf8307a400] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf8307aa00] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.005974
[h264 @ 0x7fdf830cc400] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf830cca00] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.008995
[h264 @ 0x7fdf830cd000] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.001976
[h264 @ 0x7fdf830cd600] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8300a000] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf83079800] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.004997
[h264 @ 0x7fdf83079e00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8307a400] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8307aa00] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.007988
[h264 @ 0x7fdf830cc400] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.000999
[h264 @ 0x7fdf830cca00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf830cd000] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x7fdf830cd600] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf8300a000] nal_unit_type: 1, nal_ref_idc: 2
Clipping frame in rate conversion by 0.003990
[h264 @ 0x7fdf83079800] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf83079e00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8307a400] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.006981
[h264 @ 0x7fdf8307aa00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf830cc400] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf830cca00] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.009972
Clipping frame in rate conversion by 0.002983
[h264 @ 0x7fdf830cd000] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf830cd600] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf8300a000] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf83079800] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.005974
[h264 @ 0x7fdf83079e00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8307a400] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8307aa00] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.008995
Clipping frame in rate conversion by 0.001976
[h264 @ 0x7fdf830cc400] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf830cca00] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x7fdf830cd000] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.004997
[h264 @ 0x7fdf830cd600] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf8300a000] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x7fdf83079800] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.007988
Clipping frame in rate conversion by 0.000999
Clipping frame in rate conversion by 0.003990
Clipping frame in rate conversion by 0.006981
[output stream 0:1 @ 0x7fdf82501ea0] EOF on sink link output stream 0:1:default.
[output stream 0:0 @ 0x7fdf82600780] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
[libmp3lame @ 0x7fdf8281da00] Trying to remove 47 more samples than there are in the queue
frame=   74 fps=0.0 q=31.0 Lsize=     353kB time=00:00:03.08 bitrate= 937.5kbits/s speed=12.9x    
video:292kB audio:47kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.272617%
Input file #0 (subrip-short.mkv):
  Input stream #0:0 (video): 74 packets read (1859061 bytes); 74 frames decoded; 
  Input stream #0:1 (audio): 93 packets read (238080 bytes); 93 frames decoded (142848 samples); 
  Input stream #0:2 (subtitle): 0 packets read (0 bytes); 
  Total: 167 packets (2097141 bytes) demuxed
Output file #0 (test.avi):
  Output stream #0:0 (video): 74 frames encoded; 74 packets muxed (298860 bytes); 
  Output stream #0:1 (audio): 124 frames encoded (142848 samples); 125 packets muxed (48000 bytes); 
  Total: 199 packets (346860 bytes) muxed
167 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x7fdf8243d560] Statistics: 12 seeks, 209 writeouts
[AVIOContext @ 0x7fdf825008e0] Statistics: 2099464 bytes read, 0 seeks
$ ffprobe -v quiet -show_entries format=nb_streams test.avi
[FORMAT]
nb_streams=2
[/FORMAT]
$ ffmpeg -v quiet -i subrip-short.mkv interim.mp4
$ MP4Box -add interim.mp4#video -add interim.mp4#audio test.mp4
IsoMedia import interim.mp4 - track ID 1 - Video (size 1280 x 534)
Warning: track ID 1 has references to a track not imported
IsoMedia import interim.mp4 - track ID 2 - Audio (SR 48000 - 6 channels)
Warning: track ID 1 has references to a track not imported
Warning: track ID 2 has references to a track not imported
Saving to test.mp4: 0.500 secs Interleaving
$ ffprobe -v quiet -show_entries format=nb_streams test.mp4
[FORMAT]
nb_streams=2
[/FORMAT]
Last edited 3 years ago by blacktrash (previous) (diff)

comment:9 in reply to: ↑ 8 ; follow-up: Changed 3 years ago by Cigaes

Replying to blacktrash:

Then that "something" would "create" it (or try to do so) for other target formats as well, but it doesn't.


Assuming I understand your sentence correctly despite the typos: what makes you assume that?

You observe a different behaviour with different output formats. You can not deduce what component is responsible for it with your tests, and you came to a wrong conclusion.

comment:10 in reply to: ↑ 9 Changed 3 years ago by blacktrash

Replying to Cigaes:

Replying to blacktrash:

Then that "something" would "create" it (or try to do so) for other target formats as well, but it doesn't.


Assuming I understand your sentence correctly despite the typos: what makes you assume that?

Ermh, which typos, except those I corrected?

You observe a different behaviour with different output formats. You can not deduce what component is responsible for it with your tests, and you came to a wrong conclusion.

Then explain what the -sn option (disable subtitle recording) is good for in this context, please.

Last edited 3 years ago by blacktrash (previous) (diff)

comment:11 Changed 3 years ago by cehoyos

  • Resolution set to duplicate
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.