Change strange snapshot filename to useful/meaningful name

Feature requests for VLC.
dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 26 Jan 2007 23:40

Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Postby jbutler » 02 Feb 2007 17:20

We're very close, but there's still some kinda problem. Could it be the forward slash just before the filename?

Here's the error I get:

[00000433] main video output error: could not create snapshot C:\Documents and Settings\Jeremy\My Documents\My Pictures/00_02_49_4993163.png

Using

vlc-0.9.0-svn-20070202-0000-win32.exe

And this command line launch:

C:\Program Files\VideoLAN>"C:\Program Files\VideoLAN\VLC\vlc.exe" --snapshot-prefix $T_

Thanks!

P.S. I reloaded vlc-0.8.5-win32.exe just to see if I could still do snaps with it and I can.

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

Postby dionoea » 02 Feb 2007 22:44

hum, the slash shouldn't be a problem... weird. I'll try changing it to make sure (please try the build in 2 hours or something like that)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Postby jbutler » 02 Feb 2007 22:52

I'll try it later, but could it be related to the difference between starting it from the command line and starting it by double-clicking its icon?

I'm grasping at straws here...

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

Postby dionoea » 02 Feb 2007 23:07

Not really. (maybe you could paste more error log ... and increase error verbosity by using -vvv or changing it in the prefs)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Postby jbutler » 03 Feb 2007 15:46

I tried the latest version (vlc-0.9.0-svn-20070203-0415-win32.exe) and got the same error, but I used -vvv to get a more verbose error log.

Here's the whole thing, although I assume you just need the stuff at the bottom. To my uneducated eye, it looks like there's a problem with ffmpeg encoder.

-- error log --

[00000387] main decoder debug: looking for decoder module: 28 candidates
[00000387] main decoder debug: using decoder module "libmpeg2"
[00000387] main decoder debug: thread 4272 (decoder) created at priority 0 (inpu
t/decoder.c:172)
[00000339] dvdnav demuxer debug: buttonUpdate 1
[00000387] libmpeg2 decoder debug: 720x480 (display 720,480), aspect 576000, sar
8:9, 29.971 fps
[00000387] main decoder debug: no usable vout present, spawning one
[00000389] main decoder debug: looking for decoder module: 28 candidates
[00000338] main input debug: crop: 73,252,218,36, palette forced: 1
[00000389] main decoder debug: using decoder module "a52"
[00000389] main decoder debug: thread 4324 (decoder) created at priority 2 (inpu
t/decoder.c:172)
[00000389] a52 decoder: A/52 channels:2 samplerate:48000 bitrate:192000
[00000389] main decoder debug: no aout present, spawning one
[00000391] main audio output debug: looking for audio output module: 3 candidate
s
[00000388] main video output debug: window size: 720x540
[00000388] main video output debug: looking for video output module: 6 candidate
s
[00000391] aout_directx audio output debug: OpenAudio
[00000388] vout_directx video output debug: creating DirectXEventThread
[00000393] main private debug: waiting for thread completion
[00000388] vout_directx video output debug: DirectXCreateWindow
[00000388] vout_directx video output debug: created video sub-window
[00000393] main private debug: thread 4372 (DirectX Events Thread) created at pr
iority 0 (directx.c:279)
[00000388] vout_directx video output debug: DirectXEventThread running
[00000388] vout_directx video output debug: DirectXInitDDraw
[00000388] vout_directx video output debug: directx-device:
[00000388] vout_directx video output debug: DirectXEnumCallback: Primary Display
Driver, display
[00000388] vout_directx video output debug: DirectXEnumCallback: RADEON X600 256
MB HyperMemory, \\.\DISPLAY1
[00000388] vout_directx video output debug: selecting RADEON X600 256MB HyperMem
ory, \\.\DISPLAY1
[00000388] vout_directx video output debug: DirectXEnumCallback: RADEON X600 256
MB HyperMemory Secondary, \\.\DISPLAY2
[00000388] vout_directx video output debug: screen dimensions (0x0,1280x1024)
[00000388] vout_directx video output debug: DirectDraw Capabilities: overlay=1 y
uvoverlay=1 can_deinterlace_overlay=1 colorkey=1 stretch=1 bltfourcc=1
[00000388] vout_directx video output debug: End DirectXInitDDraw
[00000388] vout_directx video output debug: DirectXCreateDisplay
[00000388] vout_directx video output debug: DirectXCreateClipper
[00000388] vout_directx video output debug: disabling screen saver
[00000388] main video output debug: using video output module "vout_directx"
[00000388] main video output debug: waiting for thread completion
[00000388] vout_directx video output debug: NewPictureVec overlay:yes chroma:YV1
2
[00000388] vout_directx video output debug: YUV overlay created successfully
[00000388] vout_directx video output debug: End NewPictureVec (succeeded)
[00000388] main video output debug: got 1 direct buffer(s)
[00000388] main video output debug: picture in 720x480 (0,0,720x480), chroma I42
0, ar 4:3, sar 8:9
[00000388] main video output debug: picture user 720x480 (0,0,720x480), chroma I
420, ar 4:3, sar 8:9
[00000388] main video output debug: picture out 720x480 (0,0,720x480), chroma I4
20, ar 4:3, sar 8:9
[00000388] main video output debug: direct render, mapping render pictures 0-6 t
o system pictures 1-7
[00000388] main video output debug: thread 4520 (video output) created at priori
ty 1 (video_output/video_output.c:447)
[00000394] main private warning: dts != current_pts (88523)
[00000394] main private warning: backward_pts != current_pts (-33368)
[00000395] main private debug: looking for video blending module: 1 candidate
[00000395] blend private debug: chroma: YUVP -> I420
[00000395] main private debug: using video blending module "blend"
[00000391] aout_directx audio output debug: found device: Primary Sound Driver
[00000391] aout_directx audio output debug: found device: SigmaTel Audio
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 Multi
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 1/2
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 3/4
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 5/6
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 7/8
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 S/PDIF
[00000391] aout_directx audio output debug: device supports 2 channels
[00000391] aout_directx audio output debug: device supports 1 channel
[00000391] aout_directx audio output debug: creating DirectSoundThread
[00000397] main private debug: thread 4908 (DirectSound Notification Thread) cre
ated at priority 15 (directx.c:371)
[00000397] aout_directx private debug: DirectSoundThread ready
[00000391] main audio output debug: using audio output module "aout_directx"
[00000391] main audio output debug: output 's16l' 48000 Hz Stereo frame=1 sample
s/4 bytes
[00000391] main audio output debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples
/8 bytes
[00000391] main audio output debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz
Stereo->Stereo
[00000398] main private debug: looking for audio filter module: 23 candidates
[00000398] main private debug: using audio filter module "converter_float"
[00000391] main audio output debug: found a filter for the whole conversion
[00000391] main audio output debug: looking for audio mixer module: 3 candidates

[00000391] main audio output debug: using audio mixer module "trivial_mixer"
[00000391] main audio output debug: input 'a52 ' 48000 Hz Stereo frame=1536 samp
les/768 bytes
[00000391] main audio output debug: filter(s) 'a52 '->'fl32' 48000 Hz->48000 Hz
Stereo->Stereo
[00000428] main private debug: looking for audio filter module: 23 candidates
No accelerated IMDCT transform found
[00000428] main private debug: using audio filter module "a52tofloat32"
[00000391] main audio output debug: found a filter for the whole conversion
[00000391] main audio output debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz
Stereo->Stereo
[00000429] main private debug: looking for audio filter module: 23 candidates
[00000429] main private debug: using audio filter module "bandlimited_resampler"

[00000391] main audio output debug: found a filter for the whole conversion
[00000391] main audio output warning: PTS is out of range (429423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (397423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (365423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (333423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (301423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (269423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (237423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (205423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (173423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (141423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (109423), dropping buf
fer
[00000391] main audio output warning: PTS is out of range (77423), dropping buff
er
[00000391] main audio output warning: PTS is out of range (45423), dropping buff
er
[00000391] main audio output warning: PTS is out of range (13423), dropping buff
er
[00000391] main audio output warning: PTS is out of range (-18577), dropping buf
fer
[00000338] main input debug: crop: 73,252,218,36, palette forced: 1
[00000339] dvdnav demuxer debug: buttonUpdate 1
[00000339] dvdnav demuxer debug: DVDNAV_HOP_CHANNEL
[00000339] dvdnav demuxer debug: DVDNAV_CELL_CHANGE
[00000339] dvdnav demuxer debug: - cellN=3
[00000339] dvdnav demuxer debug: - pgN=1
[00000339] dvdnav demuxer debug: - cell_length=360000
[00000339] dvdnav demuxer debug: - pg_length=4317000
[00000339] dvdnav demuxer debug: - pgc_length=4317000
[00000339] dvdnav demuxer debug: - cell_start=3957000
[00000339] dvdnav demuxer debug: - pg_start=0
[00000339] dvdnav demuxer debug: DVDNAV_SPU_CLUT_CHANGE
[00000339] dvdnav demuxer debug: DVDNAV_SPU_STREAM_CHANGE
[00000339] dvdnav demuxer debug: - physical_wide=0
[00000339] dvdnav demuxer debug: - physical_letterbox=0
[00000339] dvdnav demuxer debug: - physical_pan_scan=0
[00000338] main input debug: crop: 73,252,218,36, palette forced: 1
[00000339] dvdnav demuxer debug: buttonUpdate 1
[00000342] main decoder debug: removing module "spudec"
[00000342] main decoder debug: thread times: real 0m2.968750s, kernel 0m0.000000
s, user 0m0.000000s
[00000342] main decoder debug: thread 4232 joined (input/decoder.c:204)
[00000342] main decoder debug: killing decoder fourcc `spu ', 0 PES in FIFO
[00000430] main decoder debug: looking for decoder module: 28 candidates
[00000430] main decoder debug: using decoder module "spudec"
[00000430] main decoder debug: thread 4232 (decoder) created at priority 0 (inpu
t/decoder.c:172)
[00000339] dvdnav demuxer debug: DVDNAV_AUDIO_STREAM_CHANGE
[00000339] dvdnav demuxer debug: - physical=0
[00000338] main input debug: crop: 42024,190,-41994,-190, palette forced: 1
[00000339] dvdnav demuxer debug: buttonUpdate 1
[00000394] main private warning: dts != current_pts (-310781)
[00000389] a52 decoder debug: emulated sync word (no sync on following frame)
[00000391] main audio output warning: computed PTS is out of range (66423), clea
ring out
[00000391] main audio output warning: PTS is out of range (66423), dropping buff
er
[00000391] main audio output warning: output PTS is out of range (102423), clear
ing out
[00000391] main audio output debug: audio output is starving (169734), playing s
ilence
[00000394] main private debug: decoded 110/112 pictures
[00000339] dvdnav demuxer debug: DVDNAV_NOP
[00000339] dvdnav demuxer debug: DVDNAV_VTS_CHANGE
[00000339] dvdnav demuxer debug: - vtsN=1
[00000339] dvdnav demuxer debug: - domain=2
[00000387] main decoder debug: removing module "libmpeg2"
[00000387] main decoder debug: thread times: real 0m7.140625s, kernel 0m0.015625
s, user 0m0.296875s
[00000387] main decoder debug: thread 4272 joined (input/decoder.c:204)
[00000387] main decoder debug: killing decoder fourcc `mpgv', 5 PES in FIFO
[00000430] main decoder debug: removing module "spudec"
[00000430] main decoder debug: thread times: real 0m4.328125s, kernel 0m0.000000
s, user 0m0.000000s
[00000430] main decoder debug: thread 4232 joined (input/decoder.c:204)
[00000430] main decoder debug: killing decoder fourcc `spu ', 0 PES in FIFO
[00000389] main decoder debug: removing module "a52"
[00000389] main decoder debug: thread times: real 0m7.125000s, kernel 0m0.218750
s, user 0m0.078125s
[00000389] main decoder debug: thread 4324 joined (input/decoder.c:204)
[00000389] main decoder debug: killing decoder fourcc `a52 ', 0 PES in FIFO
[00000428] main private debug: removing module "a52tofloat32"
[00000429] main private debug: removing module "bandlimited_resampler"
[00000391] aout_directx audio output debug: closing audio device
[00000397] aout_directx private debug: DirectSoundThread exiting
[00000397] main private debug: thread times: real 0m6.750000s, kernel 0m0.000000
s, user 0m0.000000s
[00000397] main private debug: thread 4908 joined (directx.c:597)
[00000391] main audio output debug: removing module "aout_directx"
[00000398] main private debug: removing module "converter_float"
[00000391] main audio output debug: removing module "trivial_mixer"
[00000338] main input debug: Program doesn't contain anymore ES
[00000339] dvdnav demuxer debug: DVDNAV_CELL_CHANGE
[00000339] dvdnav demuxer debug: - cellN=1
[00000339] dvdnav demuxer debug: - pgN=1
[00000339] dvdnav demuxer debug: - cell_length=5856000
[00000339] dvdnav demuxer debug: - pg_length=5856000
[00000339] dvdnav demuxer debug: - pgc_length=134676000
[00000339] dvdnav demuxer debug: - cell_start=0
[00000339] dvdnav demuxer debug: - pg_start=0
[00000339] dvdnav demuxer debug: DVDNAV_SPU_CLUT_CHANGE
[00000339] dvdnav demuxer debug: DVDNAV_SPU_STREAM_CHANGE
[00000339] dvdnav demuxer debug: - physical_wide=-1
[00000339] dvdnav demuxer debug: - physical_letterbox=-1
[00000339] dvdnav demuxer debug: - physical_pan_scan=-1
[00000339] dvdnav demuxer debug: buttonUpdate not done b=1 t=1
[00000339] dvdnav demuxer debug: DVDNAV_AUDIO_STREAM_CHANGE
[00000339] dvdnav demuxer debug: - physical=0
[00000339] dvdnav demuxer debug: buttonUpdate not done b=1 t=1
[00000431] main decoder debug: looking for decoder module: 28 candidates
[00000431] main decoder debug: using decoder module "libmpeg2"
[00000431] main decoder debug: thread 4920 (decoder) created at priority 0 (inpu
t/decoder.c:172)
[00000339] dvdnav demuxer debug: buttonUpdate not done b=1 t=1
[00000431] libmpeg2 decoder debug: 720x480 (display 720,480), aspect 576000, sar
8:9, 29.971 fps
[00000432] main private warning: dts != current_pts (-10633)
[00000432] main private warning: backward_pts != current_pts (-33367)
[00000433] main decoder debug: looking for decoder module: 28 candidates
[00000433] main decoder debug: using decoder module "a52"
[00000433] main decoder debug: thread 4832 (decoder) created at priority 2 (inpu
t/decoder.c:172)
[00000433] a52 decoder: A/52 channels:2 samplerate:48000 bitrate:192000
[00000391] main audio output debug: looking for audio output module: 3 candidate
s
[00000391] aout_directx audio output debug: OpenAudio
[00000391] aout_directx audio output debug: found device: Primary Sound Driver
[00000391] aout_directx audio output debug: found device: SigmaTel Audio
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 Multi
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 1/2
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 3/4
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 5/6
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 7/8
[00000391] aout_directx audio output debug: found device: M-Audio FW 410 S/PDIF
[00000391] aout_directx audio output debug: device supports 2 channels
[00000391] aout_directx audio output debug: device supports 1 channel
[00000391] aout_directx audio output debug: creating DirectSoundThread
[00000434] main private debug: thread 4388 (DirectSound Notification Thread) cre
ated at priority 15 (directx.c:371)
[00000434] aout_directx private debug: DirectSoundThread ready
[00000391] main audio output debug: using audio output module "aout_directx"
[00000391] main audio output debug: output 's16l' 48000 Hz Stereo frame=1 sample
s/4 bytes
[00000391] main audio output debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples
/8 bytes
[00000391] main audio output debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz
Stereo->Stereo
[00000435] main private debug: looking for audio filter module: 23 candidates
[00000435] main private debug: using audio filter module "converter_float"
[00000391] main audio output debug: found a filter for the whole conversion
[00000391] main audio output debug: looking for audio mixer module: 3 candidates

[00000391] main audio output debug: using audio mixer module "trivial_mixer"
[00000391] main audio output debug: input 'a52 ' 48000 Hz Stereo frame=1536 samp
les/768 bytes
[00000391] main audio output debug: filter(s) 'a52 '->'fl32' 48000 Hz->48000 Hz
Stereo->Stereo
[00000436] main private debug: looking for audio filter module: 23 candidates
No accelerated IMDCT transform found
[00000436] main private debug: using audio filter module "a52tofloat32"
[00000391] main audio output debug: found a filter for the whole conversion
[00000391] main audio output debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz
Stereo->Stereo
[00000437] main private debug: looking for audio filter module: 23 candidates
[00000437] main private debug: using audio filter module "bandlimited_resampler"

[00000391] main audio output debug: found a filter for the whole conversion
[00000391] main audio output warning: output date isn't PTS date, requesting resampling (51604)
[00000391] main audio output warning: buffer is 51604 late, triggering upsampling
[00000338] main input debug: control type=1
[00000438] main encoder debug: looking for encoder module: 10 candidates
[00000438] ffmpeg encoder debug: libavcodec initialized (interface 3349760 )
[00000438] ffmpeg encoder debug: found encoder PNG Image
[00000438] main encoder debug: using encoder module "ffmpeg"
[00000440] main private debug: looking for video filter2 module: 3 candidates
[00000440] main private debug: no video filter found
[00000388] main video output error: could not create snapshot C:\dv\00_00_08_5798665.png
[00000438] main encoder debug: removing module "ffmpeg"

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

Postby dionoea » 03 Feb 2007 20:55

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

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Postby jbutler » 04 Feb 2007 20:20

Similar error when saving as a JPEG:

[00000335] main interface debug: opening config file (C:\Documents and Settings\
Jeremy\Application Data\vlc\vlcrc)
[00000335] main interface debug: opening config file (C:\Documents and Settings\
Jeremy\Application Data\vlc\vlcrc)
[00000438] main encoder debug: looking for encoder module: 10 candidates
[00000438] ffmpeg encoder debug: libavcodec initialized (interface 3349760 )
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. Do not report crashes to FFmpeg developers.
[00000438] ffmpeg encoder debug: found encoder Motion JPEG Video
[00000438] main encoder debug: using encoder module "ffmpeg"
[00000440] main private debug: looking for video filter2 module: 3 candidates
[00000440] main private debug: no video filter found
[00000388] main video output error: could not create snapshot C:\dv\00_00_09_682
9451.jpg
[00000438] main encoder debug: removing module "ffmpeg"

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Re: Change strange snapshot filename to useful/meaningful name

Postby jbutler » 09 Jul 2007 03:05

It's been 6 months since I've had time to work on this issue. I'm happy to report that there's been some good progress!

This time around, I used

vlc-0.9.0-svn-20070708-0000-win32.exe

And for some mystical reason, the $T variable ("time") worked! I got filenames that were based on the timecode of the DVD. Excellent!

I tested this using the following prefix

Ep01_$T_

because I was capturing frames from the first episode of Leave It to Beaver (I'm doing some research on the sitcom genre). This resulted in the following filename, from 50 seconds into the DVD:

Ep01_00_00_50_842403.png

I've since checked the "Sequential numbering" option, too, which gives files such as:

Ep01_00_00_50_000001.png

I guess it's still a good idea to do the sequential numbering or have a timestamp in order to avoid duplicate filenames. But maybe there could be an option to remove both of them, and just have the $T variable?

Now, the only problem I have with VideoLAN is that choosing the JPG format totally crashes the app. (PNG works fine.) The error message is:

Error signature

AppName: vlc.exe AppVer: 0.9.0.0 ModName: libffmpeg_plugin.dll
ModVer: 0.0.0.0 Offset: 002e5fce

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

Re: Change strange snapshot filename to useful/meaningful name

Postby dionoea » 09 Jul 2007 12:21

I'll see if i can fix the jpeg saving issue ... can't make any promises though :)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Re: Change strange snapshot filename to useful/meaningful name

Postby jbutler » 09 Jul 2007 12:42

Cool.

Thank you for all the work you do.

--Jeremy

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Re: Change strange snapshot filename to useful/meaningful name

Postby jbutler » 20 Sep 2007 03:32

Just ran into a problem with special characters in the Mac OSX Intel version of VLC -- particularly, trunk-intel-20070818-0129.dmg (8/18 is the latest Mac build I can get to run; I haven't found any after that that will work on my system).

When I use the $T option, the part of the filename with time code in it has slashes where, in the Windows version, there are underscores. So, my previous example would look like this:

Ep01_00/00/50_000001.png

You can see the trouble this would cause on a Mac machine, or if I were to upload this file to a Linux box.

Mac does not permit colons in file names (much like Windows). Is Mac converting colons to slashes somehow? Or is VLC doing this?

Thanks for any assistance.

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Re: Change strange snapshot filename to useful/meaningful name

Postby jbutler » 11 Jul 2009 01:55

Version 1.0.0 seems to have broken the timecode variable: $T.

In the Mac OS X version, it tries to save the timecode with colons in it, which the OS converts to slashes in the file name. And in the Windows version, it just wigs out when you try to use $T. That is, it does not make a snapshot at all.

So, in Mac, if you set the prefix to, say,

Code: Select all

AMovieqq$Tqq
, with sequential numbers, it tries to create

AMovieqq00:03:01qq00003.jpg

but it winds up like

AMovieqq00/03/01qq00003.jpg

As I recall, this was pretty easy to fix previously.

Thanks!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Change strange snapshot filename to useful/meaningful name

Postby VLC_help » 11 Jul 2009 16:27


cypressor
New Cone
New Cone
Posts: 5
Joined: 14 Mar 2005 15:14

Re: Change strange snapshot filename to useful/meaningful name

Postby cypressor » 19 Jul 2009 11:23

I can confirm that taking snapshots on Windows XP using $T in snapshot prefix is no longer possible since version 1.0.0. The reported bug has been closed with "worksforme" though. Could you please reopen it? Thanks.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Change strange snapshot filename to useful/meaningful name

Postby VLC_help » 19 Jul 2009 18:12

Reopened with log message.

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Re: Change strange snapshot filename to useful/meaningful name

Postby jbutler » 19 Jul 2009 19:13

And just to reconfirm the situation on Mac OS X:

Something has changed in the captures from version 9.9 to 1.0.0. See the image below, containing a screenshot from Finder that shows three version 1.0.0 snapshots on top (e.g., Movieqq00/14/26qq00003.png) with slashes in the file names and three version 9.9 snapshots, from Oceans Eleven, with underscores in the file names.

When VLC displays the name of the snapshot that it is capturing, there are colons in the names, but OS X somehow converts them to slashes, which can be confusing. I'd lobby for only using underscores as they are acceptable in Linux, Windows and Mac OS X.

Thanks for checking on this.

Image

jbutler
Blank Cone
Blank Cone
Posts: 28
Joined: 18 Jan 2007 18:05
Location: Northport, Alabama, USA
Contact:

Re: Change strange snapshot filename to useful/meaningful name

Postby jbutler » 09 Aug 2009 21:42

When I try to go to

https://trac.videolan.org/vlc/ticket/2955

I get a 404 error. Is the ticket dead, or is the site having a problem?

Does anyone know if the file name issue was resolved in 1.01? I don't see any mention of it in the changelog:

http://wiki.videolan.org/Changelog/1.0.1

Thanks.

nikola23
Cone that earned his stripes
Cone that earned his stripes
Posts: 115
Joined: 03 Feb 2009 07:25
VLC version: 1.2 pre3
Operating System: Win7\Ubuntu 10.10

Re: Change strange snapshot filename to useful/meaningful name

Postby nikola23 » 10 Aug 2009 00:58

When I try to go to

https://trac.videolan.org/vlc/ticket/2955

I get a 404 error. Is the ticket dead, or is the site having a problem?

Does anyone know if the file name issue was resolved in 1.01? I don't see any mention of it in the changelog:

http://wiki.videolan.org/Changelog/1.0.1

Thanks.
Trac is down right now, and not everything is in the change log, only major changes.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Change strange snapshot filename to useful/meaningful name

Postby VLC_help » 10 Aug 2009 15:50

AFAIK it hasn't been fixed. (at least nobody has closed the ticket or mentioned this on mailing list)

Ashantyk
New Cone
New Cone
Posts: 2
Joined: 28 Jun 2010 16:12

Re: Change strange snapshot filename to useful/meaningful na

Postby Ashantyk » 16 Jan 2011 22:17

you can customize your snapshot output name by editing the prefix field in Settings - > Video (Simple mode)

for example for prefix "$N" (dollar simbol and a letter), and checking 'sequential naming'
your snapshop filename will be <filename>.<video_extension><number>.<png/jpg>, where <number> is a 5 digit number self-incrementig if already exists :)

hope this helps

i tried this on VLC 1.1.5 using the variables from here: http://wiki.videolan.org/Documentation: ... mat_String

Mc_Dio
New Cone
New Cone
Posts: 2
Joined: 19 Oct 2012 15:08

Re: Change strange snapshot filename to useful/meaningful na

Postby Mc_Dio » 19 Oct 2012 15:10

would be nice to just have the Filename in the name of the Snapshot - is this possible today ?

Mc_Dio
New Cone
New Cone
Posts: 2
Joined: 19 Oct 2012 15:08

Re: Change strange snapshot filename to useful/meaningful na

Postby Mc_Dio » 19 Oct 2012 15:17

Well look what i found:

How does it work? $N is a variable of VLC, and it stands for media name. In fact, there are more variables that you can try other than $N, like:

$a : artist
$b : album
$g : genre
$t : title
$u : url
$A : date
$B : audio bitrate (in kb/s)
$C : chapter (as in DVD chapter number)
$D : duration
$F : full name with path
$I : title (as in DVD title number)
$L : time left
$N : name (media name as seen in the VLC playlist)
$O : audio language
$P : position (in %)
$R : rate
$S : audio sample rate (in kHz)
$T : time code of the video
$U : publisher

http://www.o-learn.com/content/vlc-medi ... a-filename

VLmurphy
Blank Cone
Blank Cone
Posts: 13
Joined: 06 Jul 2012 02:43

Re: Change strange snapshot filename to useful/meaningful name

Postby VLmurphy » 10 Sep 2016 19:40

Unfortunately, the snapshot file naming is still messy in VLC 2.4.4 as of today.
  1. There's still no variable simply returning the actual file name, no matter what.
  2. $N and $t (apparently) provide exactly the same, often nonsensical media name.
  3. Unticking "sequential numbering" returns completely random time stamps like "8965-03-14-22h57m08s691",
    but not the current date and time stamp as documented in the VideoLAN Wiki (I'm using Win7 Pro SP1 btw),
    albeit %Y, %m, %d, %H, %M, %S are returning the correct values.
  4. $T returns a false string format (HH_MM_SS instead of HH-MM-SS). *
  5. Alas, the most comprehensible request suggested by the OP ten(!) years ago is still not implemented: frame numbers. **
    That would solve any problems regarding sensible and unique file names; "unique" as in "unique names for identical images".
* I understand this is due to ":" being a forbidden character in NTFS filenames, but you could use "." instead. However, "-" works on all platforms and is the most current string format for date and time strings ... as also used in automated time stamps already, see above. The correct format should read YYYY-mm-dd_HH-MM-SS instead of YYYY-mm-dd-HH-MM-SS though, separating date and time with an underscore for better readability.


** Since $f is unhappily occupied already by something not viable for file names (neither file name nor frame number but total decoded frame count, duh) I'd propose using $m and $M, as in fraMe:

$m = relative frame number within the same time code second (00-99)
$M = absolute frame number (00000000-35999999 = frame number of time code 99:59:59:99)

You could also use $k and $K as a reference to Keykode ^^


So then with <filename>_$T.$m you would get a perfect file name for snapshots, like Friends.S01E08.avi_00-23-57.19.png ...
(although I personally would prefer to omit the file name extension, but for the sake of uniqueness it should probably be left in.)


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 8 guests