nginx-audio-track-for-hls-module | Nginx module that generates audio track | Video Utils library
kandi X-RAY | nginx-audio-track-for-hls-module Summary
kandi X-RAY | nginx-audio-track-for-hls-module Summary
Nginx Audio Track for HTTP Live Streaming.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nginx-audio-track-for-hls-module
nginx-audio-track-for-hls-module Key Features
nginx-audio-track-for-hls-module Examples and Code Snippets
Community Discussions
Trending Discussions on nginx-audio-track-for-hls-module
QUESTION
I have a hls live stream where i can go back 30 minutes (timeshift):
I want to save a part of the 30 minutes window as mp4 file locally.
I parsed the playlist, downloaded the single ts and aac segments and have put them together (concatinate). The result is always asynchronous.
There is a timestamp in the ts segments but not in the aac segments. The timestamps of the aac segment are probably in a private id3 tag, but i don't know how i can read them.
Here is a good analysis: https://github.com/flavioribeiro/nginx-audio-track-for-hls-module/issues/22
Does anyone have an idea how i can read that timestamp (OS: Linux)?
...ANSWER
Answered 2018-Nov-30 at 17:20# get audio start from aac segment
# dump private id3 Tag
HEXDUMP=`exiftool -Private -b file.aac | od -t x8 --endian=big --address-radix=n | xargs echo -n`
# convert to decimal
DECIMAL=$((0x$HEXDUMP))
# it is an MPEG-2 Timestamp in 1/90000 Seconds, get it in seconds
AUDIOSTART=`expr $DECIMAL / 90000`
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nginx-audio-track-for-hls-module
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page