-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leading silence (gaps) in audio segments #15
Comments
FFmpeg version 0.6.2 |
Can you post a small sample from the input file you are using? Or does it happen on all files? |
Here's the command I use to process them --
|
Thanks I'll take a look at these |
Hmm. Interestingly enough the m3u8 loop plays fine under mplayer for me, but when I stream it to the iPhone I do get the popping and clicking. |
Weird huh, now try opening the ts files in an editor (eg Audacity) and you'll see the gaps |
Out of interest, does the same problem occur if you retain both channels (-ac 2) when converting to aac ? |
Yep, same problem -ac 1 vs -ac 2. Also tried --
|
My command line is this (ffmpeg 0.8.5.git-751a4e): ffmpeg -i http://stream-tx1.radioparadise.com:9000/rp_192.ogg -f mpegts -acodec libfaac -ab 128000 -| ../m3u8-segmenter/m3u8-segmenter -i - -d 1 -p media -m index.m3u8 -u http://localhost/aac/ -n 60 In addition to the pops and clicks, the program segfaults after starting the 49th file: Abort trap: 6kB time=00:00:48.83 bitrate= 143.4kbits/s I'm looking into the problem, but I'm just a first year :) |
Hi, The gaps might be introduced with the header added to each segment. The following patch fix it: --- m3u8-segmenter.c_ori 2011-11-23 10:39:17.000000000 +0100 +if(0) {
Rgds Alex |
That works! Thanks a bunch! |
Bradskins- we ended up taking your tip and using httpsegmenter instead- thanks- it still seems to include the silence but the pops/clicks were gone. Will check out this patch at some point as we'd prefer no gaps at all (even if u can't hear em) |
After applying the patch I ended up using both :). httpsegmenter is good Regards, -brad On Mon, Nov 28, 2011 at 9:14 PM, s29 <
|
I'm seeing gaps (silence) at the beginning of each audio segment.
Segment 1 = no gap,
Segment 2 = 1s gap,
Segment 3 = 2s gap,
Segment 4 = 3s gap,
... and so on.
This causes gaps/pops/clicks in playback.
Both mediastreamsegmenter and mediafilesegmenter are all fine (no gaps) on same source file (libfaac mpegts via ffmpeg).
All tests are using same default segment duration 10s.
The text was updated successfully, but these errors were encountered: