[FFmpeg-trac] #3819(undetermined:new): ffmpeg entries to extracts an addiional unwanted track from a blu-ray (stream mapping problem)

FFmpeg trac at avcodec.org
Thu Jul 31 13:46:22 CEST 2014


#3819: ffmpeg entries to extracts an addiional unwanted track from a blu-ray
(stream mapping problem)
-------------------------------------+-------------------------------------
             Reporter:  Selur        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  mkv          |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Selur):

 > As said, I don't think this is correct (and you should definitely not
 rely on it), I also believe the actual behaviour is documented.

 It is:
 {{{
 By default, ffmpeg includes only one stream of each type (video, audio,
 subtitle) present in the input files and adds them to each output file. It
 picks the "best" of each based upon the following criteria: for video, it
 is the stream with the highest resolution, for audio, it is the stream
 with the most channels, for subtitles, it is the first subtitle stream. In
 the case where several streams of the same type rate equally, the stream
 with the lowest index is chosen.

 You can disable some of those defaults by using the -vn/-an/-sn options.
 For full manual control, use the -map option, which disables the defaults
 just described.
 }}}
 source: https://www.ffmpeg.org/ffmpeg-all.html#Stream-selection

 Problem is for some reason ffmpeg seems to think that:
 a. mkv doesn't support pgs subtitles(since it tries to convert them to
 ass/ssa)
 {{{
 Stream #0:8 -> #0:2 (hdmv_pgs_subtitle (pgssub) -> ssa (native))
 }}}
 from the calls above.
 b. mkv doesn't support dts (DTS-HD HRA) audio (since it tries to convert
 to vorbis)
 {{{
 ffmpeg -y -threads 8 -analyzeduration 1000M -probesize 1000M -playlist 20
 -i bluray:"H:\bd_probs\PIRANHA" -sn -vcodec copy
 "H:\Temp\test_videoOnly_00_25_53_3810_04.mkv"

 ffmpeg version git-2014-07-30-ff9a154 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jul 30 2014 13:45:30 with gcc 4.9.1 (Rev1, Built by MSYS2
 project)
   configuration: --arch=x86_64 --disable-debug --disable-shared --disable-
 doc --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-
 avfilter --enable-bzlib --enable-zlib --enable-librtmp --enable-gnutls
 --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-
 libbluray --enable-libcaca --enable-libopenjpeg --enable-fontconfig
 --enable-libfreetype --enable-libass --enable-libgsm --enable-libmodplug
 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-libvo-amrwbenc --enable-libschroedinger --enable-libsoxr
 --enable-libtwolame --enable-libutvideo --enable-libspeex --enable-
 libtheora --enable-libvorbis --enable-libvo-aacenc --enable-openal
 --enable-libopus --enable-libvidstab --enable-libvpx --enable-libwavpack
 --enable-libxavs --enable-libx264 --enable-libx265 --enable-libxvid
 --enable-libzvbi
   libavutil      52. 93.100 / 52. 93.100
   libavcodec     55. 71.100 / 55. 71.100
   libavformat    55. 50.100 / 55. 50.100
   libavdevice    55. 13.102 / 55. 13.102
   libavfilter     4. 11.102 /  4. 11.102
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 Failed to open H:\bd_probs\PIRANHA\BDMV\PLAYLIST\linux, audio nicht
 auslesbar, bricht immer ab
 Failed to open H:\bd_probs\PIRANHA\BDMV\PLAYLIST\linux, audio nicht
 auslesbBACKUP/ar, bricht immer ab
 [bluray @ 00000000003cdb00] 14 usable playlists:
 Input #0, mpegts, from 'bluray:H:\bd_probs\PIRANHA':
   Duration: 00:02:07.13, start: 600.000000, bitrate: 17503 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448),
 yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr,
 90k tbn, 47.95 tbc
     Stream #0:1[0x1100]: Audio: dts (DTS-HD HRA) ([133][0][0][0] /
 0x0085), 48000 Hz, 5.1(side), fltp, 1536 kb/s
 Output #0, matroska, to 'H:\Temp\test_videoOnly_00_25_53_3810_04.mkv':
   Metadata:
     encoder         : Lavf55.50.100
     Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR
 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 90k tbc
     Stream #0:1: Audio: vorbis (libvorbis) (oV[0][0] / 0x566F), 48000 Hz,
 5.1(side), fltp
     Metadata:
       encoder         : Lavc55.71.100 libvorbis
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (dts (dca) -> vorbis (libvorbis))
 Press [q] to stop, [?] for help
 frame=  226 fps=0.0 q=-1.0 size=   14256kB time=00:00:09.34
 bitrate=12499.5kbits/s
 frame=  432 fps=431 q=-1.0 size=   27192kB time=00:00:17.93
 bitrate=12420.3kbits/s
 frame=  643 fps=428 q=-1.0 size=   37370kB time=00:00:26.73
 bitrate=11450.7kbits/s
 frame=  855 fps=427 q=-1.0 size=   45781kB time=00:00:35.57
 bitrate=10541.2kbits/s
 frame=  915 fps=422 q=-1.0 Lsize=   48440kB time=00:00:38.08
 bitrate=10420.6kbits/s

 video:47420kB audio:988kB subtitle:0kB other streams:0kB global
 headers:7kB muxing overhead: 0.065453%
 Received signal 2: terminating. <- manually aborted
 }}}

 ----

 will check the pgs handling

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3819#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list