I am new to using VLC for streaming. For some reason, I am having a heck of a time getting it to work. I am streaming an .mp4 file I shot from my phone to my own computer (http://localhost:8080). If I set the encoder to MPEG-2, it will play but the audio stutters horribly (like a monster-cricket chirping, this will haunt my nightmares). I tried resetting the sample rate, and that didn't fix it (file is at 48 kHz). I tried setting to nearly every other encoder on the default list, and am getting a few errors. What happens every time is that it will play alright the first go, and the second time it tells me that it can't add the file to the stream... "error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value". I attached some sample code below with debug output. Does anyone know how to fix this?
I've tried several versions of VLC (2.1.1, 2.1.2, 2.0.0, 1.1.11), and several different video files. I found several old threads on this subject on Google, but none of the ones I found helped. Any help would be greatly appreciated.
Code: Select all
main debug: processing request item: Streaming, node: Playlist, skip: 0
main debug: resyncing on Streaming
main debug: Streaming is at 0
main debug: starting playback of the new playlist item
main debug: resyncing on Streaming
main debug: Streaming is at 0
main debug: creating new input thread
main debug: Creating an input for 'Streaming'
main debug: reusing sout
main debug: you probably want to use gather stream_out
main debug: using timeshift granularity of 50 MiB, in path 'C:\Users\WERDN_~1\AppData\Local\Temp'
main debug: `file:///E:/Users/Andrew/Pictures/Phone_Aug_2012/VID_20120517_123437.mp4' gives access `file' demux `' path `/E:/Users/Andrew/Pictures/Phone_Aug_2012/VID_20120517_123437.mp4'
main debug: creating demux: access='file' demux='' location='/E:/Users/Andrew/Pictures/Phone_Aug_2012/VID_20120517_123437.mp4' file='E:\Users\Andrew\Pictures\Phone_Aug_2012\VID_20120517_123437.mp4'
main debug: looking for access_demux module matching "file": 12 candidates
main debug: no access_demux modules matched
main debug: creating access 'file' location='/E:/Users/Andrew/Pictures/Phone_Aug_2012/VID_20120517_123437.mp4', path='E:\Users\Andrew\Pictures\Phone_Aug_2012\VID_20120517_123437.mp4'
main debug: looking for access module matching "file": 20 candidates
filesystem debug: opening file `E:\Users\Andrew\Pictures\Phone_Aug_2012\VID_20120517_123437.mp4'
main debug: using access module "filesystem"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: looking for stream_filter module matching "any": 6 candidates
main debug: no stream_filter modules matched
main debug: looking for stream_filter module matching "record": 6 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='file' demux='' location='/E:/Users/Andrew/Pictures/Phone_Aug_2012/VID_20120517_123437.mp4' file='E:\Users\Andrew\Pictures\Phone_Aug_2012\VID_20120517_123437.mp4'
main debug: looking for demux module matching "mp4": 63 candidates
mp4 debug: dumping root Box "root"
mp4 debug: | + ftyp size 24
mp4 debug: | + moov size 5202
mp4 debug: | | + mvhd size 108
mp4 debug: | | + trak size 2511
mp4 debug: | | | + tkhd size 92
mp4 debug: | | | + mdia size 2411
mp4 debug: | | | | + mdhd size 32
mp4 debug: | | | | + hdlr size 44
mp4 debug: | | | | + minf size 2327
mp4 debug: | | | | | + vmhd size 20
mp4 debug: | | | | | + dinf size 36
mp4 debug: | | | | | | + dref size 28
mp4 debug: | | | | | | | + url size 12
mp4 debug: | | | | | + stbl size 2263
mp4 debug: | | | | | | + stsd size 151
mp4 debug: | | | | | | | + avc1 size 135
mp4 debug: | | | | | | | | + avcC size 33
mp4 debug: | | | | | | | | + pasp size 16
mp4 debug: | | | | | | + stts size 880
mp4 debug: | | | | | | + stss size 52
mp4 debug: | | | | | | + stsz size 1060
mp4 debug: | | | | | | + stsc size 52
mp4 debug: | | | | | | + stco size 60
mp4 debug: | | + trak size 2575
mp4 debug: | | | + tkhd size 92
mp4 debug: | | | + mdia size 2475
mp4 debug: | | | | + mdhd size 32
mp4 debug: | | | | + hdlr size 44
mp4 debug: | | | | + minf size 2391
mp4 debug: | | | | | + smhd size 16
mp4 debug: | | | | | + dinf size 36
mp4 debug: | | | | | | + dref size 28
mp4 debug: | | | | | | | + url size 12
mp4 debug: | | | | | + stbl size 2331
mp4 debug: | | | | | | + stsd size 91
mp4 debug: | | | | | | | + mp4a size 75
mp4 debug: | | | | | | | | + esds size 39
mp4 debug: | | | | | | + stts size 32
mp4 debug: | | | | | | + stsz size 2088
mp4 debug: | | | | | | + stsc size 52
mp4 debug: | | | | | | + stco size 60
mp4 debug: | + free size 399798
mp4 debug: | + mdat size 8804894
mp4 debug: ISO Media file (isom) version 0.
mp4 debug: found 2 tracks
mp4 debug: track[Id 0x1] read 11 chunk
mp4 debug: track[Id 0x1] read 260 samples length:10s
main debug: selecting program id=0
mp4 debug: adding track[Id 0x1] video (enable) language en
mp4 debug: track[Id 0x2] read 11 chunk
mp4 debug: track[Id 0x2] read 517 samples length:11s
mp4 debug: adding track[Id 0x2] audio (enable) language en
main debug: using demux module "mp4"
main debug: looking for a subtitle file in E:\Users\Andrew\Pictures\Phone_Aug_2012\
qt4 debug: IM: Setting an input
main debug: looking for packetizer module matching "any": 21 candidates
packetizer_h264 debug: found NAL_SPS (sps_id=0)
packetizer_h264 debug: found NAL_PPS (pps_id=0 sps_id=0)
packetizer_h264 debug: avcC length size=4, sps=1, pps=1
main debug: using packetizer module "packetizer_h264"
main debug: looking for packetizer module matching "any": 21 candidates
packetizer_mpeg4audio debug: running MPEG4 audio packetizer
packetizer_mpeg4audio debug: AAC 48000Hz 1024 samples/frame
main debug: using packetizer module "packetizer_mpeg4audio"
main debug: starting in async mode
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\werdn_000\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.luac
main debug: no meta reader modules matched
main debug: `file:///E:/Users/Andrew/Pictures/Phone_Aug_2012/VID_20120517_123437.mp4' successfully opened
mp4 debug: track[Id 0x1] using Sync Sample Box (stss)
mp4 debug: stts gives 0 --> 0 (sample number)
mp4 debug: track[Id 0x2] does not provide Sync Sample Box (stss)
main debug: Buffering 0%
main debug: switching to sync mode
main debug: adding a new sout input (sout_input:0000000003846890)
main debug: Buffering 0%
stream_out_transcode debug: creating audio transcoding from fcc=`mp4a' to fcc=`mp3 '
main debug: adding a new sout input (sout_input:000000000387b660)
main debug: looking for decoder module matching "any": 39 candidates
main debug: Buffering 5%
main debug: Buffering 10%
main debug: using decoder module "faad"
main debug: Buffering 15%
main debug: looking for encoder module matching "any": 16 candidates
main debug: Buffering 20%
main debug: Buffering 25%
main debug: Buffering 30%
avcodec debug: Trying to find more suitable sample format instead of s32p
avcodec debug: Using fltp as new sample format
avcodec debug: Trying to find packet sample format instead of planar fltp
avcodec debug: Ended up using fltp as sample format
main debug: Buffering 35%
main debug: Buffering 40%
main debug: Buffering 45%
main debug: Buffering 50%
main debug: Buffering 55%
main debug: Buffering 60%
main debug: Buffering 65%
main debug: Buffering 70%
main debug: Buffering 75%
main debug: Buffering 80%
main debug: Buffering 85%
main debug: Buffering 90%
main debug: Buffering 95%
main debug: Buffering 100%
main debug: Stream buffering done (2100 ms in 2 ms)
avcodec debug: found encoder MPEG I/II Layer 3
main debug: using encoder module "avcodec"
main debug: input 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes
main debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Mono
main debug: looking for audio converter module matching "any": 12 candidates
main debug: using audio converter module "simple_channel_mixer"
main debug: conversion pipeline complete
main debug: looking for audio resampler module matching "any": 3 candidates
main debug: using audio resampler module "samplerate"
main error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
main debug: removing module "faad"
main debug: removing module "avcodec"
main debug: removing module "samplerate"
main debug: removing module "simple_channel_mixer"
stream_out_transcode debug: creating video transcoding from fcc=`h264' to fcc=`h264'
main error: cannot create packetizer output (mp4a)
main debug: looking for decoder module matching "any": 39 candidates
avcodec debug: trying to use direct rendering
avcodec debug: allowing 4 thread(s) for decoding
avcodec debug: avcodec codec (H264 - MPEG-4 AVC (part 10)) started
avcodec debug: using frame thread mode with 4 threads
main debug: using decoder module "avcodec"
main debug: looking for encoder module matching "any": 16 candidates
x264 debug: version x264 0.140.X
x264 info: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x264 info: profile High, level 3.1
main debug: using encoder module "x264"
main debug: removing module "x264"
x264 debug: framecount still in libx264 buffer: 0
main debug: Decoder buffering done in 11 ms
avcodec debug: using direct rendering
stream_out_transcode debug: decoder aspect is 1.777778:1
stream_out_transcode debug: source pixel aspect is 1.000000:1
stream_out_transcode debug: scaled pixel aspect is 1.000000:1
stream_out_transcode debug: source 1280x720, destination 1280x720
stream_out_transcode debug: encoder aspect is 1280:720
stream_out_transcode debug: destination (after video filters) 1280x720
main debug: looking for encoder module matching "any": 16 candidates
x264 debug: version x264 0.140.X
x264 info: using SAR=1/1
x264 info: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x264 info: profile High, level 3.1
main debug: using encoder module "x264"
main error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
stream_out_transcode error: cannot add this stream
main debug: removing module "avcodec"
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped
main debug: removing module "x264"
x264 debug: framecount still in libx264 buffer: 0
main debug: incoming request - stopping current input
main debug: control: stopping input
main debug: incoming request - stopping current input
main debug: finished input
main debug: removing module "packetizer_h264"
main debug: killing decoder fourcc `h264', 0 PES in FIFO
main debug: removing a sout input (sout_input:000000000387b660)
main debug: removing module "packetizer_mpeg4audio"
main debug: killing decoder fourcc `mp4a', 0 PES in FIFO
main debug: removing module "mp4"
mp4 debug: freeing all memory
main debug: removing module "record"
main debug: removing module "filesystem"
main debug: Program doesn't contain anymore ES
main debug: incoming request - stopping current input
main debug: dead input
qt4 debug: IM: Deleting the input