IPB

Welcome Guest ( Log In | Register )

Dumped opus streams have incorrect "Durations"., [TOS #6: moved from Scientific Discussion]
bat_guano
post Jan 24 2013, 23:19
Post #1





Group: Members
Posts: 19
Joined: 7-January 13
Member No.: 105656



Hi
I've tried dumping some opus streams to file, but the results are strange. ohmy.gif
Dumped files have incorrect "Durations".
This makes confusion when the files are played with VLC or SMPlayer etc.

What causes opus streams to create files with incorrect "Durations"?
And how can I fix it?

For example, a 30 second sample:-
CODE
timeout 30 ffmpeg -y -i http://radioserver1.delfa.net/64.opus -c copy SmoothJazz1.opus


MediaInfo shows incorrect Duration 4mn 17s.

QUOTE
General
Complete name : SmoothJazz1.opus
Format : OGG
File size : 258 KiB
Duration : 4mn 17s
Overall bit rate : 8 227 bps
Writing application : Lavf54.61.102

Audio
ID : 36710742 (0x2302956)
Format : Opus
Duration : 4mn 17s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Writing library : Lavf54.61.102



Similar results using MPlayer

CODE
rm -f fifo && mkfifo fifo; \
timeout 30 \
mplayer -nocache -noconsolecontrols -dumpstream -dumpfile fifo \
"http://radioserver1.delfa.net/64.opus" -demuxer lavf \
& ffmpeg -y -i fifo -c copy SmoothJazz2.opus \
&& rm -f fifo


MediaInfo shows incorrect Duration 2mn 18s.

QUOTE
General
Complete name : SmoothJazz2.opus
Format : OGG
File size : 254 KiB
Duration : 2mn 18s
Overall bit rate : 15.0 Kbps
Writing application : Lavf54.61.102

Audio
ID : 2098600889 (0x7D161BB9)
Format : Opus
Duration : 2mn 18s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Writing library : Lavf54.61.102


This post has been edited by bat_guano: Jan 24 2013, 23:32
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 1st October 2014 - 00:30