ср, 17 янв. 2024 г., 03:31 Terje J. Hanssen <[email protected]>:
Den 16.01.2024 21:30, skrev Terje J. Hanssen:
Den 16.01.2024 20:23, skrev Andrew Randrianasulu:
https://trac.ffmpeg.org/ticket/1258
see attached to this ticket modded decoder ...
I wonder if Terje's audio really 4ch? if so,may be we can decode it to 4* wav first, then encode them correctly to bluray lpcm / dvd pcm / ac3 ...
I did leave out some "empty channels" to simplify and clean up the post. Here are the full ffprobe output for the HDV source (mediainfo was complete):
ffprobe -hide_banner hdv07_05.m2t [mpeg2video @ 0x55d58a968340] Invalid frame dimensions 0x0. Last message repeated 7 times [mpegts @ 0x55d58a93e580] Could not find codec parameters for stream 2 (Unknown: none ([160][0][0][0] / 0x00A0)): unknown codec Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [mpegts @ 0x55d58a93e580] Could not find codec parameters for stream 3 (Unknown: none ([161][0][0][0] / 0x00A1)): unknown codec Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mpegts, from 'hdv07_05.m2t': Duration: 00:06:58.27, start: 3276.528000, bitrate: 25626 kb/s Program 100 Stream #0:0[0x810]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Side data: cpb: bitrate max/min/avg: 25000000/0/0 buffer size: 7340032 vbv_delay: N/A Stream #0:1[0x814]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:2[0x815]: Unknown: none ([160][0][0][0] / 0x00A0) Stream #0:3[0x811]: Unknown: none ([161][0][0][0] / 0x00A1) Unsupported codec with id 0 for input stream 2 Unsupported codec with id 0 for input stream 3
I fogot to add that loading the HDV clip in CinGG, there is only two visible streams: #1 (video) and #2 (stereo Audio) (That is, nothing similar to loading .mov file, where there were additional 6 empty audio streams, #3 - #8)
yeah, no support in ffmpeg, no support in libsndfile (I filed feature request) -> no additional channels! you need to compile decoder from source, then use it on ffmpeg-extracted mp2 file so it will generate 4 wav files.