Opened 10 years ago
Last modified 10 years ago
#3747 open defect
ffmpeg overwrites files with non-ascii characters on Windows (cmd)
Reported by: | radpopl | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | win |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
My cmd file:
dir/b/s *.mts >mtslist.txt
for /F "delims=;" %%F in (mtslist.txt) do ffmpeg.exe -n -i "%%F" -c:v mpeg4 -qscale:v 4 -vtag xvid -vf scale=1280:-1 -flags +qpel -acodec libmp3lame -ab 320k "%%~dF%%~pF%%~nF.avi"
Cmd window:
C:\Users\Właściciel\Documents\2014\_test>dir/b/s *.mts 1>mtslist.txt
C:\Users\Właściciel\Documents\2014\_test>for /F "delims=;" %F in (mtslist.txt) d
o ffmpeg.exe -n -i "%F" -c:v mpeg4 -qscale:v 4 -vtag xvid -vf scale=1280:-1 -fla
gs +qpel -acodec libmp3lame -ab 320k "%~dF%~pF%~nF.avi"
C:\Users\Właściciel\Documents\2014\_test>ffmpeg.exe -n -i "C:\Users\Właściciel\Documents\2014\_test\2014_06_14 15_39_44.mts" -c:v mpeg4 -qscale:v 4 -vtag xvid -vf scale=1280:-1 -flags +qpel -acodec libmp3lame -ab 320k "C:\Users\Właściciel\Documents\2014\_test\2014_06_14 15_39_44.avi"
The problem is a national character - when I copy dir _test to the root of the C - problem disapear and option -n work properly.
Change History (4)
comment:1 by , 10 years ago
Summary: | ffmpeg ignores -n option under cmd.exe → ffmpeg ignores -n when folder has a national char |
---|
comment:2 by , 10 years ago
comment:3 by , 10 years ago
Reproduced by developer: | set |
---|---|
Status: | new → open |
Summary: | ffmpeg ignores -n when folder has a national char → ffmpeg overwrites files with non-ascii characters on Windows (cmd) |
Version: | 2.0.4 → git-master |
Running the following command several times overwrites the output file each time, this does not happen for an output file name like "out.png"
$ ffmpeg -i tests\lena.pnm äöü.png ffmpeg version N-64278-g4d1fa38 Copyright (c) 2000-2014 the FFmpeg developers built on Jun 28 2014 00:47:07 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-pthreads libavutil 52. 90.101 / 52. 90.101 libavcodec 55. 68.100 / 55. 68.100 libavformat 55. 44.100 / 55. 44.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 9.100 / 4. 9.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, image2, from 'tests\lena.pnm': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: ppm, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc [image2 @ 03097b00] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, image2, to '├ñ├Â├╝.png': Metadata: encoder : Lavf55.44.100 Stream #0:0: Video: png, rgb24, 256x256, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc55.68.100 png Stream mapping: Stream #0:0 -> #0:0 (ppm (native) -> png (native)) Press [q] to stop, [?] for help frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A video:177kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
comment:4 by , 10 years ago
Keywords: | win added |
---|
Instead of a script, please provide the actual command line that does not behave as expected together with the complete, uncut console output and please test current FFmpeg git head to make this a valid ticket.