I try to stream a RTSP-stream into a file. However, when I play the created file, it has apparently no video data in it. As I am not that experienced with the vlc command line options, I tried to set the streaming options with the GUI:
I hit CTRL-N, checked the "RTSP" option and set the "URL" to "rtsp://c36000-o.m.core.cdn.streamfarm.net/36000zdf/ondemand/3546zdf/zdf/zdf/07/09/070905_toll_neu_f21_vh.mp4". Then I checked the "Stream/Save" option, an went into the "Settings..." dialoge.
In the settings-dialoge I checked "File" and set the "Filename" to "movie.mpeg". Under "Transcoding options" I checked "Video codec" and "Audio codec". All other settings were not changed. The resulting sout-MRL is:
Code: Select all
:sout=#transcode{vcodec=mp4v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst="movie.mpeg"}}
The output while streaming is:
Code: Select all
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 3888 (input) created at priority 1 (input/input.c:265)
main debug: stream=`transcode'
main debug: looking for sout stream module: 1 candidate
main debug: stream=`duplicate'
main debug: looking for sout stream module: 1 candidate
stream_out_duplicate debug: creating 'duplicate'
stream_out_duplicate debug: * adding `std{access=file,mux=ts,dst=movie.mpeg}'
main debug: stream=`std'
main debug: looking for sout stream module: 1 candidate
main debug: set sout option: sout-standard-access to file
main debug: set sout option: sout-standard-mux to ts
main debug: set sout option: sout-standard-dst to movie.mpeg
stream_out_standard debug: creating `file/ts://movie.mpeg'
stream_out_standard debug: extension is mpeg
stream_out_standard debug: extension -> mux=ps
stream_out_standard debug: using `file/ts://movie.mpeg'
main debug: looking for sout access module: 1 candidate
access_output_file debug: file access output opened (`movie.mpeg')
main debug: using sout access module "access_output_file"
stream_out_standard debug: access opened
main debug: looking for sout mux module: 1 candidate
mux_ts debug: shaping=200000 pcr=70000 dts_delay=400000
main debug: using sout mux module "mux_ts"
main debug: muxer support adding stream at any time
main debug: muxer prefers to wait for all ES before starting to mux
stream_out_standard debug: mux opened
main debug: using sout stream module "stream_out_standard"
main debug: using sout stream module "stream_out_duplicate"
main debug: set sout option: sout-transcode-vcodec to mp4v
main debug: set sout option: sout-transcode-vb to 1024
main debug: set sout option: sout-transcode-scale to 1
main debug: set sout option: sout-transcode-acodec to mpga
main debug: set sout option: sout-transcode-ab to 192
main debug: set sout option: sout-transcode-channels to 2
stream_out_transcode debug: codec audio=mpga 0Hz 2 channels 192Kb/s
stream_out_transcode debug: codec video=mp4v 0x0 scaling: 1.000000 1024kb/s
main debug: using sout stream module "stream_out_transcode"
main debug: `rtsp://c36000-o.m.core.cdn.streamfarm.net/36000zdf/ondemand/3546zdf/zdf/zdf/07/09/070905_toll_neu_f21_vh.mp4' gives access `rtsp' demux `' path `c36000-o.m.core.cdn.streamfarm.net/36000zdf/ondemand/3546zdf/zdf/zdf/07/09/070905_toll_neu_f21_vh.mp4'
main debug: creating demux: access='rtsp' demux='' path='c36000-o.m.core.cdn.streamfarm.net/36000zdf/ondemand/3546zdf/zdf/zdf/07/09/070905_toll_neu_f21_vh.mp4'
main debug: looking for access_demux module: 1 candidate
live555 debug: RTP subsession 'audio/MPEG4-GENERIC'
live555 debug: RTP subsession 'video/H264'
main debug: selecting program id=0
main debug: using access_demux module "live555"
main debug: looking for packetizer module: 17 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: stream out mode -> no decoder thread
main debug: looking for packetizer module: 17 candidates
packetizer_h264 debug: found NAL_SPS
main debug: using packetizer module "packetizer_h264"
main debug: stream out mode -> no decoder thread
main debug: starting in async mode
main debug: `rtsp://c36000-o.m.core.cdn.streamfarm.net/36000zdf/ondemand/3546zdf/zdf/zdf/07/09/070905_toll_neu_f21_vh.mp4' successfully opened
live555 warning: no data received in 10s. Switching to TCP
live555 debug: RTP subsession 'audio/MPEG4-GENERIC'
live555 debug: RTP subsession 'video/H264'
packetizer_h264 debug: found NAL_PPS
live555 debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP()
main debug: adding a new input
stream_out_transcode debug: creating audio transcoding from fcc=`mp4a' to fcc=`mpga'
main debug: looking for decoder module: 28 candidates
main debug: using decoder module "faad"
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec initialized (interface 3349504 )
ffmpeg debug: found encoder MPEG Audio layer 1/2
main debug: using encoder module "ffmpeg"
main debug: looking for audio filter2 module: 5 candidates
audio_format debug: fl32->s16l, bits per sample: 32
main debug: using audio filter2 module "audio_format"
stream_out_duplicate debug: duplicated a new stream codec=mpga (es=0 group=0)
main debug: adding a new input
mux_ts debug: adding input codec=mpga pid=68
mux_ts debug: new PCR PID is 68
stream_out_duplicate debug: - added for output 0
faad warning: decoded zero sample
main warning: clock gap, unexpected stream discontinuity
live555 debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP()
main debug: adding a new input
stream_out_transcode debug: creating video transcoding from fcc=`h264' to fcc=`mp4v'
main debug: looking for decoder module: 28 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: ffmpeg codec (h264) started
main debug: using decoder module "ffmpeg"
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder MPEG-4 Video
main debug: using encoder module "ffmpeg"
main debug: removing module "ffmpeg"
main warning: trying to send non-dated packet to stream output!
main warning: trying to send non-dated packet to stream output!
main warning: trying to send non-dated packet to stream output!
[...]
main warning: trying to send non-dated packet to stream output!
main warning: trying to send non-dated packet to stream output!
main warning: trying to send non-dated packet to stream output!
main debug: control type=0
main debug: control: stopping input
main debug: closing input
main debug: removing module "live555"
main debug: removing module "packetizer_mpeg4audio"
main debug: killing decoder fourcc `mp4a', 0 PES in FIFO
main debug: removing an input
main debug: removing module "faad"
main debug: removing module "ffmpeg"
main debug: removing module "audio_format"
mux_ts debug: removing input pid=68
mux_ts debug: new PCR PID is 8191
main warning: no more input streams for this mux
main debug: removing module "packetizer_h264"
main debug: killing decoder fourcc `h264', 0 PES in FIFO
main debug: removing an input
ffmpeg debug: ffmpeg codec (h264) stopped
main debug: removing module "ffmpeg"
main debug: destroying sout
main debug: destroying chain... (name=transcode)
main debug: destroying chain... (name=duplicate)
stream_out_duplicate debug: closing a duplication
main debug: destroying chain... (name=std)
main debug: removing module "mux_ts"
access_output_file debug: file access output closed
main debug: removing module "access_output_file"
main debug: removing module "stream_out_standard"
main debug: destroying chain done
main debug: removing module "stream_out_duplicate"
main debug: destroying chain done
main debug: removing module "stream_out_transcode"
main debug: destroying chain done
main debug: thread times: real 0m16.954379s, kernel 0m0.190273s, user 0m0.370532s
main debug: thread 3888 joined (input/input.c:412)
Code: Select all
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 3960 (input) created at priority 1 (input/input.c:265)
main debug: drive letter C: found in source
main debug: `C:\Dokumente und Einstellungen\User\Desktop\vlc-0.8.6c-win32\vlc-0.8.6c\movie.mpeg' gives access `' demux `' path `C:\Dokumente und Einstellungen\User\Desktop\vlc-0.8.6c-win32\vlc-0.8.6c\movie.mpeg'
main debug: creating demux: access='' demux='' path='C:\Dokumente und Einstellungen\User\Desktop\vlc-0.8.6c-win32\vlc-0.8.6c\movie.mpeg'
main debug: looking for access_demux module: 1 candidate
dvdnav warning: cannot open dvdnav
main debug: creating access '' path='C:\Dokumente und Einstellungen\User\Desktop\vlc-0.8.6c-win32\vlc-0.8.6c\movie.mpeg'
main debug: looking for access2 module: 5 candidates
vcd debug: trying .cue file: C:\Dokumente und Einstellungen\User\Desktop\vlc-0.8.6c-win32\vlc-0.8.6c\movie.cue
vcd debug: could not find .cue file
access_file debug: opening file `C:\Dokumente und Einstellungen\User\Desktop\vlc-0.8.6c-win32\vlc-0.8.6c\movie.mpeg'
main debug: using access2 module "access_file"
main debug: pre-buffering...
main debug: received first data for our buffer
main debug: creating demux: access='' demux='' path='C:\Dokumente und Einstellungen\User\Desktop\vlc-0.8.6c-win32\vlc-0.8.6c\movie.mpeg'
main debug: looking for demux2 module: 45 candidates
main debug: using demux2 module "ts"
main debug: looking for a subtitle file in C:\Dokumente und Einstellungen\User\Desktop\vlc-0.8.6c-win32\vlc-0.8.6c\
ts debug: DEMUX_SET_GROUP 0 00000000
main debug: `C:\Dokumente und Einstellungen\User\Desktop\vlc-0.8.6c-win32\vlc-0.8.6c\movie.mpeg' successfully opened
ts debug: PATCallBack called
ts debug: new PAT ts_id=3093 version=26 current_next=1
ts debug: * number=1 pid=66
ts debug: PMTCallBack called
ts debug: new PMT program number=1 version=4 pid_pcr=68
ts debug: * es pid=68 type=3 fcc=mpga
main debug: selecting program id=1
main debug: looking for decoder module: 28 candidates
main debug: using decoder module "mpeg_audio"
main debug: thread 4552 (decoder) created at priority 2 (input/decoder.c:159)
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:192
main debug: looking for audio output module: 3 candidates
aout_directx debug: OpenAudio
aout_directx debug:
aout_directx debug: found device: Vinyl AC'97 Audio (WAVE)
aout_directx debug: found device: Modem Nr. 0 Line-Out (emuliert)
aout_directx debug: device supports 2 channels
aout_directx debug: device supports 1 channel
aout_directx debug: creating DirectSoundThread
main debug: thread 4108 (DirectSound Notification Thread) created at priority 15 (directx.c:372)
aout_directx debug: DirectSoundThread ready
main debug: using audio output module "aout_directx"
main debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes
main debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
main debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "float32tos16"
main debug: found a filter for the whole conversion
main debug: looking for audio mixer module: 3 candidates
main debug: using audio mixer module "trivial_mixer"
main debug: input 'mpga' 48000 Hz Stereo frame=1152 samples/1161 bytes
main debug: filter(s) 'mpga'->'fl32' 48000 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "mpgatofixed32"
main debug: found a filter for the whole conversion
main debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "bandlimited_resampler"
main debug: found a filter for the whole conversion
ts debug: eof ?
main debug: EOF reached
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: closing input
ts debug: pid list:
ts debug: - pid[0] seen
ts debug: - pid[66] seen
main debug: removing module "mpeg_audio"
main debug: thread times: real 0m6.289043s, kernel 0m0.050072s, user 0m0.020028s
main debug: thread 4552 joined (input/decoder.c:191)
main debug: killing decoder fourcc `mpga', 0 PES in FIFO
main debug: removing module "mpgatofixed32"
main debug: removing module "bandlimited_resampler"
aout_directx debug: closing audio device
aout_directx debug: DirectSoundThread exiting
main debug: thread times: real 0m6.339115s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 4108 joined (directx.c:598)
main debug: removing module "aout_directx"
main debug: removing module "float32tos16"
main debug: removing module "trivial_mixer"
main debug: Program doesn't contain anymore ES
ts debug: - pid[68] seen
ts debug: - pid[8191] seen
main debug: removing module "ts"
main debug: removing module "access_file"
main debug: thread times: real 0m6.519374s, kernel 0m0.020028s, user 0m0.000000s
main debug: thread 3960 joined (input/input.c:412)
main: nothing to play
Regards,
eXile.