Issue H.264 recording with janus-pp-rec and libavcodec 57

287 views
Skip to first unread message

Marcel

unread,
Oct 13, 2017, 9:43:50 AM10/13/17
to meetecho-janus
Hi, 

I run into an issue with h.264 recordings after I convert a video track with janus-pp-rec to a mp4 recoding. I get errors with ffmpeg

janus-pp-rec
$ janus-pp-rec 42534-6633583871323770-2-2-video.mjr video4.mp4
[mp4 @ 0x555b4c439700] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
42534-6633583871323770-2-2-video.mjr --> video4.mp4
File is 1276743 bytes
Pre-parsing file to generate ordered index...
[WARN] New .mjr header format
This is a video recording:
  -- Codec:   h264
  -- Created: 1507733159169602
  -- Written: 1507733159172787
Counted 1205 RTP packets
Counted 1205 frame packets
  -- 640x480 (fps [2970,9000] ~ 30)
First keyframe: 11970
video4.mp4 is 1253250 bytes
Bye!

There is already a suspicious depreciation warning on AVStream.codec 

This file I can play in VLC but not in Quicktime

If I try to convert it in ffmpeg
$ ffprobe -i video4.mp4
ffprobe version 3.2.4-1~bpo8+1 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --prefix=/usr --extra-version='1~bpo8+1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --disable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a5d6b7d200] Missing key frame while reordering index according to edit list
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a5d6b7d200] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 640x480, 483 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video4.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.56.101
  Duration: 00:00:20.65, bitrate: 485 kb/s
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 640x480, 483 kb/s, 15.01 fps, 15 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      handler_name    : VideoHandler

I get the following error: unspecified pixel format 
Also the Stream Video has a "none" where I expect "yuv420p"

I think it's caused by janus-pp-rec using libavcodec 57 and not setting the pixel format correctly any more due to a change.

Kind Regards,
Marcel

Lorenzo Miniero

unread,
Oct 13, 2017, 9:47:31 AM10/13/17
to meetecho-janus
Yeah, I guess there are some changes we don't address in the code. Not experts on this, so if you or others have PRs to fix this they'll be welcome!

L.

Alessandro Amirante

unread,
Oct 20, 2017, 9:23:47 AM10/20/17
to Lorenzo Miniero, meetecho-janus
I made some tests with libavcodec57 on ubuntu 17.10, and everything works fine. Tested both firefox and chrome, I can convert both mjr files into h264-encoded mp4 files. The pixel format is correctly set to yuv420p.

A.

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcel

unread,
Oct 24, 2017, 4:46:01 AM10/24/17
to meetecho-janus
Currently we're running Debian 8 jessie to be sure I updated all the libs. Also tried with Debian 9 stretch. But in both cases the pixel format is not set (none)
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages