mpeg-dash encoding help

classic Classic list List threaded Threaded
3 messages Options
dan
Reply | Threaded
Open this post in threaded view
|

mpeg-dash encoding help

dan
I'm trying to encode a stream to mpeg-dash live.

What I have so far is below.  I only have 1 video stream here but
eventually I'd have 3-4.  Also, my testbed is a raspberry pi (see
g264_omx) but I'll be moving this to an nvidia jetson nano w/ a
maxwell gpu and nvenc.

With this, I can use shaka-player to start video only playback but it
only plays 1 chunk and then shows a spinning wait.

Ultimate goal, transcode an http or rtsp video to mpeg-dash and serve
that up via apache.  I want h265 once I get the jetson board w/
hardware encode also, which I why I'm trying to get dash working vs
the HLS streams I'm currently using that work with h.264.

Thanks for any help in advance.

(note, the test source here is an hdhomerun)

ffmpeg \
    -y \
    -i http://10.39.40.169:5004/auto/v16.1?transcode=mobile \
    -vcodec h264_omx \
    -keyint_min 0 \
    -g 100 \
    -map 0:0 \
    -b:v 1000k \
    -map 0:1 \
    -c:a copy \
    -f dash \
    -min_seg_duration 4000 \
    -use_template 1 \
    -use_timeline 0 \
    -init_seg_name \
        init-\$RepresentationID\$.mp4 \
    -media_seg_name \
        video-\$RepresentationID\$-\$Number\$.mp4 \
    -remove_at_exit 1 \
    -window_size 20 \
    v.mpd
_______________________________________________
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: mpeg-dash encoding help

Carl Zwanzig
On 4/12/2019 10:55 AM, dan wrote:
> What I have so far is below.

Please post the entire output of the command, it's needed to know what the
command is doing. Also, if you aren't using a very recent version of ffmpeg,
please get one; old ones don't get much support.

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

Re: mpeg-dash encoding help

dan
Output below

Version:
 ffmpeg -v
ffmpeg version 3.2.12-1~deb9u1+rpt1 Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1+rpt1'
--toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf
--incdir=/usr/include/arm-linux-gnueabihf --enable-gpl
--disable-stripping --enable-avresample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128
--enable-libflite --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-libgme --enable-libgsm
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt
--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-omx-rpi
--enable-mmal --enable-openal --enable-opengl --enable-sdl2
--enable-libdc1394 --enable-libiec61883 --arch=armhf
--enable-chromaprint --enable-frei0r --enable-libopencv
--enable-libx264 --enable-shared



ffmpeg version 3.2.12-1~deb9u1+rpt1 Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1+rpt1'
--toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf
--incdir=/usr/include/arm-linux-gnueabihf --enable-gpl
--disable-stripping --enable-avresample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128
--enable-libflite --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-libgme --enable-libgsm
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt
--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-omx-rpi
--enable-mmal --enable-openal --enable-opengl --enable-sdl2
--enable-libdc1394 --enable-libiec61883 --arch=armhf
--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
Input #0, mpegts, from 'http://10.39.40.169:5004/auto/v16.1?transcode=mobile':
  Duration: N/A, start: 93669.187600, bitrate: N/A
  Program 3
    Stream #0:0[0x31]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, progressive), 1280x540 [SAR 3:4 DAR 16:9], Closed
Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), fltp, 448 kb/s
[h264_omx @ 0xbb3620] Using OMX.broadcom.video_encode
[dash @ 0x1142bd0] Opening 'init-0.mp4' for writing
[dash @ 0x1142bd0] Opening 'init-1.mp4' for writing
[mp4 @ 0xbf6cf0] track 0: codec frame size is not set
Output #0, dash, to 'v.mpd':
  Metadata:
    encoder         : Lavf57.56.101
    Stream #0:0: Video: h264 (h264_omx) ([33][0][0][0] / 0x0021),
yuv420p, 1280x540 [SAR 3:4 DAR 16:9], q=2-31, 1000 kb/s, 29.97 fps,
30k tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc57.64.101 h264_omx
    Stream #0:1(eng): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz,
5.1(side), 448 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_omx))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[dash @ 0x1142bd0] Opening 'v.mpd.tmp' for writing
[dash @ 0x1142bd0] Opening 'video-0-1.mp4.tmp' for writingte=N/A
dup=75 drop=0 speed=1.36x
[dash @ 0x1142bd0] Opening 'video-1-1.mp4.tmp' for writing
[dash @ 0x1142bd0] Opening 'v.mpd.tmp' for writing
[dash @ 0x1142bd0] Opening 'video-0-2.mp4.tmp' for writingte=N/A
dup=75 drop=0 speed=1.21x
[dash @ 0x1142bd0] Opening 'video-1-2.mp4.tmp' for writing
[dash @ 0x1142bd0] Opening 'v.mpd.tmp' for writing
[dash @ 0x1142bd0] Opening 'video-0-3.mp4.tmp' for writingte=N/A
dup=75 drop=0 speed=1.12x
[dash @ 0x1142bd0] Opening 'video-1-3.mp4.tmp' for writing
[dash @ 0x1142bd0] Opening 'v.mpd.tmp' for writing
frame=  255 fps= 33 q=-0.0 Lsize=N/A time=00:00:08.47 bitrate=N/A
dup=75 drop=0 speed=1.11x
video:973kB audio:444kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
Exiting normally, received signal 2.

On Fri, Apr 12, 2019 at 12:02 PM Carl Zwanzig <[hidden email]> wrote:

>
> On 4/12/2019 10:55 AM, dan wrote:
> > What I have so far is below.
>
> Please post the entire output of the command, it's needed to know what the
> command is doing. Also, if you aren't using a very recent version of ffmpeg,
> please get one; old ones don't get much support.
>
> 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".
_______________________________________________
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".