Opened 5 years ago

Closed 5 years ago

#4204 closed task (invalid)

Stream specifier

Reported by: byelik 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:
I'm trying to join the video files with different streams count

Here is my code:

target_width=720
target_height=480
target_aspect_ratio=$target_width/$target_height

./ffmpeg -y -i mp4.mp4 -i ogv.ogv -i ogv2.ogv -vcodec ppm -filter_complex "[0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=1:unsafe=1 [v] [a]" -s '1280x1080' -b:v '512K' -b:a '128K' -strict -2 -c:v libx264 -preset ultrafast -map [v] -map [a] -r 30 outtmp.mp4
./ffmpeg -i outtmp.mp4 -s $target_width'x'$target_height -vf "scale=iw*sar:ih , pad=max(iw\,ih*($target_aspect_ratio)):ow/($target_aspect_ratio):(ow-iw)/2:(oh-ih)/2" -aspect $target_width':'$target_height -strict -2 777.mp4
rm -f outtmp.mp4

In console i get the following error:

Stream specifier ':1' in filtergraph description [0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=1:unsafe=1 [v] [a] matches no streams.

How can I detect that video file does not have stream?

Attachments (3)

mp4.mp4 (798.1 KB) - added by byelik 5 years ago.
ogv.ogv (96.9 KB) - added by byelik 5 years ago.
ogv2.ogv (96.9 KB) - added by byelik 5 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 5 years ago by llogan

You need to include an unscripted command and the complete console output. Then we can attempt to duplicate the issue and determine if this is a bug or not.

Please use code block to format your command and output:
https://trac.ffmpeg.org/wiki/WikiFormatting#PreformattedText

Changed 5 years ago by byelik

Changed 5 years ago by byelik

Changed 5 years ago by byelik

comment:2 Changed 5 years ago by byelik

Here is code of bash file

target_width=720
target_height=480
target_aspect_ratio=$target_width/$target_height

./ffmpeg -y -i mp4.mp4 -i ogv.ogv -i ogv2.ogv -vcodec ppm -filter_complex "[0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=1:unsafe=1 [v] [a]" -s '1280x1080' -b:v '512K' -b:a '128K' -strict -2 -c:v libx264 -preset ultrafast -map [v] -map [a] -r 30 outtmp.mp4
./ffmpeg -i outtmp.mp4 -s $target_width'x'$target_height -vf "scale=iw*sar:ih , pad=max(iw\,ih*($target_aspect_ratio)):ow/($target_aspect_ratio):(ow-iw)/2:(oh-ih)/2" -aspect $target_width':'$target_height -strict -2 777.mp4
rm -f outtmp.mp4

Console output

iMac-Vladimir:BYELIK BYELIK$ ./test.sh
ffmpeg version 2.4.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov  4 2014 11:01:51 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mp4.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.4.101
  Duration: 00:00:18.20, start: 0.000000, bitrate: 359 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 355 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
Input #1, ogg, from 'ogv.ogv':
  Duration: 00:00:02.55, start: 0.000000, bitrate: 310 kb/s
    Stream #1:0(und): Video: theora, yuv420p, 640x480 [SAR 4:3 DAR 16:9], 30 fps, 30 tbr, 30 tbn, 30 tbc
    Metadata:
      CREATION_TIME   : 2014-12-04 08:57:02
      LANGUAGE        : und
      HANDLER_NAME    : Core Media Data Handler
      ENCODER         : Lavc56.1.100 libtheora
      MAJOR_BRAND     : qt  
      MINOR_VERSION   : 0
      COMPATIBLE_BRANDS: qt  
    Stream #1:1(und): Audio: vorbis, 44100 Hz, stereo, fltp, 112 kb/s
    Metadata:
      CREATION_TIME   : 2014-12-04 08:57:02
      LANGUAGE        : und
      HANDLER_NAME    : Core Media Data Handler
      ENCODER         : Lavc56.1.100 libvorbis
      MAJOR_BRAND     : qt  
      MINOR_VERSION   : 0
      COMPATIBLE_BRANDS: qt  
Input #2, ogg, from 'ogv2.ogv':
  Duration: 00:00:02.55, start: 0.000000, bitrate: 310 kb/s
    Stream #2:0(und): Video: theora, yuv420p, 640x480 [SAR 4:3 DAR 16:9], 30 fps, 30 tbr, 30 tbn, 30 tbc
    Metadata:
      CREATION_TIME   : 2014-12-04 08:57:02
      LANGUAGE        : und
      HANDLER_NAME    : Core Media Data Handler
      ENCODER         : Lavc56.1.100 libtheora
      MAJOR_BRAND     : qt  
      MINOR_VERSION   : 0
      COMPATIBLE_BRANDS: qt  
    Stream #2:1(und): Audio: vorbis, 44100 Hz, stereo, fltp, 112 kb/s
    Metadata:
      CREATION_TIME   : 2014-12-04 08:57:02
      LANGUAGE        : und
      HANDLER_NAME    : Core Media Data Handler
      ENCODER         : Lavc56.1.100 libvorbis
      MAJOR_BRAND     : qt  
      MINOR_VERSION   : 0
      COMPATIBLE_BRANDS: qt  
Stream specifier ':1' in filtergraph description [0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=1:unsafe=1 [v] [a] matches no streams.
ffmpeg version 2.4.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov  4 2014 11:01:51 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
outtmp.mp4: No such file or directory
iMac-Vladimir:BYELIK BYELIK$ 

I need to know how to join video files with different stream count.
Video files are attached.
Thanks in advance.

comment:3 Changed 5 years ago by cehoyos

Are you reporting a bug?
If yes, please explain why you believe FFmpeg should act differently.

comment:4 Changed 5 years ago by byelik

I'm not saying that is a bug. I need help to solve the problem.

comment:5 Changed 5 years ago by byelik

How can I get support?

comment:6 Changed 5 years ago by cehoyos

comment:7 Changed 5 years ago by llogan

  • Resolution set to invalid
  • Status changed from new to closed

I see no bug here. This bug tracker is not a user support resource. Please use ffmpeg-user mailing list (which I see you have done) or #ffmpeg IRC channel.

Note: See TracTickets for help on using tickets.