Discussion:
[FFmpeg-user] DTS-HD copy same with or without dca_core
sean darcy
2018-12-04 22:24:26 UTC
Permalink
I get the same output if I run command line with or without -bsf:a dca_core:

ffmpeg -i /opt/2T1/video/plex/Movies/Shows/WSS-Dance_t02.mkv -map v -map
0:1 -bsf:a dca_core -c:a copy -c:v libx265 -crf 26 -preset slower -dn
-sn -nostdin /opt/2T1/video/plex/Movies/Shows/wss-dance-265.mp4

Output stream without:
Stream #0:1(eng): Audio: dts (DTS-HD MA) (mp4a / 0x6134706D), 48000 Hz,
7.1, s32p (24 bit) (default)

With:
Stream #0:1(eng): Audio: dts (DTS-HD MA) (mp4a / 0x6134706D), 48000 Hz,
7.1, s32p (24 bit) (default)

Full output (mostly):
WITHOUT:
ffmpeg -i /opt/2T1/video/plex/Movies/Shows/WSS-Dance_t02.mkv -map v -map
0:1 -c:a copy -c:v libx265 -crf 25 -preset slower -dn -sn -nostdin
/opt/2T1/video/plex/Movies/Shows/wss-dance-265.mp4
ffmpeg version git-snapshot-20181112-RPMFusion Copyright (c) 2000-2018
the FFmpeg developers
built with gcc 8 (GCC)
configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
--libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
--optflags='-O2 -ffast-math -march=native -ftree-vectorize
-fomit-frame-pointer -pipe -fPIC' --enable-bzlib --disable-crystalhd
--enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls
--enable-ladspa --enable-libass --enable-libbluray --enable-libcdio
--enable-libdav1d --enable-libfdk-aac --enable-nonfree
--enable-indev=jack --enable-libfreetype --enable-libfribidi
--enable-libgsm --enable-libmp3lame --enable-openal --enable-opencl
--disable-libopencv --enable-opengl --enable-libopenjpeg
--enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx
--enable-libwebp --enable-libx264 --enable-libx265 --enable-avfilter
--enable-postproc --enable-pthreads --disable-static --enable-shared
--enable-gpl --enable-version3 --enable-nonfree --disable-debug
--enable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 56. 23.101 / 56. 23.101
libavcodec 58. 39.100 / 58. 39.100
libavformat 58. 22.100 / 58. 22.100
libavdevice 58. 6.100 / 58. 6.100
libavfilter 7. 43.100 / 7. 43.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
.................
Input #0, matroska,webm, from
'/opt/2T1/video/plex/Movies/Shows/WSS-Dance_t02.mkv':
............
Duration: 02:52:55.80, start: 0.000000, bitrate: 30083 kb/s
Chapter #0:0: start 0.000000, end 380.380000
Metadata:
title : Chapter 01
Chapter #0:1: start 380.380000, end 616.657708
Metadata:
title : Chapter 02
Chapter #0:2: start 616.657708, end 2129.127000
..........
Metadata:
title : Chapter 14
Chapter #0:14: start 8216.875333, end 10375.797333
Metadata:
title : Chapter 15
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive),
1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Metadata:
BPS-eng : 23217291
DURATION-eng : 02:52:55.782083333
NUMBER_OF_FRAMES-eng: 248770
NUMBER_OF_BYTES-eng: 30112194854
................
Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s32p (24
bit) (default)
Metadata:
title : Surround 7.1
BPS-eng : 4986717
DURATION-eng : 02:52:55.797333333
NUMBER_OF_FRAMES-eng: 972731
NUMBER_OF_BYTES-eng: 6467645948
.................
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
Stream #0:1 -> #0:1 (copy)
x265 [info]: HEVC encoder version 2.7
...........
x265 [info]: tools: strong-intra-smoothing lslices=4 deblock sao
[mp4 @ 0x158a480] track 1: codec frame size is not set
Output #0, mp4, to '/opt/2T1/video/plex/Movies/Shows/wss-dance-265.mp4':
Metadata:
title : wss
encoder : Lavf58.22.100
Chapter #0:0: start 0.000000, end 380.380000
Metadata:
title : Chapter 01
Chapter #0:1: start 380.380000, end 616.657708
................
Metadata:
title : Chapter 15
Stream #0:0(eng): Video: hevc (libx265) (hev1 / 0x31766568),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 24k tbn, 23.98 tbc
Metadata:
BPS-eng : 23217291
DURATION-eng : 02:52:55.782083333
NUMBER_OF_FRAMES-eng: 248770
NUMBER_OF_BYTES-eng: 30112194854
NUMBER_OF_BYTES-eng: 30112194854
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2018-12-02 21:30:59
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES
NUMBER_OF_BYTES SOURCE_ID
encoder : Lavc58.39.100 libx265
Stream #0:1(eng): Audio: dts (DTS-HD MA) (mp4a / 0x6134706D), 48000
Hz, 7.1, s32p (24 bit) (default)
Metadata:
title : Surround 7.1
BPS-eng : 4986717
DURATION-eng : 02:52:55.797333333
NUMBER_OF_FRAMES-eng: 972731
NUMBER_OF_BYTES-eng: 6467645948
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2018-12-02 21:30:59
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES
NUMBER_OF_BYTES SOURCE_ID


WITH:
ffmpeg -i /opt/2T1/video/plex/Movies/Shows/WSS-Dance_t02.mkv -map v -map
0:1 -bsf:a dca_core -c:a copy -c:v libx265 -crf 26 -preset slower -dn
-sn -nostdin /opt/2T1/video/plex/Movies/Shows/wss-dance-265.mp4
..............
Input #0, matroska,webm, from
'/opt/2T1/video/plex/Movies/Shows/WSS-Dance_t02.mkv':
............
Duration: 02:52:55.80, start: 0.000000, bitrate: 30083 kb/s
Chapter #0:0: start 0.000000, end 380.380000
Metadata:
title : Chapter 01
Chapter #0:1: start 380.380000, end 616.657708
Metadata:
title : Chapter 02
Chapter #0:2: start 616.657708, end 2129.127000
..........
Metadata:
title : Chapter 14
Chapter #0:14: start 8216.875333, end 10375.797333
Metadata:
title : Chapter 15
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive),
1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Metadata:
BPS-eng : 23217291
DURATION-eng : 02:52:55.782083333
NUMBER_OF_FRAMES-eng: 248770
NUMBER_OF_BYTES-eng: 30112194854
................
Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s32p (24
bit) (default)
Metadata:
title : Surround 7.1
BPS-eng : 4986717
DURATION-eng : 02:52:55.797333333
NUMBER_OF_FRAMES-eng: 972731
NUMBER_OF_BYTES-eng: 6467645948
.................
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
Stream #0:1 -> #0:1 (copy)
x265 [info]: HEVC encoder version 2.7
...........
x265 [info]: tools: strong-intra-smoothing lslices=4 deblock sao
[mp4 @ 0x158a480] track 1: codec frame size is not set
Output #0, mp4, to '/opt/2T1/video/plex/Movies/Shows/wss-dance-265.mp4':
Metadata:
title : wss
encoder : Lavf58.22.100
Chapter #0:0: start 0.000000, end 380.380000
Metadata:
title : Chapter 01
Chapter #0:1: start 380.380000, end 616.657708
................
Metadata:
title : Chapter 15
Stream #0:0(eng): Video: hevc (libx265) (hev1 / 0x31766568),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 24k tbn, 23.98 tbc
Metadata:
BPS-eng : 23217291
DURATION-eng : 02:52:55.782083333
NUMBER_OF_FRAMES-eng: 248770
NUMBER_OF_BYTES-eng: 30112194854
NUMBER_OF_BYTES-eng: 30112194854
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2018-12-02 21:30:59
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES
NUMBER_OF_BYTES SOURCE_ID
encoder : Lavc58.39.100 libx265
Stream #0:1(eng): Audio: dts (DTS-HD MA) (mp4a / 0x6134706D), 48000
Hz, 7.1, s32p (24 bit) (default)
Metadata:
title : Surround 7.1
BPS-eng : 4986717
DURATION-eng : 02:52:55.797333333
NUMBER_OF_FRAMES-eng: 972731
NUMBER_OF_BYTES-eng: 6467645948
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2018-12-02 21:30:59
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES
NUMBER_OF_BYTES SOURCE_ID

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-
Carl Eugen Hoyos
2018-12-04 23:11:53 UTC
Permalink
Post by sean darcy
ffmpeg -i /opt/2T1/video/plex/Movies/Shows/WSS-Dance_t02.mkv -map v -map
0:1 -bsf:a dca_core -c:a copy -c:v libx265 -crf 26 -preset slower -dn
-sn -nostdin /opt/2T1/video/plex/Movies/Shows/wss-dance-265.mp4
Please run "ffmpeg -i wss-dance-265.mp4"

And please do not cut FFmpeg's console output when posting here.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject
Moritz Barsnick
2018-12-05 08:33:51 UTC
Permalink
Post by Carl Eugen Hoyos
Post by sean darcy
ffmpeg -i /opt/2T1/video/plex/Movies/Shows/WSS-Dance_t02.mkv -map v -map
0:1 -bsf:a dca_core -c:a copy -c:v libx265 -crf 26 -preset slower -dn
-sn -nostdin /opt/2T1/video/plex/Movies/Shows/wss-dance-265.mp4
Please run "ffmpeg -i wss-dance-265.mp4"
In other words: You (sean) are trusting the info ffmpeg's muxer is
printing when creating the file. The actual output file, if you check
it afterwards, should be DCA Core. (I just tested the bitstream filter,
it seems to work just fine with the first DTS-HD MA 5.1 48 kHz sample
from here: https://thedigitaltheater.com/dts-trailers/)

I assume this is an issue with bitstream filters not modifying stream
property information, and thus the muxer not knowing about the change.
For video bitstreams, there is a thread / patchset on ffmpeg-devel
regarding exactly this:

http://ffmpeg.org/pipermail/ffmpeg-devel/2018-December/236990.html

(And I don't know how to change this in the dca_core bitstream filter,
though it shouldn't be difficult.)

In other words: Don't trust ffmpeg's printout when muxing, instead look
at the resulting file.

Moritz
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsub
sean darcy
2018-12-05 17:10:28 UTC
Permalink
Post by Moritz Barsnick
Post by Carl Eugen Hoyos
Post by sean darcy
ffmpeg -i /opt/2T1/video/plex/Movies/Shows/WSS-Dance_t02.mkv -map v -map
0:1 -bsf:a dca_core -c:a copy -c:v libx265 -crf 26 -preset slower -dn
-sn -nostdin /opt/2T1/video/plex/Movies/Shows/wss-dance-265.mp4
Please run "ffmpeg -i wss-dance-265.mp4"
In other words: You (sean) are trusting the info ffmpeg's muxer is
printing when creating the file. The actual output file, if you check
it afterwards, should be DCA Core. (I just tested the bitstream filter,
it seems to work just fine with the first DTS-HD MA 5.1 48 kHz sample
from here: https://thedigitaltheater.com/dts-trailers/)
I assume this is an issue with bitstream filters not modifying stream
property information, and thus the muxer not knowing about the change.
For video bitstreams, there is a thread / patchset on ffmpeg-devel
http://ffmpeg.org/pipermail/ffmpeg-devel/2018-December/236990.html
(And I don't know how to change this in the dca_core bitstream filter,
though it shouldn't be difficult.)
In other words: Don't trust ffmpeg's printout when muxing, instead look
at the resulting file.
Moritz
Thanks for the heads up.

dca_core did work:

ffmpeg -hide_banner -i wss-dance-265.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'wss-dance-265.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
title : Dance
encoder : Lavf58.22.100
Duration: 02:52:55.80, start: 0.000000, bitrate: 3231 kb/s
Chapter #0:0: start 0.000000, end 380.380000
Metadata:
title : Chapter 01
Chapter #0:1: start 380.380000, end 616.658000
Metadata:
title : Chapter 02
Chapter #0:2: start 616.658000, end 2129.127000
Metadata:
title : Chapter 03
Chapter #0:3: start 2129.127000, end 2336.000000
Metadata:
title : Chapter 04
Chapter #0:4: start 2336.000000, end 2823.362000
Metadata:
title : Chapter 05
Chapter #0:5: start 2823.362000, end 2953.367000
Metadata:
title : Chapter 06
Chapter #0:6: start 2953.367000, end 3537.325000
Metadata:
title : Chapter 07
Chapter #0:7: start 3537.325000, end 3705.744000
Metadata:
title : Chapter 08
Chapter #0:8: start 3705.744000, end 6836.204000
Metadata:
title : Chapter 09
Chapter #0:9: start 6836.204000, end 6956.199000
Metadata:
title : Chapter 10
Chapter #0:10: start 6956.199000, end 7254.998000
Metadata:
title : Chapter 11
Chapter #0:11: start 7254.998000, end 7366.901000
Metadata:
title : Chapter 12
Chapter #0:12: start 7366.901000, end 8037.821000
Metadata:
title : Chapter 13
Chapter #0:13: start 8037.821000, end 8216.875000
Metadata:
title : Chapter 14
Chapter #0:14: start 8216.875000, end 10375.797000
Metadata:
title : Chapter 15
Stream #0:0(eng): Video: hevc (Main) (hev1 / 0x31766568),
yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 1712 kb/s, 23.98
fps, 23.98 tbr, 24k tbn, 23.98 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: dts (DTS) (mp4a / 0x6134706D), 48000 Hz,
5.1(side), fltp, 1536 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #0:2(eng): Data: bin_data (text / 0x74786574)
Metadata:
handler_name : SubtitleHandler
At least one output file must be specified


I looked at the proposed bsf patches on devel. AFAICT, they don't deal
with the audio bsf's.

Also, with "-map v -map 0:1 -dn -sn" why do I get output Stream #0:2 ?

sean

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-use

Loading...