Sputnix
January 25, 2016, 6:43am
#1
If the output file’s extension is set to “.mp4” and the audioFilename argument is specified Draft crashes:
enc = Draft.VideoEncoder( "//path/to/video/save.mp4", quality=80, codec='H264', audioFilename='//path/to/audio/load.wav' )
After changing it to “.mov” Draft runs with no issues.
enc = Draft.VideoEncoder( "//path/to/video/save.mov", quality=80, codec='H264', audioFilename='//path/to/audio/load.wav' )
Is it possible to transcode a mp4 movie with the audio track embedded using Draft?
Hi,
I just ran some tests and was able to reproduce the issue with the latest version of Draft. You are totally right, it is currently impossible to encode a mp4 movie with the audio track embedded using Draft. I just logged this issue as a bug. This is definitively something we’ll take care of as soon as we can.
In the meantime, would it be possible for you to give me the exact version of Draft you are using? (The version is displayed right after Draft import statement.)
Thanks!
Julie
Sputnix
January 25, 2016, 8:04pm
#3
The Draft version we are using here is 1.1.1.55749.
That’s noted.
Thank you for your understanding,
Julie
nope
November 11, 2016, 6:59am
#5
I’m using Draft 1.5.3.1 and I also have a crashing problem when I try to use audio in an mp4.
Here is the output I get:
Traceback (most recent call last):
File “C:\createMP4.py”, line 90, in
audioFilename=audioFilename
RuntimeError: Unable to write header
[libx264 @ 00000000006aad20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 00000000006aad20] profile Constrained Baseline, level 3.1
[libx264 @ 00000000006aad20] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=3 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=3 rc=crf mbtree=1 crf=18.3 qcomp=0.60 qpmin=4 qpmax=51 qpstep=4 ip_ratio=1.50 aq=1:1.00
Input #0 , wav, from ‘C:\completed.wav’:
Duration: 00:00:01.57, bitrate: 88 kb/s
Stream #0:0: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11025 Hz, 1 channels, u8, 88 kb/s
[mp4 @ 00000000006aa6c0] Could not find tag for codec pcm_u8 in stream #1 , codec not currently supported in container
Process exit code: 1
Is this the same error?
Hey nope,
That is the same error. I will add you as a +1 on our ticket so hopefully we can get to this soon.
Grant