MP4 Video being rejected with error


#1

Hi,

I´m using the Avid Media Distribute endpoint to upload a video to be used in a tweet and twitter is rejecting MP4 Videos. There is no information besides the video is “UnsupportedMedia” and it passes all the requirements laid out in the Media API endpoint.

Here is what Twitter responds with:
2019-01-14 09:26:40.757 [pool-1-thread-1] ERROR c.a.m.t.twitter.TwitterApiImpl - Failed to upload the video: [file is currently unsupported]
twitter4j.TwitterException: file is currently unsupported
at twitter4j.TwitterImpl.uploadMediaChunked(TwitterImpl.java:303) ~[twitter4j-core-4.0.6.201712191132_VIDEO.jar:4.0.6.201712191132_VIDEO]
at com.avid.mpd.thirdparty.twitter.TwitterApiImpl.doPublishVideo(TwitterApiImpl.java:919) [twitter-integration-lib-1.0.0.20180410_110302.jar:na]
at com.avid.mpd.thirdparty.twitter.TwitterApiImpl.publishVideo(TwitterApiImpl.java:332) [twitter-integration-lib-1.0.0.20180410_110302.jar:na]
at avid.publish.twitter.channel.TwitterTask.run(TwitterTask.java:55) [avid-publish-twitter-1.0.0-20180416_115500.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_80-u80-AvidOpenJDK]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_80-u80-AvidOpenJDK]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80-u80-AvidOpenJDK]
2019-01-14 09:26:40.759 [pool-1-thread-1] INFO a.p.t.c.SubmitChannelSubscriber - Send ‘complete’ message to ‘avid.publish.orchestration’ channel, data: ‘{output=ThirdPartyResult{error=106, errorMessage=‘Failed to upload the video: [file is currently unsupported]’, value=null}, routing={channelName=avid.publish.orchestration, channelSubject=complete, workflowId=3bdfbf27-f774-4589-91ad-111344ef0513, workerId=808c6b62-539e-452f-be60-93fefe44dd80}}’
2019-01-14 09:26:40.769 [pool-1-thread-1] INFO a.p.twitter.channel.TwitterTask - processing twitter job ThirdPartyResult{error=106, errorMessage=‘Failed to upload the video: [file is currently unsupported]’, value=null} is done

And here is the metadata from FFPROBE:
[aac @ 0x56153ac543c0] This stream seems to incorrectly report its last channel as SCE[3], mapping to SCE[1] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
‘mpd_orc_3bdfbf27-f774-4589-91ad-111344ef0513_8c89357e-d422-4fcd-91d1-b88f8afe9035_79712bf8-f8c9-9451-688f-71a2844cf018.mp4’:
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2019-01-14T08:26:14.000000Z
Duration: 00:00:10.24, start: 0.000000, bitrate: 7055 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 6824 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Metadata:
creation_time : 2019-01-14T08:26:14.000000Z
handler_name : Mainconcept MP4 Video Media Handler
encoder : AVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 4.0, fltp, 252 kb/s (default)
Metadata:
creation_time : 2019-01-14T08:26:14.000000Z
handler_name : Mainconcept MP4 Sound Media Handler

Thanks for any help!

Prado.


#2

Are you able to provide a link to the source video that is failing, so what we can try to reproduce? I’m not familiar with the Avid code that you’re using, but have you also tried using our large video upload sample?


#3

Of course, you can download an example here: https://drive.google.com/file/d/1fdIw5Eg7KOiAiw0m82RyA52ui8QRYlJ9/view?usp=sharing