[Libav-user] Unable to read frame

Thanumaiweerakun, Sornrakitch s.thanumaiweerakun at tum.de
Thu Aug 30 02:57:14 EEST 2018


Hi,


I would like to ask some questions. I am doing a project measuring streaming videos. Currently, I use ffmpeg to get video info and trying to read some frames. I tried using this https://www.ffmpeg.org/doxygen/3.1/avio_reading_8c-example.html with av_read_frame() from ffmpeg's example to try with mp4 files downloaded from youtube and dtube<http://d.tube>. Only videos from dtube generate an error, as follows:


[mov,mp4,m4a,3gp,3g2,mj2 @ 0xed4040] stream 0, offset 0x30: partial file

[mov,mp4,m4a,3gp,3g2,mj2 @ 0xed4040] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 854x480, 1059 kb/s): unspecified pixel format

Consider increasing the value for the 'analyzeduration' and 'probesize' options

[mov,mp4,m4a,3gp,3g2,mj2 @ 0xed4040] Could not find codec parameters for stream 1 (Audio: aac (mp4a / 0x6134706D), 44100 Hz, 2 channels, 127 kb/s): unspecified sample format

Consider increasing the value for the 'analyzeduration' and 'probesize' options

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dtube.mp4':

  Metadata:

    major_brand     : isom

    minor_version   : 512

    compatible_brands: isomiso2avc1mp41

    encoder         : Lavf57.56.101

  Duration: 00:06:03.50, bitrate: N/A

    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), none, 854x480, 1059 kb/s, SAR 1280:1281 DAR 16:9, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)

    Metadata:

      handler_name    : VideoHandler

    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, 2 channels, 127 kb/s (default)

    Metadata:

      handler_name    : SoundHandler

[mov,mp4,m4a,3gp,3g2,mj2 @ 0xed4040] stream 0, offset 0x30: partial file

av_read_frame: Invalid data found when processing input


I have already tried with different versions of ffmpeg. I would be appreciated if someone could help me with this.

Regards,
Sornrakitch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180829/91973ab7/attachment.html>


More information about the Libav-user mailing list