#10826: Short trim inside filter_complex leads to empty output
--------------------------------+---------------------------------------
             Reporter:  Gyan    |                     Type:  defect
               Status:  new     |                 Priority:  critical
            Component:  ffmpeg  |                  Version:  unspecified
             Keywords:          |               Blocked By:
             Blocking:  7.0     |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+---------------------------------------
 Carrying out a short trim like in the command below leads to an empty
 output.

 `ffmpeg -i src.mp4 -filter_complex "[0:v]trim=start=0.5:end=0.9[v];
 [0:a]atrim=start=0.5:end=0.9[a]" -map [v] -map [a] out.mp4`

 Source can be generated using

 `ffmpeg -f lavfi -i testsrc -f lavfi -i sine -t 1 src.mp4`

 Proximate source of error in log below is
 d119ae2fd82a494d9430ff4d4fc262961a68c598

 {{{
 [vost#0:0/libx264 @ 0000017973984cc0] Could not open encoder before EOF
 [aost#0:1/aac @ 0000017973985ac0] Could not open encoder before EOF
 [vost#0:0/libx264 @ 0000017973984cc0] Task finished with error code: -22
 (Invalid argument)
 [aost#0:1/aac @ 0000017973985ac0] Task finished with error code: -22
 (Invalid argument)
 [vost#0:0/libx264 @ 0000017973984cc0] Terminating thread with return code
 -22 (Invalid argument)
 [aost#0:1/aac @ 0000017973985ac0] Terminating thread with return code -22
 (Invalid argument)
 [out#0/mp4 @ 0000017973a752c0] Nothing was written into output file,
 because at least one of its streams received no packets.
 frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=N/A bitrate=N/A speed=N/A
 }}}

 However, the empty output first occurs with
 d35c05cb9ee39e1d90fab326a6aaec6c6c9433e1


 {{{
 [out#0/mp4 @ 0000015db613bfc0] sq: 0 EOF
 [out#0/mp4 @ 0000015db613bfc0] sq: finish queue
 [out#0/mp4 @ 0000015db613bfc0] sq: 1 EOF
 [out#0/mp4 @ 0000015db613bfc0] sq: finish queue
 [out#0/mp4 @ 0000015db613bfc0] sq: 1 EOF
 [out#0/mp4 @ 0000015db613bfc0] sq: finish queue
 [out#0/mp4 @ 0000015db613bfc0] sq: receive 1 ts 0.9 queue head -1 ts N/A
 [aac @ 0000015db5db1340] Trying to remove 792 more samples than there are
 in the queue
 [out#0/mp4 @ 0000015db613bfc0] sq: 1 EOF
 [out#0/mp4 @ 0000015db613bfc0] sq: finish queue
 [out#0/mp4 @ 0000015db613bfc0] Nothing was written into output file,
 because at least one of its streams received no packets.
 frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.89 bitrate=
 0.0kbits/s speed=46.9x
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10826>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to