LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2007, 05:12 PM   #1
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
weird audio file length problem


I record audio from the internet that I listen to later. In the past I could use a small script to encode it from wav to mp3 to shrink the file size down so I could save space, the quality was still good.


Normally for the amount of time I recorded the file size is around 300MB and after I encode it usually is around 100MB or so..


The problem is. I used a new stream that I hadn't used before and the file ended up being over 4GB.No idea why its so big. I used the same script, just changed the link. When ever I try to encode it, it only plays the first 3h:22m:53s in the new file, then the file ends. When I listen to the original file(its 7 hours long) it lets me play the entire file. I do NOT want to cut the file apart. I want to save all the recording as is.


Ive tried to encode it using audacity(using both EXPORT TO WAV and EXPORT TO MP3) as well as a script I found online. The script I found online is one that I have used a hundred times and never had a problem with it.


When I play the original file in gxine it says the length is 3:22:53, but it still plays the entire 7 hours of audio. How can I trick the file into thinking it's 7hours long?



script I used to record the stream:

mplayer -playlist mms://path.to.stream -ao pcm:file=/home/myusername/filename`date+%b%d_%H%M%P_%Y`.wav -vc dummy -vo null ;

script is one line.
 
Old 10-15-2007, 07:54 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
Is that with Slack? What file-system do the files reside on, how much
free space is there?


Cheers,
Tink
 
Old 10-15-2007, 10:13 PM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
Yes, its Slackware 2.6.13

FS is ext2

There is 11GB free on that drive.


I do not think its a free space issue. It's an encoding issue of some sort. Even if I move the original file over to a windows PC and play it in Media Player it says that the file is 3:22:53 long but it still plays the entire 7 hours..
 
Old 10-20-2007, 09:28 AM   #4
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
ok looks like I found the problem.


sox filename.wav -e stat
sox: Can't open input file 'filename.wav': File too large


Is there a way around this size limitation? I just want to convert it to mp3 so that the file will be a smaller size.


4.4G 2007-10-14 17:57 filename.wav
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird problem with JuK audio player + KDE 3.4 Chrysalid Linux - Software 1 08-16-2006 06:37 PM
Weird File Problem sashhoney Linux - Software 1 05-26-2005 05:23 PM
weird MPlayer file problem GTBlackwell Linux - Software 1 02-16-2005 11:34 AM
A Really Weird File System Problem atheist Linux - Software 13 07-08-2004 04:36 AM
weird buffer problem with RealPlayer and streaming audio Accordion Linux - Software 0 02-25-2004 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration