Opened 5 years ago

Closed 4 years ago

#6434 closed defect (fixed)

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: Marton Balint 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 5 years ago.
ffmpeg-20170601-122930-14streams.log.gz (139.0 KB ) - added by fabienst 5 years ago.
dvd2concat-18streams.txt (631 bytes ) - added by fabienst 5 years ago.
input file (ffconcat file with 18streams)
dvd2concat-14streams.txt (639 bytes ) - added by fabienst 5 years ago.
input file (ffconcat file with 14streams)

Download all attachments as: .zip

Change History (8)

by fabienst, 5 years ago

Attachment: dvd2concat-18streams.txt added

input file (ffconcat file with 18streams)

by fabienst, 5 years ago

Attachment: dvd2concat-14streams.txt added

input file (ffconcat file with 14streams)

comment:1 by fabienst, 5 years ago

Summary: Segfault when using concat input (ffconcat) created with dvd2concatSegfault 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 by Carl Eugen Hoyos, 5 years ago

Keywords: crash added
Priority: normalimportant

comment:3 by fabienst, 5 years ago

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

comment:4 by Marton Balint, 4 years ago

Cc: Marton Balint added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.