Opened 8 years ago

Last modified 8 years ago

#5555 new defect

avfilter_graph_parse_ptr fails on windows when using full path names

Reported by: ggarra13 Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

On Windows, using full path names to, say, ffplay results in parsing to fail and filter not inited. This is critical as using the api to create filters will also fail when using full paths.

How to reproduce:

Using zeranoe builds, for example:

% ffplay F:/movies/a/b/c/test.mov -vf subtitles=F:/movies/a/b/c/test.srt
ffmpeg git version N-79889-g9486de5
built on 2016-05-10

Change History (3)

comment:1 by ggarra13, 8 years ago

The errors are:

$ ffplay /F/code/applications/mrViewer/movie.mkv -vf subtitles="F:/code/applications/mrViewer/sub.srt"
ffplay version N-79889-g9486de5 Copyright (c) 2003-2016 the FFmpeg developers

built with gcc 5.3.0 (GCC)
configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avi

--enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblur
nable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libm

--enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --

-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-
ora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-li
ck --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-
-enable-decklink --enable-zlib

libavutil 55. 24.100 / 55. 24.100
libavcodec 57. 40.100 / 57. 40.100
libavformat 57. 36.100 / 57. 36.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 45.100 / 6. 45.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100

Input #0, matroska,webm, from 'f:/code/applications/mrViewer/movie.mkv':

Metadata:

encoder : libebml v1.3.3 + libmatroska v1.4.4
creation_time : 2016-03-22 04:52:51

Duration: 02:36:55.29, start: 0.000000, bitrate: 3743 kb/s

Chapter #0:0: start 0.000000, end 304.846000
Metadata:

title : 1

Chapter #0:1: start 304.846000, end 478.311000
Metadata:

title : 2

Chapter #0:2: start 478.311000, end 798.964000
Metadata:

title : 3

Chapter #0:3: start 798.964000, end 1270.685000
Metadata:

title : 4

Chapter #0:4: start 1270.685000, end 1701.657000
Metadata:

title : 5

Chapter #0:5: start 1701.657000, end 2227.766000
Metadata:

title : 6

Chapter #0:6: start 2227.766000, end 2640.345000
Metadata:

title : 7

Chapter #0:7: start 2640.345000, end 2894.974000
Metadata:

title : 8

Chapter #0:8: start 2894.974000, end 3102.264000
Metadata:

title : 9

Chapter #0:9: start 3102.264000, end 3411.031000
Metadata:

title : 10

Chapter #0:10: start 3411.031000, end 3590.752000
Metadata:

title : 11

Chapter #0:11: start 3590.752000, end 3811.764000
Metadata:

title : 12

Chapter #0:12: start 3811.764000, end 4312.431000
Metadata:

title : 13

Chapter #0:13: start 4312.431000, end 4596.131000
Metadata:

title : 14

Chapter #0:14: start 4596.131000, end 4882.375000
Metadata:

title : 15

Chapter #0:15: start 4882.375000, end 5311.137000
Metadata:

title : 16

Chapter #0:16: start 5311.137000, end 5849.967000
Metadata:

title : 17

Chapter #0:17: start 5849.967000, end 6524.641000
Metadata:

title : 18

Chapter #0:18: start 6524.641000, end 6788.780000
Metadata:

title : 19

Chapter #0:19: start 6788.780000, end 7145.928000
Metadata:

title : 20

Chapter #0:20: start 7145.928000, end 7376.700000
Metadata:

title : 21

Chapter #0:21: start 7376.700000, end 8145.260000
Metadata:

title : 22

Chapter #0:22: start 8145.260000, end 8571.019000
Metadata:

title : 23

Chapter #0:23: start 8571.019000, end 9415.292000
Metadata:

title : 24

Stream #0:0(eng): Video: h264 (High), yuv420p, 1916x792 [SAR 1:1 DAR 479:198], 23.98 fps, 23.98 tbr, 1k tbn (d

)

Metadata:

BPS : 3550235
BPS-eng : 3550235
DURATION : 02:36:55.281000000
DURATION-eng : 02:36:55.281000000
NUMBER_OF_FRAMES: 225741
NUMBER_OF_FRAMES-eng: 225741
NUMBER_OF_BYTES : 4178307806
NUMBER_OF_BYTES-eng: 4178307806
_STATISTICS_WRITING_APP: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_WRITING_DATE_UTC: 2016-03-22 04:52:51
_STATISTICS_WRITING_DATE_UTC-eng: 2016-03-22 04:52:51
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:

BPS : 192000
BPS-eng : 192000
DURATION : 02:36:21.312000000
DURATION-eng : 02:36:21.312000000
NUMBER_OF_FRAMES: 293166
NUMBER_OF_FRAMES-eng: 293166
NUMBER_OF_BYTES : 225151488
NUMBER_OF_BYTES-eng: 225151488
_STATISTICS_WRITING_APP: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_WRITING_DATE_UTC: 2016-03-22 04:52:51
_STATISTICS_WRITING_DATE_UTC-eng: 2016-03-22 04:52:51
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Stream #0:2(eng): Subtitle: subrip (default) (forced)
Metadata:

BPS : 3
BPS-eng : 3
DURATION : 02:35:51.103000000
DURATION-eng : 02:35:51.103000000
NUMBER_OF_FRAMES: 135
NUMBER_OF_FRAMES-eng: 135
NUMBER_OF_BYTES : 3650
NUMBER_OF_BYTES-eng: 3650
_STATISTICS_WRITING_APP: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_WRITING_DATE_UTC: 2016-03-22 04:52:51
_STATISTICS_WRITING_DATE_UTC-eng: 2016-03-22 04:52:51
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

[subtitles @ 00000000077da340] Unable to parse option value "/code/applications/mrViewer/sub.srt" as image size

Last message repeated 1 times

[subtitles @ 00000000077da340] Error setting option original_size to value /code/applications/mrViewer/sub.srt.
[Parsed_subtitles_0 @ 00000000077da260] Error applying options to the filter.
Error initializing filter 'subtitles' with args 'F:/code/applications/mrViewer/sub.srt'

nan A-V: nan fd= 0 aq= 1986KB vq=13381KB sq= 136B f=0/0

comment:2 by Carl Eugen Hoyos, 8 years ago

Priority: importantnormal

Do you think this is a regression?

comment:3 by ggarra13, 8 years ago

I don't think it is a regression. I believe it never worked, but it would not get triggered as most people don't use the API, but use ffplay with relative paths.

Note: See TracTickets for help on using tickets.