[FFmpeg-trac] #7804(undetermined:new): ffmpeg exit code

FFmpeg trac at avcodec.org
Fri Mar 22 16:45:55 EET 2019


#7804: ffmpeg exit code
-------------------------------------+-------------------------------------
             Reporter:  razvan       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by razvan):

 I think I found an inconsistency in the exit code of fmpeg when reading
 http stream:

 if I give ffmpeg a incorrect input url
 ffmpeg -i ​http://....
 which is not found on the streaming server then ffmpeg report
 "HTTP error 404 Not Found"
 and exit code is 1
 I think this is correct as ffmpeg completes with an error,
 so exit code !=0

 If input url is correct and it starts reading it and so on (save the
 stream for example),
 and after a while, the server return again "HTTP error 404 Not Found" for
 some chunk
 then ffmpeg exit with code 0.

 [hls,applehttp @ 0x6e0f6c0] Opening
 '​http://...../chunklist_w222613001.m3u8' for reading
 [http @ 0x6e18100] Opening '​http://..../media_w222613001_15571.aac' for
 reading
 [hls,applehttp @ 0x6e0f6c0] Opening
 '​http://..../media_w222613001_15571.aac' for reading
 [http @ 0x6e6c0c0] Opening '​http://.../chunklist_w222613001.m3u8' for
 reading
 [hls,applehttp @ 0x6e0f6c0] Opening
 '​http://.../chunklist_w222613001.m3u8' for reading
 [http @ 0x6e70600] HTTP error 404 Not Found
 [hls,applehttp @ 0x6e0f6c0] Failed to reload playlist 0
 [hls,applehttp @ 0x6e0f6c0] Opening
 '​http://.../chunklist_w222613001.m3u8' for reading
 [http @ 0x6e19dc0] HTTP error 404 Not Found
 [hls,applehttp @ 0x6e0f6c0] Failed to reload playlist 0
 size= 36208kB time=00:37:49.95 bitrate= 130.7kbits/s speed= 1x
 video:0kB audio:35539kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 1.880420%

 I think this is incorrect because ffmpeg ended with an error,
 so it should return something other then 0.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7804#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list