[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
David Johnson wrote: > On Thursday 24 May 2007 10:54, Simon Robert wrote: > >> Hi >> I have been asked to record the archers and round our way the only means >> of good reception is via satellite. Recording is not a problem, I have a >> card and feed into my pc and can record using kaffine. >> >> Now I need to turn the result *.mpg/TS file into a mp3 or wav or ogg or >> whatever. I have found a neat script that will convert mpg to avi with >> an mp3 soundtrack. >> >> > > You could use GStreamer, with the following command: > > gst-launch filesrc location=yoursourcefile.mpeg ! > ffdemux_mpegts ! 'audio/mpeg' ! filesink location=yourdestfile.mp2 > > That simply extracts the audio from the transport stream, without converting > the format at all. The resulting file is MPEG2 audio - anything that can play > MP3 should be able to play it. If you want to convert it to MP3 or OGG > (perhaps if file size is an issue) let me know and I'll give you a revised > command. > > GStreamer packages should be available for your distro (in Debian you > want 'gstreamer0.10-tools' and 'gstreamer0.10-ffmpeg'). Depending on your > distro the gst-launch command may have a version number postfix, e.g. > gst-launch-0.10. > > If you can't make it work put the files somewhere I can get them and I'll do > it for you. GStreamer can be a bit of a pain and older versions can have > serious bugs that prevent things from working as they should. > > Regards, > David. > > this works very well. Thanks a lot for it. Simon -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html