Closed jwittkoski closed 5 years ago
I can't seem to get AC3 working over HDMI.
Previously I was doing this (HDMI + SPDIF), and I get video and AC3 audio:
$ /opt/Hauppauge/bin/hauppauge2 -s E505-00-00AFF854 -i 3 -a 1 -d 2 -o /tmp/test.ts 000:00:00.022632 C [main] hauppauge2.cpp:344 (main) - Initializing [Bus: 6, Port: 4] E505-00-00AFF854 000:00:00.228772 N [main] HauppaugeDev.cpp:501 (Open) - Opening Hauppauge USB device. 000:00:00.236327 N [main] HauppaugeDev.cpp:523 (Open) - FX2 ready after 0 tries. 000:00:03.996212 N [main] HauppaugeDev.cpp:543 (Open) - encDev ready 000:00:03.996255 N [main] HauppaugeDev.cpp:552 (Open) - Using 1080p6050 w/AC3 EDID. 000:00:03.997879 N [main] HauppaugeDev.cpp:575 (Open) - rxDev ready 000:00:04.011538 N [main] HauppaugeDev.cpp:476 (open_file) - Output to '/tmp/test.ts' 000:00:04.011614 N [main] HauppaugeDev.cpp:588 (Open) - Hauppauge USB device ready. 000:00:05.485521 N [main] HauppaugeDev.cpp:129 (set_input_format) - Input width: 1920 height: 1080 interlaced: 0 vFreq: 59.9369 audio SR: 48000 000:00:05.491087 N [main] HauppaugeDev.cpp:153 (set_input_format) - Audio Input set to S/PDIF 000:00:05.491112 N [main] HauppaugeDev.cpp:220 (set_input_format) - Audio codec: AC3 000:00:06.003114 N [main] HauppaugeDev.cpp:460 (init_hdmi) - HDMI video input initialized. ^C000:00:51.526799 C [main] hauppauge2.cpp:456 (main) - Done.
Resulting files show an AC3 stream with 5.1 channels:
Input #0, mpegts, from 'test.ts': Duration: 00:00:37.44, start: 2.962133, bitrate: 8654 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x1100]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
I recompiled with the recent HDMI + AC3 changes, and tried getting the AC3 via HDMI, like this:
$ /opt/Hauppauge/bin/hauppauge2 -s E505-00-00AFF854 -i 3 -a 3 -d 2 -o /tmp/test.ts 000:00:00.022598 C [main] hauppauge2.cpp:344 (main) - Initializing [Bus: 6, Port: 4] E505-00-00AFF854 000:00:00.227819 N [main] HauppaugeDev.cpp:501 (Open) - Opening Hauppauge USB device. 000:00:00.235404 N [main] HauppaugeDev.cpp:523 (Open) - FX2 ready after 0 tries. 000:00:03.994868 N [main] HauppaugeDev.cpp:543 (Open) - encDev ready 000:00:03.994925 N [main] HauppaugeDev.cpp:552 (Open) - Using 1080p6050 w/AC3 EDID. 000:00:03.996542 N [main] HauppaugeDev.cpp:575 (Open) - rxDev ready 000:00:04.007780 N [main] HauppaugeDev.cpp:476 (open_file) - Output to '/tmp/test.ts' 000:00:04.007837 N [main] HauppaugeDev.cpp:588 (Open) - Hauppauge USB device ready. 000:00:05.365975 N [main] HauppaugeDev.cpp:420 (init_hdmi) - Invalid Output Params, retrying. 000:00:05.432272 N [main] HauppaugeDev.cpp:129 (set_input_format) - Input width: 1920 height: 1080 interlaced: 0 vFreq: 59.9369 audio SR: 48000 000:00:05.437821 N [main] HauppaugeDev.cpp:176 (set_input_format) - 'SPDIF' from HDMI via 8416 000:00:05.437843 N [main] HauppaugeDev.cpp:195 (set_input_format) - Audio Input: HDMI 000:00:05.437885 N [main] HauppaugeDev.cpp:220 (set_input_format) - Audio codec: AC3 000:00:05.972960 N [main] HauppaugeDev.cpp:460 (init_hdmi) - HDMI video input initialized. ^C000:00:34.655755 C [main] hauppauge2.cpp:456 (main) - Done.
But there is no audio in the resulting file. There is an ac3 stream, I just can't hear anything. File shows ac3 stream with no channels:
Input #0, mpegts, from 'test.ts': Duration: 00:00:20.12, start: 2.973478, bitrate: 8260 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x1100]: Audio: ac3 ([129][0][0][0] / 0x0081), 0 channels, fltp
Turns out this was a wiring issue in my setup. Closing.
I can't seem to get AC3 working over HDMI.
Previously I was doing this (HDMI + SPDIF), and I get video and AC3 audio:
Resulting files show an AC3 stream with 5.1 channels:
I recompiled with the recent HDMI + AC3 changes, and tried getting the AC3 via HDMI, like this:
But there is no audio in the resulting file. There is an ac3 stream, I just can't hear anything. File shows ac3 stream with no channels: