dvb-t commandline - force audio only (no video)?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
grozea
Blank Cone
Blank Cone
Posts: 33
Joined: 09 Oct 2008 03:13

dvb-t commandline - force audio only (no video)?

Postby grozea » 21 Jul 2009 00:58

I can play a DVB-T radio channel like this:
C:\Program files\VideoLAN\VLC\vlc.exe dvb-t:// :dvb-frequency=522000000 :dvb-bandwidth=-1 :program=3010

But then it displays a static information video image.

Can I via some added command force VLC to not display any video/image and only play the audio from the DVB-T channel?

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: dvb-t commandline - force audio only (no video)?

Postby thannoy » 21 Jul 2009 10:09

Simple try this :)

Code: Select all

C:\Program files\VideoLAN\VLC\vlc.exe dvb-t:// :dvb-frequency=522000000 :dvb-bandwidth=-1 :program=3010 :no-video

grozea
Blank Cone
Blank Cone
Posts: 33
Joined: 09 Oct 2008 03:13

Re: dvb-t commandline - force audio only (no video)?

Postby grozea » 21 Jul 2009 11:33

Thank you! :-) Simple is best!

grozea
Blank Cone
Blank Cone
Posts: 33
Joined: 09 Oct 2008 03:13

Re: dvb-t commandline - force audio only (no video)?

Postby grozea » 21 Jul 2009 14:14

As a follow up: I now want to record the audio only to a mp3. This outputs a mp3 file but it seems run at 1.5 or 2 times the normal speed. Can you or someone else spot any errors in the command line below?

C:\Program\VideoLAN\VLC\vlc.exe dvb-t:// :dvb-frequency=522000000 :dvb-bandwidth=-1 :program=3010 :sout=#transcode{acodec=mp3,ab=192,channels=2,samplerate=44100}:duplicate{dst=std{access=file,mux=raw,dst="C:\test.mp3"}}

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: dvb-t commandline - force audio only (no video)?

Postby thannoy » 21 Jul 2009 14:23

What happen without samplerate option?

You can try some options listed in Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#transcode like
- aenc=ffmpeg
- audio-sync

grozea
Blank Cone
Blank Cone
Posts: 33
Joined: 09 Oct 2008 03:13

Re: dvb-t commandline - force audio only (no video)?

Postby grozea » 21 Jul 2009 19:44

Thanks, but:

if I add both "aenc=ffmpeg" and "audio-sync=enabled" then the output only plays audio for one second or so and then ends

If I add only "aenc=ffmpeg" then the speed up problem is solved but the audio quality is low and metallic sounding.

I will play around with some more settings and see if I find a solution. Alternatively I'll go back to saving the stream as is and then post-recording convert it to mp3 in VLC.

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: dvb-t commandline - force audio only (no video)?

Postby thannoy » 22 Jul 2009 12:05

If I add only "aenc=ffmpeg" then the speed up problem is solved but the audio quality is low and metallic sounding.
Have you tried this without using samplerate?

grozea
Blank Cone
Blank Cone
Posts: 33
Joined: 09 Oct 2008 03:13

Re: dvb-t commandline - force audio only (no video)?

Postby grozea » 23 Jul 2009 13:25

Yes, that didn't change anything.

I now noticed that I have the same problem when converting post-recording. Strange since that has worked previously. Either something has changed in VLC or some change in the DVB-T channel I am recording is the cause. It might be the latter because I'm recording from a radio station that has a DVB-T channel and that only recently has begun to display a static image during playback.

This is the command I use for post recording conversion:

C:\Program files\VideoLAN\VLC\vlc.exe C:\test.mpg :sout=#transcode{acodec=mp3,ab=192,channels=2,aenc=ffmpeg,samplerate=44100}:duplicate{dst=std{access=file,mux=raw,dst="C:\test.mp3"}}

This is the command I tried for direct recording to mp3:
C:\Program files\VideoLAN\VLC\vlc.exe dvb-t:// :dvb-frequency=522000000 :dvb-bandwidth=-1 :program=3010 :sout=#transcode{acodec=mp3,ab=192,channels=2,samplerate=44100}:duplicate{dst=std{access=file,mux=raw,dst="C:\test.mp3"}}

Removing samplerate and/or aenc=ffmpeg does not help in either case.

I also tried using the VLC GUI wizard, like so:
1. VLC > media > convert
2. select playmode > convert (BTW, the hotkey for that mode, alt+C, does not work)
3. enter:
source: C:\test.mpg
destination: C:\test.mp3
profile: Audio - MP3
4. edit selected profile > uncheck "video"

Then I get output that works fine! But how do I achieve the same through the command line?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: dvb-t commandline - force audio only (no video)?

Postby Rémi Denis-Courmont » 23 Jul 2009 17:18

--no-sout-video
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

grozea
Blank Cone
Blank Cone
Posts: 33
Joined: 09 Oct 2008 03:13

Re: dvb-t commandline - force audio only (no video)?

Postby grozea » 24 Jul 2009 01:50

That did it! :) Thank you very much thannoy & Rémi for helpful feedback!

For completion let me state what in the end worked on my system:

post recording conversion to mp3:
C:\Program files\VideoLAN\VLC\vlc.exe C:\test.mpg :sout=#transcode{acodec=mp3,ab=192,channels=2}:duplicate{dst=std{access=file,mux=raw,dst="C:\test.mp3"}} --no-sout-video

Direct DVB-T recording to mp3:
C:\Program files\VideoLAN\VLC\vlc.exe dvb-t:// :dvb-frequency=522000000 :dvb-bandwidth=-1 :program=3010 :sout=#transcode{acodec=mp3,ab=192,channels=2}:duplicate{dst=std{access=file,mux=raw,dst="C:\test.mp3"}} --no-sout-video

(aenc & samplerate weren't necessary, at least not for my test cases)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 20 guests