Encoding/container for mpeg-ts audio and MINIDLNA compatibility
Added by william darcey almost 4 years ago
I'm recording from uk freeview. I can successfully watch tv programmes using minidlna, be they recorded using passthru, matroska or various ffmpeg transcode via spawn stream option.
I can't however find a successful combination of outputs for a radio channel received via same freeview uk adapter. The files play back fine locally. But minidlna cannot parse them and so does not present them to dlna clients.
Can anyone suggest a transcode that produces a file recognizable by minidlna?
Many thanks.
The passthru recording details:
root@dvr:/usr/local# mediainfo /srv/recordings/radio/Eddie\ Mair/Eddie\ Mair\ 2020-12-18.ts General ID : 1 (0x1) Complete name : /srv/recordings/radio/Eddie Mair/Eddie Mair 2020-12-18.ts Format : MPEG-TS File size : 1.39 MiB Duration : 32 s 424 ms Overall bit rate mode : Variable Overall bit rate : 358 kb/s Original network name : Astra Satellite Network 19,2'E Audio ID : 1901 (0x76D) Menu ID : 1 (0x1) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Codec ID : 4 Duration : 32 s 448 ms Bit rate mode : Constant Bit rate : 64.0 kb/s Channel(s) : 1 channel Sampling rate : 48.0 kHz Frame rate : 41.667 FPS (1152 SPF) Compression mode : Lossy Stream size : 254 KiB (18%) Language : English Menu ID : 708 (0x2C4) Menu ID : 1 (0x1) Duration : 32 s 424 ms List : 1901 (0x76D) (MPEG Audio, English) Language : English Service name : LBC Service type : MPEG-2 HD digital television UTC 2020-12-18 07:00:00 : en:Nick Ferrari / en:The return to secondary school in January will be staggered in England, with some pupils starting online rather than in class, to allow schools to set up mass Covid testing. / show/game show / / 03:00:00 / UTC 2020-12-18 10:00:00 : en:James O'Brien / en:James O'Brien is Leading Britain's Conversation. / show/game show / / 03:00:00 / UTC 2020-12-18 13:00:00 : en:Shelagh Fogarty / en:Shelagh Fogarty is Leading Britain's Conversation. / show/game show / / 03:00:00 / UTC 2020-12-18 16:00:00 : en:Eddie Mair / en:Eddie Mair is Leading Britain's Conversation. / show/game show / / 02:00:00 / Running UTC 2020-12-18 18:00:00 : en:Andrew Pierce / en:Andrew Pierce is Leading Britain's Conversation. / show/game show / / 03:00:00 / Not running UTC 2020-12-18 21:00:00 : en:Dean Dunham / en:Dean Dunham is Leading Britain's Conversation. / show/game show / / 01:00:00 / UTC 2020-12-18 22:00:00 : en:Nick Abbot / en:Nick Abbot is Leading Britain's Conversation / show/game show / / 03:00:00 / UTC 2020-12-19 01:00:00 : en:Clive Bull / en:Clive Bull is Leading Britain's Conversation. / show/game show / / 03:00:00 / UTC 2020-12-19 04:00:00 : en:Ian Payne / en:Ian Payne is Leading Britain's Conversation. / show/game show / / 03:00:00 / UTC 2020-12-19 07:00:00 : en:Andrew Castle / en:Andrew Castle is Leading Britain's Conversation. / show/game show / / 03:00:00 / UTC 2020-12-19 10:00:00 : en:Matt Frei / en:Matt Frei is Leading Britain's Conversation. / show/game show / / 03:00:00 / UTC 2020-12-19 13:00:00 : en:Maajid Nawaz / en:Maajid Nawaz is Leading Britain's Conversation / show/game show / / 03:00:00 / UTC 2020-12-19 16:00:00 : en:David Lammy / en:David Lammy is Leading Britain's Conversation / show/game show / / 03:00:00 / UTC 2020-12-19 19:00:00 : en:Natasha Devon / en:Natasha Devon is Leading Britain's Conversation. / show/game show / / 02:00:00 / UTC 2020-12-19 21:00:00 : en:Daniel Barnett / en:Daniel Barnett is Leading Britain's Conversation. / show/game show / / 01:00:00 / UTC 2020-12-19 22:00:00 : en:Nick Abbot / en:Nick Abbot is Leading Britain's Conversation / show/game show / / 03:00:00 / UTC 2020-12-20 01:00:00 : en:Clive Bull / en:Clive Bull is Leading Britain's Conversation. / show/game show / / 03:00:00 / UTC 2020-12-20 04:00:00 : en:Steve Allen / en:Steve Allen brings you the latest from the newspapers as you wake up. / show/game show / / 03:00:00 /
Replies (1)
RE: Encoding/container for mpeg-ts audio and MINIDLNA compatibility - Added by william darcey almost 4 years ago
I managed to produce a file, recognised by both minidlna and my radio, by invoking the following ffmpeg command in a stream profile and outputting a file with .mp3 extension in the recording profile. Then a post record script to add ID3 tags. Works for the radio channel concerned but I suspect other freeview radio channels have different stream layouts.
#!/bin/sh ffmpeg \ -i pipe:0 \ -map 0:a:0 \ -c:a mp3 \ -f mp3 pipe:1