{"id":60595,"date":"2015-05-28T11:03:37","date_gmt":"2015-05-28T19:03:37","guid":{"rendered":"http:\/\/www.transterrestrial.com\/?p=60595"},"modified":"2015-05-28T15:33:09","modified_gmt":"2015-05-28T23:33:09","slug":"video-issues","status":"publish","type":"post","link":"https:\/\/www.transterrestrial.com\/wordpress\/2015\/05\/28\/video-issues\/","title":{"rendered":"Video Issues"},"content":{"rendered":"<p>OK, Linux people. Blender will let me make to edit and export a video as an AVI JPEG, but it refuses to export the synched audio to it. However, it will export the audio by itself as a .flac.<\/p>\n<p>Does anyone know any separate tools that would allow me to synch that audio file with the video?<\/p>\n<p>[Update a while later]<\/p>\n<p>OK, VLC sort of works. Problem is that for some reason it really messes up the title when I add audio. If I were to post the MP4 and .flac files, could someone else try to synch them?<\/p>\n<p>[Update late afternoon]<\/p>\n<p>OK, I tried this:ffmpeg -i RoadToMars.wav -i 0001-9000.avi RoadToMarsAudio.avi<br \/>\n<!--more--><\/p>\n<p>It added the audio, but it also pixelated it and made it look like crap. This was the warning I got before I did it.<br \/>\n____________________________________________________________________<br \/>\nffmpeg version 2.4.9 Copyright (c) 2000-2015 the FFmpeg developers<br \/>\n  built on Apr 28 2015 18:09:39 with gcc 4.9.2 (GCC) 20150212 (Red Hat 4.9.2-6)<br \/>\n  configuration: &#8211;prefix=\/usr &#8211;bindir=\/usr\/bin &#8211;datadir=\/usr\/share\/ffmpeg &#8211;incdir=\/usr\/include\/ffmpeg &#8211;libdir=\/usr\/lib64 &#8211;mandir=\/usr\/share\/man &#8211;arch=x86_64 &#8211;optflags=&#8217;-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong &#8211;param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic&#8217; &#8211;enable-bzlib &#8211;disable-crystalhd &#8211;enable-frei0r &#8211;enable-gnutls &#8211;enable-ladspa &#8211;enable-libass &#8211;enable-libcdio &#8211;enable-libdc1394 &#8211;disable-indev=jack &#8211;enable-libfreetype &#8211;enable-libgsm &#8211;enable-libmp3lame &#8211;enable-openal &#8211;enable-opencl &#8211;enable-libopencv &#8211;enable-libopenjpeg &#8211;enable-libopus &#8211;enable-libpulse &#8211;enable-libschroedinger &#8211;enable-libsoxr &#8211;enable-libspeex &#8211;enable-libtheora &#8211;enable-libvorbis &#8211;enable-libv4l2 &#8211;enable-libvpx &#8211;enable-libx264 &#8211;enable-libx265 &#8211;enable-libxvid &#8211;enable-x11grab &#8211;enable-avfilter &#8211;enable-avresample &#8211;enable-postproc &#8211;enable-pthreads &#8211;disable-static &#8211;enable-shared &#8211;enable-gpl &#8211;disable-debug &#8211;disable-stripping &#8211;shlibdir=\/usr\/lib64 &#8211;enable-runtime-cpudetect<br \/>\n  libavutil      54.  7.100 \/ 54.  7.100<br \/>\n  libavcodec     56.  1.100 \/ 56.  1.100<br \/>\n  libavformat    56.  4.101 \/ 56.  4.101<br \/>\n  libavdevice    56.  0.100 \/ 56.  0.100<br \/>\n  libavfilter     5.  1.100 \/  5.  1.100<br \/>\n  libavresample   2.  1.  0 \/  2.  1.  0<br \/>\n  libswscale      3.  0.100 \/  3.  0.100<br \/>\n  libswresample   1.  1.100 \/  1.  1.100<br \/>\n  libpostproc    53.  0.100 \/ 53.  0.100<br \/>\nGuessed Channel Layout for  Input Stream #0.0 : stereo<br \/>\nInput #0, wav, from &#8216;RoadToMars.wav&#8217;:<br \/>\n  Duration: 00:06:14.96, bitrate: 1411 kb\/s<br \/>\n    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] \/ 0x0001), 44100 Hz, 2 channels, s16, 1411 kb\/s<br \/>\n[avi @ 0x1a969c0] non-interleaved AVI<br \/>\nInput #1, avi, from &#8216;0001-9000.avi&#8217;:<br \/>\n  Duration: 00:06:14.99, start: 0.000000, bitrate: 14558 kb\/s<br \/>\n    <strong>Stream #1:0: Video: mjpeg (MJPG \/ 0x47504A4D), yuvj422p(pc, bt470bg), 960&#215;540, 14549 kb\/s, 24 fps, 24 tbr, 24 tbn, 24 tbc<br \/>\n[swscaler @ 0x1a2e320] deprecated pixel format used, make sure you did set range correctly<\/strong><br \/>\nOutput #0, avi, to &#8216;RoadToMarsAudio.avi&#8217;:<br \/>\n  Metadata:<br \/>\n    ISFT            : Lavf56.4.101<br \/>\n    Stream #0:0: Video: mpeg4 (FMP4 \/ 0x34504D46), yuv420p, 960&#215;540, q=2-31, 200 kb\/s, 24 fps, 24 tbn, 24 tbc<br \/>\n    Metadata:<br \/>\n      encoder         : Lavc56.1.100 mpeg4<br \/>\n    Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] \/ 0x0055), 44100 Hz, stereo, s16p<br \/>\n    Metadata:<br \/>\n      encoder         : Lavc56.1.100 libmp3lame<br \/>\nStream mapping:<br \/>\n  Stream #1:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))<br \/>\n  Stream #0:0 -> #0:1 (pcm_s16le (native) -> mp3 (libmp3lame))<br \/>\n_________________________________________________<\/p>\n<p>Anyone know what I should do differently?<\/p>\n<p>[Update a few minutes later]<\/p>\n<p>OK, I did this instead, which just copied the video, and didn&#8217;t try to re-encode: ffmpeg -i 0001-9000.avi -i RoadToMars.wav -map 0 -map 1 -codec copy -shortest RoadBlockToMarsWithAudio.avi<\/p>\n<p>I think I&#8217;m almost there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OK, Linux people. Blender will let me make to edit and export a video as an AVI JPEG, but it refuses to export the synched audio to it. However, it will export the audio by itself as a .flac. Does anyone know any separate tools that would allow me to synch that audio file with &hellip; <a href=\"https:\/\/www.transterrestrial.com\/wordpress\/2015\/05\/28\/video-issues\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Video Issues<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,25,3],"tags":[],"class_list":["post-60595","post","type-post","status-publish","format-standard","hentry","category-administrative","category-business","category-technology-and-society"],"_links":{"self":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/60595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/comments?post=60595"}],"version-history":[{"count":4,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/60595\/revisions"}],"predecessor-version":[{"id":60603,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/60595\/revisions\/60603"}],"wp:attachment":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/media?parent=60595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/categories?post=60595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/tags?post=60595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}