softworkz / hlstestfiles

0 stars 0 forks source link

gtr #1

Open softworkz opened 3 years ago

softworkz commented 3 years ago

image

softworkz commented 3 years ago

rawstream.zip

softworkz commented 3 years ago

image

softworkz commented 3 years ago

image

softworkz commented 3 years ago

ffmpeg.exe -copyts -start_at_zero -f mpeg -c:v:0 mpeg2_cuvid -hwaccel:v:0 cuda -hwaccel_device:v:0 0 -hwaccel_output_format:v:0 cuda -i "U:\TestMedia\Nvidia Glitches\nvidia glitches.mpg" -filter_complex "[0:0]yadif_cuda@f1[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 h264_nvenc -b:v:0 15516917 -g:v:0 90 -maxrate:v:0 15516917 -bufsize:v:0 31033834 -sc_threshold:v:0 0 -keyint_min:v:0 90 -profile:v:0 high -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -filter:a:0 "volume=2" -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "F:\Projects\Softworkz_Emby\Emby.Server.NetCore\programdata\transcoding-temp\D41A50.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "F:\Projects\Softworkz_Emby\Emby.Server.NetCore\programdata\transcoding-temp\D41A50_%d.ts"

softworkz commented 3 years ago

ffmpeg.exe -copyts -start_at_zero -f mpeg -c:v:0 mpeg2video -hwaccel:v:0 cuda -hwaccel_device:v:0 0 -hwaccel_output_format:v:0 cuda -i "U:\TestMedia\Nvidia Glitches\nvidia glitches.mpg" -filter_complex "[0:0]yadif_cuda@f1[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 h264_nvenc -b:v:0 15516917 -g:v:0 90 -maxrate:v:0 15516917 -bufsize:v:0 31033834 -sc_threshold:v:0 0 -keyint_min:v:0 90 -profile:v:0 high -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -filter:a:0 "volume=2" -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "F:\Projects\Softworkz_Emby\Emby.Server.NetCore\programdata\transcoding-temp\D41A50.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 "F:\Projects\Softworkz_Emby\Emby.Server.NetCore\programdata\transcoding-temp\D41A50_%d.ts"

softworkz commented 3 years ago

ffmpeg.exe -copyts -start_at_zero -f mpeg -c:v:0 mpeg2video -hwaccel:v:0 cuda -hwaccel_device:v:0 0 -hwaccel_output_format:v:0 cuda -i "U:\TestMedia\Nvidia Glitches\nvidia glitches.mpg" -filter_complex "[0:0]yadif_cuda@f1[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 h264_nvenc -b:v:0 15516917 -g:v:0 90 -maxrate:v:0 15516917 -bufsize:v:0 31033834 -sc_threshold:v:0 0 -keyint_min:v:0 90 -profile:v:0 high -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -filter:a:0 "volume=2" -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "F:\Projects\Softworkz_Emby\Emby.Server.NetCore\programdata\transcoding-temp\D41A50.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 "F:\Projects\Softworkz_Emby\Emby.Server.NetCore\programdata\transcoding-temp\D41A50_%d.ts"

softworkz commented 3 years ago

image

softworkz commented 3 years ago

image

softworkz commented 3 years ago
        public static RangeLookUpTable<int, string> TableId { get; } = new RangeLookUpTable<int, string>("TableId")
        {
            // MPEG
            { 0x00, "PAT" },
            { 0x01, "CAT" },
            { 0x02, "PMT" },
            { 0x03, "TSDT" },
            { 0x04, "Scene DT" },
            { 0x05, "Object DT" },
            { 0x06, "MetaData" },

            // DVB
            { 0x38, "DSM-CC 0x38" },
            { 0x39, "DSM-CC 0x39" },
            { 0x3A, "DSM-CC MPE" },
            { 0x3B, "DSM-CC UNM" },
            { 0x3C, "DSM-CC DDM" },
            { 0x3D, "DSM-CC SD" },
            { 0x3E, "DSM-CC PD" },
            { 0x3F, "DSM-CC 0x3F" },
            { 0x40, "NIT Actual" },
            { 0x41, "NIT Other" },
            { 0x42, "SDT Actual" },
            { 0x46, "SDT Other" },
            { 0x4A, "BAT" },
            { 0x4B, "UNT (Update Notification)" },
            { 0x4C, "INT (IP/MAC Notification)" },
            { 0x4E, "EIT p/f Actual" },
            { 0x4F, "EIT p/f Other" },
            { 0x50, 0x5F, "EIT schedule Actual" },
            { 0x60, 0x6F, "EIT schedule Other" },
            { 0x70, "TDT" },
            { 0x71, "RST" },
            { 0x72, "ST" },
            { 0x73, "TOT" },
            { 0x74, "AIT" },
            { 0x75, "Container" },
            { 0x76, "Related Content" },
            { 0x77, "Content Identifier" },
            { 0x78, "MPE-FEC" },
            { 0x79, "Resolution Provider Notification" },
            { 0x7A, "MPE-IFEC" },
            { 0x7E, "DIT (Discontinuity Information)" },
            { 0x7F, "SIT (Selection Information)" },
            { 0x80, "ECM (even)" },
            { 0x81, "ECM (odd)" },
            { 0x82, 0x8F, "EMM" },
            { 0xA0, "SCT (Superframe Composition Table, ETSI EN 301 790)" },
            { 0xA1, "FCT (Frame Composition Table, ETSI EN 301 790)" },
            { 0xA2, "TCT (Time-Slot Composition Table, ETSI EN 301 790)" },
            { 0xA3, "SPT (Satellite Position Table, ETSI EN 301 790)" },
            { 0xA4, "CMT (Correction Message Table, ETSI EN 301 790)" },
            { 0xA5, "TBTP (Terminal Burst Time Plan, ETSI EN 301 790)" },
            { 0xA6, "PCR packet payload (ETSI EN 301 790)" },
            { 0xAA, "Transmission Mode Support Table (ETSI EN 301 790)" },
            { 0xB0, "TIM (Terminal Information Message, ETSI EN 301 790)" },
            { 0xB1, "LL_FEC_parity_data_table (ETSI EN 301 790)" },

            // ATSC
            { 0xC7, "MGT (ATSC)" },
            { 0xC8, "TVCT (ATSC)" },
            { 0xC9, "CVCT (ATSC)" },
            { 0xCA, "RRT (ATSC)" },
            { 0xCB, "EIT (ATSC)" },
            { 0xCC, "ETT (ATSC)" },
            { 0xCD, "STT (ATSC)" },
            { 0xD3, "DCCT (ATSC)" },
            { 0xD4, "DCCSCT (ATSC)" },
            { 0xFC, "SCTE 35 Splice Information" },
            { 0xFF, "Forbidden TID 0xFF" },
}
softworkz commented 3 years ago
    public static class PidType
    {
// MPEG
        /// <summary>PID for Program Association Table PAT.</summary>
        public const ushort PatPid = 0x0;

        /// <summary>Last reserved PID for MPEG.</summary>
        public const ushort MpegLastPid = 0xF;

// DVB
        /// <summary>PID for Network Information Table.</summary>
        public const ushort NitPid = 0x10;

        /// <summary>Last reserved PID for DVB.</summary>
        public const ushort DvbLastPid = 0x1F;

// ATSC
        /// <summary>First reserved PID for ATSC.</summary>
        public const ushort AtscFirstPid = 0x1FF0;

        /// <summary>Last reserved PID for ATSC.</summary>
        public const ushort AtscLastPid = 0x1FFE;
    }