Problem with --srt-file parameter - Comma in SRT filename

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
mathieumaes
Posts: 2
Joined: Sun May 02, 2010 1:13 pm

Problem with --srt-file parameter - Comma in SRT filename

Post by mathieumaes »

I think I may have found a bug, which is not mentioned on the forums. This is my log:

Code: Select all

C:\Program Files (x86)\Handbrake>HandBrakeCLI.exe -i "J:\Series\Terminator - The
 Sarah Connor chronicles\Season 2\2x06 - The Tower is Tall, But the Fall is Shor
t.avi" -o "J:\Series\Terminator - The Sarah Connor chronicles\Season 2\2x06 - Th
e Tower is Tall, But the Fall is Short.m4v" --preset="iPhone & iPod Touch" --srt
-file "J:\Series\Terminator - The Sarah Connor chronicles\Season 2\2x06 - The To
wer is Tall, But the Fall is Short.srt"
[14:22:24] hb_init: checking cpu count
[14:22:24] hb_init: starting libhb thread
HandBrake 0.9.4 (2009112300) - MinGW i386 - http://handbrake.fr
4 CPUs detected
Opening J:\Series\Terminator - The Sarah Connor chronicles\Season 2\2x06 - The T
ower is Tall, But the Fall is Short.avi...
[14:22:24] hb_scan: path=J:\Series\Terminator - The Sarah Connor chronicles\Seas
on 2\2x06 - The Tower is Tall, But the Fall is Short.avi, title_index=1
[14:22:24] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[14:22:24] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from 'J:\Series\Terminator - The Sarah Connor chronicles\Season 2
\2x06 - The Tower is Tall, But the Fall is Short.avi':
  Duration: 00:43:08.47, start: 0.000000, bitrate: 1136 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tbr,
23.98 tbn, 23.98 tbc
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
[14:22:24] scan: decoding previews for title 1
Scanning title 1...
[14:22:24] scan: 10 previews, 624x352, 23.976 fps, autocrop = 0/0/0/0, aspect 1.
77:1, PAR 1:1
[14:22:24] scan: title (0) job->width:624, job->height:352
[14:22:24] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + angle(s) 0
  + duration: 00:43:08
  + size: 624x352, pixel aspect: 1/1, display aspect: 1.77, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:43:08
  + audio tracks:
    + 1, Unknown (MP3) (iso639-2: und)
  + subtitle tracks:
+ Using preset: iPhone & iPod Touch[14:22:24] 1 job(s) to process
[14:22:24] starting job
[14:22:24] Width out of bounds, scaling down to 480
[14:22:24] New dimensions 480 * 272
[14:22:24] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[14:22:24] job configuration:
[14:22:24]  * source
[14:22:24]    + J:\Series\Terminator - The Sarah Connor chronicles\Season 2\2x06
 - The Tower is Tall, But the Fall is Short.avi
[14:22:24]    + title 1, chapter(s) 1 to 1
[14:22:24]    + container: avi
[14:22:24]    + data rate: 1136 kbps
[14:22:24]  * destination
[14:22:24]    + J:\Series\Terminator - The Sarah Connor chronicles\Season 2\2x06
 - The Tower is Tall, But the Fall is Short.m4v
[14:22:24]    + container: MPEG-4 (.mp4 and .m4v)
[14:22:24]      + chapter markers
[14:22:24]  * video track
[14:22:24]    + decoder: mpeg4
[14:22:24]    + frame rate: same as source (around 23.976 fps)
[14:22:24]    + dimensions: 624 * 352 -> 480 * 272, crop 0/0/0/0
[14:22:24]    + encoder: x264
[14:22:24]      + options: cabac=0:ref=2:me=umh:bframes=0:subme=6:8x8dct=0:trell
is=0
[14:22:24]      + quality: 20.00 (RF)
[14:22:24]  * subtitle track 0, Unknown (id ff) Text [SRT] -> Pass-Through
[14:22:24]  * subtitle track 0, Unknown (id 1ff) Text [SRT] -> Pass-Through
[14:22:24]  * audio track 0
[14:22:24]    + decoder: Unknown (MP3) (track 1, id 1)
[14:22:24]    + mixdown: Stereo
[14:22:24]    + encoder: faac
[14:22:24]      + bitrate: 128 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 4.1.3
[14:22:24] encx264: keyint-min: 24, keyint-max: 240
[14:22:24] encx264: Encoding at constant RF 20.000000
libdvdread: Encrypted DVD support unavailable.
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[14:22:24] dvd: not a dvd - trying as a stream/file instead
x264 [info]: profile Baseline, level 2.1
ERROR: Could not open the SRT subtitle file 'J:\Series\Terminator - The Sarah Co
nnor chronicles\Season 2\2x06 - The Tower is Tall'

ERROR: Failure to initialise thread 'SRT Subtitle Decoder'
[14:22:24] render: lost time: 0 (0 frames)
[14:22:24] render: gained time: 0 (0 frames) (0 not accounted for)
Encoding: task 1 of 1, 0.00 %[14:22:24] reader: done. 0 scr changes
[14:22:24] libhb: work result = 0

Rip done!
HandBrake has exited.

C:\Program Files (x86)\Handbrake>
The log speaks for itself, I'm trying to convert a video file which has a comma in the filename. It also has a subtitle (srt) file with the same name. It appears that the video file is found, but the CLI says it can't find the subtitle file. It doesn't show the complete filename though, just the part in front of the comma...
I renamed both files, removing the comma and the transcoding started successfully!
eddyg
Veteran User
Posts: 798
Joined: Mon Apr 23, 2007 3:34 am

Re: Problem with --srt-file parameter - Comma in SRT filenam

Post by eddyg »

Hi,

Interesting, and totally expected. The problem stems from the fact that HB uses the comma as a delimiter, in this case for multiple SRT filenames.

From the help:
--srt-file <string> SubRip SRT filename(s), separated by commas.
The easiest solution is for you to rename the filenames. However if it turns out to be a bigger issue we could allow escaping of the comma, or intelligent comma detection, ignoring commas unless preceded by a .srt suffix.

Cheers, Ed.
Post Reply