Bugs item #3476945, was opened at 2012-01-21 00:53
Message generated for change (Comment added) made by uklauer
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3476945&group_id=10706

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: henry (wqbbs911)
Assigned to: Nobody/Anonymous (nobody)
Summary: Incorrect duration after use soX

Initial Comment:
compile sox with ffmpeg support successful:
#sox
...
AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb au avi avr cdda cdr cvs 
cvsd cvu dat dvms f32 f4 f64 f8 ffmpeg fssd gsm gsrt hcom htk ima ircam la lpc 
lpc10 lu m4a m4b maud mp2 mp3 mp4 mpg nist ogg prc raw s1 s16 s2 s24 s3 s32 s4 
s8 sb sf sl smp snd sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub 
ul uw vms voc vorbis vox wav wavpcm wmv wve xa
PLAYLIST FORMATS: m3u pls

the test file H1.aac info are:
#ffmpeg -i H1.aac
Input #0, aac, from 'H1.aac':
  Duration: 00:01:56.55, bitrate: 377 kb/s
  Stream #0.0: Audio: aac, 48000 Hz, 7.1(wide), s16, 377 kb/s

but after use sox to convert it into 2channels , the duration is 8 mins.
#sox -t ffmpeg H1.aac -c 2 -r 2k HH.aac
#sox HH.wav -n stat
Samples read:          42336000
Length (seconds):    480.000000
Scaled by:         2147483647.0

Also get same result in ffmpeg:
#ffmpeg -i HH.wav
Input #0, wav, from 'HH.wav':
  Duration: 00:08:00.00, bitrate: 1411 kb/s
  Stream #0.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s


AUDIO DEVICE DRIVERS: oss ossdsp

----------------------------------------------------------------------

>Comment By: Ulrich Klauer (uklauer)
Date: 2013-02-17 07:12

Message:
The ffmpeg format handler has been deprecated and will be removed in the
next release.

It is recommended to either use ffmpeg/avconv directly for conversions, or
to pipe the output into SoX like this:
ffmpeg -i input -f sox - | sox -p output effects

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3476945&group_id=10706

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

Reply via email to