Retreiving video stream from file after VLC crashed

About encoding, codec settings, muxers and filter usage
ppavacic
New Cone
New Cone
Posts: 1
Joined: 22 Dec 2019 01:07

Retreiving video stream from file after VLC crashed

Postby ppavacic » 22 Dec 2019 01:54

Story

I was streaming video from internet to file and after hour and a half my PC crashed (not VLC's fault) which resulted in unfinished file that can not be played.

Code: Select all

Media->Convert/Save->Network->Convert/Save

I'm using Ubuntu 19.10 and VLC 3.0.8

Inspection

When opening file in HexEditor I can find following message at the start of the file:

Code: Select all

Eé½æÙH·–,Ø Ù#îïx264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:-1:-1 analyse=0:0x11 me=dia subme=0 psy=1 psy_rd=1.00:0.15 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-1 threads=22 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.40 aq=0
I have similar files (that were created using VLC and network streaming) which, when inspected using HexEditor don't have header previously mentioned.

Things I've tried:

"MP4Box unfinished-vlc-stream-file.mp4" is showing following error:
[iso file] Incomplete box ..u7
Truncated file - missing 3491155233 bytes
Error opening file unfinished-vlc-stream-file.mp4: IsoMedia File is truncated
Untrunc software (https://github.com/ponchio/untrunc) can help, but only 545mb from 2.4 gb is retrieved. I also have another file where 200mb from 6.8 gb can be retrieved.
Message that I've previously mentioned can't be found anymore in HexEditor in file generated by untrunc.

Code: Select all

[mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 53827 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 49057 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 51137 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 53782 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 38835 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 35957 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 43433 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 42196 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 41412 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 36764 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 43919 / 800000 Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size Success for no particular reason.... [mp2 @ 0x1907b80] incorrect frame size avc1: Match with 0 header Nal type: 1 Length for first packet = 45079 / 800000 mp4a: Success because of large s value [mp2 @ 0x1907b80] Header missing Invalid length. -1094995529. Wrong match in track: 0 avc1: no match because of nal type: 29 Found 51176 packets
ffmpeg is returning following error and won't work with any google-able solutions for my problem.

Code: Select all

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56043d2599c0] moov atom not found unfinished-vlc-stream-file.mp4: Invalid data found when processing input
"file unfinished-vlc-stream-file.mp4" command is returning following:

Code: Select all

ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 24 guests