Stream and Save Youtube - no audio

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Granger1680
Blank Cone
Blank Cone
Posts: 10
Joined: 08 Nov 2011 04:33

Stream and Save Youtube - no audio

Postby Granger1680 » 25 Nov 2011 04:39

Hi,
I am having the opposite problem many other users are having it seems. I am trying to save a video with audio from Youtube. I have been able to successfully record the video from the website. However, when I play it back in VLC, there is no audio associated with that file. Maybe I need to be approaching the recording process differently.

Here's what I do:
Open network stream..., (paste web address), click Play, then at the bottom I click the red Record circle as it starts playing to record it.

I have also tried converting it after it has been recorded. I even made a custom profile of .avi/MPEG4/MP3 so I could try to play it on different players/computers.

*Also, side note: When I playback my audio-less file, the web address displays at the bottom of the frame in the beginning, how do I keep this from happening?

I really appreciate any suggestions. Thanks so much.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream and Save Youtube - no audio

Postby VLC_help » 25 Nov 2011 18:37

What does tool called Mediainfo say about that recorded file?

Granger1680
Blank Cone
Blank Cone
Posts: 10
Joined: 08 Nov 2011 04:33

Re: Stream and Save Youtube - no audio

Postby Granger1680 » 26 Nov 2011 06:57

Media Info reveals little on this file.

The statistics tab states Audio: Decoded 0 blocks, Played 0 buffers, Lost 0 buffers. It then provides stats on Video, Input/Read, Output/Written/Sent. The codec details tab indicates Stream 0, Type: Video, Codec: Google/On2's VP8 Video (VP80), resolution and frame rate. There is nothing more than the name of the file under Extra Metadata and General tabs.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream and Save Youtube - no audio

Postby VLC_help » 26 Nov 2011 17:55


Granger1680
Blank Cone
Blank Cone
Posts: 10
Joined: 08 Nov 2011 04:33

Re: Stream and Save Youtube - no audio

Postby Granger1680 » 27 Nov 2011 22:22

Here is the text view of the MediaInfo on the file:

General
CompleteName : C:\Users\A\Videos\vlc-record-2011-11-24-20h34m43s-Peanut Festival mechanical bull ride-.avi
Format : AVI
Format/Info : Audio Video Interleave
FileSize/String : 25.9 MiB
Duration/String : 4mn 58s
OverallBitRate/String : 725 Kbps

Video
ID/String : 0
Format : VP8
CodecID : VP80
Duration/String : 4mn 58s
BitRate/String : 719 Kbps
Width/String : 568 pixels
Height/String : 320 pixels
DisplayAspectRatio/String : 16:9
FrameRate/String : 31.939 fps
ColorSpace : YUV
ChromaSubsampling : 4:2:0
Compression_Mode/String : Lossy
Bits-(Pixel*Frame) : 0.124
StreamSize/String : 25.6 MiB (99%)

There weren't any details on the audio; maybe it was never recorded as part of the file. Would there be something I need to enable in VLC in order for it to capture audio as well?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream and Save Youtube - no audio

Postby VLC_help » 28 Nov 2011 15:31

You (or VLC) recorded (or in this case transcoded/remuxed) the video incorrectly. Putting VP8 inside AVI isn't a good choice.

If you just pressed red recording button, and that is what VLC did, then it is a bug.

Granger1680
Blank Cone
Blank Cone
Posts: 10
Joined: 08 Nov 2011 04:33

Re: Stream and Save Youtube - no audio

Postby Granger1680 » 01 Dec 2011 02:58

Right. I put the address in and pressed record. This is the result before I tried to do any converting. I recorded it again just now to see what I get, the MediaInfo is below and appears to be the same result:

General
Complete name : C:\Users\Anna\Videos\vlc-record-2011-11-30-19h43m59s-Peanut Festival mechanical bull ride-.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 25.9 MiB
Duration : 4mn 59s
Overall bit rate : 726 Kbps

Video
ID : 0
Format : VP8
Codec ID : VP80
Duration : 4mn 59s
Bit rate : 719 Kbps
Width : 568 pixels
Height : 320 pixels
Display aspect ratio : 16:9
Frame rate : 31.942 fps
Color space : YUV
Chroma subsampling : 4:2:0
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.124
Stream size : 25.6 MiB (99%)


Is there something that I can adjust or set so that I can work around this problem?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream and Save Youtube - no audio

Postby VLC_help » 01 Dec 2011 16:22

Not with recording button, but demux-dump
http://wiki.videolan.org/Demuxdump
or sout with different muxer might work.

Granger1680
Blank Cone
Blank Cone
Posts: 10
Joined: 08 Nov 2011 04:33

Re: Stream and Save Youtube - no audio

Postby Granger1680 » 05 Dec 2011 05:03

Sorry, I'm going to need some serious hand-holding on this one. I read the Demuxdump article. This lead to further reading on multiplexing on other outside webpages. I also saw the source code link. If it is as easy as saving demuxdump.c to C:\Program Files\VideoLAN\VLC, then I think I can handle it. Once I get this file in place, how does this change the process by which I will open and save my audio/video file?

bat999
Cone that earned his stripes
Cone that earned his stripes
Posts: 200
Joined: 19 Dec 2007 02:35

Re: Stream and Save Youtube - no audio

Postby bat999 » 05 Dec 2011 12:28

Hi Granger
When VLC plays YouTube links it chooses the Webm format.
But it can't save that format properly.
So force it to use mp4 format instead.

Add "&fmt=18" to the URL.
Instead of this link:-

Code: Select all

http://www.youtube.com/watch?v=At7OKhNXVG8
You use this link:-

Code: Select all

http://www.youtube.com/watch?v=At7OKhNXVG8&fmt=18
Then it will save the mp4 file - with audio.

Code: Select all

General Complete name : vlc-record-2011-12-05-11h18m11s-Peanut Festival mechanical bull ride-.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 24.4 MiB Duration : 5mn 0s Overall bit rate : 681 Kbps Encoded date : UTC 2011-12-05 11:23:12 Tagged date : UTC 2011-12-05 11:23:12 Writing application : vlc 1.3.0-git stream output Comment : QuickTime 6.0 or greater Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L3.0 Format settings, CABAC : No Format settings, ReFrames : 1 frame Format settings, GOP : M=1, N=30 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 4mn 58s Bit rate : 603 Kbps Width : 576 pixels Original width : 568 pixels Height : 320 pixels Display aspect ratio : 16:9 Original display aspect ratio : 16:9 Frame rate mode : Variable Frame rate : 30.000 fps Minimum frame rate : 29.441 fps Maximum frame rate : 30.333 fpshttp://www.youtube.com/watch?v=At7OKhNXVG8&fmt=18 Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.109 Stream size : 21.5 MiB (88%) Language : English Encoded date : UTC 2011-12-05 11:23:12 Tagged date : UTC 2011-12-05 11:23:12 Material_Duration : 298766 Material_StreamSize : 22513858 Material_FrameCount : 8963 Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 5mn 0s Bit rate mode : Variable Bit rate : 72.0 Kbps Maximum bit rate : 99.9 Kbps Channel(s) : 1 channel Channel positions : Front: C Sampling rate : 44.1 KHz Compression mode : Lossy Stream size : 2.58 MiB (11%) Language : English Encoded date : UTC 2011-12-05 11:23:12 Tagged date : UTC 2011-12-05 11:23:12 Material_Duration : 300745 Material_StreamSize : 2705595

Granger1680
Blank Cone
Blank Cone
Posts: 10
Joined: 08 Nov 2011 04:33

Re: Stream and Save Youtube - no audio

Postby Granger1680 » 06 Dec 2011 01:20

Hi bat999,
I added the &fmt=18 and tried to record it that way. It saved the audio only. Is there a way to get both audio and video in the same file? I used the same process as described in my earlier posts of just putting in the address (with &fmt=18) and pressing record when it played.

General
Complete name : C:\Users\A\Videos\vlc-record-2011-12-05-17h54m40s-Peanut Festival mechanical bull ride-.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.70 MiB
Duration : 5mn 0s
Overall bit rate : 75.2 Kbps
Encoded date : UTC 2011-12-05 23:59:41
Tagged date : UTC 2011-12-05 23:59:41
Writing application : vlc 1.1.11 stream output
Comment : QuickTime 6.0 or greater

Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 5mn 0s
Bit rate mode : Variable
Bit rate : 72.0 Kbps
Maximum bit rate : 104 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 2.58 MiB (96%)
Language : English
Encoded date : UTC 2011-12-05 23:59:41
Tagged date : UTC 2011-12-05 23:59:41
mdhd_Duration : 300791

bat999
Cone that earned his stripes
Cone that earned his stripes
Posts: 200
Joined: 19 Dec 2007 02:35

Re: Stream and Save Youtube - no audio

Postby bat999 » 06 Dec 2011 02:25

Hi Granger
Previously I downloaded the mp4 file without problems using VLC-1.3.0 with Linux.

I've tried it again using Windows XP this time.
The result is like yours, audio but no video! :cry:
So it looks like VLC-1.1.11 with Windows has a problem downloading "&fmt=18" mp4 files. :(

But it works ok using "&fmt=34". :D
Both video and audio! :D :D

Code: Select all

http://www.youtube.com/watch?v=At7OKhNXVG8&fmt=34

This is the "&fmt=34" result using VLC-1.1.11 with Windows XP.

Code: Select all

General #0 Complete name : C:\Documents and Settings\Administrator\My Documents\My Videos\vlc-record-2011-12-06-01h05m41s-Peanut Festival mechanical bull ride-.mp4 Format : MPEG-4 Format/Info : ISO 14496-1 Base Media Format/Family : MPEG-4 File size : 24.5 MiB PlayTime : 5mn 744ms Bit rate : 683 Kbps StreamSize : 425 KiB Encoded date : UTC 2011-12-06 01:10:45 Tagged date : UTC 2011-12-06 01:10:45 SpecialPlaybackRequirements : QuickTime 6.0 or greater ©enc : vlc 1.1.11 stream output Video #0 Codec : AVC Codec/Family : AVC Codec/Info : MPEG-4 AVC Codec profile : Main@L3.0 Codec settings, CABAC : Yes PlayTime : 4mn 58s Bit rate mode : VBR Bit rate : 599 Kbps Width : 568 pixels Height : 320 pixels Display Aspect ratio : 16/9 Frame rate mode : VFR Frame rate : 30.000 fps Minimum frame rate : 29.441 fps Maximum frame rate : 30.333 fps Chroma : 4:2:0 Interlacement : Progressive Bits/(Pixel*Frame) : 0.110 StreamSize : 21.3 MiB Encoded date : UTC 2011-12-06 01:10:45 Tagged date : UTC 2011-12-06 01:10:45 Audio #0 Codec : AAC LC Codec/Family : AAC Codec/Info : AAC Low Complexity PlayTime : 5mn 744ms Bit rate mode : VBR Bit rate : 76.0 Kbps Maximum bit rate : 105 Kbps Channel(s) : 1 channel Channel positions : C Sampling rate : 44.1 KHz Resolution : 16 bits StreamSize : 2.72 MiB Encoded date : UTC 2011-12-06 01:10:45 Tagged date : UTC 2011-12-06 01:10:45

**************
PS.
The difference between fmt18 and fmt34 is...
fmt18 uses h264 video with "baseline" profile.
fmt34 uses h264 video with "main" profile.
So the fmt34 download might not play nice in some iPods.

Granger1680
Blank Cone
Blank Cone
Posts: 10
Joined: 08 Nov 2011 04:33

Re: Stream and Save Youtube - no audio

Postby Granger1680 » 06 Dec 2011 04:22

Major props to bat999!

Thanks so much!

There is one little thing though. The background noise doesn't quite match up with what's happening in the video when I play back my file. Looking at the MediaInfo, it also says that the audio is 2 seconds longer than the video. The duration of the audio and video are just 1-2 seconds off in three attempts. Any idea on how to refine this?

General
Complete name : C:\Users\A\Videos\Peanut Festival mechanical bull ride.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 24.5 MiB
Duration : 5mn 0s
Overall bit rate : 683 Kbps
Encoded date : UTC 2011-12-06 01:48:43
Tagged date : UTC 2011-12-06 01:48:43
Writing application : vlc 1.1.11 stream output
Comment : QuickTime 6.0 or greater

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Format settings, GOP : M=1, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 4mn 58s
Bit rate : 599 Kbps
Width : 576 pixels
Original width : 568 pixels
Height : 320 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 30.000 fps
Minimum frame rate : 29.441 fps
Maximum frame rate : 30.333 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.108
Stream size : 21.3 MiB (87%)
Language : English
Encoded date : UTC 2011-12-06 01:48:43
Tagged date : UTC 2011-12-06 01:48:43
Material_Duration : 298766
Material_StreamSize : 22385224
Material_FrameCount : 8963

Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 5mn 0s
Bit rate mode : Variable
Bit rate : 76.0 Kbps
Maximum bit rate : 105 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 2.72 MiB (11%)
Language : English
Encoded date : UTC 2011-12-06 01:48:43
Tagged date : UTC 2011-12-06 01:48:43

bat999
Cone that earned his stripes
Cone that earned his stripes
Posts: 200
Joined: 19 Dec 2007 02:35

Re: Stream and Save Youtube - no audio

Postby bat999 » 06 Dec 2011 16:08

Any idea on how to refine this?
Hi
Both of my results above show differences between duration of audio and video too.
Maybe VLC is great for viewing YouTube, but not suitable for downloading it. :(
There are other dedicated YouTube downloader programs. 8)

Granger1680
Blank Cone
Blank Cone
Posts: 10
Joined: 08 Nov 2011 04:33

Re: Stream and Save Youtube - no audio

Postby Granger1680 » 07 Dec 2011 05:18

Well, I suppose VLC does pretty well for being provided free/by donation.

Thanks again!


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 29 guests