I am using FFmpeg to convert a video file that has 5.1 surround sound for playing it in a home theatre system. I used the following command.
ffmpeg -i "input1.mp4" -vf scale=720:-16 -c:v mpeg4 -vtag XVID -b:v 3000k -c:a ac3 -b:a 448k "OUTPUT_FILE.avi" I am able to play the video file on my computer. But, it has problems in the home theatre system. The home theatre system is able to play the video, but it is showing that the audio is not supported. I can't hear any sound. When I use Avidemux with similar resolution and bitrate, it works well on the Home Theatre system. I am including the MediaInfo outputs of both the files below. The file converted using FFmpeg: General Complete name : F:\FFMPEG\ffmpegOut.avi Format : AVI Format/Info : Audio Video Interleave File size : 2.93 MiB Duration : 7 s 80 ms Overall bit rate : 3 471 kb/s Writing application : Lavf58.47.100 Video ID : 0 Format : MPEG-4 Visual Format profile : Simple@L1 Format settings, BVOP : No Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 7 s 80 ms Bit rate : 3 006 kb/s Width : 720 pixels Height : 336 pixels Display aspect ratio : 2.2:1 Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.497 Stream size : 2.54 MiB (87%) Writing library : Lavc58.93.100 Audio ID : 1 Format : AC-3 Format/Info : Audio Coding 3 Codec ID : 00002000-0000-0010-8000-00AA00389B71 Duration : 7 s 8 ms Bit rate : 448 kb/s Channel(s) : 6 channels Channel layout : L R C LFE Ls Rs Sampling rate : 48.0 kHz Bit depth : 16 bits Compression mode : Lossy Stream size : 383 KiB (13%) Interleave, duration : 32 ms (0.81 video frame) Interleave, preload duratio : 96 ms The file converted using avidemux (which works): General Complete name : F:\FFMPEG\aviDemux.avi Format : AVI Format/Info : Audio Video Interleave File size : 2.07 MiB Duration : 6 s 920 ms Overall bit rate : 2 513 kb/s Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L4 Format settings : BVOP2 Format settings, BVOP : 2 Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 6 s 920 ms Bit rate : 1 713 kb/s Width : 720 pixels Height : 320 pixels Display aspect ratio : 2.25:1 Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.297 Stream size : 1.41 MiB (68%) Writing library : XviD 67 Audio ID : 1 Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : 2000 Duration : 6 s 912 ms Bit rate mode : Constant Bit rate : 448 kb/s Channel(s) : 6 channels Channel layout : L R C LFE Ls Rs Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Bit depth : 16 bits Compression mode : Lossy Stream size : 378 KiB (18%) Alignment : Aligned on interleaves Interleave, duration : 32 ms (0.80 video frame) Service kind : Complete Main At a direct glance, the Codec ID of the audio stream seems to be different. Is that causing the trouble? Or is it something else? Thanks Nithin _______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
