Transcoding MP4/MPEG4/AAC rtsp to MP3/MPEG1 http

*nix specific usage questions
speak2beeb
Blank Cone
Blank Cone
Posts: 12
Joined: 07 May 2008 00:56

Transcoding MP4/MPEG4/AAC rtsp to MP3/MPEG1 http

Postby speak2beeb » 16 Mar 2009 16:01

Hello VLC Gurus!

Ok, so this is what I'm trying to do. I'm trying to transcode an MP4/MPEG4/AAC live rtsp stream to a MP3/MPEG1 live http stream.

I'm already transcoding other streams successfully with the following command:

Code: Select all

vlc "http://URL" :sout='#transcode{acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=shout{mp3=1,protocol=icy},mux=mpeg1,url=source:user@localhost:8000/test.mp3}}' -q --intf dummy
but once I try replacing the URL with an MP4 stream, it doesn't work! Here is one of the streams I've tried to test with: [url]rtsp://sm-xserve.cws.oregonstate.edu/kbvrfmstream.sdp[/url]

Now, if I try playing this URL directly in my local VLC player and open it as an RTSP network stream, it usually works. (I still can't figure out why somtimes it doesn't.)

So can anyone help me and send me in the right direction? I think what I need to do is change some of the options to get it to transcode corectly, but I'm not certain.

VLC Version is 0.8.6 Janus running on Gentoo 1.12.4.

Please help! Thanks.
Last edited by speak2beeb on 16 Mar 2009 16:36, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Transcoding MP4/MPEG4/AAC rtsp to MP3/MPEG1 http

Postby Jean-Baptiste Kempf » 16 Mar 2009 16:25

VLC version?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

speak2beeb
Blank Cone
Blank Cone
Posts: 12
Joined: 07 May 2008 00:56

Re: Transcoding MP4/MPEG4/AAC rtsp to MP3/MPEG1 http

Postby speak2beeb » 16 Mar 2009 16:36

Sorry. VLC Version is 0.8.6 Janus running on Gentoo 1.12.4.

speak2beeb
Blank Cone
Blank Cone
Posts: 12
Joined: 07 May 2008 00:56

Re: Transcoding MP4/MPEG4/AAC rtsp to MP3/MPEG1 http

Postby speak2beeb » 18 Mar 2009 21:57

Can anyone help point me in the right direction? Is the problem I'm having due to an old version of VLC and I need to upgrade?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Transcoding MP4/MPEG4/AAC rtsp to MP3/MPEG1 http

Postby Jean-Baptiste Kempf » 19 Mar 2009 10:27

Messages?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

speak2beeb
Blank Cone
Blank Cone
Posts: 12
Joined: 07 May 2008 00:56

Re: Transcoding MP4/MPEG4/AAC rtsp to MP3/MPEG1 http

Postby speak2beeb » 19 Mar 2009 16:31

I know in the VLC GUI, you click View, Messages to see this. For the Linux CLI, do I execute vlc -vvv [command] ? Is this the same thing?

If that's the case, then my ouput is:

Code: Select all

[00000001] main private debug: checking builtin modules [00000001] main private debug: checking plugin modules [00000001] main private debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat [00000001] main private debug: recursively browsing `modules' [00000001] main private debug: recursively browsing `/usr/lib/vlc' [00000001] main private debug: recursively browsing `plugins' [00000001] main private debug: module bank initialized, found 211 modules [00000001] main private debug: opening config file /root/.vlc/vlcrc [00000001] main private warning: config file /root/.vlc/vlcrc does not exist yet
I get the same warning from an mp3 URL or MP4 URL, so I don't think the warning is the problem. In any case, seems like the -vvv doesn't reveal much.

speak2beeb
Blank Cone
Blank Cone
Posts: 12
Joined: 07 May 2008 00:56

Re: Transcoding MP4/MPEG4/AAC rtsp to MP3/MPEG1 http

Postby speak2beeb » 19 Mar 2009 17:34

So it appears the the previous MP4 URL is no longer in service. I found another sample URL, except this one isn't live audio, however, I still think it will help us with what I want to do.

I tried this in the CLI, but still doesn't work:

Code: Select all

vlc "http://www.ultimatestreamingtraining.com/videos/UltimateStreamingTraining.mp4" :sout='#transcode{acodec=mp3,channels=1}:duplicate{dst=std{access=http,mux=mpeg1,url=source:user@localhost:8000/test.mp3}}' -q --intf dummy
I also tried this a moment ago, and it worked at first just with video, no audio, but now no longer!

Code: Select all

vlc -vvv http://www.ultimatestreamingtraining.com/videos/UltimateStreamingTraining.mp4 --sout '#standard{access=http,mux=ogg,dst=192.168.X.X:9000}' Output: [00000299] mp4 demuxer debug: unrecognized major file specification (mp42). [00000299] mp4 demuxer debug: find 4 tracks [00000299] mp4 demuxer warning: elst box found [00000299] mp4 demuxer debug: - [0] duration=55155ms media time=0ms) rate=1.0 [00000299] mp4 demuxer debug: track[Id 0x1] read 221 chunk [00000299] mp4 demuxer debug: track[Id 0x1] read 1188 samples length:55s [00000284] main input debug: selecting program id=0 [00000299] mp4 demuxer debug: adding track[Id 0x1] audio (enable) language eng [00000299] mp4 demuxer warning: elst box found [00000299] mp4 demuxer debug: - [0] duration=55155ms media time=0ms) rate=1.0 [00000299] mp4 demuxer debug: track[Id 0x2] read 221 chunk [00000299] mp4 demuxer debug: track[Id 0x2] read 1655 samples length:55s [00000299] mp4 demuxer debug: adding track[Id 0x2] video (enable) language eng [00000299] mp4 demuxer debug: ignoring track[Id 0x3] [00000299] mp4 demuxer debug: ignoring track[Id 0x4] [00000299] main demuxer debug: using demux2 module "mp4" [00000299] mp4 demuxer warning: DEMUX_GET_FPS unimplemented !! [00000301] main packetizer debug: looking for packetizer module: 16 candidates [00000301] packetizer_mpeg4audio packetizer debug: running MPEG4 audio packetizer [00000301] packetizer_mpeg4audio packetizer debug: AAC 22050Hz 1024 samples/frame [00000301] main packetizer debug: using packetizer module "packetizer_mpeg4audio" [00000284] main input debug: stream out mode -> no decoder thread [00000321] main packetizer debug: looking for packetizer module: 16 candidates [00000321] packetizer_mpeg4video packetizer debug: opening with vol size: 32 [00000321] main packetizer debug: using packetizer module "packetizer_mpeg4video" [00000284] main input debug: stream out mode -> no decoder thread [00000284] main input debug: starting in sync mode


If you take the URL and put it into VLC Player GUI (mine is for Windows), it works w/ no trouble. So I'm trying to take just the audio portion of this short video and stream it to mp3 in Linux.

-vvv doesn't seem to help and the process doesn't die, it just sits there until I hit CTL+C.

Any ideas? Please help!

speak2beeb
Blank Cone
Blank Cone
Posts: 12
Joined: 07 May 2008 00:56

Re: Transcoding MP4/MPEG4/AAC rtsp to MP3/MPEG1 http

Postby speak2beeb » 14 Apr 2009 18:25

I'm still stuck on this. Can anyone help out? Please?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests