[FFmpeg-user] Problem with converting to AVI (XVID-AC3) for Home Theatre

2020-06-28 Thread 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: 2000--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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] A question of FFmpeg's UDP protocol usage

2020-06-28 Thread Dennis Mungai
Hello there,

I encountered a somewhat unique problem today with ffmpeg, where, on
receiving UPD multicast input, the ffmpeg process would also bind to a
random unicast port, say 5112:

ss -tulpn | grep :5112

udp   UNCONN  1213696  0   0.0.0.0:5112   0.0.0.0:*
 users:(("ffmpeg",pid=958238,fd=54))

All inputs in use are *multicast*, so why is ffmpeg binding to a local port
in udp unicast mode?

Going through the documentation, there are some options that may somewhat
alleviate this condition, though I've not tested them yet:
https://ffmpeg.org/ffmpeg-protocols.html#udp

1. connect=1/0: As documented, in my case (receiving), it stated "For
receiving, this gives the benefit of only receiving packets from the
specified peer address/port. "
2. sources=address[,address]: As documented: "Only receive packets sent
from the specified addresses. In case of multicast, also subscribe to
multicast traffic coming from these addresses only."

I'm tempted to use option 1 first, then 2, as the first option does not
require me to pass a hard coded IP as an argument.

Now, to the question: Is ffmpeg binding to a random UDP unicast port when
receiving UDP multicast normal/expected behavior? And if so, how can this
behavior be overridden so that such binding does not occur?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Problem with converting to AVI (XVID-AC3) for Home Theatre

2020-06-28 Thread Carl Eugen Hoyos
Am So., 28. Juni 2020 um 09:00 Uhr schrieb 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"

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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Problem with converting to AVI (XVID-AC3) for Home Theatre

2020-06-28 Thread 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
  libavformat58. 47.100 / 58. 47.100
  libavdevice58. 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
  libpostproc55.  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.00Z
  Duration: 00:00:07.01, start: 0.00, 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.00Z
  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.00Z
  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.00Z
  handler_name: VideoHandler
  encoder : Lavc58.93.100 mpeg4
Side data:
  cpb: bitrate max/min/avg: 0/0/300 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.00Z
  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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Problem with converting to AVI (XVID-AC3) for Home Theatre

2020-06-28 Thread Carl Eugen Hoyos
Am So., 28. Juni 2020 um 13:15 Uhr schrieb Nithin C Babu
:

> 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] extract first 26 seconds not workings as expected

2020-06-28 Thread Leonardo via ffmpeg-user
Hello,


I have a video (main.mp4 - that has about 52 minutes) that I want to cut its 
first 26 seconds.

For this, I'm using command 


$ ffmpeg -i main.mp4 -ss 00:00:00.00 -t 00:00:26.00 -c copy part1.mp4
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --arch=amd64 --enable-gpl 
--disable-stripping --enable-avresample --disable-filter=resample 
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg 
--enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg 
--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack 
--enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid 
--enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal 
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm 
--enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 
--enable-shared
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'main.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
  Duration: 00:52:08.25, start: 0.00, bitrate: 182 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt709), 1366x768 [SAR 1:1 DAR 683:384], 180 kb/s, 23.80 fps, 24 tbr, 12288 tbn, 
48 tbc (default)
    Metadata:
  handler_name    : VideoHandler
Output #0, mp4, to 'part1.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt709), 1366x768 [SAR 1:1 DAR 683:384], q=2-31, 180 kb/s, 23.80 fps, 24 tbr, 
12288 tbn, 12288 tbc (default)
    Metadata:
  handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=  322 fps=0.0 q=-1.0 Lsize= 523kB time=00:00:25.95 bitrate= 
165.2kbits/s speed=8.19e+03x    
video:519kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 0.881877%




However, file part1.mp4 has only 13 seconds!

$ ffprobe part1.mp4 
ffprobe version 4.2.3 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --arch=amd64 --enable-gpl 
--disable-stripping --enable-avresample --disable-filter=resample 
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg 
--enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg 
--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack 
--enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid 
--enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal 
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm 
--enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 
--enable-shared
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'part1.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
  Duration: 00:00:13.42, start: 12.666016, bitrate: 319 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt709), 1366x768 [SAR 1:1 DAR 683:384], 316 kb/s, 24 fps, 24 tbr, 12288 tb

Re: [FFmpeg-user] extract first 26 seconds not workings as expected

2020-06-28 Thread Carl Eugen Hoyos
Am So., 28. Juni 2020 um 20:31 Uhr schrieb Leonardo via ffmpeg-user
:

> I have a video (main.mp4 - that has about 52 minutes) that I want to cut its 
> first 26 seconds.
>
> For this, I'm using command
>
> $ ffmpeg -i main.mp4 -ss 00:00:00.00 -t 00:00:26.00 -c copy part1.mp4
> ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers

Please test current FFmpeg git head, if the issue is reproducible
provide an input sample.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] What version of ffmpeg is compatible with libvpx 1.5.0?

2020-06-28 Thread CESAR MURILO DA SILVA JUNIOR
Hello


I use OS Slackware 14.2, and for it there is libvpx 1.5.0. Which version of
ffmpeg is supported? I currently have ffmpeg 3.2.4 and wanted to record
video with the simplescreenrecorder version 0.4.2, but says that the
library is not compatible with the codec.

Thanks
*César Murilo da Silva Júnior*
*Téc. Oper. Monit. Computadores Help Desk | Redes e Segurança*
*UNIPAM - Centro Universitário de Patos de Minas*
*T1: 34 3823 0131 | T2: 34 3823 0120 | T3: 34 3823 0356 | C: 34 9 9220 5680*

*cesa...@unipam.edu.br *
 
 



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".