Opened 7 years ago
Last modified 7 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)
Change History (8)
by , 7 years ago
by , 7 years ago
by , 7 years ago
by , 7 years ago
by , 7 years ago
by , 7 years ago
comment:1 by , 7 years ago
Component: | ffmpeg → avformat |
---|---|
Keywords: | protocol removed |
Priority: | normal → wish |
Type: | defect → enhancement |
Version: | unspecified → git-master |
Use cat.