Opened 7 weeks ago

Last modified 7 weeks ago

#6434 new defect

Segfault when using concat input (ffconcat) having multiple streams, created with dvd2concat

Reported by: fabienst Owned by:
Priority: important Component: undetermined
Version: git-master Keywords: crash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hello,

I want to convert a video dvd with ffmpeg by using dvd2concat tool to generate the input.
I first created a iso image of that dvd (with dvdbackup).
It has to be noted that dvdbackup found read errors on the dvd and had to fix them by filling the blocks. But I'm not sure there are errors in the segment I provide

In order not to upload the full iso I narrowed the issue down and created a smaller subset of the input ffconcat and vob.

With the original ffconcat file having 18 streams this command segfaults:

/mnt/packages/downloads/ffmpeg-git-20170601-64bit-static/ffmpeg -report -v 9 -loglevel 99 -analyzeduration 460000k -probesize 300000k -safe 0 -protocol_whitelist subfile,file,concat -f concat -i dvd2concat-18streams.txt -c:v copy -c:a copy -c:s copy -map 0 -ignore_unknown -f vob dvd2concat-18streams.out.vob

I found the issue seems to come from some of the input streams. So I removed some of them and it works. But I couldn't find any pattern. Here is the new command (same as above but with different input files)

/mnt/packages/downloads/ffmpeg-git-20170601-64bit-static/ffmpeg -report -v 9 -loglevel 99 -analyzeduration 460000k -probesize 300000k -safe 0 -protocol_whitelist subfile,file,concat -f concat -i dvd2concat-14streams.txt -c:v copy -c:a copy -c:s copy -map 0 -ignore_unknown -f vob dvd2concat-14streams.out.vob

Attachments (4)

ffmpeg-20170601-122841-18streams.log.gz (7.4 KB) - added by fabienst 7 weeks ago.
ffmpeg-20170601-122930-14streams.log.gz (139.0 KB) - added by fabienst 7 weeks ago.
dvd2concat-18streams.txt (631 bytes) - added by fabienst 7 weeks ago.
input file (ffconcat file with 18streams)
dvd2concat-14streams.txt (639 bytes) - added by fabienst 7 weeks ago.
input file (ffconcat file with 14streams)

Download all attachments as: .zip

Change History (7)

Changed 7 weeks ago by fabienst

Changed 7 weeks ago by fabienst

Changed 7 weeks ago by fabienst

input file (ffconcat file with 18streams)

Changed 7 weeks ago by fabienst

input file (ffconcat file with 14streams)

comment:1 Changed 7 weeks ago by fabienst

  • Summary changed from Segfault when using concat input (ffconcat) created with dvd2concat to Segfault when using concat input (ffconcat) having multiple streams, created with dvd2concat

Sample video has been updload to https://streams.videolan.org/upload/
Filename : ffconcat-segfault.in.vob

comment:2 Changed 7 weeks ago by cehoyos

  • Keywords crash added
  • Priority changed from normal to important

comment:3 Changed 7 weeks ago by fabienst

BTW converting the vob directly without using "concat" doesn't lead to a crash (I added -map -0:d option)

/mnt/packages/downloads/ffmpeg-git-20170601-64bit-static/ffmpeg -report -v 9 -loglevel 99 -analyzeduration 460000k -probesize 300000k -i ffconcat-segfault.in.vob -c:v copy -c:a copy -c:s copy -map 0 -map -0:d -ignore_unknown -f vob without_concat.vob

Note: See TracTickets for help on using tickets.