Problem with recorded YouTube stream

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

Problem with recorded YouTube stream

H
I am running ffmpeg 2.8.15 under CentOS 7, the latest version released for that operating system.

Yesterday I recorded a YouTube stream for later playback. However, playing it back in ffmpeg results in the dreaded:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1d5ac20] moov atom not found
abb.mp4: Invalid data found when processing input

I saved the information output by ffmpeg (youtube-dl) when recording the stream and am hoping that someone could suggest some options I could use for ffmpeg to allow me to play the stream back. Here is what I believe might be key info:

Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 120 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[tls @ 0x22e0d00] The TLS connection was non-properly terminated.
[tls @ 0x22e0d00] The specified session has been invalidated for some reason.
[tls @ 0x2309820] The TLS connection was non-properly terminated.te= 224.4kbits/s   

...


Thank you.

_______________________________________________
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 recorded YouTube stream

Carl Zwanzig
On 4/20/2020 11:42 AM, H wrote:
> I am running ffmpeg 2.8.15 under CentOS 7, the latest version released for that operating system.

First- that version is positively _ancient_ and not supported at all.
Download a current linux build as linked from
https://ffmpeg.org/download.html and try that. Or pull the source from git
and build your own version.

Second- please post the _entire_ command output

(third- when replying, do not top-post your message)

These are pretty much immutable rules of the list and are discussed in
https://ffmpeg.org/mailing-list-faq.html


Later,

z!
_______________________________________________
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".
H
Reply | Threaded
Open this post in threaded view
|

Re: Problem with recorded YouTube stream

H
On 04/20/2020 02:58 PM, Carl Zwanzig wrote:

> On 4/20/2020 11:42 AM, H wrote:
>> I am running ffmpeg 2.8.15 under CentOS 7, the latest version released for that operating system.
>
> First- that version is positively _ancient_ and not supported at all. Download a current linux build as linked from https://ffmpeg.org/download.html and try that. Or pull the source from git and build your own version.
>
> Second- please post the _entire_ command output
>
> (third- when replying, do not top-post your message)
>
> These are pretty much immutable rules of the list and are discussed in https://ffmpeg.org/mailing-list-faq.html
>
>
> Later,
>
> z!
> _______________________________________________
> 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".

I downloaded the latest version of ffmpeg for CentOS 7 and tried to view the file, the error message is pretty much the same as with the older version of ffmpeg, ie:

[hakan@decd379621cd ~]$ ffmpeg -v 9 -loglevel 99 -i *mp4
ffmpeg version 3.4.7 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input url with argument 'RRTepdBvUFE.mp4'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input url RRTepdBvUFE.mp4.
Successfully parsed a group of options.
Opening an input file: RRTepdBvUFE.mp4.
[NULL @ 0x248ee00] Opening 'RRTepdBvUFE.mp4' for reading
[file @ 0x248f620] Setting default whitelist 'file,crypto'
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8 227566402
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40 227566402
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48 227566402
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8 227566402
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40 227566402
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48 227566402
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] moov atom not found
[AVIOContext @ 0x2497800] Statistics: 65536 bytes read, 3 seeks
RRTepdBvUFE.mp4: Invalid data found when processing input



Here is the output when I recorded the live stream on YouTube, hopefully it can help with configuring ffmpeg correctly to play back:


youtube-dl https://youtube.com/watch?v=RRTepdBvUFE
[youtube] RRTepdBvUFE: Downloading webpage
[youtube] RRTepdBvUFE: Downloading video info webpage
[youtube] RRTepdBvUFE: Downloading m3u8 information
[youtube] RRTepdBvUFE: Downloading MPD manifest
[download] Destination: RRTepdBvUFE.mp4
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample
--enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[tls @ 0x2271800] The TLS connection was non-properly terminated.
[tls @ 0x2271800] The specified session has been invalidated for some reason.
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1587349355/ei/C7OcXrKZNMON8gTFz7DwDA/ip/72.91.52.172/id/RRTepdBvUFE.1/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D136/hls_chunk_host/r6---sn-8xgp1vo-2ial.googlevideo.com/playlist_duration/30/manifest_duration/30/vprv/1/playlist_type/DVR/initcwndbps/11640/mh/G5/mm/44/mn/sn-8xgp1vo-2ial/ms/lva/mv/m/mvi/5/pl/16/dover/11/keepalive/yes/mt/1587327676/disable_polymer/true/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,live,goi,sgoap,sgovp,playlist_duration,manifest_duration,vprv,playlist_type/sig/AOq0QJ8wRAIgPiX7f79OSn57RLNxnoJjPB-6kamtzdN43I4UGnb3TC0CICvirpYRqqkN77YyYbTTbzJXyVMsnIjXSw7BRvZcd35U/lsparams/hls_chunk_host,initcwndbps,mh,mm,mn,ms,mv,mvi,pl/lsig/AG3C_xAwRQIhALsUx7VFrJc6mfZnmtp_YB6FR0mBb5qQ-EC0HSMaVhodAiBdH5hD-VKGgrt6ejeu0GZM1CGYCDCY0VYvEY7-zF-C1A%3D%3D/playlist/index.m3u8':
  Duration: N/A, start: 2495.011000, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 120 kb/s
    Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
[mp4 @ 0x293b8a0] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 0x293b8a0] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, mp4, to 'file:RRTepdBvUFE.mp4.part':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 120 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[tls @ 0x22e0d00] The TLS connection was non-properly terminated.
[tls @ 0x22e0d00] The specified session has been invalidated for some reason.
[tls @ 0x2309820] The TLS connection was non-properly terminated.te= 224.4kbits/s   

etc

etc

I appreciate any help. Thank you.

_______________________________________________
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 recorded YouTube stream

Tom Sparks-2
Are you sure you are using the latest version of youtube-dl from
https://youtube-dl.org/ ?
Are you using the latest version of python?


On 22/04/2020, H <[hidden email]> wrote:

> On 04/20/2020 02:58 PM, Carl Zwanzig wrote:
>> On 4/20/2020 11:42 AM, H wrote:
>>> I am running ffmpeg 2.8.15 under CentOS 7, the latest version released
>>> for that operating system.
>>
>> First- that version is positively _ancient_ and not supported at all.
>> Download a current linux build as linked from
>> https://ffmpeg.org/download.html and try that. Or pull the source from git
>> and build your own version.
>>
>> Second- please post the _entire_ command output
>>
>> (third- when replying, do not top-post your message)
>>
>> These are pretty much immutable rules of the list and are discussed in
>> https://ffmpeg.org/mailing-list-faq.html
>>
>>
>> Later,
>>
>> z!
>> _______________________________________________
>> 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".
>
> I downloaded the latest version of ffmpeg for CentOS 7 and tried to view the
> file, the error message is pretty much the same as with the older version of
> ffmpeg, ie:
>
> [hakan@decd379621cd ~]$ ffmpeg -v 9 -loglevel 99 -i *mp4
> ffmpeg version 3.4.7 Copyright (c) 2000-2019 the FFmpeg developers
>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
>   configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg
> --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg
> --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g
> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
> --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
> --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' '
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd
> --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa
> --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm
> --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm
> --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl
> --enable-opengl --enable-libopenjpeg --enable-libopus
> --disable-encoder=libopus --enable-libpulse --enable-librsvg
> --enable-libsoxr --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libx264
> --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter
> --enable-avresample --enable-postproc --enable-pthreads --disable-static
> --enable-shared --enable-gpl --disable-debug --disable-stripping
> --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
>   libavutil      55. 78.100 / 55. 78.100
>   libavcodec     57.107.100 / 57.107.100
>   libavformat    57. 83.100 / 57. 83.100
>   libavdevice    57. 10.100 / 57. 10.100
>   libavfilter     6.107.100 /  6.107.100
>   libavresample   3.  7.  0 /  3.  7.  0
>   libswscale      4.  8.100 /  4.  8.100
>   libswresample   2.  9.100 /  2.  9.100
>   libpostproc    54.  7.100 / 54.  7.100
> Splitting the commandline.
> Reading option '-v' ... matched as option 'v' (set logging level) with
> argument '9'.
> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
> level) with argument '99'.
> Reading option '-i' ... matched as input url with argument
> 'RRTepdBvUFE.mp4'.
> Finished splitting the commandline.
> Parsing a group of options: global .
> Applying option v (set logging level) with argument 9.
> Successfully parsed a group of options.
> Parsing a group of options: input url RRTepdBvUFE.mp4.
> Successfully parsed a group of options.
> Opening an input file: RRTepdBvUFE.mp4.
> [NULL @ 0x248ee00] Opening 'RRTepdBvUFE.mp4' for reading
> [file @ 0x248f620] Setting default whitelist 'file,crypto'
> Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] Format mov,mp4,m4a,3gp,3g2,mj2 probed
> with size=2048 and score=100
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] moov atom not found
> [AVIOContext @ 0x2497800] Statistics: 65536 bytes read, 3 seeks
> RRTepdBvUFE.mp4: Invalid data found when processing input
>
>
>
> Here is the output when I recorded the live stream on YouTube, hopefully it
> can help with configuring ffmpeg correctly to play back:
>
>
> youtube-dl https://youtube.com/watch?v=RRTepdBvUFE
> [youtube] RRTepdBvUFE: Downloading webpage
> [youtube] RRTepdBvUFE: Downloading video info webpage
> [youtube] RRTepdBvUFE: Downloading m3u8 information
> [youtube] RRTepdBvUFE: Downloading MPD manifest
> [download] Destination: RRTepdBvUFE.mp4
> ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
>   configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg
> --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
> --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
> -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro '
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd
> --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio
> --enable-libdc1394 --enable-libfdk-aac --enable-nonfree --disable-indev=jack
> --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal
> --enable-libopenjpeg --enable-libopus --enable-libpulse
> --enable-libschroedinger --enable-libsoxr --enable-libspeex
> --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264
> --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter
> --enable-avresample
> --enable-postproc --enable-pthreads --disable-static --enable-shared
> --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64
> --enable-runtime-cpudetect
>   libavutil      54. 31.100 / 54. 31.100
>   libavcodec     56. 60.100 / 56. 60.100
>   libavformat    56. 40.101 / 56. 40.101
>   libavdevice    56.  4.100 / 56.  4.100
>   libavfilter     5. 40.101 /  5. 40.101
>   libavresample   2.  1.  0 /  2.  1.  0
>   libswscale      3.  1.101 /  3.  1.101
>   libswresample   1.  2.101 /  1.  2.101
>   libpostproc    53.  3.100 / 53.  3.100
> [tls @ 0x2271800] The TLS connection was non-properly terminated.
> [tls @ 0x2271800] The specified session has been invalidated for some
> reason.
> Input #0, hls,applehttp, from
> 'https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1587349355/ei/C7OcXrKZNMON8gTFz7DwDA/ip/72.91.52.172/id/RRTepdBvUFE.1/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D136/hls_chunk_host/r6---sn-8xgp1vo-2ial.googlevideo.com/playlist_duration/30/manifest_duration/30/vprv/1/playlist_type/DVR/initcwndbps/11640/mh/G5/mm/44/mn/sn-8xgp1vo-2ial/ms/lva/mv/m/mvi/5/pl/16/dover/11/keepalive/yes/mt/1587327676/disable_polymer/true/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,live,goi,sgoap,sgovp,playlist_duration,manifest_duration,vprv,playlist_type/sig/AOq0QJ8wRAIgPiX7f79OSn57RLNxnoJjPB-6kamtzdN43I4UGnb3TC0CICvirpYRqqkN77YyYbTTbzJXyVMsnIjXSw7BRvZcd35U/lsparams/hls_chunk_host,initcwndbps,mh,mm,mn,ms,mv,mvi,pl/lsig/AG3C_xAwRQIhALsUx7VFrJc6mfZnmtp_YB6FR0mBb5qQ-EC0HSMaVhodAiBdH5hD-VKGgrt6ejeu0GZM1CGYCDCY0VYvEY7-zF-C1A%3D%3D/playlist/index.m3u8':
>   Duration: N/A, start: 2495.011000, bitrate: N/A
>   Program 0
>     Metadata:
>       variant_bitrate : 0
>     Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo,
> fltp, 120 kb/s
>     Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv,
> bt709), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
> [mp4 @ 0x293b8a0] Codec for stream 0 does not use global headers but
> container format requires global headers
> [mp4 @ 0x293b8a0] Codec for stream 1 does not use global headers but
> container format requires global headers
> Output #0, mp4, to 'file:RRTepdBvUFE.mp4.part':
>   Metadata:
>     encoder         : Lavf56.40.101
>     Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720
> [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
>     Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 120
> kb/s
> Stream mapping:
>   Stream #0:1 -> #0:0 (copy)
>   Stream #0:0 -> #0:1 (copy)
> Press [q] to stop, [?] for help
> [tls @ 0x22e0d00] The TLS connection was non-properly terminated.
> [tls @ 0x22e0d00] The specified session has been invalidated for some
> reason.
> [tls @ 0x2309820] The TLS connection was non-properly terminated.te=
> 224.4kbits/s
>
> etc
>
> etc
>
> I appreciate any help. Thank you.
>
> _______________________________________________
> 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".
_______________________________________________
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 recorded YouTube stream

kumowoon1025
In reply to this post by H
Hi,
> [tls @ 0x22e0d00] The TLS connection was non-properly terminated.
> [tls @ 0x22e0d00] The specified session has been invalidated for some reason.
> [tls @ 0x2309820] The TLS connection was non-properly terminated.te= 224.4kbits/s  

It doesn't look like the download was entirely successful in the first place...
It does report some kind a bitrate, are you trying to salvage this, or would redownloading be an easier option?

Regards,
Ted Park
_______________________________________________
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".
H
Reply | Threaded
Open this post in threaded view
|

Re: Problem with recorded YouTube stream

H
In reply to this post by Tom Sparks-2
On 04/21/2020 09:03 PM, Tom Sparks wrote:

> Are you sure you are using the latest version of youtube-dl from
> https://youtube-dl.org/ ?
> Are you using the latest version of python?
>
>
> On 22/04/2020, H <[hidden email]> wrote:
>> On 04/20/2020 02:58 PM, Carl Zwanzig wrote:
>>> On 4/20/2020 11:42 AM, H wrote:
>>>> I am running ffmpeg 2.8.15 under CentOS 7, the latest version released
>>>> for that operating system.
>>> First- that version is positively _ancient_ and not supported at all.
>>> Download a current linux build as linked from
>>> https://ffmpeg.org/download.html and try that. Or pull the source from git
>>> and build your own version.
>>>
>>> Second- please post the _entire_ command output
>>>
>>> (third- when replying, do not top-post your message)
>>>
>>> These are pretty much immutable rules of the list and are discussed in
>>> https://ffmpeg.org/mailing-list-faq.html
>>>
>>>
>>> Later,
>>>
>>> z!
>>> _______________________________________________
>>> 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".
>> I downloaded the latest version of ffmpeg for CentOS 7 and tried to view the
>> file, the error message is pretty much the same as with the older version of
>> ffmpeg, ie:
>>
>> [hakan@decd379621cd ~]$ ffmpeg -v 9 -loglevel 99 -i *mp4
>> ffmpeg version 3.4.7 Copyright (c) 2000-2019 the FFmpeg developers
>>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
>>   configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg
>> --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg
>> --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g
>> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
>> --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
>> --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' '
>> --enable-libopencore-amrnb --enable-libopencore-amrwb
>> --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd
>> --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa
>> --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm
>> --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm
>> --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl
>> --enable-opengl --enable-libopenjpeg --enable-libopus
>> --disable-encoder=libopus --enable-libpulse --enable-librsvg
>> --enable-libsoxr --enable-libspeex --enable-libtheora
>> --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libx264
>> --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter
>> --enable-avresample --enable-postproc --enable-pthreads --disable-static
>> --enable-shared --enable-gpl --disable-debug --disable-stripping
>> --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
>>   libavutil      55. 78.100 / 55. 78.100
>>   libavcodec     57.107.100 / 57.107.100
>>   libavformat    57. 83.100 / 57. 83.100
>>   libavdevice    57. 10.100 / 57. 10.100
>>   libavfilter     6.107.100 /  6.107.100
>>   libavresample   3.  7.  0 /  3.  7.  0
>>   libswscale      4.  8.100 /  4.  8.100
>>   libswresample   2.  9.100 /  2.  9.100
>>   libpostproc    54.  7.100 / 54.  7.100
>> Splitting the commandline.
>> Reading option '-v' ... matched as option 'v' (set logging level) with
>> argument '9'.
>> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
>> level) with argument '99'.
>> Reading option '-i' ... matched as input url with argument
>> 'RRTepdBvUFE.mp4'.
>> Finished splitting the commandline.
>> Parsing a group of options: global .
>> Applying option v (set logging level) with argument 9.
>> Successfully parsed a group of options.
>> Parsing a group of options: input url RRTepdBvUFE.mp4.
>> Successfully parsed a group of options.
>> Opening an input file: RRTepdBvUFE.mp4.
>> [NULL @ 0x248ee00] Opening 'RRTepdBvUFE.mp4' for reading
>> [file @ 0x248f620] Setting default whitelist 'file,crypto'
>> Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] Format mov,mp4,m4a,3gp,3g2,mj2 probed
>> with size=2048 and score=100
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8
>> 227566402
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40
>> 227566402
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48
>> 227566402
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8
>> 227566402
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40
>> 227566402
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48
>> 227566402
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] moov atom not found
>> [AVIOContext @ 0x2497800] Statistics: 65536 bytes read, 3 seeks
>> RRTepdBvUFE.mp4: Invalid data found when processing input
>>
>>
>>
>> Here is the output when I recorded the live stream on YouTube, hopefully it
>> can help with configuring ffmpeg correctly to play back:
>>
>>
>> youtube-dl https://youtube.com/watch?v=RRTepdBvUFE
>> [youtube] RRTepdBvUFE: Downloading webpage
>> [youtube] RRTepdBvUFE: Downloading video info webpage
>> [youtube] RRTepdBvUFE: Downloading m3u8 information
>> [youtube] RRTepdBvUFE: Downloading MPD manifest
>> [download] Destination: RRTepdBvUFE.mp4
>> ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
>>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
>>   configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg
>> --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
>> --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
>> -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
>> -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro '
>> --enable-libopencore-amrnb --enable-libopencore-amrwb
>> --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd
>> --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio
>> --enable-libdc1394 --enable-libfdk-aac --enable-nonfree --disable-indev=jack
>> --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal
>> --enable-libopenjpeg --enable-libopus --enable-libpulse
>> --enable-libschroedinger --enable-libsoxr --enable-libspeex
>> --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264
>> --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter
>> --enable-avresample
>> --enable-postproc --enable-pthreads --disable-static --enable-shared
>> --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64
>> --enable-runtime-cpudetect
>>   libavutil      54. 31.100 / 54. 31.100
>>   libavcodec     56. 60.100 / 56. 60.100
>>   libavformat    56. 40.101 / 56. 40.101
>>   libavdevice    56.  4.100 / 56.  4.100
>>   libavfilter     5. 40.101 /  5. 40.101
>>   libavresample   2.  1.  0 /  2.  1.  0
>>   libswscale      3.  1.101 /  3.  1.101
>>   libswresample   1.  2.101 /  1.  2.101
>>   libpostproc    53.  3.100 / 53.  3.100
>> [tls @ 0x2271800] The TLS connection was non-properly terminated.
>> [tls @ 0x2271800] The specified session has been invalidated for some
>> reason.
>> Input #0, hls,applehttp, from
>> 'https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1587349355/ei/C7OcXrKZNMON8gTFz7DwDA/ip/72.91.52.172/id/RRTepdBvUFE.1/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D136/hls_chunk_host/r6---sn-8xgp1vo-2ial.googlevideo.com/playlist_duration/30/manifest_duration/30/vprv/1/playlist_type/DVR/initcwndbps/11640/mh/G5/mm/44/mn/sn-8xgp1vo-2ial/ms/lva/mv/m/mvi/5/pl/16/dover/11/keepalive/yes/mt/1587327676/disable_polymer/true/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,live,goi,sgoap,sgovp,playlist_duration,manifest_duration,vprv,playlist_type/sig/AOq0QJ8wRAIgPiX7f79OSn57RLNxnoJjPB-6kamtzdN43I4UGnb3TC0CICvirpYRqqkN77YyYbTTbzJXyVMsnIjXSw7BRvZcd35U/lsparams/hls_chunk_host,initcwndbps,mh,mm,mn,ms,mv,mvi,pl/lsig/AG3C_xAwRQIhALsUx7VFrJc6mfZnmtp_YB6FR0mBb5qQ-EC0HSMaVhodAiBdH5hD-VKGgrt6ejeu0GZM1CGYCDCY0VYvEY7-zF-C1A%3D%3D/playlist/index.m3u8':
>>   Duration: N/A, start: 2495.011000, bitrate: N/A
>>   Program 0
>>     Metadata:
>>       variant_bitrate : 0
>>     Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo,
>> fltp, 120 kb/s
>>     Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv,
>> bt709), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
>> [mp4 @ 0x293b8a0] Codec for stream 0 does not use global headers but
>> container format requires global headers
>> [mp4 @ 0x293b8a0] Codec for stream 1 does not use global headers but
>> container format requires global headers
>> Output #0, mp4, to 'file:RRTepdBvUFE.mp4.part':
>>   Metadata:
>>     encoder         : Lavf56.40.101
>>     Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720
>> [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
>>     Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 120
>> kb/s
>> Stream mapping:
>>   Stream #0:1 -> #0:0 (copy)
>>   Stream #0:0 -> #0:1 (copy)
>> Press [q] to stop, [?] for help
>> [tls @ 0x22e0d00] The TLS connection was non-properly terminated.
>> [tls @ 0x22e0d00] The specified session has been invalidated for some
>> reason.
>> [tls @ 0x2309820] The TLS connection was non-properly terminated.te=
>> 224.4kbits/s
>>
>> etc
>>
>> etc
>>
>> I appreciate any help. Thank you.
>>
>> _______________________________________________
>> 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".
> _______________________________________________
> 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".

Yes, I was using the latest version of youtube-dl from the CentOS 7 repository. However, this was a live event I recorded so I cannot go back and try again. I am stuck with what I recorded and I would now to see if I can recover the recording.

_______________________________________________
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".
H
Reply | Threaded
Open this post in threaded view
|

Re: Problem with recorded YouTube stream

H
In reply to this post by kumowoon1025
On 04/21/2020 10:32 PM, Edward Park wrote:

> Hi,
>> [tls @ 0x22e0d00] The TLS connection was non-properly terminated.
>> [tls @ 0x22e0d00] The specified session has been invalidated for some reason.
>> [tls @ 0x2309820] The TLS connection was non-properly terminated.te= 224.4kbits/s  
> It doesn't look like the download was entirely successful in the first place...
> It does report some kind a bitrate, are you trying to salvage this, or would redownloading be an easier option?
>
> Regards,
> Ted Park
> _______________________________________________
> 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".

No, as I said in my post, this was a live event and I am stuck with what I have recorded. The recording is about 260 MB so something has been recorded, now how to recover it.

BTW, the warning(?) messages above repeated the entire time, if, however, there was nothing that could be recorded I would think youtube-dl would have aborted, not continued to record?

_______________________________________________
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 recorded YouTube stream

kumowoon1025
In reply to this post by H
Hi,
> [NULL @ 0x248ee00] Opening 'RRTepdBvUFE.mp4' for reading
> [file @ 0x248f620] Setting default whitelist 'file,crypto'
> Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8 227566402
So it looks like the file appears to be 227,566,402 bytes, most of which you'd expect to be taken up by the mdat atom
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48 227566402
But it is shown as 0 bytes long for some reason. Maybe it is a placeholder that was supposed to be replaced with the actual size afterwards because you can't know how long the atom is until you've finished writing it.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] moov atom not found
> [AVIOContext @ 0x2497800] Statistics: 65536 bytes read, 3 seeks
> RRTepdBvUFE.mp4: Invalid data found when processing input
And I guess it goes back to the start? Not sure but either way it doesn't find the moov atom. You could try looking for it, by opening the file as plain ascii text and literally searching for 'moov' but I can't help but think the correct size for the previous atom would have been filled in if the script's ffmpeg invocation got to that point. Still, if the file's taking up ~260MB on disk, maybe the byte count is selling the file short for some reason, and it might be there near the end.

But your newest version of ffmpeg is still pretty old, you should try with an up-to-date version first, it probably has as much of a chance of working as any other method.

Regards,
Ted Park
_______________________________________________
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 recorded YouTube stream

Carl Zwanzig
In reply to this post by H
On 4/22/2020 7:40 AM, H wrote:
> Yes, I was using the latest version of youtube-dl from the CentOS 7 repository.

On 4/22/2020 9:15 AM, Edward Park wrote:
> But your newest version of ffmpeg is still pretty old, you should try
> with an up-to-date version first, it probably has as much of a chance of
> working as any other method.
The point I was trying to make earlier (and Edward, too) is that while
you're getting the latest in the Centos repo, that is nowhere _near_ the
current version. Please try that.

I already pointed to ffmpeg, but again-
go to https://ffmpeg.org/download.html
skip the Ubuntu official packages because we know they are old, go to "Linux
Static builds" (https://johnvansickle.com/ffmpeg/) and get a "git master"
build from there.

for youtube-dl-
http://ytdl-org.github.io/youtube-dl/download.html


Regarding the captured content-
Have you tried any other players to view it (vlc, mpv, mplayer, etc)? What
do they do?
If none of them can even play the file, it may be truly damaged and you need
to look at repair tools. You _may_ be able to recover something with a
simple "ffmpeg -i input.mp4 -c copy output.mp4" (using a current ffmpeg),
but no guarantees. VLC also has some recovery and conversion options.


Later,

z!
_______________________________________________
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".
H
Reply | Threaded
Open this post in threaded view
|

Re: Problem with recorded YouTube stream

H
On 04/22/2020 12:38 PM, Carl Zwanzig wrote:

> On 4/22/2020 7:40 AM, H wrote:
>> Yes, I was using the latest version of youtube-dl from the CentOS 7 repository.
>
> On 4/22/2020 9:15 AM, Edward Park wrote:
>> But your newest version of ffmpeg is still pretty old, you should try with an up-to-date version first, it probably has as much of a chance of
>> working as any other method.
> The point I was trying to make earlier (and Edward, too) is that while you're getting the latest in the Centos repo, that is nowhere _near_ the current version. Please try that.
>
> I already pointed to ffmpeg, but again-
> go to https://ffmpeg.org/download.html
> skip the Ubuntu official packages because we know they are old, go to "Linux Static builds" (https://johnvansickle.com/ffmpeg/) and get a "git master" build from there.
>
> for youtube-dl-
> http://ytdl-org.github.io/youtube-dl/download.html
>
>
> Regarding the captured content-
> Have you tried any other players to view it (vlc, mpv, mplayer, etc)? What do they do?
> If none of them can even play the file, it may be truly damaged and you need to look at repair tools. You _may_ be able to recover something with a simple "ffmpeg -i input.mp4 -c copy output.mp4" (using a current ffmpeg), but no guarantees. VLC also has some recovery and conversion options.
>
>
> Later,
>
> z!
> _______________________________________________
> 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".

I downloaded the latest version for CentOS 7 from the ffmpeg website after your first e-mail and my two previous posts were based on that. As for the download using an old version of youtube-dl that is in the past and not something I can do again since it was a live event.

I was hoping that knowing the output from youtube-dl when recording would allow us to know which options to use to force ffmpeg to play it back - assuming it can be done, of course.

Output from various other packages follow below.

Copying the file using ffmpeg fails with:

ffmpeg -i *mp4 -c copy test.mp4
ffmpeg version 3.4.7 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x215fe80] moov atom not found
RRTepdBvUFE.mp4: Invalid data found when processing input

vlc fails with:

LC media player 2.2.8 Weatherwax (revision 2.2.7-14-g3cc1d8cba9)
[0000000000eb0168] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fca54c41360] moov atom not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fca2cc09fa0] moov atom not found
[00007fca2cc018d8] avformat demux error: Could not open /home/RRTepdBvUFE.mp4: Unknown error 1094995529

mplayer fails with:

^C[hakan@rose01 ~]$ mplayer *mp4
MPlayer SVN-r37391-4.8.3 (C) 2000-2015 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing RRTepdBvUFE.mp4.
libavformat version 56.40.101 (external)
Mismatching header version 56.25.101
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f2f86c65920]moov atom not found
LAVF_header: av_open_input_stream() failed
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f2f86c65920]moov atom not found
LAVF_header: av_open_input_stream() failed
RAWDV file format detected.
VIDEO:  [DVSD]  720x480  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
Load subtitles in ./
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (external)
Mismatching header version 56.26.100
Selected video codec: [ffdv] vfm: ffmpeg (FFmpeg DV)
==========================================================================
==========================================================================
Opening audio decoder: [libdv] Raw DV Audio Decoder
Unknown/missing audio format -> no sound
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Cannot find codec 'dvaudio' in libavcodec...
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x56444152.
Audio: no sound
Starting playback...
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
V:   0.3   9/  9 ??% ??% ??,?% 0 0                                                                                        
[dvvideo @ 0x7f2f861c95a0]could not find dv frame profile
Error while decoding frame!
V:   0.3  10/ 10 ??% ??% ??,?% 0 0      

mpv fails with:

Playing: RRTepdBvUFE.mp4
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found
[lavf] avformat_open_input() failed
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found
[lavf] avformat_open_input() failed
Failed to recognize file format.

_______________________________________________
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 recorded YouTube stream

Carl Zwanzig
On 4/22/2020 10:39 AM, H wrote:

> I downloaded the latest version for CentOS 7 from the ffmpeg website
> after your first e-mail and my two previous posts were based on that.
And that is not the _latest_ ffmpeg (forget about "for centos", it's not).


All of these errors say the basically the same thing, the file is well-damaged-

> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x215fe80] moov atom not found
> RRTepdBvUFE.mp4: Invalid data found when processing input

> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fca54c41360] moov atom not found
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fca2cc09fa0] moov atom not found

 > [ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found

(mplayer can't even tell the format)
> RAWDV file format detected.
> VIDEO:  [DVSD]  720x480  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
> Selected video codec: [ffdv] vfm: ffmpeg (FFmpeg DV)

If you google for "moov atom not found", you'll find a pile of suggestions
and pointers to some tools. At this point, that will probably help more than
poking about with ffmpeg options.


For future recordings, consider using a different output container like flv
or ts (or mkv?); those are more resilient to streaming errors.


z!
_______________________________________________
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".
H
Reply | Threaded
Open this post in threaded view
|

Re: Problem with recorded YouTube stream

H
On 04/22/2020 02:04 PM, Carl Zwanzig wrote:

> On 4/22/2020 10:39 AM, H wrote:
>
>> I downloaded the latest version for CentOS 7 from the ffmpeg website
>> after your first e-mail and my two previous posts were based on that.
> And that is not the _latest_ ffmpeg (forget about "for centos", it's not).
>
>
> All of these errors say the basically the same thing, the file is well-damaged-
>
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x215fe80] moov atom not found
>> RRTepdBvUFE.mp4: Invalid data found when processing input
>
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fca54c41360] moov atom not found
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fca2cc09fa0] moov atom not found
>
> > [ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found
>
> (mplayer can't even tell the format)
>> RAWDV file format detected.
>> VIDEO:  [DVSD]  720x480  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
>> Selected video codec: [ffdv] vfm: ffmpeg (FFmpeg DV)
>
> If you google for "moov atom not found", you'll find a pile of suggestions and pointers to some tools. At this point, that will probably help more than poking about with ffmpeg options.
>
>
> For future recordings, consider using a different output container like flv or ts (or mkv?); those are more resilient to streaming errors.
>
>
> z!
> _______________________________________________
> 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".

So you are saying that despite knowing the settings youtube-dl used when recording the file, it is not possible to use that knowledge when using ffmpeg to play the file back (barring damage while recording the file which I have no evidence for)?

_______________________________________________
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 recorded YouTube stream

Carl Zwanzig
On 5/1/2020 3:18 PM, H wrote:
> So you are saying that despite knowing the settings youtube-dl used when
> recording the file, it is not possible to use that knowledge when using
> ffmpeg to play the file back (barring damage while recording the file
> which I have no evidence for)?
You may know certain settings when the file was created but you don't know
things like the specifics of the streams in the container (such as "where
does it start in the file?"); the moov atom is effectively the Table of
Contents for an MP4 container.

Oh, and you have plenty of evidence of file damage- it's in the error
messages you posted; if it wasn't damaged, it should easily play with all
the tools mentioned.


Search for "moov atom not found"- you'll find a lot of discussion on the
matter. One _possible_ solution is something called "untrunc", which I have
not tried. If the moov atom just isn't there, I don't think ffmpeg will help
you.

z!

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