[MEncoder-users] Send cookies with MEncoder before downloading a stream

Wietze wietzuh at gmail.com
Mon Apr 5 20:39:57 CEST 2010


OK, I'm sorry. I don't think a full output is necessary, because my question
is about the 'Read is behaving funny' part. However, here it is.

I did a test with a PHP file (saved as an .asf) that sends me an email when
the visitor has cookies. So when MEncoder has cookies while it is trying to
download the ASF file, I'll receive an email; that's why I am sure MEncoder
does not use cookies while downloading. 
 
The full output is:


C:\> mencoder "http://www.(my url)/test.asf" -oac pcm -ovc copy -o
"test.avi" -cookie
s -cookies-file cookies.txt -v
MEncoder Sherpya-SVN-r30945-4.2.5 (C) 2000-2010 MPlayer Team
Configuration: --extra-cflags=-I/c/Work/mplayer/live --prefix=/mingw
--enable-st
atic --enable-md5sum --enable-menu --enable-faac --enable-enca --enable-sdl
--en
able-caca --enable-gl --enable-freetype --enable-png --enable-mng
--enable-jpeg
--enable-gif --enable-tga --enable-mad --enable-tv --enable-theora
--disable-vid
ix --disable-faac-lavc --disable-inet6 --enable-runtime-cpudetection
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> 'C:/mplayer/fonts'
WINSOCK2 init: 0
Filename for url is now http://www.(my url)/test.asf
Filename for url is now http://www.(my url)/test.asf
STREAM_HTTP(1), URL: http://www.(my url)/test.asf
Loading cookie file: cookies.txt
Loading cookie file: cookies.txt
Read is behaving funny.Resolving www.(myurl).nl for AF_INET...
Connecting to server www.(myurl).nl[77.222.78.17]: 80...
--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.1]
http minor version: [1]
uri:                [(NULL)]
method:             [(NULL)]
status code:        [200]
reason phrase:      [OK]
body size:          [10]
Fields:
 0 - Date: Mon, 05 Apr 2010 18:28:11 GMT
 1 - Server: Apache/2
 2 - X-Powered-By: PHP/5.2.13
 3 - Vary: Accept-Encoding,User-Agent
 4 - Content-Length: 10
 5 - Connection: close
 6 - Content-Type: text/html
--- HTTP DEBUG HEADER --- END ---
Content-Length: [10]
Content-Type: [text/html]
Cache size set to 320 KBytes
STREAM: [null] http://www.(my url)/test.asf
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeau, Reimar Doeffinger, Arpi?
STREAM: Comment: plain http
success: format: 0  data: 0x0 - 0xa
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0

LAVF_check: no clue about this gibberish!
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename http://www.(my url)/test.asf ext: .asf
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 114
AVS: avs_check_file - attempting to open file http://www.(my url)/test.asf
AVS: failed to load avisynth.dll
AVS: Init failed
Checking for PVA
Checking for MPEG-TS...
THIS DOESN'T LOOK LIKE AN MPEG-TS FILE!
TRIED UP TO POSITION 0, FOUND ffffff00, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=16754 size=2030708738
LMLM4 Stream Format not found
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 0  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 0
idr: 0
 sps: 0 pps: 0 PES: 0  MP3: 0, synced: 0
Not MPEG System Stream format... (maybe Transport Stream?)
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 0  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 0
idr: 0
 sps: 0 pps: 0 PES: 0  MP3: 0, synced: 3
Not MPEG System Stream format... (maybe Transport Stream?)
ds_fill_buffer: EOF reached (stream: video)
LAVF_check: no clue about this gibberish!
demux_aac_probe, failed to detect an AAC stream
============ Sorry, this file format is not recognized/supported
=============
=== If this file is an AVI, ASF or MPEG stream, please contact the author!
===
Cannot open demuxer.

Exiting...

-----Oorspronkelijk bericht-----
Van: mencoder-users-bounces at mplayerhq.hu
[mailto:mencoder-users-bounces at mplayerhq.hu] Namens Reimar Döffinger
Verzonden: maandag 5 april 2010 19:04
Aan: MEncoder usage discussions
Onderwerp: Re: [MEncoder-users] Send cookies with MEncoder before
downloading a stream

On Mon, Apr 05, 2010 at 06:30:48PM +0200, Wietze wrote:
> I'm using 	MEncoder Sherpya-SVN-r30945-4.2.5	 on Windows, and
> need to get it work on Windows...

Don't top-post.
And the full output is always required if you have a problem and want our
help.
_______________________________________________
MEncoder-users mailing list
MEncoder-users at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users



More information about the MEncoder-users mailing list