Opened 6 years ago

Last modified 6 years ago

#5686 new enhancement

Concat Demuxer doesn't work, Concat Protocol does, but too many files!

Reported by: EJacobs Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: concat
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi!

Using FFmpeg N-80892-g2a8dadb, 32 bit

I have to join many video segments.

Concat demuxer doesn't work. First segment (0.mp4) contains header information that rest of segments don't contain (1.mp4 2.mp4 etc.).

Concat demuxer returns error:

[mov,mp4,m4a,3gp,3g2,mj2 @ 03965900] could not find corresponding trex
[mov,mp4,m4a,3gp,3g2,mj2 @ 03965900] error reading header
[concat @ 003e2320] Impossible to open '1.mp4'

Concat protocol works without errors.

However the string size limitation prevents entering the whole command string with all of the video segments. Need to use Concat Protocol, but with a text file so I can specify all segments.

Issue 4860 requested this; it was closed with "Won't fix" and "Use demuxer."

But demuxer doesn't work in this case!

To reproduce:

Attached 5 segments to this ticket, including first 0.mp4 and video.txt file.

Run Demuxer:

ffmpeg.exe -f concat -i "video.txt" -c copy "video.mp4"

Get above error.

Run Protocol:

ffmpeg -i "concat:0.mp4|1.mp4|2.mp4|3.mp4|4.mp4" -c copy video.mp4

Works.

Limited by command string size.

:(

Attachments (6)

0.mp4 (700 bytes ) - added by EJacobs 6 years ago.
1.mp4 (865.4 KB ) - added by EJacobs 6 years ago.
2.mp4 (728.4 KB ) - added by EJacobs 6 years ago.
3.mp4 (1.1 MB ) - added by EJacobs 6 years ago.
4.mp4 (545.0 KB ) - added by EJacobs 6 years ago.
video.txt (70 bytes ) - added by EJacobs 6 years ago.

Change History (8)

by EJacobs, 6 years ago

Attachment: 0.mp4 added

by EJacobs, 6 years ago

Attachment: 1.mp4 added

by EJacobs, 6 years ago

Attachment: 2.mp4 added

by EJacobs, 6 years ago

Attachment: 3.mp4 added

by EJacobs, 6 years ago

Attachment: 4.mp4 added

by EJacobs, 6 years ago

Attachment: video.txt added

comment:1 by Carl Eugen Hoyos, 6 years ago

Component: ffmpegavformat
Keywords: protocol removed
Priority: normalwish
Type: defectenhancement
Version: unspecifiedgit-master

comment:2 by Elon Musk, 6 years ago

Use cat.

Note: See TracTickets for help on using tickets.