Re: [FFmpeg-user] MPEG-DASH does not work in 4.3.1 but worked in 4.2.3 (ffprobe/ffplay/ffmpeg)

2021-01-26 Thread Carl Eugen Hoyos


> Am 26.01.2021 um 11:25 schrieb Stefan Riediger :
> 
> It worked perfectly with version 4.2.3. Unfortunately I didn't get it to
> work with 4.3.1.

Please test current FFmpeg git head and please test with ffmpeg (the 
application), not ffplay.

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] MPEG-DASH / HLS Audio Video Sync

2019-04-19 Thread Bryn Larsen
Ok, I removed -hide_banner and -f live_flv. I was not able to switch to file 
input because the test file I’m using is too large for the machine I’m running 
ffmpeg on. Here is what ffmpeg is reporting about the incoming rtmp stream.



ffmpeg -i rtmp://localhost/myapp/test01

ffmpeg version N-93562-g3e10223385 Copyright (c) 2000-2019 the FFmpeg developers

  built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)

  configuration: --enable-gpl --enable-libx264 --enable-nonfree 
--enable-openssl --disable-doc

  libavutil  56. 26.100 / 56. 26.100

  libavcodec 58. 50.100 / 58. 50.100

  libavformat58. 27.102 / 58. 27.102

  libavdevice58.  7.100 / 58.  7.100

  libavfilter 7. 48.100 /  7. 48.100

  libswscale  5.  4.100 /  5.  4.100

  libswresample   3.  4.100 /  3.  4.100

  libpostproc55.  4.100 / 55.  4.100

Input #0, flv, from 'rtmp://localhost/myapp/test01':

  Metadata:

Server  : NGINX RTMP (github.com/arut/nginx-rtmp-module)

displayWidth: 1920

displayHeight   : 1080

fps : 59

profile :

level   :

  Duration: 00:00:00.00, start: 4036.169000, bitrate: N/A

Stream #0:0: Data: none

Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 163 kb/s

Stream #0:2: Video: h264 (Main), yuv420p(progressive), 1920x1080 [SAR 1:1 
DAR 16:9], Closed Captions, 6144 kb/s, 59 fps, 59.94 tbr, 1k tbn, 119.88 tbc



I’m still seeing A/V sync issues.






From: ffmpeg-user  on behalf of Carl Eugen 
Hoyos 
Sent: Friday, April 12, 2019 11:48:42 AM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] MPEG-DASH / HLS Audio Video Sync

2019-04-12 20:36 GMT+02:00, Bryn Larsen :
> Hi,
>
> I’m trying to take an incoming rtmp stream (via nginx-rtmp) and transmux /
> transcode it into an mpeg-dash / hls stream. I’m having trouble keeping the
> audio and video in sync. If I re-encode the audio instead of copying it, the
> trancoded bitrate stays in sync but the transmuxed video still drifts out of
> sync. Here is the command I am running:
>
> ffmpeg \

> -hide_banner \

Please remove hide_banner an provide the command
line you tested together with the complete, uncut console
output if you need help here.

> -f live_flv \

You should normally not force the input format.

> -i "rtmp://localhost/myapp/test01" \
> -map 0:v -c:v:0 libx264 -bf 0 -refs 3 -preset veryfast -tune zerolatency
> -sc_threshold 0 -g 120 -b:v:0 1600k -s 640x360 \
> -map 0:v -c:v:1 copy \
> -map 0:a -c:a:0 copy \
> -f dash \
> -streaming 1 \
> -seg_duration 2 \
> -use_timeline 0 \
> -use_template 1 \
> -window_size 5 \
> -extra_window_size 10 \
> -index_correction 1 \
> -remove_at_exit 1 \
> -media_seg_name 'chunk-stream-$RepresentationID$-$Number%05d$.m4s' \
> -init_seg_name 'init-stream1-$RepresentationID$.m4s' \
> -adaptation_sets "id=0,streams=v id=1,streams=a" \
> -method PUT \
> -strict experimental \
> -lhls 1 \
> -http_persistent 1 \
> -hls_playlist 1 \
> -ignore_io_errors 1 \
>  
> https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%2Fvideo%2Fmanifest.mpddata=02%7C01%7C%7C5707da1b467f4f1fca8108d6bf778469%7C84df9e7fe9f640afb435%7C1%7C0%7C636906917373230097sdata=n09jCsoTvCjDLsr1xcQfLDjfaGgVFHRcB7Bd44Ajxbs%3Dreserved=0

Do I understand correctly that you only have problems with
the copied video stream? It is most likely not cfr.

The issue would be easier to test if you dump the input
stream and use file input instead of network input.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmpeg-userdata=02%7C01%7C%7C5707da1b467f4f1fca8108d6bf778469%7C84df9e7fe9f640afb435%7C1%7C0%7C636906917373230097sdata=YQwKYl%2Fa%2Fvd7Nj0iwC7uawIjZNW%2Fo5DH32fMIEsBXN4%3Dreserved=0

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] mpeg-dash encoding help

2019-04-12 Thread 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
  libavformat57. 56.101 / 57. 56.101
  libavdevice57.  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
  libpostproc54.  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  wrote:
>
> On 

Re: [FFmpeg-user] MPEG-DASH / HLS Audio Video Sync

2019-04-12 Thread Carl Eugen Hoyos
2019-04-12 20:36 GMT+02:00, Bryn Larsen :
> Hi,
>
> I’m trying to take an incoming rtmp stream (via nginx-rtmp) and transmux /
> transcode it into an mpeg-dash / hls stream. I’m having trouble keeping the
> audio and video in sync. If I re-encode the audio instead of copying it, the
> trancoded bitrate stays in sync but the transmuxed video still drifts out of
> sync. Here is the command I am running:
>
> ffmpeg \

> -hide_banner \

Please remove hide_banner an provide the command
line you tested together with the complete, uncut console
output if you need help here.

> -f live_flv \

You should normally not force the input format.

> -i "rtmp://localhost/myapp/test01" \
> -map 0:v -c:v:0 libx264 -bf 0 -refs 3 -preset veryfast -tune zerolatency
> -sc_threshold 0 -g 120 -b:v:0 1600k -s 640x360 \
> -map 0:v -c:v:1 copy \
> -map 0:a -c:a:0 copy \
> -f dash \
> -streaming 1 \
> -seg_duration 2 \
> -use_timeline 0 \
> -use_template 1 \
> -window_size 5 \
> -extra_window_size 10 \
> -index_correction 1 \
> -remove_at_exit 1 \
> -media_seg_name 'chunk-stream-$RepresentationID$-$Number%05d$.m4s' \
> -init_seg_name 'init-stream1-$RepresentationID$.m4s' \
> -adaptation_sets "id=0,streams=v id=1,streams=a" \
> -method PUT \
> -strict experimental \
> -lhls 1 \
> -http_persistent 1 \
> -hls_playlist 1 \
> -ignore_io_errors 1 \
>  http://127.0.0.1/video/manifest.mpd

Do I understand correctly that you only have problems with
the copied video stream? It is most likely not cfr.

The issue would be easier to test if you dump the input
stream and use file input instead of network input.

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] MPEG-DASH / HLS Audio Video Sync

2019-04-12 Thread Bryn Larsen
Hi,

I’m trying to take an incoming rtmp stream (via nginx-rtmp) and transmux / 
transcode it into an mpeg-dash / hls stream. I’m having trouble keeping the 
audio and video in sync. If I re-encode the audio instead of copying it, the 
trancoded bitrate stays in sync but the transmuxed video still drifts out of 
sync. Here is the command I am running:

ffmpeg \
-hide_banner \
-f live_flv \
-i "rtmp://localhost/myapp/test01" \
-map 0:v -c:v:0 libx264 -bf 0 -refs 3 -preset veryfast -tune zerolatency 
-sc_threshold 0 -g 120 -b:v:0 1600k -s 640x360 \
-map 0:v -c:v:1 copy \
-map 0:a -c:a:0 copy \
-f dash \
-streaming 1 \
-seg_duration 2 \
-use_timeline 0 \
-use_template 1 \
-window_size 5 \
-extra_window_size 10 \
-index_correction 1 \
-remove_at_exit 1 \
-media_seg_name 'chunk-stream-$RepresentationID$-$Number%05d$.m4s' \
-init_seg_name 'init-stream1-$RepresentationID$.m4s' \
-adaptation_sets "id=0,streams=v id=1,streams=a" \
-method PUT \
-strict experimental \
-lhls 1 \
-http_persistent 1 \
-hls_playlist 1 \
-ignore_io_errors 1 \
 http://127.0.0.1/video/manifest.mpd
___
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] mpeg-dash encoding help

2019-04-12 Thread 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
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] MPEG DASH with Audio Only Adaptive Streaming

2018-08-01 Thread Ronak
I figured out how to do this. The problem was just that I forgot to put the 
-map 0:0 -map 1:0, etc. arguments in these commands. So ffmpeg was only 
selecting the first stream in the input.


> On Aug 1, 2018, at 12:03 PM, Ronak  wrote:
> 
> Hi all,
> 
> I'd like to generate an MPEG DASH stream that would include all of the 
> Representations/AdaptationSets inside of my mp4. I've mapped 5 separate audio 
> streams into my input mp4.
> 
> However, no matter what I do with the command line arguments, I'm always only 
> getting one Adaptation Set.
> 
> This is command I've tried:
> 
> a45e60e46a79:input ronakp$ ffmpeg -i output.mp4 -codec copy -f dash 
> -single_file_name output.m4s -seg_duration 9.75238095238095 output.mpd
> ffmpeg version git-2018-06-23-b86c575 Copyright (c) 2000-2018 the FFmpeg 
> developers
>  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
>  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-b86c575 
> --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables 
> --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl 
> --enable-libfdk-aac --enable-libmp3lame --enable-libopus 
> --enable-librubberband --enable-libvorbis --enable-libvpx --enable-libx264 
> --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma 
> --enable-nonfree
>  libavutil  56. 18.102 / 56. 18.102
>  libavcodec 58. 20.103 / 58. 20.103
>  libavformat58. 17.101 / 58. 17.101
>  libavdevice58.  4.101 / 58.  4.101
>  libavfilter 7. 25.100 /  7. 25.100
>  libavresample   4.  0.  0 /  4.  0.  0
>  libswscale  5.  2.100 /  5.  2.100
>  libswresample   3.  2.100 /  3.  2.100
>  libpostproc55.  2.100 / 55.  2.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
>  Metadata:
>major_brand : isom
>minor_version   : 512
>compatible_brands: isomiso2mp41
>encoder : Lavf58.17.101
>  Duration: 00:09:44.78, start: 0.00, bitrate: 810 kb/s
>Stream #0:0(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, 
> stereo, fltp, 32 kb/s (default)
>Metadata:
>  handler_name: SoundHandler
>Stream #0:1(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, 
> stereo, fltp, 64 kb/s (default)
>Metadata:
>  handler_name: SoundHandler
>Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
> fltp, 128 kb/s (default)
>Metadata:
>  handler_name: SoundHandler
>Stream #0:3(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
> fltp, 256 kb/s (default)
>Metadata:
>  handler_name: SoundHandler
>Stream #0:4(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
> fltp, 320 kb/s (default)
>Metadata:
>  handler_name: SoundHandler
> [dash @ 0x7fe19309ac00] Opening 'output.m4s' for writing
> Output #0, dash, to 'output.mpd':
>  Metadata:
>major_brand : isom
>minor_version   : 512
>compatible_brands: isomiso2mp41
>encoder : Lavf58.17.101
>Stream #0:0(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, 
> stereo, fltp, 32 kb/s (default)
>Metadata:
>  handler_name: SoundHandler
> Stream mapping:
>  Stream #0:0 -> #0:0 (copy)
> Press [q] to stop, [?] for help
> 
> 
> I've tried other commands like:
> 
> ffmpeg -i output.mp4 -codec copy -f dash -single_file_name output.m4s 
> -seg_duration 9.75238095238095 -adaptation_sets "id=0,streams=a" 
> -hls_playlist 1 output.mpd
> 
> But it doesn't seem to generate an MPEG DASH stream for all input streams 
> either.
> 
> What is the correct command line I should be using for this? If this doesn't 
> work, I'll file an issue to ffmpeg for this, and try to figure out how to fix 
> this.
> 
> Thanks,
> 
> Ronak
> 
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] MPEG DASH with Audio Only Adaptive Streaming

2018-08-01 Thread Ronak
Hi all,

I'd like to generate an MPEG DASH stream that would include all of the 
Representations/AdaptationSets inside of my mp4. I've mapped 5 separate audio 
streams into my input mp4.

However, no matter what I do with the command line arguments, I'm always only 
getting one Adaptation Set.

This is command I've tried:

a45e60e46a79:input ronakp$ ffmpeg -i output.mp4 -codec copy -f dash 
-single_file_name output.m4s -seg_duration 9.75238095238095 output.mpd
ffmpeg version git-2018-06-23-b86c575 Copyright (c) 2000-2018 the FFmpeg 
developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-b86c575 --enable-shared 
--enable-pthreads --enable-version3 --enable-hardcoded-tables 
--enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl 
--enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-librubberband 
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid 
--enable-opencl --enable-videotoolbox --disable-lzma --enable-nonfree
  libavutil  56. 18.102 / 56. 18.102
  libavcodec 58. 20.103 / 58. 20.103
  libavformat58. 17.101 / 58. 17.101
  libavdevice58.  4.101 / 58.  4.101
  libavfilter 7. 25.100 /  7. 25.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc55.  2.100 / 55.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.17.101
  Duration: 00:09:44.78, start: 0.00, bitrate: 810 kb/s
Stream #0:0(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, 
stereo, fltp, 32 kb/s (default)
Metadata:
  handler_name: SoundHandler
Stream #0:1(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, 
stereo, fltp, 64 kb/s (default)
Metadata:
  handler_name: SoundHandler
Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 128 kb/s (default)
Metadata:
  handler_name: SoundHandler
Stream #0:3(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 256 kb/s (default)
Metadata:
  handler_name: SoundHandler
Stream #0:4(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 320 kb/s (default)
Metadata:
  handler_name: SoundHandler
[dash @ 0x7fe19309ac00] Opening 'output.m4s' for writing
Output #0, dash, to 'output.mpd':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.17.101
Stream #0:0(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, 
stereo, fltp, 32 kb/s (default)
Metadata:
  handler_name: SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help


I've tried other commands like:

ffmpeg -i output.mp4 -codec copy -f dash -single_file_name output.m4s 
-seg_duration 9.75238095238095 -adaptation_sets "id=0,streams=a" -hls_playlist 
1 output.mpd

But it doesn't seem to generate an MPEG DASH stream for all input streams 
either.

What is the correct command line I should be using for this? If this doesn't 
work, I'll file an issue to ffmpeg for this, and try to figure out how to fix 
this.

Thanks,

Ronak


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] MPEG-DASH

2018-04-10 Thread Carl Eugen Hoyos
2018-04-10 4:48 GMT+02:00, Jeff Jones :
> I'm trying to decipher the documentation to create a manifest for a series
> of mpeg-dash files.  I've created the h.264 encoded videos and the aac
> encoded audio file.  It is't real clear on how to create the manifest file
> associated with this format.  There are a few examples for webm formatted
> manifests, but nothing for mpeg.
>
> I have the following from the documentation:
>
> ffmpeg -re -i  -map 0 -map 0 -c:a libfdk_aac -c:v libx264
> -b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline
> -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0
> -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1
> -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a"
> -f dash /path/to/out.mpd
>
> It appears to be creating the h.264 video and aac audio from a live stream
> as well as creating the manifest, but the arguments don't appear to be
> defined.  I don't see any info about the what the -use_timeline 1 -
> use_template 1 options are

https://ffmpeg.org/ffmpeg-formats.html#dash-2

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] MPEG-DASH

2018-04-09 Thread Jeff Jones
I'm trying to decipher the documentation to create a manifest for a series
of mpeg-dash files.  I've created the h.264 encoded videos and the aac
encoded audio file.  It is't real clear on how to create the manifest file
associated with this format.  There are a few examples for webm formatted
manifests, but nothing for mpeg.

I have the following from the documentation:

ffmpeg -re -i  -map 0 -map 0 -c:a libfdk_aac -c:v libx264
-b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline
-profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0
-b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1
-window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a"
-f dash /path/to/out.mpd

It appears to be creating the h.264 video and aac audio from a live stream
as well as creating the manifest, but the arguments don't appear to be
defined.  I don't see any info about the what the -use_timeline 1 -
use_template 1 options are or if the manifest can be generated separately.
 Can anyone break this down for me?

Thanks, Jeff...
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] MPEG-DASH video with Subtitles

2015-09-23 Thread Nate
Hello,



I am trying to take a video with subtitles, run it through ffmpeg with the 
“dash” output format and get ffmpeg to output the subtitles.



Steps that I’ve taken:



1.   I took this video: https://www.youtube.com/watch?v=QF8pM4wiLaY and 
downloaded the mp4 and srt files

2.   I combined them with this command:

bin\ffmpeg.exe -i "Prime Minister's Questions_ 25 March 2015\Prime Minister's 
Questions_ 25 March 2015 (480p).mp4" -sub_charenc UTF-8 -i "Prime Minister's 
Questions_ 25 March 2015\Prime Minister's Questions_ 25 March 2015 
(480p).English.srt" -vcodec copy -acodec copy -scodec mov_text -metadata:s:s:0 
lang=eng "Prime Minister's Questions_ 25 March 2015.mp4"

3.   I then tried to dash the video with this command:

bin\ffmpeg.exe -i "Prime Minister's Questions_ 25 March 2015.mp4" -vcodec copy 
-acodec copy -scodec copy -f dash out.mpd
ffmpeg finds the subtitle track in the video:

Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 854x480 
[SAR 1:1 DAR 427:240], q=2-31, 659 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc 
(default)
Metadata:
  handler_name: VideoHandler
Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 
253 kb/s (default)
Metadata:
  handler_name: SoundHandler
Stream #0:2(und): Subtitle: mov_text ([8][0][0][0] / 0x0008), 0 kb/s 
(default)
Metadata:
  handler_name: SubtitleHandler

But the subtitles do not appear as a track in the resulting out.mpd file or 
segment files.
I tried using the –adaptation_sets option to force it but it didn’t seem to do 
anything.

Are subtitles supported in the “dash” output format?  Am I doing something 
wrong?

Thanks,
Nate
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] mpeg-dash mux w/multiple representations? (multi-bitrate)

2015-08-13 Thread Mark Hassman
Hi,

Does anyone know how to encode live mpeg-dash with multiple-bitrates?

I can create multiple outputs with -s.. this works well for multi-bitrate
hls (f=hls) as .m3u8 files are independent and can be referenced by a master
.m3u8, but with mpeg-dash (f=dash), each output's .mpd is independent.
Instead, what's needed is a single .mpd with multiple representations.

Looking at dashenc.c - appears the mux is setup for this, but I have no idea
how to queue this within ffmpeg.
Relevant excerpt from dashenc.c:  (ffmpeg v2.7)
line 505:
   if (c-has_video) {
avio_printf(out, \t\tAdaptationSet contentType=\video\
segmentAlignment=\true\ bitstreamSwitching=\true\\n);
for (i = 0; i  s-nb_streams; i++) {  -- this will append multiple
presentations
AVStream *st = s-streams[i];
OutputStream *os = c-streams[i];

if (st-codec-codec_type != AVMEDIA_TYPE_VIDEO)
continue;

avio_printf(out, \t\t\tRepresentation id=\%d\
mimeType=\video/mp4\ codecs=\%s\%s width=\%d\ height=\%d\\n, i,
os-codec_str, os-bandwidth_str, st-codec-width, st-codec-height);
output_segment_list(c-streams[i], out, c);
avio_printf(out, \t\t\t/Representation\n);
}
avio_printf(out, \t\t/AdaptationSet\n);
}

There's little documentation on ffmpeg mpeg-dash.

Can anyone help?
Thnx!


-Mark

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] MPEG-DASH

2015-02-11 Thread Knapek Miroslav

Thank you very much for your recommendations!

Mirek


-Původní zpráva- 
From: Werner Robitza

Sent: Tuesday, February 10, 2015 9:50 PM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] MPEG-DASH

On Tue, Feb 10, 2015 at 3:23 PM, Knapek Miroslav kna...@mmsw.cz wrote:
I would like to kindly ask you for help. I try to encode my first 
mpeg-dash video using these steps: 
http://www.dash-player.com/blog/2014/11/mpeg-dash-content-generation-using-mp4box-and-x264/. 
I use panasonic camcoder MTS fullHD file as source. I am able to pass all 
three steps, but there is missing audio track in MP4 video after first 
conversion by x264.exe.


This is more of a question to ask on the respective MP4Box / GPAC channels.


Is somewhere any “tutorial” how to prepare MPEG-DASH content by ffmpeg?


Not yet. There is an undocumented dashenc muxer. I requested a bit of
information on how to use it here:
http://mplayerhq.hu/pipermail/ffmpeg-user/2015-January/025046.html --
but until then, I would consider its functionality extremely limited.
You can of course check the source file if you want.

All in all, I would stick to using MP4Box for now. You may find other
software here: http://dashif.org/software/
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] MPEG-DASH

2015-02-10 Thread Knapek Miroslav
Hello,

I would like to kindly ask you for help. I try to encode my first mpeg-dash 
video using these steps: 
http://www.dash-player.com/blog/2014/11/mpeg-dash-content-generation-using-mp4box-and-x264/.
 I use panasonic camcoder MTS fullHD file as source. I am able to pass all 
three steps, but there is missing audio track in MP4 video after first 
conversion by x264.exe.



Is somewhere any “tutorial” how to prepare MPEG-DASH content by ffmpeg?



Thank you all

Sincerely Mirek
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] MPEG-DASH

2015-02-10 Thread Werner Robitza
On Tue, Feb 10, 2015 at 3:23 PM, Knapek Miroslav kna...@mmsw.cz wrote:
 I would like to kindly ask you for help. I try to encode my first mpeg-dash 
 video using these steps: 
 http://www.dash-player.com/blog/2014/11/mpeg-dash-content-generation-using-mp4box-and-x264/.
  I use panasonic camcoder MTS fullHD file as source. I am able to pass all 
 three steps, but there is missing audio track in MP4 video after first 
 conversion by x264.exe.

This is more of a question to ask on the respective MP4Box / GPAC channels.

 Is somewhere any “tutorial” how to prepare MPEG-DASH content by ffmpeg?

Not yet. There is an undocumented dashenc muxer. I requested a bit of
information on how to use it here:
http://mplayerhq.hu/pipermail/ffmpeg-user/2015-January/025046.html --
but until then, I would consider its functionality extremely limited.
You can of course check the source file if you want.

All in all, I would stick to using MP4Box for now. You may find other
software here: http://dashif.org/software/
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user