Opened 12 years ago

Closed 4 years ago

#819 closed defect (fixed)

ffmpeg fails to read an image if the image filename contains an accent (win32)

Reported by: jemore Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: image2 win32
Cc: mail@tim-hauke.de Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When I want to convert a JPG file to a video, ffmpeg fail if the JPG filename contains an accent.
Plateform is Windows Vista (6.0.6002)
Command line :

xx:>dir
11/07/2009  11:15             7 536 Vidéo000-title.png

xx:>ffmpeg.exe -y -i Vidéo000-title.png -target pal-dvd -aspect 16/9 -loop 1 -r 25 -t 10 Vidéo000-title.mpg

ffmpeg version N-35966-g1d0ae92, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 19 2011 13:01:15 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 46. 1 / 53. 46. 1
  libavformat  53. 27. 0 / 53. 27. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Vidéo000-title.png: No such file or directory

Same result with double-quote escaping, or fullpath to the file. If I remove the accentued char it works.

ffplay can play this image.

Attachments (1)

ffmpeg-20111222-165120.log (1.2 KB ) - added by jemore 12 years ago.

Download all attachments as: .zip

Change History (13)

by jemore, 12 years ago

Attachment: ffmpeg-20111222-165120.log added

comment:1 by jemore, 12 years ago

I can convert video file containing accentued char, but the image decoder failed (for png and jpeg) if filename contains an accent.

comment:2 by Carl Eugen Hoyos, 12 years ago

Component: FFmpegavformat
Keywords: image2 added; accentued removed
Status: newopen
Version: unspecifiedgit-master

comment:3 by llogan, 12 years ago

Summary: ffmepg failed to convert a still image to video if the image filename is accentued (win32)ffmpeg failed to convert a still image to video if the image filename is accentued (win32)

comment:4 by compn, 12 years ago

probably a bug, but you could try the 8.3 filename
use dir /x for the 8.3 filenames.

comment:5 by Carl Eugen Hoyos, 12 years ago

Summary: ffmpeg failed to convert a still image to video if the image filename is accentued (win32)ffmpeg fails to read an image if the image filename contains an accent (win32)

comment:6 by Michael Niedermayer, 12 years ago

Keywords: win32 added

comment:7 by Michael Niedermayer, 12 years ago

Keywords: image2, win32 → image2 win32

comment:8 by Tim, 11 years ago

Cc: mail@tim-hauke.de added

comment:9 by Carl Eugen Hoyos, 8 years ago

This probably needs now -f image2 (or a pattern type) to reproduce.

comment:10 by Paul Kapustin, 8 years ago

8.3 filenames work, but not with images that have 4-letter extensions (like "jpeg").

comment:11 by Paul Kapustin, 8 years ago

Duplicate ticket #5256 includes stack trace, explanation of the cause and fix suggestion.

comment:12 by Marton Balint, 4 years ago

Resolution: fixed
Status: openclosed

This should be already fixed in 37787f261639c53998487400e874741c17e85fc6.

Note: See TracTickets for help on using tickets.