GiP mp4s and Panasonic PVR
Budge
ajebay at errichel.co.uk
Fri Nov 27 07:53:23 PST 2015
On 26/11/15 22:34, Vangelis forthnet wrote:
> [snip]
> If you want to stick to the MP4 container,
> some choices are available to you:
> 1. If using flash/hlsmodes to fetch TV, then add:
> --ffmpeg-tv-opts="-movflags faststart"
> to your CLI command.
>
> The switch above will instruct ffmpeg (a fairly recent
> build is needed) to place the moov atom at the start of
> the MP4 file, making it streamable.
>
> Better avoid mp4 tagging with --no-tag
>
> 2. For existing downloaded MP4 files, you could
> again use FFmpeg to relocate mov atom losslessly:
>
> ffmpeg -i "moov-at-end.mp4" -c copy -movflags faststart
> "moov-at-start.mp4"
>
> or use for the same job the standalone
> qt-faststart tool:
>
> https://walterebert.com/blog/start-playing-mp4-videos-before-download-has-finished/
>
> http://multimedia.cx/eggs/improving-qt-faststart/
> https://ffmpeg.zeranoe.com/blog/?p=59
> http://ffmpeg.zeranoe.com/builds/qt-faststart/
>
> or GPAC's MP4Box:
>
> mp4box "moov-at-end.mp4" -out "moov-at-start.mp4"
>
> If you wish to move away from the MP4 container, then:
> 1. if your DLNA client (on the PVR) does have support
> for the MPEG TS container (in all probability it should),
> then continue to use the hls tvmodes but add --raw to
> your command; you'll end up with a .ts file, which is by
> definition streamable (ts = transport stream).
> 2. Using the --mkv switch will instruct ffmpeg to remux
> downloaded elementary streams inside the Matroska container;
> due to its altogether different (to the MP4) architecture, it doesn't
> have (as you've found out) the streaming restrictions the default
> MP4 files created by FFmpeg do...
>
As usual, well worth reading and thanks for posting this. I have had
issues with the moov tag before. It took me ages to sort out and I
shall bookmark this post to remind me how for next time.
Many thanks Vangelis.
More information about the get_iplayer
mailing list