Problem with converting to AVI (XVID-AC3) for Home Theatre

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with converting to AVI (XVID-AC3) for Home Theatre

Nithin C Babu
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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with converting to AVI (XVID-AC3) for Home Theatre

Carl Eugen Hoyos-2
Am So., 28. Juni 2020 um 09:00 Uhr schrieb Nithin C Babu
<[hidden email]>:
>
> 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"

Complete, uncut console output missing.

> 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.

Which system is this?
Did you test with WMP and consider to report it to
whoever provides your home theatre system?

We have in the past refused to add a work-around for
such players (which would mean to produce invalid
files).

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with converting to AVI (XVID-AC3) for Home Theatre

Nithin C Babu
Thanks for the fast response.
Sorry for not producing the console output. I am a newbie in this forum.
The console output is given below.

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"

ffmpeg version git-2020-06-23-ce297b4 Copyright (c) 2000-2020 the FFmpeg
developers
  built with gcc 9.3.1 (GCC) 20200621
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libdav1d --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma
--enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf
--enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm
--disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm
--enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec
--enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 55.100 / 56. 55.100
  libavcodec     58. 93.100 / 58. 93.100
  libavformat    58. 47.100 / 58. 47.100
  libavdevice    58. 11.100 / 58. 11.100
  libavfilter     7. 86.100 /  7. 86.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2020-04-21T12:40:58.000000Z
  Duration: 00:00:07.01, start: 0.000000, bitrate: 21085 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709), 1920x876 [SAR 1:1 DAR 160:73], 20460 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc (default)
    Metadata:
      creation_time   : 2019-12-21T01:24:12.000000Z
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side),
fltp, 640 kb/s (default)
    Metadata:
      creation_time   : 2019-12-21T01:24:12.000000Z
      handler_name    : SoundHandler
    Side data:
      audio service type: main
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (ac3 (native) -> ac3 (native))
Press [q] to stop, [?] for help
Output #0, avi, to 'OUTPUT_FILE.avi': 0kB time=-577014:32:22.77 bitrate=
 -0.0kbits/s speed=N/A
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    ISFT            : Lavf58.47.100
    Stream #0:0(und): Video: mpeg4 (XVID / 0x44495658),
yuv420p(progressive), 720x336 [SAR 224:219 DAR 160:73], q=2-31, 3000 kb/s,
25 fps, 25 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2019-12-21T01:24:12.000000Z
      handler_name    : VideoHandler
      encoder         : Lavc58.93.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/3000000 buffer size: 0 vbv_delay: N/A
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz,
5.1(side), fltp, 448 kb/s (default)
    Metadata:
      creation_time   : 2019-12-21T01:24:12.000000Z
      handler_name    : SoundHandler
      encoder         : Lavc58.93.100 ac3
    Side data:
      audio service type: main
frame=  175 fps= 72 q=2.0 Lsize=    3000kB time=00:00:07.08
bitrate=3471.3kbits/s speed=2.92x
video:2598kB audio:383kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.642562%

The Home Theatre system is Sony DAV-DZ340K.

The Windows Media Player in my computer is able to play the file.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with converting to AVI (XVID-AC3) for Home Theatre

Carl Eugen Hoyos-2
Am So., 28. Juni 2020 um 13:15 Uhr schrieb Nithin C Babu
<[hidden email]>:

> The Home Theatre system is Sony DAV-DZ340K.
>
> The Windows Media Player in my computer is able to play the file.

So did you consider to report the issue (that the Home Theatre System
cannot read the WAVEFORMATEXTENSIBLE header) to Sony?

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".