#1398(undetermined:new): remuxed DTS audio won't play on hardware devices
#1398: remuxed DTS audio won't play on hardware devices -------------------------------------+------------------------------------- Reporter: patters | Type: defect Status: new | Priority: normal Component: | Version: undetermined | unspecified Keywords: DTS audio | Blocked By: remux | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Hi, Firstly thanks for FFmpeg, it's an incredible tool. My interest in it comes from using the DLNA server Serviio which uses FFmpeg for its transcoding and remuxing. Many renderer devices don't support Matroska files but the streams they contain are often supported, so it's common to remux to mpeg-ts. I maintain the Serviio device profile for Sony Bluray and Network Media Players: http://forum.serviio.org/viewtopic.php?f=11&t=2004 I would like to report an issue with DTS audio streams that are remuxed into mpeg-ts by FFmpeg. The resulting files fail to play on many consumer electronics products which do officially support DTS, in my case Sony Bluray players, though I can see from the Serviio forum that it's also an issue for people who use AV receivers to decode the DTS stream. The files that FFmpeg produces play with silent audio on the affected devices, but they do play ok in VLC and Media Player Classic Home Cinema. I have observed this problem now for quite some time (maybe 18 months or so). I have reproduced this using the latest win32 build I could find from Zeranoe - ffmpeg-20120601-git-8a0efa9-win32-static.7z The remux command line that Serviio would issue is as follows: {{{ffmpeg -i "/volume1/public/video/Movies/The.Good.The.Bad.And.The.Ugly.EXTENDED.1966.BluRay.720p.DTS.x264-FSiHD.mkv" -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /volume1/@tmp/Serviio/transcoding- temp-1086-10-ORIGINAL.stf}}} The problem is not limited to my choice of example clip - I have found it to be consistent with all MKV files containing DTS audio. By contrast, the closed source utility [[http://www.videohelp.com/tools/tsMuxeR|tsMmuxeR]] is able to remux the same test clip in a way that plays perfectly on all systems I have tested. I shall attach 10MB clips of the original file, the FFmpeg non-working remux, and the TSmuxer working remux so that they may be analysed and compared. Hopefully this could lead to a fix, as it doesn't seem that this issue has been reported. Thanks, Patters -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices -------------------------------------+------------------------------------- Reporter: patters | Owner: Type: defect | Status: new Priority: normal | Component: Version: unspecified | undetermined Keywords: DTS audio | Resolution: remux | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by patters): I made my example files 10MB as per the guidelines here http://ffmpeg.org/bugreports.html They can't be attached via the bug tracker as they're too big, so I have uploaded them to upload.ffmpeg.org/incoming. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:1> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices -------------------------------------+------------------------------------- Reporter: patters | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: DTS mpegts | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: DTS audio remux => DTS mpegts * version: unspecified => git-master Comment: Complete, uncut console output missing. Do I understand correctly that the problem is only reproducible with hardware receivers, not with software? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:2> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices -------------------------------------+------------------------------------- Reporter: patters | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: DTS mpegts | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by patters): Yes, it does seem to be hardware only. [http://forum.serviio.org/viewtopic.php?f=7&t=2091 Sony PS3], [http://forum.serviio.org/viewtopic.php?f=5&t=5277&p=38052#p38052 Sony Bluray/Network Media Player], plus I believe it was reported on some receivers (can't find links to that on the forum at the moment). Here is the console output of the original test file: {{{ffmpeg version 0.9-Serviio, Copyright (c) 2000-2011 the FFmpeg developers built on Dec 19 2011 01:36:11 with gcc 4.2.3 configuration: --arch=arm --enable-armv5te --prefix=/opt --extra- cflags=-I/opt/include --extra-ldflags=-L/tmp/lib --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --extra-version=Serviio libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 42. 0 / 53. 42. 0 libavformat 53. 24. 0 / 53. 24. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 53. 0 / 2. 53. 0 libswscale 2. 1. 0 / 2. 1. 0 [matroska,webm @ 0xf49ab0] 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 st:3 removing common factor 1000000 from timebase st:4 removing common factor 1000000 from timebase st:5 removing common factor 1000000 from timebase st:6 removing common factor 1000000 from timebase st:7 removing common factor 1000000 from timebase st:8 removing common factor 1000000 from timebase st:9 removing common factor 1000000 from timebase st:10 removing common factor 1000000 from timebase st:11 removing common factor 1000000 from timebase st:12 removing common factor 1000000 from timebase st:13 removing common factor 1000000 from timebase st:14 removing common factor 1000000 from timebase st:15 removing common factor 1000000 from timebase st:16 removing common factor 1000000 from timebase [h264 @ 0xf4cba0] err{or,}_recognition separate: 1; 1 [h264 @ 0xf4cba0] err{or,}_recognition combined: 1; 65537 [dca @ 0xf4d1c0] err{or,}_recognition separate: 1; 1 [dca @ 0xf4d1c0] err{or,}_recognition combined: 1; 65537 [dca @ 0xf4d1c0] Unsupported bit depth: 0 [h264 @ 0xf4cba0] no picture [dca @ 0xf4d1c0] Stream with high frequencies VQ coding [h264 @ 0xf4cba0] no picture [matroska,webm @ 0xf49ab0] All info found rfps: 23.750000 0.018391 rfps: 23.750000 0.015154 rfps: 23.833333 0.011121 rfps: 23.916667 0.007023 rfps: 24.000000 0.006098 rfps: 24.083333 0.008346 rfps: 24.166667 0.013766 rfps: 24.166667 0.015674 rfps: 47.750000 0.015738 rfps: 47.833333 0.009183 rfps: 47.916667 0.005801 rfps: 48.000000 0.005591 rfps: 48.083333 0.008554 rfps: 48.166667 0.014690 rfps: 23.976024 0.006039 Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 48.00 (48/1) Input #0, matroska,webm, from '/volume1/public/video/Movies/The.Good.The.Bad.And.The.Ugly.EXTENDED.1966.BluRay.720p.DTS.x264-FSiHD.mkv': Duration: 02:58:41.68, start: 0.000000, bitrate: 6343 kb/s Chapter #0.0: start 0.000000, end 177.386000 Metadata: title : 00:00:00.000 Chapter #0.1: start 177.386000, end 362.195000 Metadata: title : 00:02:57.386 Chapter #0.2: start 362.195000, end 905.905000 Metadata: title : 00:06:02.195 Chapter #0.3: start 905.905000, end 1048.214000 Metadata: title : 00:15:05.905 Chapter #0.4: start 1048.214000, end 1318.359000 Metadata: title : 00:17:28.214 Chapter #0.5: start 1318.359000, end 1479.353000 Metadata: title : 00:21:58.359 Chapter #0.6: start 1479.353000, end 1669.710000 Metadata: title : 00:24:39.353 Chapter #0.7: start 1669.710000, end 1784.783000 Metadata: title : 00:27:49.710 Chapter #0.8: start 1784.783000, end 1927.759000 Metadata: title : 00:29:44.783 Chapter #0.9: start 1927.759000, end 2299.923000 Metadata: title : 00:32:07.759 Chapter #0.10: start 2299.923000, end 2496.452000 Metadata: title : 00:38:19.923 Chapter #0.11: start 2496.452000, end 2980.186000 Metadata: title : 00:41:36.452 Chapter #0.12: start 2980.186000, end 3237.693000 Metadata: title : 00:49:40.186 Chapter #0.13: start 3237.693000, end 3441.605000 Metadata: title : 00:53:57.693 Chapter #0.14: start 3441.605000, end 3961.207000 Metadata: title : 00:57:21.605 Chapter #0.15: start 3961.207000, end 4416.412000 Metadata: title : 01:06:01.207 Chapter #0.16: start 4416.412000, end 4954.741000 Metadata: title : 01:13:36.412 Chapter #0.17: start 4954.741000, end 5363.608000 Metadata: title : 01:22:34.741 Chapter #0.18: start 5363.608000, end 5730.141000 Metadata: title : 01:29:23.608 Chapter #0.19: start 5730.141000, end 5904.482000 Metadata: title : 01:35:30.141 Chapter #0.20: start 5904.482000, end 6423.500000 Metadata: title : 01:38:24.482 Chapter #0.21: start 6423.500000, end 6796.540000 Metadata: title : 01:47:03.500 Chapter #0.22: start 6796.540000, end 7018.303000 Metadata: title : 01:53:16.540 Chapter #0.23: start 7018.303000, end 7562.555000 Metadata: title : 01:56:58.303 Chapter #0.24: start 7562.555000, end 7856.265000 Metadata: title : 02:06:02.555 Chapter #0.25: start 7856.265000, end 8258.041000 Metadata: title : 02:10:56.265 Chapter #0.26: start 8258.041000, end 8632.582000 Metadata: title : 02:17:38.041 Chapter #0.27: start 8632.582000, end 9170.912000 Metadata: title : 02:23:52.582 Chapter #0.28: start 9170.912000, end 9568.392000 Metadata: title : 02:32:50.912 Chapter #0.29: start 9568.392000, end 9795.536000 Metadata: title : 02:39:28.392 Chapter #0.30: start 9795.536000, end 10136.960000 Metadata: title : 02:43:15.536 Chapter #0.31: start 10136.960000, end 10721.687000 Metadata: title : 02:48:56.960 Stream #0:0(eng), 41, 1/1000: Video: h264 (High), yuv420p, 1280x544, 104271/5000000, SAR 1:1 DAR 40:17, 23.98 fps, 48 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng), 160, 1/1000: Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (default) Stream #0:2(eng), 0, 1/1000: Subtitle: text (default) Stream #0:3(dut), 0, 1/1000: Subtitle: text Stream #0:4(fre), 0, 1/1000: Subtitle: text Stream #0:5(dan), 0, 1/1000: Subtitle: text Stream #0:6(fin), 0, 1/1000: Subtitle: text Stream #0:7(nor), 0, 1/1000: Subtitle: text Stream #0:8(swe), 0, 1/1000: Subtitle: text Stream #0:9(por), 0, 1/1000: Subtitle: text Stream #0:10(slo), 0, 1/1000: Subtitle: text Stream #0:11(tur), 0, 1/1000: Subtitle: text Stream #0:12(kro), 0, 1/1000: Subtitle: text Stream #0:13(cze), 0, 1/1000: Subtitle: text Stream #0:14(est), 0, 1/1000: Subtitle: text Stream #0:15(hun), 0, 1/1000: Subtitle: text Stream #0:16(pol), 0, 1/1000: Subtitle: text At least one output file must be specified }}} ---- Here is the console output for the non-working FFmpeg remux output file: {{{ffmpeg version 0.9-Serviio, Copyright (c) 2000-2011 the FFmpeg developers built on Dec 19 2011 01:36:11 with gcc 4.2.3 configuration: --arch=arm --enable-armv5te --prefix=/opt --extra- cflags=-I/opt/include --extra-ldflags=-L/tmp/lib --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --extra-version=Serviio libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 42. 0 / 53. 42. 0 libavformat 53. 24. 0 / 53. 24. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 53. 0 / 2. 53. 0 libswscale 2. 1. 0 / 2. 1. 0 [mpegts @ 0xf49ab0] Format mpegts probed with size=2048 and score=100 [mpegts @ 0xf49ab0] stream=0 stream_type=1b pid=100 prog_reg_desc= [mpegts @ 0xf49ab0] stream=1 stream_type=6 pid=101 prog_reg_desc= [h264 @ 0xf4d890] err{or,}_recognition separate: 1; 1 [h264 @ 0xf4d890] err{or,}_recognition combined: 1; 65537 [h264 @ 0xf4d890] no picture Last message repeated 1 times [mpegts @ 0xf49ab0] probing stream 1 pp:2500 [mpegts @ 0xf49ab0] Probe with size=2012, packets=1 detected mp3 with score=1 [mpegts @ 0xf49ab0] probing stream 1 pp:2499 [mpegts @ 0xf49ab0] Probe with size=4024, packets=2 detected mp3 with score=1 [mpegts @ 0xf49ab0] probing stream 1 pp:2498 [mpegts @ 0xf49ab0] Probe with size=6036, packets=3 detected mp3 with score=1 [mpegts @ 0xf49ab0] probing stream 1 pp:2497 [mpegts @ 0xf49ab0] probing stream 1 pp:2496 [mpegts @ 0xf49ab0] Probe with size=10060, packets=5 detected dts with score=51 [mpegts @ 0xf49ab0] probed stream 1 [dca @ 0xf4e0d0] err{or,}_recognition separate: 1; 1 [dca @ 0xf4e0d0] err{or,}_recognition combined: 1; 65537 [dca @ 0xf4e0d0] Unsupported bit depth: 0 [dca @ 0xf4e0d0] Stream with high frequencies VQ coding [mpegts @ 0xf49ab0] max_analyze_duration 5000000 reached at 5002667 rfps: 23.916667 0.007536 Last message repeated 1 times rfps: 24.000000 0.001263 Last message repeated 1 times rfps: 47.916667 0.002860 rfps: 48.000000 0.005052 Last message repeated 1 times rfps: 23.976024 0.000047 Last message repeated 1 times [mpegts @ 0xf49ab0] PES packet size mismatch Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001) Input #0, mpegts, from '/volume1/public/video/Trailers and samples/ticket1398-ffmpeg-remux-broken.m2ts': Duration: 00:00:17.72, start: 1.400000, bitrate: 4621 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100], 122, 1/90000: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x544, 104271/5000000, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x101](eng), 471, 1/90000: Audio: dts (DTS) ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), s16, 1536 kb/s At least one output file must be specified }}} ---- Here is the console output for the tsMuxeR working remux output file: {{{ffmpeg version 0.9-Serviio, Copyright (c) 2000-2011 the FFmpeg developers built on Dec 19 2011 01:36:11 with gcc 4.2.3 configuration: --arch=arm --enable-armv5te --prefix=/opt --extra- cflags=-I/opt/include --extra-ldflags=-L/tmp/lib --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --extra-version=Serviio libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 42. 0 / 53. 42. 0 libavformat 53. 24. 0 / 53. 24. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 53. 0 / 2. 53. 0 libswscale 2. 1. 0 / 2. 1. 0 [mpegts @ 0xf49ab0] Format mpegts probed with size=2048 and score=100 [mpegts @ 0xf49ab0] stream=0 stream_type=1b pid=1011 prog_reg_desc=HDMV [mpegts @ 0xf49ab0] stream=1 stream_type=82 pid=1100 prog_reg_desc=HDMV [h264 @ 0xf4d6c0] err{or,}_recognition separate: 1; 1 [h264 @ 0xf4d6c0] err{or,}_recognition combined: 1; 65537 [dca @ 0xf4df70] err{or,}_recognition separate: 1; 1 [dca @ 0xf4df70] err{or,}_recognition combined: 1; 65537 [dca @ 0xf4df70] Unsupported bit depth: 0 [h264 @ 0xf4d6c0] no picture [dca @ 0xf4df70] Stream with high frequencies VQ coding [h264 @ 0xf4d6c0] no picture [mpegts @ 0xf49ab0] max_analyze_duration 5000000 reached at 5002667 rfps: 23.916667 0.007466 Last message repeated 1 times rfps: 24.000000 0.001218 rfps: 24.000000 0.008439 rfps: 47.916667 0.002653 Last message repeated 1 times rfps: 48.000000 0.004871 rfps: 48.000000 0.011118 rfps: 23.976024 0.000000 Last message repeated 1 times [mpegts @ 0xf49ab0] PES packet size mismatch Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001) Input #0, mpegts, from '/volume1/public/video/Trailers and samples/ticket1398-tsmuxer-remux-working.m2ts': Duration: 00:00:18.18, start: 599.958300, bitrate: 4504 kb/s Program 1 Stream #0:0[0x1011](eng), 122, 1/90000: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x544, 104271/5000000, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x1100](eng), 471, 1/90000: Audio: dts (DTS) ([130][0][0][0] / 0x0082), 48000 Hz, 5.1(side), s16, 1536 kb/s At least one output file must be specified }}} -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:3> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices -------------------------------------+------------------------------------- Reporter: patters | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: DTS mpegts | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by cehoyos): The only needed output is the one from the command line you posted above. Please test current git head and please explain if and why -async 1 -copyts are necessary (I don't know). -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:4> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices -------------------------------------+------------------------------------- Reporter: patters | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: DTS mpegts | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by patters): Previous comment updated... -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:5> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices -------------------------------------+------------------------------------- Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: Version: git-master | undetermined Keywords: DTS mpegts | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by cehoyos): * status: new => open Comment: Samples uploaded to samples/ffmpeg-bugs/trac/ticket1398. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:6> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: DTS mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Changes (by richardpl): * component: undetermined => avformat -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:7> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: DTS mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by xnejp03): Anyone working on this? It'd be great to have DTS muxing to mpegts. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:8> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Changes (by cehoyos): * keywords: DTS mpegts => dca mpegts Comment: Replying to [comment:8 xnejp03]:
Anyone working on this? It'd be great to have DTS muxing to mpegts.
Do you know what the problem with the current code is? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:9> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by patters): It would appear that there are some small compliance issues with FFmpeg's dca avformat specs. Would it be possible to ask one of the dca contributors analyse individual frames and metadata of those two sample files I uploaded (one compliant from tsMuxeR, the other non-compliant from FFmpeg) to spot what's different about them? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:10> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by patters): I can confirm that the issue persists in FFmpeg 1.1.1 -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:11> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by iuqbgq9h-1@…): I verify this problem on version N-55721-gc443689. When multiplexing an MPEG2-PS format with a DTS audio stream, it sets the stream id for the DTS audio stream to 0x8a. The correct stream id is 0x88. The audio does not play on a hardware player because of this. When I multiplex with a different program that sets the stream id to 0x88, it plays fine on same hardware player. I tried setting the stream id with option '-streamid', but it doesn't change anything (seems it only applies to MPEG2-TS). -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:12> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Changes (by cehoyos): * cc: iuqbgq9h-1@… (added) Comment: Replying to [comment:12 iuqbgq9h-1@…]:
I verify this problem on version N-55721-gc443689. When multiplexing an MPEG2-PS format with a DTS audio stream, it sets the stream id for the DTS audio stream to 0x8a.
This ticket is about transport streams, if you have a problem with muxing DTS audio into program streams, please open a new ticket (and consider testing if attached patch fixes any issue for you). -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:13> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
This ticket is about transport streams, if you have a problem with muxing DTS audio into program streams, please open a new ticket (and consider testing if attached patch fixes any issue for you). I tested the patch - built ffmpeg with it - and it solves the problem. The stream id of 0x8a is the only reason the hardware player wasn't
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by iuqbgq9h-1@…): playing the audio. I tried to find some official reference for the right number but couldn't. Two other multiplexers used for DVD authoring I used set the stream number to 0x88, and I found some forum discussions saying it's 0x88 as well. Do you still want me to open a new ticket about this? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:14> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by cehoyos): @Hendrik: Please consider elaborating how the patch you attached is related to this ticket=-) If the patch fixes an actual issue (albeit completely unrelated to the "DTS" meant here), please either send or commit it. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:15> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by heleppkes): My bad, i shouldn't post patches while being 90% asleep. You are right, its unrelated to this ticket. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:16> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by cehoyos): Replying to [comment:16 heleppkes]:
My bad, i shouldn't post patches while being 90% asleep. You are right, its unrelated to this ticket.
np, but perhaps you can comment on the (also unrelated but less unrelated) patch I just sent to the mailing list? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:17> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
This ticket is about transport streams, if you have a problem with muxing DTS audio into program streams, please open a new ticket (and consider testing if attached patch fixes any issue for you). I tested the patch - built ffmpeg with it - and it solves the problem. The stream id of 0x8a is the only reason the hardware player wasn't
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by cehoyos): Replying to [comment:14 iuqbgq9h-1@…]: playing the audio. Which hardware player did you test? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:18> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by iuqbgq9h-1@…):
Which hardware player did you test? I'ts made by some anonymous Chinese manufacturer that's imported and relabeled by a local retailer :-). Could very well be that other players would handle the stream id 0x8a. The other multiplexers I tried were dvd- lab and mplex from mjpegtools - and they both set a stream id of 0x88.
To the best of my understanding - AC-3 streams are numbered 0x80 - 0x87, and DTS 0x88-0x8f, so 0x8a would be the third DTS stream - and since there are no streams in the data numbered 0x88 or 0x89 - it may screw up some overly restrictive playback hardware. The issue is compounded by the '-streamid' option not doing anything for program streams - so it's not possible to manually override the 0x8a value short of a recompile. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:19> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by cehoyos): Replying to [comment:19 iuqbgq9h-1@…]:
Which hardware player did you test? I'ts made by some anonymous Chinese manufacturer that's imported and relabeled by a local retailer :-).
I'd just like to have a type to put into the commit message. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:20> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#1398: remuxed DTS audio won't play on hardware devices ------------------------------------+------------------------------------ Reporter: patters | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: dca mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by patters): Out of curiosity I made a similar edit to FFmpeg 2.1's libavformat/mpegts.h (changed the DTS stream ID from 0x8a to 0x88). I compiled it and I can report that it did not fix the bug that I originally raised this ticket for. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1398#comment:21> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg