Quantcast
Channel: VideoHelp Forum
Viewing all articles
Browse latest Browse all 45615

muxing audio and video from hevc encode to final video container

$
0
0
x265.exe encoding settings used to create hevc video-only file:

Code:

x265 --q 20 --keyint 24 --frames all --input "h:\video.yuv" --width 720 --height 480 --rate 23.976 --rect --max-merge 1 --hash 0 --no-rdo --no-rdoq --tu-intra-depth 1 --tu-inter-depth 2 --no-tskip --no-tskip-fast --no-wpp --output "h:\video.hm10"
ffmpeg encoding settings used to create video.avs.wav->audio.aac (audio-only) file:

Code:

ffmpeg1 -i "h:\audio.wav" -acodec libvo_aacenc -y "h:\audio.aac"
.
Code:

ffmpeg version N-50025-gb8bb661 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb 17 2013 02:37:45 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth
  --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass
  --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame
  --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
  --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
  --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
  --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 17.101 / 52. 17.101
  libavcodec    54. 91.103 / 54. 91.103
  libavformat    54. 63.100 / 54. 63.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter    3. 38.100 /  3. 38.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample  0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

and finally, mp4box used to do the muxing of audio and video into new video container.

Code:

mp4box -version
.
Code:

MP4Box - GPAC version 0.5.1-DEV-rev4663
GPAC Copyright (c) Telecom ParisTech 2000-2012
GPAC Configuration: (static configuration file)
Features: GPAC_HAS_SSL GPAC_HAS_SPIDERMONKEY GPAC_HAS_JPEG GPAC_HAS_PNG

in order to work correctly for mp4box, we need to rename video.hm10 to video.h265, then..

Code:

p1: mp4box -add h:\hevc.x265.music.video.hm10.h265:fmt=hevc:fps=23.976 -add h:\audio.aac -new h:\video.mp4
p2: mp4box -add h:\video.h265 -fps 23.976 -add h:\audio.aac h:\video.mp4

but it only plays audio. mediainfo reports 1video/2audios

Code:

p1: mp4box -add h:\hevc.x265.music.video.h265:FMT=HEVC:fps=23.976 -new h:\video.mp4
p2: mp4box -add h:\video.h265 -fps 23.976 -add h:\audio.aac h:\video.mp4

and also this only plays audio. mediainfo reports 1video/1audio

Code:

p1: mp4box -add h:\hevc.x265.music.video.h265:FMT=HEVC:fps=23.976 -new h:\video.mp4
p2: mp4box -add h:\audio.aac h:\video.mp4

and this only plays audio. mediainfo reports 1video/1audio

none of the methods/routines above work in creating an audio/video playable file.

what am i doing wrong, using old sofware, etc ?
help me figure this problem out, thank you.

Viewing all articles
Browse latest Browse all 45615

Trending Articles