Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5896 closed defect (worksforme)

Single quote in file name causes subtitle extract to fail

Reported by: Reed97123 Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: Files with a single quote "'" can't be used when extracting subtitles syntax (movie="file's.ts"[out+subcc]).

I've tried:

  • Single quote syntax in the first example.
    • movie='file'\s.ts'[out+subcc]
  • Double quote around the whole name in the second example.
    • movie="file's.ts"[out+subcc]
  • Escaping the single quote in the last example.
    • movie=file\'s.ts[out+subcc]
  • Various other combinations I'm not listing out here.

Notice in the error output:

  • First: ffmpeg refers to "files.ts" (incorrect name) twice.
  • Second: ffmpeg refers to "file's.ts" (correct name) in the final line of the error output.
    [Parsed_movie_0 @ 0x3d85ea0] Failed to avformat_open_input 'files.ts[out+subcc]'
    [lavfi @ 0x3d845c0] Error initializing filter 'movie' with args 'files.ts[out+subcc]'
    movie=file's.ts[out+subcc]: No such file or directory
    

How to reproduce (Example 1):

root@NAS:~/bin/test_ffmpeg/bug_report# ffmpeg -f lavfi -i movie="file's.ts"[out+subcc] -map 0:1 test.srt
ffmpeg version N-81950-g7ba7b96 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 61.100 / 57. 61.100
  libavformat    57. 51.103 / 57. 51.103
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
[Parsed_movie_0 @ 0x24c7ea0] Failed to avformat_open_input 'files.ts[out+subcc]'
[lavfi @ 0x24c65c0] Error initializing filter 'movie' with args 'files.ts[out+subcc]'
movie=file's.ts[out+subcc]: No such file or directory
root@NAS:~/bin/test_ffmpeg/bug_report# ffmpeg -f lavfi -i 

How to reproduce (Example 2):

movie='file'\''s.ts'[out+subcc] -map 0:1 test.srt
ffmpeg version N-81950-g7ba7b96 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 61.100 / 57. 61.100
  libavformat    57. 51.103 / 57. 51.103
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
[Parsed_movie_0 @ 0x309aea0] Failed to avformat_open_input 'files.ts[out+subcc]'
[lavfi @ 0x30995c0] Error initializing filter 'movie' with args 'files.ts[out+subcc]'
movie=file's.ts[out+subcc]: No such file or directory

How to reproduce (Example 3):

root@NAS:~/bin/test_ffmpeg/bug_report# ffmpeg -f lavfi -i movie=file\'s.ts[out+subcc] -map 0:1 test.srt
ffmpeg version N-81950-g7ba7b96 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 61.100 / 57. 61.100
  libavformat    57. 51.103 / 57. 51.103
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
[Parsed_movie_0 @ 0x3d85ea0] Failed to avformat_open_input 'files.ts[out+subcc]'
[lavfi @ 0x3d845c0] Error initializing filter 'movie' with args 'files.ts[out+subcc]'
movie=file's.ts[out+subcc]: No such file or directory

ffmpeg version

Built on:
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

built on date: 10.9.2016 exactly following the instructions from ffmpeg's Ubuntu compiling guide:
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
ffmpeg version N-81950-g7ba7b96

File Information:

root@NAS:~/bin/test_ffmpeg/bug_report# ffmpeg -v 9 -loglevel 99 -i 'file'\''s.ts'
ffmpeg version N-81950-g7ba7b96 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 61.100 / 57. 61.100
  libavformat    57. 51.103 / 57. 51.103
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input file with argument 'file's.ts'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file file's.ts.
Successfully parsed a group of options.
Opening an input file: file's.ts.
[file @ 0x2f21e20] Setting default whitelist 'file,crypto'
Probing mp3 score:1 size:2048
Probing mpegts score:50 size:2048
[mpegts @ 0x2f21520] Format mpegts probed with size=2048 and score=50
score: 44, dvhs_score: -2, fec_score: -2
[mpegts @ 0x2f21520] Filter: pid=0x11 type=1
[mpegts @ 0x2f21520] Filter: pid=0x0 type=1
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] sid=0x3 pid=0x30
[mpegts @ 0x2f21520] new_program: id=0x0003
[mpegts @ 0x2f21520] Filter: pid=0x30 type=1
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] sid=0x3 sec_num=0/0 version=1 tid=2
[mpegts @ 0x2f21520] pcr_pid=0x31
[mpegts @ 0x2f21520] program tag: 0x05 len=4
[mpegts @ 0x2f21520] program tag: 0x87 len=18
[mpegts @ 0x2f21520] Filter: pid=0x31 type=0
[mpegts @ 0x2f21520] stream=0 stream_type=2 pid=31 prog_reg_desc=GA94
[mpegts @ 0x2f21520] tag: 0x11 len=1
[mpegts @ 0x2f21520] tag: 0x10 len=6
[mpegts @ 0x2f21520] tag: 0x06 len=1
[mpegts @ 0x2f21520] tag: 0x86 len=13
[mpegts @ 0x2f21520] Filter: pid=0x34 type=0
[mpegts @ 0x2f21520] stream=1 stream_type=81 pid=34 prog_reg_desc=GA94
[mpegts @ 0x2f21520] tag: 0x05 len=4
[mpegts @ 0x2f21520] reg_desc=AC-3
[mpegts @ 0x2f21520] tag: 0x81 len=10
[mpegts @ 0x2f21520] tag: 0x0a len=4
[mpegts @ 0x2f21520] Filter: pid=0x35 type=0
[mpegts @ 0x2f21520] stream=2 stream_type=81 pid=35 prog_reg_desc=GA94
[mpegts @ 0x2f21520] tag: 0x05 len=4
[mpegts @ 0x2f21520] reg_desc=AC-3
[mpegts @ 0x2f21520] tag: 0x81 len=10
[mpegts @ 0x2f21520] tag: 0x0a len=4
[mpegts @ 0x2f21520] tuning done
[mpegts @ 0x2f21520] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:3
[mpegts @ 0x2f21520] Skipping after seek
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] sid=0x3 pid=0x30
[mpegts @ 0x2f21520] new_program: id=0x0003
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] sid=0x3 sec_num=0/0 version=1 tid=2
[mpegts @ 0x2f21520] pcr_pid=0x31
[mpegts @ 0x2f21520] program tag: 0x05 len=4
[mpegts @ 0x2f21520] program tag: 0x87 len=18
[mpegts @ 0x2f21520] tag: 0x11 len=1
[mpegts @ 0x2f21520] tag: 0x10 len=6
[mpegts @ 0x2f21520] tag: 0x06 len=1
[mpegts @ 0x2f21520] tag: 0x86 len=13
[mpegts @ 0x2f21520] tag: 0x05 len=4
[mpegts @ 0x2f21520] reg_desc=AC-3
[mpegts @ 0x2f21520] tag: 0x81 len=10
[mpegts @ 0x2f21520] tag: 0x0a len=4
[mpegts @ 0x2f21520] tag: 0x05 len=4
[mpegts @ 0x2f21520] reg_desc=AC-3
[mpegts @ 0x2f21520] tag: 0x81 len=10
[mpegts @ 0x2f21520] tag: 0x0a len=4
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] Continuity check failed for pid 49 expected 12 got 0
[mpegts @ 0x2f21520] Continuity check failed for pid 49 expected 3 got 6
[mpegts @ 0x2f21520] Continuity check failed for pid 49 expected 7 got 8
[mpegts @ 0x2f21520] Continuity check failed for pid 49 expected 11 got 13
[mpegts @ 0x2f21520] Continuity check failed for pid 49 expected 15 got 0
[mpegts @ 0x2f21520] Continuity check failed for pid 49 expected 1 got 12
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid frame dimensions 0x0.
[mpegts @ 0x2f21520] Continuity check failed for pid 53 expected 13 got 8
[mpegts @ 0x2f21520] Continuity check failed for pid 52 expected 15 got 4
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpeg2video @ 0x2f25fe0] Invalid mb type in I-frame at 1 18
[mpeg2video @ 0x2f25fe0] Invalid mb type in I-frame at 2 35
[mpeg2video @ 0x2f25fe0] Invalid mb type in I-frame at 0 36
[mpeg2video @ 0x2f25fe0] Invalid mb type in I-frame at 2 37
[mpeg2video @ 0x2f25fe0] Invalid mb type in I-frame at 0 38
[mpeg2video @ 0x2f25fe0] Invalid mb type in I-frame at 1 39
[mpeg2video @ 0x2f25fe0] skipped MB in I-frame at 2 40
[mpeg2video @ 0x2f25fe0] Invalid mb type in I-frame at 0 41
[mpeg2video @ 0x2f25fe0] Invalid mb type in I-frame at 4 42
[mpeg2video @ 0x2f25fe0] ac-tex damaged at 4 43
[mpeg2video @ 0x2f25fe0] Invalid mb type in I-frame at 0 44
[mpeg2video @ 0x2f25fe0] Warning MVs not available
[mpeg2video @ 0x2f25fe0] concealing 2208 DC, 2208 AC, 2208 MV errors in I frame
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 4 times
[mpegts @ 0x2f21520] PES packet size mismatch
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] PES packet size mismatch
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 5 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 5 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 7 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 4 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 5 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] PAT:
    Last message repeated 1 times
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 4 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 4 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 6 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 4 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 4 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 5 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 4 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 5 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 4 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 5 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 8 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 7 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 4 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 3 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 3 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 6 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 2 times
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] Probe buffer size limit of 5000000 bytes reached
[mpegts @ 0x2f21520] rfps: 60.000000 0.004012
    Last message repeated 1 times
[mpegts @ 0x2f21520] rfps: 120.000000 0.016048
[mpegts @ 0x2f21520] rfps: 59.940060 0.000000
    Last message repeated 1 times
[mpegts @ 0x2f21520] Skipping after seek
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=31 pes_code=0x1e0
    Last message repeated 1 times
[mpegts @ 0x2f21520] PMT: len 134
[mpegts @ 0x2f21520] sid=0x3 sec_num=0/0 version=1 tid=2
[mpegts @ 0x2f21520] pcr_pid=0x31
[mpegts @ 0x2f21520] program tag: 0x05 len=4
[mpegts @ 0x2f21520] program tag: 0x87 len=18
[mpegts @ 0x2f21520] tag: 0x11 len=1
[mpegts @ 0x2f21520] tag: 0x10 len=6
[mpegts @ 0x2f21520] tag: 0x06 len=1
[mpegts @ 0x2f21520] tag: 0x86 len=13
[mpegts @ 0x2f21520] tag: 0x05 len=4
[mpegts @ 0x2f21520] reg_desc=AC-3
[mpegts @ 0x2f21520] tag: 0x81 len=10
[mpegts @ 0x2f21520] tag: 0x0a len=4
[mpegts @ 0x2f21520] tag: 0x05 len=4
[mpegts @ 0x2f21520] reg_desc=AC-3
[mpegts @ 0x2f21520] tag: 0x81 len=10
[mpegts @ 0x2f21520] tag: 0x0a len=4
[mpegts @ 0x2f21520] pid=35 pes_code=0x1bd
[mpegts @ 0x2f21520] PAT:
[mpegts @ 0x2f21520] pid=34 pes_code=0x1bd
[mpegts @ 0x2f21520] PES packet size mismatch
    Last message repeated 1 times
[mpegts @ 0x2f21520] stream 0: start_time: 78407.695 duration: 16.483
[mpegts @ 0x2f21520] stream 1: start_time: 78407.212 duration: 16.512
[mpegts @ 0x2f21520] stream 2: start_time: 78407.386 duration: 16.352
[mpegts @ 0x2f21520] format: start_time: 78407.212 duration: 16.966 bitrate=10511 kb/s
[mpegts @ 0x2f21520] After avformat_find_stream_info() pos: 0 bytes read:5460112 seeks:2 frames:433
Input #0, mpegts, from 'file's.ts':
  Duration: 00:00:16.97, start: 78407.212344, bitrate: 10511 kb/s
  Program 3
    Stream #0:0[0x31], 215, 1/90000: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, left), 1280x720 [SAR 1:1 DAR 16:9], 0/1, Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x34](eng), 109, 1/90000: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:2[0x35](spa), 109, 1/90000: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x2f2a0c0] Statistics: 5460112 bytes read, 2 seeks

Change History (4)

comment:1 Changed 2 years ago by Reed97123

I inadvertently swapped the order of my examples and descriptions (above) and it looks like it mangled some of my quotes in the description, but the example blocks are still 100% valid.

comment:2 Changed 2 years ago by cehoyos

  • Resolution set to worksforme
  • Status changed from new to closed
$ ffmpeg -f lavfi -i "movie=file\\\\\'.ts"
ffmpeg version N-82041-gd5082a2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 63.103 / 57. 63.103
  libavformat    57. 52.100 / 57. 52.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 64.100 /  6. 64.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, lavfi, from 'movie=file\\\'.ts':
  Duration: N/A, start: 1.440000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 90k tbc
At least one output file must be specified

comment:3 Changed 2 years ago by Reed97123

Thank you for the correct syntax.

The only documentation I had found was here: https://ffmpeg.org/ffmpeg-utils.html#Quoting-and-escaping

Which either doesn't cover this case or is incorrect. Could you direct me to the documentation that covers this or explain how the 5 backslashes are solving the issue? Thanks!

Last edited 2 years ago by Reed97123 (previous) (diff)

comment:4 Changed 2 years ago by cehoyos

I cannot answer your question but please feel free to send a patch improving the documentation - made with git format-patch to the development mailing list.

Note: See TracTickets for help on using tickets.