[FFmpeg-user] How to play mp4 chapters
zetah
otrov at hush.ai
Tue Mar 19 07:23:17 CET 2013
Hi,
I have mp4 with chapters and I would like to play arbitrary chapter.
First I thought to use mplayer, for example to play just chapter 3 I would have used: "mplayer -chapter 3-3 file_with_chapters.m4a", but the problem is I can't get mplayer to output to stdout, and that's my main problem.
Can I instruct ffplay to play certain chapter?
There seem to be option for chapters, but only for bluray, and ffplay doesn't seem to accept -chapter as argument.
Here is my file:
========================================
C:\Programs\ffmpeg-1.1.3\bin>ffprobe "Ryuichi_2002.m4a"
ffprobe version 1.1.3 Copyright (c) 2007-2013 the FFmpeg developers
built on Mar 3 2013 01:57:34 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Ryuichi_2002.m4a':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: M4A mp42
creation_time : 2013-03-19 04:01:13
encoder : qaac 1.36, CoreAudioToolbox 7.9.8.2, AAC-LC Encoder, TVBR q45, Quality 96
Duration: 00:33:11.85, start: 0.000000, bitrate: 101 kb/s
Chapter #0.0: start 0.047891, end 250.127891
Metadata:
title : Opening
Chapter #0.1: start 250.127891, end 332.954558
Metadata:
title : Echo
Chapter #0.2: start 332.954558, end 435.727891
Metadata:
title : The Fences
Chapter #0.3: start 435.727891, end 537.981224
Metadata:
title : Winter
Chapter #0.4: start 537.981224, end 614.207891
Metadata:
title : Glimmer Out
Chapter #0.5: start 614.207891, end 727.594558
Metadata:
title : Xianren
Chapter #0.6: start 727.594558, end 775.687891
Metadata:
title : Stream
Chapter #0.7: start 775.687891, end 869.167891
Metadata:
title : Izba
Chapter #0.8: start 869.167891, end 1121.261225
Metadata:
title : Ending (short version)
Chapter #0.9: start 1121.261225, end 1196.714558
Metadata:
title : Happiness
Chapter #0.10: start 1196.714558, end 1313.194558
Metadata:
title : Plod
Chapter #0.11: start 1313.194558, end 1327.954558
Metadata:
title : Stream-A
Chapter #0.12: start 1327.954558, end 1376.554558
Metadata:
title : Echo of the Forest
Chapter #0.13: start 1376.554558, end 1424.941224
Metadata:
title : Looming
Chapter #0.14: start 1424.941224, end 1760.207891
Metadata:
title : Ending
Chapter #0.15: start 1760.207891, end 1991.854150
Metadata:
title : Ending (piano version)
Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 98 kb/s
Metadata:
creation_time : 2013-03-19 04:01:13
More information about the ffmpeg-user
mailing list