Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] AW: Re: tosvcd - SVCD conform 44kHz sound possible?



Ok, thanks i'll give it a try. (tomorrow)

-----Ursprüngliche Nachricht-----
Von: vdr-bounce@linuxtv.org [mailto:vdr-bounce@linuxtv.org] Im Auftrag
von Jürgen Hahn
Gesendet: Donnerstag, 22. August 2002 23:15
An: vdr@linuxtv.org
Betreff: [vdr] Re: tosvcd - SVCD conform 44kHz soudn possible?

Hi,

> Hit there, is ist possible to adjust the sound-output of tosvcd to
44.1
> kHz?
> To be within the svcd specs?
> Didn't find anything in the description..

You have to patch "tosvcd.c" for this... something like this:


1399a1406,1419
 >       //  Resample audio to 44100 Hz
 >       //---------------------------------------------------
 >       char resample[512];
 >       sprintf (resample, "cat 00*vdr | mplayer -benchmark 
-hardframedrop -vo null -ao pcm - ; cat audiodump.wav | sox -c 2 -s -r 
48000 -w -t raw - -r 44100 -t wav - | toolame -e -p 1 -b 128 - 
%s_44100.mpa", oName);
 >       if (system (resample))
 >       {
 >             if (log)
 >             {
 >                     fprintf(log, "resample audio failed: <%s>\n", 
resample);
 >             }
 >             return -1;
 >       }
 >
 >       //---------------------------------------------------
1404c1424
<       sprintf(mplex, "mplex -v0 -f%d -o %s-%%d.mpg %s.mpa %s.mpv",
---
 >       sprintf(mplex, "mplex -v0 -f%d -o %s-%%d.mpg %s_44100.mpa
%s.mpv",
1419a1440,1445
 >
 >           sprintf(mplex, "%s_44100.mpa", oName);
 >             remove(mplex);
 >
 >           sprintf(mplex, "audiodump.wav");
 >             remove(mplex);









Home | Main Index | Thread Index