[FFmpeg-trac] #4483(ffmpeg:new): -segment_format not works with some filenames

FFmpeg trac at avcodec.org
Mon Apr 13 11:57:08 CEST 2015


#4483: -segment_format not works with some filenames
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:  defect
  q345t7n3o67ym23oy8939t             |                 Priority:  normal
               Status:  new          |                  Version:
            Component:  ffmpeg       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 When segmenting the stream using the module "segment" when explicitly
 specify format of segments the file name affects the ffmpeg. Specifies the
 format of the segments use the option "-segment_format wav".
 When the filename ends in ".ts" ffmpeg works, and when the file name ends
 in ".qweasd" - does not work.

 Text of error: Output file #0 does not contain any stream

 How to reproduce (on windows 8.1 x64):
 Does not work:
 {{{
 % "ffmpeg" "-loglevel" "debug" "-t" "50" "-f" "lavfi" "-i"
 "aevalsrc=sin(400*2*PI*t)" "-ar" "8000" "-f" "segment" "-codec"
 "pcm_s16le" "-segment_format" "wav" "-segment_list" "%Temp%\list.qweasd"
 "-segment_list_size" "0" "-segment_list_type" "csv" "-segment_time" "5"
 "-segment_start_number" "0" "-reset_timestamps" "1" "%Temp%\part
 %d.qweasd" 2>"ffmpeg segment qweasd.log"
 }}}
 Does work:
 {{{
 % "ffmpeg" "-loglevel" "debug" "-t" "50" "-f" "lavfi" "-i"
 "aevalsrc=sin(400*2*PI*t)" "-ar" "8000" "-f" "segment" "-codec"
 "pcm_s16le" "-segment_format" "wav" "-segment_list" "%Temp%\list.qweasd"
 "-segment_list_size" "0" "-segment_list_type" "csv" "-segment_time" "5"
 "-segment_start_number" "0" "-reset_timestamps" "1" "%Temp%\part %d.ts"
 2>"ffmpeg segment ts.log"
 }}}
 ffmpeg downloaded from http://ffmpeg.zeranoe.com/builds/ 2015-04-13.
 {{{
 ffmpeg version N-71418-g818e889 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.9.2 (GCC)
 }}}
 Log with error:
 {{{
 ffmpeg version N-71418-g818e889 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype
 --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
 libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs
 --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
   libavutil      54. 22.101 / 54. 22.101
   libavcodec     56. 34.100 / 56. 34.100
   libavformat    56. 30.100 / 56. 30.100
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 14.100 /  5. 14.100
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Splitting the commandline.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument 'debug'.
 Reading option '-t' ... matched as option 't' (record or transcode
 "duration" seconds of audio/video) with argument '50'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'lavfi'.
 Reading option '-i' ... matched as input file with argument
 'aevalsrc=sin(400*2*PI*t)'.
 Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
 (in Hz)) with argument '8000'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'segment'.
 Reading option '-codec' ... matched as option 'codec' (codec name) with
 argument 'pcm_s16le'.
 Reading option '-segment_format' ... matched as AVOption 'segment_format'
 with argument 'wav'.
 Reading option '-segment_list' ... matched as AVOption 'segment_list' with
 argument 'C:\Users\User\AppData\Local\Temp\list.qweasd'.
 Reading option '-segment_list_size' ... matched as AVOption
 'segment_list_size' with argument '0'.
 Reading option '-segment_list_type' ... matched as AVOption
 'segment_list_type' with argument 'csv'.
 Reading option '-segment_time' ... matched as AVOption 'segment_time' with
 argument '5'.
 Reading option '-segment_start_number' ... matched as AVOption
 'segment_start_number' with argument '0'.
 Reading option '-reset_timestamps' ... matched as AVOption
 'reset_timestamps' with argument '1'.
 Reading option 'C:\Users\User\AppData\Local\Temp\part %d.qweasd' ...
 matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option loglevel (set logging level) with argument debug.
 Successfully parsed a group of options.
 Parsing a group of options: input file aevalsrc=sin(400*2*PI*t).
 Applying option t (record or transcode "duration" seconds of audio/video)
 with argument 50.
 Applying option f (force format) with argument lavfi.
 Successfully parsed a group of options.
 Opening an input file: aevalsrc=sin(400*2*PI*t).
 detected 4 logical cores
 [Parsed_aevalsrc_0 @ 00000000044eda40] compat: called with
 args=[sin(400*2*PI*t)]
 [Parsed_aevalsrc_0 @ 00000000044eda40] Setting 'exprs' to value
 'sin(400*2*PI*t)'
 [out @ 00000000044ee420] auto-inserting filter 'auto-inserted resampler 0'
 between the filter 'Parsed_aevalsrc_0' and the filter 'out'
 [AVFilterGraph @ 00000000044eb640] query_formats: 2 queried, 0 merged, 3
 already done, 0 delayed
 [Parsed_aevalsrc_0 @ 00000000044eda40] sample_rate:44100 chlayout:mono
 duration:-1
 [auto-inserted resampler 0 @ 000000000450d4c0] [SWR @ 0000000000357ae0]
 Using double precision mode
 [auto-inserted resampler 0 @ 000000000450d4c0] ch:1 chl:mono fmt:dblp
 r:44100Hz -> ch:1 chl:mono fmt:dbl r:44100Hz
 [lavfi @ 00000000044ebd20] All info found
 Input #0, lavfi, from 'aevalsrc=sin(400*2*PI*t)':
   Duration: N/A, start: 0.000000, bitrate: 2822 kb/s
     Stream #0:0, 1, 1/44100: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822
 kb/s
 Successfully opened the file.
 Parsing a group of options: output file
 C:\Users\User\AppData\Local\Temp\part %d.qweasd.
 Applying option ar (set audio sampling rate (in Hz)) with argument 8000.
 Applying option f (force format) with argument segment.
 Applying option codec (codec name) with argument pcm_s16le.
 Successfully parsed a group of options.
 Opening an output file: C:\Users\User\AppData\Local\Temp\part %d.qweasd.
 Successfully opened the file.
 Output #0, segment, to 'C:\Users\User\AppData\Local\Temp\part %d.qweasd':
 Output file #0 does not contain any stream
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4483>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list