SNAPSHOT problem with multicast stream

About encoding, codec settings, muxers and filter usage
stefo
Blank Cone
Blank Cone
Posts: 20
Joined: 16 Nov 2006 14:54

SNAPSHOT problem with multicast stream

Postby stefo » 20 Mar 2007 14:02

Hi,
I have a problem to make a snapshot when I play a multicast stream (e.g udp://@239.1.15.103:2314).
I can see the snapshot image in a specified directory, but its size is always 0 KB.

I don't know where the problem is.
Can anybody help me?

Thank in advance.

RADO :-)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 20 Mar 2007 23:43

Could you be a bit more specific ?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

stefo
Blank Cone
Blank Cone
Posts: 20
Joined: 16 Nov 2006 14:54

SNAPSHOT problem with multicast stream

Postby stefo » 21 Mar 2007 14:45

It is not possible to make a snapshot as a jpeg file.
There is a message debug :

main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 4684 (input) created at priority 1 (input/input.c:265)
main debug: `udp://@239.2.3.107:2314' gives access `udp' demux `' path `@239.2.3.107:2314'
main debug: creating demux: access='udp' demux='' path='@239.2.3.107:2314'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "udp"
main debug: creating access 'udp' path='@239.2.3.107:2314'
main debug: looking for access2 module: 6 candidates
access_udp debug: opening server=:0 local=239.2.3.107:2314
main debug: net: connecting to '[]:0@[239.2.3.107]:2314'
main debug: looking for network module: 1 candidate
ipv6 debug: 239.2.3.107: Host or service not found
main debug: using network module "ipv6"
main debug: removing module "ipv6"
main debug: looking for network module: 1 candidate
ipv4 debug: resolving 239.2.3.107:2314...
ipv4 debug: Winsock best interface is 2
ipv4 debug: using interface 0xfb33fea9
ipv4 debug: IP_ADD_MEMBERSHIP multicast request
main debug: using network module "ipv4"
main debug: removing module "ipv4"
main debug: using access2 module "access_udp"
main debug: pre buffering
access_udp debug: detected TS over raw UDP
main debug: creating demux: access='udp' demux='' path='@239.2.3.107:2314'
main debug: looking for demux2 module: 45 candidates
main debug: using demux2 module "ts"
main debug: looking for a subtitle file in C:\Program Files\VideoLAN\VLC\
ts debug: DEMUX_SET_GROUP 0 00000000
access_udp warning: unimplemented query in control
main debug: `udp://@239.2.3.107:2314' successfully opened
ts debug: pid[1002] unknown
ts debug: pid[1004] unknown
ts debug: pid[1001] unknown
ts debug: pid[1000] unknown
ts debug: PATCallBack called
ts debug: new PAT ts_id=0 version=15 current_next=1
ts debug: * number=1 pid=1000
ts debug: PMTCallBack called
ts debug: new PMT program number=1 version=25 pid_pcr=1001
ts debug: * es pid=1001 type=2 fcc=mpgv
main debug: selecting program id=1
main debug: looking for decoder module: 27 candidates
main debug: using decoder module "libmpeg2"
main debug: thread 3992 (decoder) created at priority 0 (input/decoder.c:159)
ts debug: * es pid=1002 type=3 fcc=mpga
main debug: looking for decoder module: 27 candidates
main debug: using decoder module "mpeg_audio"
main debug: thread 3980 (decoder) created at priority 2 (input/decoder.c:159)
ts debug: * es pid=1004 type=6 dr->i_tag=0x56
ts debug: * EBU Teletext descriptor
ts debug: * es pid=1004 type=6 fcc=telx
ts warning: first packet for pid=1001 cc=0x6
ts warning: first packet for pid=1004 cc=0x7
ts warning: first packet for pid=1002 cc=0x6
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: found device: Primary Sound Driver
aout_directx debug: found device: SigmaTel Audio
aout_directx debug: device supports 2 channels
aout_directx debug: device supports 1 channel
aout_directx debug: creating DirectSoundThread
main debug: thread 4340 (DirectSound Notification Thread) created at priority 15 (directx.c:372)
main debug: using audio output module "aout_directx"
aout_directx debug: DirectSoundThread ready
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
libmpeg2 debug: 720x576 (display 720,576), aspect 576000, sar 16:15, 25.000 fps
main debug: no usable vout present, spawning one
main debug: window size: 768x576
main debug: looking for video output module: 5 candidates
main debug: Registering subpicture channel, ID: 2
main debug: Registering subpicture channel, ID: 3
main debug: Registering subpicture channel, ID: 4
main debug: Registering subpicture channel, ID: 5
vout_directx debug: creating DirectXEventThread
vout_directx debug: DirectXCreateWindow
main debug: waiting for thread completion
vout_directx debug: created video sub-window
main debug: thread 4620 (DirectX Events Thread) created at priority 0 (directx.c:278)
vout_directx debug: DirectXEventThread running
vout_directx debug: DirectXInitDDraw
vout_directx debug: directx-device:
vout_directx debug: DirectXEnumCallback: Primary Display Driver, display
vout_directx debug: screen dimensions (0x0,1024x768)
vout_directx debug: DirectDraw Capabilities: overlay=0 yuvoverlay=0 can_deinterlace_overlay=0 colorkey=0 stretch=0 bltfourcc=0
vout_directx debug: End DirectXInitDDraw
vout_directx debug: DirectXCreateDisplay
vout_directx debug: DirectXCreateClipper
vout_directx debug: disabling screen saver
main debug: using video output module "vout_directx"
main debug: waiting for thread completion
vout_directx debug: NewPictureVec overlay:yes chroma:YV12
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:yes chroma:YV12
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:yes chroma:YUY2
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:no chroma:YV12
vout_directx debug: created plain surface of chroma:RV32
vout_directx debug: End NewPictureVec (succeeded)
main debug: got 1 direct buffer(s)
main debug: picture in 720x576 (0,0,720x576), chroma I420, ar 4:3, sar 16:15
main debug: picture user 720x576 (0,0,720x576), chroma I420, ar 4:3, sar 16:15
main debug: picture out 720x576 (0,0,720x576), chroma RV32, ar 4:3, sar 16:15
main debug: looking for chroma module: 9 candidates
main debug: using chroma module "i420_rgb_mmx"
main debug: indirect render, mapping render pictures 0-7 to system pictures 1-8
main debug: thread 4184 (video output) created at priority 1 (video_output/video_output.c:421)
main warning: dts != current_pts (-292777)
main warning: vout synchro warning: pts != current_date (-40000)
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg warning: low delay forcing is only available for mpeg1/2
(mjpeg@03AB06A0)
ffmpeg error: cannot open encoder

main error: no suitable encoder module for fourcc `jpeg'.
VLC probably does not support this image format.
main error: could not create snapshot C:\Program Files\DaSet2\Stream/vlcsnap-00004.jpg


main debug: decoded 107/108 pictures
main debug: control type=1
main debug: control type=1
main debug: control type=1
main debug: control type=1
ts debug: eof ?
main debug: EOF reached
main debug: control type=0
main debug: control: stopping input
main debug: closing input
ts debug: pid list:
ts debug: - pid[0] seen
ts debug: - pid[1000] seen
main debug: removing module "libmpeg2"
main debug: thread times: real 0m31.671875s, kernel 0m0.031250s, user 0m2.046875s
main debug: thread 3992 joined (input/decoder.c:191)
main debug: killing decoder fourcc `mpgv', 10 PES in FIFO
ts debug: - pid[1001] seen
main debug: removing module "mpeg_audio"
main debug: thread times: real 0m31.671875s, kernel 0m0.046875s, user 0m0.203125s
main debug: thread 3980 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 0m31.531250s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 4340 joined (directx.c:598)
main debug: removing module "aout_directx"
main debug: removing module "float32tos16"
main debug: removing module "trivial_mixer"
ts debug: - pid[1002] seen
main debug: Program doesn't contain anymore ES
ts debug: - pid[1004] seen
ts debug: - pid[8191] seen
main debug: removing module "ts"
main debug: removing module "access_udp"
main debug: thread times: real 0m32.093750s, kernel 0m0.468750s, user 0m0.312500s
main debug: thread 4684 joined (input/input.c:412)
main debug: garbage collector destroys 1 vout
main debug: removing module "i420_rgb_mmx"
vout_directx debug: DirectXCloseSurface
vout_directx debug: DirectXCloseDisplay
vout_directx debug: DirectXCloseDisplay clipper
vout_directx debug: DirectXCloseDisplay display
vout_directx debug: DirectXCloseDDraw
vout_directx debug: CloseVideo
vout_directx debug: DirectXEventThread terminating
vout_directx debug: DirectXCloseWindow
vout_directx debug: WinProc WM_DESTROY
main debug: thread times: real 0m31.578125s, kernel 0m0.015625s, user 0m-1.#IND00s
main debug: thread 4620 joined (directx.c:509)
main debug: removing module "vout_directx"
main debug: thread times: real 0m31.562500s, kernel 0m7.609375s, user 0m1.531250s
main debug: thread 4184 joined (video_output/video_output.c:461)


There is no problem to make a snapshot as png file
Have you got any suggestions?


RADO :-)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 21 Mar 2007 19:38

What if you try switching to png for the snapshot ?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

stefo
Blank Cone
Blank Cone
Posts: 20
Joined: 16 Nov 2006 14:54

Postby stefo » 22 Mar 2007 11:20

The size of png snapshot file is much higher than jpeg file.
That is the reason why i want to use JPEG format for snapshot.
I have no problem with snapshot (as jpeg file) when i play local file, rtsp stream or signal from capture device, only multicast stream.
If there is no solution (maybe this time), i will have to use PNG format.

RADO :-)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 22 Mar 2007 23:47

What VLC version are you using ? (the JPEG encoder error needs to be fixed if this is 0.8.6a ... else I'd suggest that you try upgrading)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

stefo
Blank Cone
Blank Cone
Posts: 20
Joined: 16 Nov 2006 14:54

Postby stefo » 23 Mar 2007 15:12

You were right.
The solution is the latest version (0.8.6.a) of VLC player.
Now, I can make a snapshot as a jpeg file.
Before, I used 0.8.6-test2a version.

Thank you for your help.

RADO :-)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 26 guests