Re: [FFmpeg-user] ffmpeg doesn't see audio stream

2020-10-16 Thread Ivan Gorin
That worked, thank you. Also I was able to "fix" it by cutting off several
bytes using dd (like Micael Silva also suggested), although I'm not sure if
that keeps the file structure intact, so your solution is better.

On Sat, Oct 17, 2020 at 4:49 AM Carl Eugen Hoyos  wrote:

> Am Sa., 17. Okt. 2020 um 03:13 Uhr schrieb Ivan Gorin <
> ivangori...@gmail.com>:
> >
> > Here is the link to a sample, it's the very beginning of the video,
> where I
> > think the problem is. VLC says there is an indexing problem but it plays
> > fine.
> >
> > https://drive.google.com/file/d/1hznkCKQWWbmxSSBQxwyKY-G3Kje_D9nh
>
> I know this does not scale very well but DV's are special:
> $ ffmpeg -ss 1 -i input -vcodec copy -f rawvideo out
>
> out is now a dv file with audio.
>
> As explained by Micael, the issue is that the beginning of the file
> contains
> broken frames.
>
> ffplay allows you to press "a" while playing to enable the newly-found
> audio stream with your original 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 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] ffmpeg doesn't see audio stream

2020-10-16 Thread Carl Eugen Hoyos
Am Sa., 17. Okt. 2020 um 03:13 Uhr schrieb Ivan Gorin :
>
> Here is the link to a sample, it's the very beginning of the video, where I
> think the problem is. VLC says there is an indexing problem but it plays
> fine.
>
> https://drive.google.com/file/d/1hznkCKQWWbmxSSBQxwyKY-G3Kje_D9nh

I know this does not scale very well but DV's are special:
$ ffmpeg -ss 1 -i input -vcodec copy -f rawvideo out

out is now a dv file with audio.

As explained by Micael, the issue is that the beginning of the file contains
broken frames.

ffplay allows you to press "a" while playing to enable the newly-found
audio stream with your original 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".

Re: [FFmpeg-user] ffmpeg doesn't see audio stream

2020-10-16 Thread Carl Zwanzig

On 10/16/2020 6:18 PM, Ivan Gorin wrote:

Yes, I've tried both of them, used different values from 1 million and
higher, no change. Was doing something like  ffmpeg -probesize 10
-analyzeduration 10.Still sees only the video stream. Maybe I'm not
using them correctly, can you give an example?


You could post in the results of those attempts.

https://greshka.net/avicheck/ Suggests using "ffmpeg -v 5 -i INPUT.avi -f 
null -" to scan the file and also has some pointers to other tools. I'm not 
able try any of them at the moment; the video processing machine is behind a 
wall of boxes from some reconstruction.


(Also, please don't top-post.)

z!
___
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] ffmpeg doesn't see audio stream

2020-10-16 Thread Ivan Gorin
Here is the link to a sample, it's the very beginning of the video, where I
think the problem is. VLC says there is an indexing problem but it plays
fine.

https://drive.google.com/file/d/1hznkCKQWWbmxSSBQxwyKY-G3Kje_D9nh/view?usp=sharing
Attachments area


On Sat, Oct 17, 2020 at 3:57 AM Carl Eugen Hoyos  wrote:

> Am Sa., 17. Okt. 2020 um 02:31 Uhr schrieb Ivan Gorin <
> ivangori...@gmail.com>:
> >
> > Here is the full output of ffprobe which i built from github (I hope I
> did
> > it right). I don't know how to provide a sample input file since I can't
> > cut the video - it loses the audio stream.
>
> Use dd to cut the 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 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] ffmpeg doesn't see audio stream

2020-10-16 Thread Micael Silva
On Fri, Oct 16, 2020 at 10:13 PM Ivan Gorin  wrote:

> Here is the link to a sample, it's the very beginning of the video, where I
> think the problem is. VLC says there is an indexing problem but it plays
> fine.
>
>
> https://drive.google.com/file/d/1hznkCKQWWbmxSSBQxwyKY-G3Kje_D9nh/view?usp=sharing
>

It seems to be a dropout, very common in DV tapes. Somehow ffmpeg relies on
the broken index and cannot ignore it. Maybe manually cutting the broken
beginning it can work.
___
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] ffmpeg doesn't see audio stream

2020-10-16 Thread Ivan Gorin
Yes, I've tried both of them, used different values from 1 million and
higher, no change. Was doing something like  ffmpeg -probesize 10
-analyzeduration 10.Still sees only the video stream. Maybe I'm not
using them correctly, can you give an example?
___
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] ffmpeg doesn't see audio stream

2020-10-16 Thread Ivan Gorin
Here is the link to a sample, it's the very beginning of the video, where I
think the problem is. VLC says there is an indexing problem but it plays
fine.

https://drive.google.com/file/d/1hznkCKQWWbmxSSBQxwyKY-G3Kje_D9nh/view?usp=sharing
___
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] ffmpeg doesn't see audio stream

2020-10-16 Thread Carl Zwanzig

On 10/16/2020 12:41 PM, Ivan Gorin wrote:

[avi @ 0x558097763700] New audio stream 0:1 at pos:18113032 and DTS:0s
[avi @ 0x558097763700] New audio stream 0:2 at pos:18113032 and DTS:0s



Have you tried using -analyzedurarion and -probesize with relative large 
values to find the streams? See the doc for exact behavior and values.


z!
___
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] ffmpeg doesn't see audio stream

2020-10-16 Thread Carl Eugen Hoyos
Am Sa., 17. Okt. 2020 um 02:31 Uhr schrieb Ivan Gorin :
>
> Here is the full output of ffprobe which i built from github (I hope I did
> it right). I don't know how to provide a sample input file since I can't
> cut the video - it loses the audio stream.

Use dd to cut the 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".

Re: [FFmpeg-user] ffmpeg doesn't see audio stream

2020-10-16 Thread Ivan Gorin
Here is the full output of ffprobe which i built from github (I hope I did
it right). I don't know how to provide a sample input file since I can't
cut the video - it loses the audio stream. The whole file is 9gb, so I
can't upload it.




ffprobe version N-99585-gfcec7a6848 Copyright (c) 2007-2020 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration:
  libavutil  56. 60.100 / 56. 60.100
  libavcodec 58.111.101 / 58.111.101
  libavformat58. 62.100 / 58. 62.100
  libavdevice58. 11.102 / 58. 11.102
  libavfilter 7. 87.100 /  7. 87.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
[avi @ 0x5651c36cfdc0] Switching to NI mode, due to poor interleaving
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=66
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=70
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=73
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=72
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=67
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=65
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=65
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=114
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=67
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=67
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=70
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=74
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=65
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=66
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=65
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=66
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=65
[dvvideo @ 0x5651c36d26c0] Concealing bitstream errors
[dvvideo @ 0x5651c36d26c0] AC EOB marker is absent pos=64
[dvvideo @ 0x

Re: [FFmpeg-user] ffmpeg doesn't see audio stream

2020-10-16 Thread Carl Eugen Hoyos
Am Fr., 16. Okt. 2020 um 21:42 Uhr schrieb Ivan Gorin :
>
> I have several avi files I captured from miniDV cassettes, and now am
> trying to compress using ffmpeg. running ffprobe on one of the files yields
> this output:

Please (test current FFmpeg git head and) provide a sample input file.

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] ffmpeg doesn't see audio stream

2020-10-16 Thread Ivan Gorin
I have several avi files I captured from miniDV cassettes, and now am
trying to compress using ffmpeg. running ffprobe on one of the files yields
this output:

ffprobe thailand.avi
ffprobe version 4.2.4-1ubuntu0.1 Copyright (c) 2007-2020 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --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-opencl
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm
--enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r
--enable-libx264 --enable-shared
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  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
  libpostproc55.  5.100 / 55.  5.100
[avi @ 0x55684bca9f00] Switching to NI mode, due to poor interleaving
[dvvideo @ 0x55684bcac340] AC EOB marker is absent pos=66
[dvvideo @ 0x55684bcac340] Concealing bitstream errors
..
[dvvideo @ 0x55684bcac340] AC EOB marker is absent pos=64
[dvvideo @ 0x55684bcac340] Concealing bitstream errors
Input #0, avi, from 'thailand.avi':
  Duration: 00:43:24.04, start: 0.00, bitrate: 28878 kb/s
Stream #0:0: Video: dvvideo, yuv420p, 720x576, 25000 kb/s, SAR 16:15
DAR 4:3, 25 fps, 25 tbr, 25 tbn, 25 tbc

(I shortened the output, there are many more repeating lines with AC
EOB...).

It seems like ffprobe doesn't see the audio stream. When viewing this file
with VLC the audio plays fine, but doing any operation using ffmpeg loses
the audio stream. I tried the solution from this

question using mencoder, but it didn't see the audio stream either. How can
I fix this file?

Also, when running some ffmpeg command, for example ffmpeg -ss 00:00:05 -i
thailand.avi -t 00:00:10 -c copy -map 0 output.avi it outputs the same AC
EOB errors. But after starting the operation it outputs this:

ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --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-opencl
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm
--enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r
--enable-libx264 --enable-shared
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  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
  libpostproc55.  5.100 / 55.  5.100
[avi @ 0x558097763700] Switching to NI mode, due to poor interleaving
[dvvideo @ 0x558097765f00] AC EOB marker is absent pos=66
[dvvideo @ 0x558097