i want to write a flv video stream to disc, to watch it later.
right now i'm doing something like this to connect to the stream:
Code: Select all
this->vlcMedia = libvlc_media_new_location(this->vlcInstance, mrl.toUtf8().constData());
libvlc_media_add_option(this->vlcMedia,":mux=ps");
libvlc_media_add_option(this->vlcMedia,":demux=dump");
libvlc_media_add_option(this->vlcMedia,":demuxdump-file=c:\\dlc\\fox.ps");
libvlc_media_add_option(this->vlcMedia,":demuxdump-append");
libvlc_media_player_set_media (this->vlcRecorder, this->vlcMedia);
libvlc_media_release (this->vlcMedia);
libvlc_media_player_play (this->vlcRecorder);
when i do this on the commandline, everything works and i can watch the file:
Code: Select all
vlc http://foxhdlive-f.akamaihd.net/01BREAKING_1_2500@33786?v=2.4.5 :demux=dump :demuxdump-file=c:\\tmp\\fox.ps :demuxdump-append
Code: Select all
[12a6b9c4] main input debug: Creating an input for 'http://foxhdlive-f.akamaihd.net/01BREAKING_1_2500@33786?v=2.4.5'
[12a6b9c4] main input debug: thread (input) created at priority 1 (../.././src/input/input.c:214)
[12a6b9c4] main input debug: thread started
[12a6b9c4] main input debug: using timeshift granularity of 50 MiB
[12a6b9c4] main input debug: using timeshift path 'C:\Users\geostein\AppData\Local\Temp'
[12a6b9c4] main input debug: `http://foxhdlive-f.akamaihd.net/01BREAKING_1_2500@33786?v=2.4.5' gives access `http' demux `' path `foxhdlive-f.akamaihd.net/01BREAKING_1_2500@33786?v=2.4.5'
[12a6b9c4] main input debug: enforced demux ` dump'
[12a6b9c4] main input debug: creating demux: access='http' demux='dump' path='foxhdlive-f.akamaihd.net/01BREAKING_1_2500@33786?v=2.4.5'
[127a7414] main demux debug: looking for access_demux module: 0 candidates
[127a7414] main demux debug: no access_demux module matched "http"
[127a7414] main demux debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
[12a6b9c4] main input debug: creating access 'http' path='foxhdlive-f.akamaihd.net/01BREAKING_1_2500@33786?v=2.4.5'
[142584d4] main access debug: looking for access module: 2 candidates
[142584d4] access_http access debug: http: server='foxhdlive-f.akamaihd.net' port=80 file='/01BREAKING_1_2500@33786?v=2.4.5'
[142584d4] main access debug: net: connecting to foxhdlive-f.akamaihd.net port 80
[142584d4] main access debug: connection succeeded (socket = 2244)
[flv @ 149583a0] Estimating duration from bitrate, this may be inaccurate
[126b187c] main playlist debug: no fetch required for (null) (art currently (null))
[142584d4] access_http access debug: protocol 'HTTP' answer code 206
[142584d4] access_http access debug: Server: AkamaiGHost
[142584d4] access_http access debug: Content-Type: video/x-flv
[142584d4] access_http access debug: Pragma: no-cache
[142584d4] access_http access debug: stream size=2147483647,pos=0,remaining=2147483647
[142584d4] access_http access debug: this frame size=2147483647
[142584d4] access_http access debug: Connection: keep-alive
[142584d4] main access debug: using access module "access_http"
[142584d4] main access debug: TIMER module_need() : 814.000 ms - Total 814.000 ms / 1 intvls (Avg 814.000 ms)
[1424fe44] main stream debug: Using AStream*Stream
[1424fe44] main stream debug: pre buffering
[1424fe44] main stream error: cannot pre fill buffer
[12a6b9c4] main input warning: cannot create a stream_t from access
[142584d4] main access debug: removing module "access_http"
[142584d4] main access debug: waitpipe: object killed
[12a6b9c4] main input debug: thread ended
[12a6b9c4] main input debug: thread times: real 0m0.821047s, kernel 0m0.015600s, user 0m0.000000s
[12a6b9c4] main input debug: TIMER input launching for 'http://foxhdlive-f.akamaihd.net/01BREAKING_1_2500@33786?v=2.4.5' : 993.000 ms - Total 993.000 ms / 1 intvls (Avg 993.000 ms)