I am trying to mux the output of the DM355 MPEG4 codec engine with uncompressed 16-bit stereo audio using libav. I have everything working up to the muxing point. I can mux the video and audio into an AVI container, but it doesn't play back in any tools. I've tried VLC and mplayer and both fail to play the file back. I initially modified the muxing-example.c from ffmpeg to mux the audio at the desired bit rate and mux the video. But in that example the video was raw YUV frames that libav compressed and then muxed with the audio.
Once I moved this example to the DM355 I get different results. Has anyone else attempted this before? Am I better off trying to use gstreamer?
Here is the output of ffprobe from my muxed data:
C:\NickTemp\analyze>ffprobe -show_streams VIS-FF1M-2923-0005.avi
ffprobe version N-31774-g6c4e9ca, Copyright (c) 2007-2011 the FFmpeg developers
built on Aug 6 2011 22:22:11 with gcc 4.6.1
configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 11. 1 / 51. 11. 1
libavcodec 53. 9. 1 / 53. 9. 1
libavformat 53. 6. 0 / 53. 6. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 28. 0 / 2. 28. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, avi, from 'VIS-FF1M-2923-0005.avi':
Metadata:
encoder : Lavf53.3.0
Duration: 00:00:00.00, start: 0.000000, bitrate: -2147483 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 20 fps, 20
tbr, 20 tbn, 20k tbc
Stream #0.1: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s
[STREAM]
index=0
codec_name=mpeg4
codec_long_name=MPEG-4 part 2
codec_type=video
codec_time_base=1/20000
codec_tag_string=FMP4
codec_tag=0x34504d46
width=1280
height=720
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=-99
r_frame_rate=20/1
avg_frame_rate=20/1
time_base=1/20
start_time=0.000000
duration=0.000000
[/STREAM]
[STREAM]
index=1
codec_name=pcm_s16le
codec_long_name=PCM signed 16-bit little-endian
codec_type=audio
codec_time_base=0/1
codec_tag_string=[1][0][0][0]
codec_tag=0x0001
sample_rate=32000.000000
channels=2
bits_per_sample=16
r_frame_rate=0/0
avg_frame_rate=40/1
time_base=1/32000
start_time=0.000000
duration=N/A
[/STREAM]
Thanks.