untrunc icon indicating copy to clipboard operation
untrunc copied to clipboard

This audio codec is EVIL, there is no hope to guess it.

Open rumpumpel1 opened this issue 8 years ago • 7 comments

this is what I got when using untrunc:

untrunc 000_0360_01.MP4 000_0359_01.MP4 Reading: 000_0360_01.MP4 Composition time offset atom found. Out of order samples possible. Sample dependency flag atom found. I and P frames might need to recover that info. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../000_0360_01/000_0360_01.MP4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42 creation_time : 2015-11-18 17:36:56 Duration: 00:00:02.64, start: 0.000000, bitrate: 36879 kb/s Stream #0:0(eng): Video: mpeg2video (Main) (mp4v / 0x7634706D), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 35333 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default) Metadata: creation_time : 2015-11-18 17:36:56 handler_name : Video Media Handler Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default) Metadata: creation_time : 2015-11-18 17:36:56 handler_name : NRT Metadata Handler This audio codec is EVIL, there is no hope to guess it.

Is there anything I can do to work around this error message ?

rumpumpel1 avatar Feb 12 '17 10:02 rumpumpel1

Hi, the evil audio codec twos is basically raw data without splitting it into defined packets or header. In theory it could be possible to recover the file if the video codec beginning could be detected easily, which unfortunately is not the case most of the times.

Sorry,

Federico

On Sun, Feb 12, 2017 at 11:51 AM, rumpumpel1 [email protected] wrote:

this is what I got when using untrunc:

untrunc 000_0360_01.MP4 000_0359_01.MP4 Reading: 000_0360_01.MP4 Composition time offset atom found. Out of order samples possible. Sample dependency flag atom found. I and P frames might need to recover that info. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../000_0360_01/000_0360_01.MP4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42 creation_time : 2015-11-18 17:36:56 Duration: 00:00:02.64, start: 0.000000, bitrate: 36879 kb/s Stream #0:0(eng): Video: mpeg2video (Main) (mp4v / 0x7634706D), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 35333 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default) Metadata: creation_time : 2015-11-18 17:36:56 handler_name : Video Media Handler Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default) Metadata: creation_time : 2015-11-18 17:36:56 handler_name : NRT Metadata Handler This audio codec is EVIL, there is no hope to guess it.

Is there anything I can do to work around this error message ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ponchio/untrunc/issues/73, or mute the thread https://github.com/notifications/unsubscribe-auth/ACg662kE7VKDHo2f-At_qMfOoZzVwBj7ks5rbuQ5gaJpZM4L-dCP .

ponchio avatar Feb 12 '17 11:02 ponchio

Is it possible to get video only?! I don't really care about the audio in this case. Thanks.

kr15uk avatar Aug 18 '17 12:08 kr15uk

It might be possible if the beginning of the video packets can be easily identified. Launching untrunc -a will show the beginning of the packets, so you can easily get an idea. In that case the code will have to be modified to skip the audio packets, but would be relatively easy.

Federico

On Fri, Aug 18, 2017 at 2:10 PM, Kris M [email protected] wrote:

Is it possible to get video only?! I don't really care about the audio in this case. Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ponchio/untrunc/issues/73#issuecomment-323337023, or mute the thread https://github.com/notifications/unsubscribe-auth/ACg66yQKQr8J-cN2iDo84PT6RuxAEcnYks5sZX9DgaJpZM4L-dCP .

ponchio avatar Aug 31 '17 12:08 ponchio

Could you please give us the code to skip the audio and recover the video ? Thanks

timbaresko avatar Sep 30 '20 22:09 timbaresko

in the logging branch I am trying to recover video and audio even with evil codecs.

in case ut does not work, please send me the video to recover (and a short working one), so i can improve the code.

On Thu, Oct 1, 2020, 00:20 timbaresko [email protected] wrote:

Could you please give us the code to skip the audio and recover the video ? Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ponchio/untrunc/issues/73#issuecomment-701676888, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV25ETHUBPJP7IXRD7SDSIOVJJANCNFSM4C7Z2CHQ .

ponchio avatar Sep 30 '20 22:09 ponchio

Hi Frederico, How are you ? Here is the folder with the good video and the corrupt one. https://www.dropbox.com/sh/oj98j6rji5j7ix7/AAAwmml6aCKT5lPfhQ73fUM9a?dl=0 https://www.dropbox.com/sh/oj98j6rji5j7ix7/AAAwmml6aCKT5lPfhQ73fUM9a?dl=0 Thanks a lot Tim

On 1 Oct 2020, at 00:35, Federico Ponchio [email protected] wrote:

in the logging branch I am trying to recover video and audio even with evil codecs.

in case ut does not work, please send me the video to recover (and a short working one), so i can improve the code.

On Thu, Oct 1, 2020, 00:20 timbaresko [email protected] wrote:

Could you please give us the code to skip the audio and recover the video ? Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ponchio/untrunc/issues/73#issuecomment-701676888, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV25ETHUBPJP7IXRD7SDSIOVJJANCNFSM4C7Z2CHQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ponchio/untrunc/issues/73#issuecomment-701682410, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGTXARX4FHNVO5NXSAT3BTSIOXBPANCNFSM4C7Z2CHQ.

timbaresko avatar Oct 07 '20 11:10 timbaresko

I finally (after fixing some bugs) can recover the packets (at least at the beginning of the video) but vlc can't decode the video. It looks like the videos are from two different sources (or just two different parameters). Ironically the audio can be played!

There are some parameters from the video that are stored in the header (width, height, chroma, compression parameters etc.) If those parameters are different there is little hope to recover the video. Well I would need to guess those, there aren't too many combinations, it could be done, but it's a bit challenging.

On Wed, Oct 7, 2020 at 1:15 PM timbaresko [email protected] wrote:

Hi Frederico, How are you ? Here is the folder with the good video and the corrupt one. https://www.dropbox.com/sh/oj98j6rji5j7ix7/AAAwmml6aCKT5lPfhQ73fUM9a?dl=0 <https://www.dropbox.com/sh/oj98j6rji5j7ix7/AAAwmml6aCKT5lPfhQ73fUM9a?dl=0

Thanks a lot Tim

On 1 Oct 2020, at 00:35, Federico Ponchio [email protected] wrote:

in the logging branch I am trying to recover video and audio even with evil codecs.

in case ut does not work, please send me the video to recover (and a short working one), so i can improve the code.

On Thu, Oct 1, 2020, 00:20 timbaresko [email protected] wrote:

Could you please give us the code to skip the audio and recover the video ? Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ponchio/untrunc/issues/73#issuecomment-701676888, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAUDV25ETHUBPJP7IXRD7SDSIOVJJANCNFSM4C7Z2CHQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/ponchio/untrunc/issues/73#issuecomment-701682410>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ARGTXARX4FHNVO5NXSAT3BTSIOXBPANCNFSM4C7Z2CHQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ponchio/untrunc/issues/73#issuecomment-704866429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV26HVYBBSYVFYOVURJLSJREVTANCNFSM4C7Z2CHQ .

ponchio avatar Oct 07 '20 22:10 ponchio