vexorian / dizquetv

Create live TV channels from your own media. Access the streams using the simulated HDHomerun tuner or the generated M3U URl.
zlib License
1.47k stars 95 forks source link

ffmpeg issues on raspberry #397

Open DoodleCup opened 3 years ago

DoodleCup commented 3 years ago

I have successfully installed dizquetv on the raspberry. Unfortunately the playback in VLC does not start. I have already tried 3 different ffmpeg versions. Only with one did the VLC show the dizque channel logo followed by an error message. On the Raspberry it shows ffmpeg error 1. How can I get it to work? Which ffmpeg version do I need? (Raspberry Pi 4)

vexorian commented 3 years ago

Did you try the tutorial in the wiki?

vexorian commented 3 years ago

https://github.com/vexorian/dizquetv/wiki/Raspberry-guide

DoodleCup commented 3 years ago

No, I have not seen that. I will try that now. Thanks

DoodleCup commented 3 years ago

I followed this guide and have the same issue (This stream is facing technical issues. Try again later."

Stream starting. Channel: 1 (Channel 1)
=========================================================
! Start playback
! Channel: Channel 1 (1)
! Title: Unknown
! From : 0 to: 40
=========================================================
About to play loading stream

Video and Audio are being transcoded by ffmpeg
Client Closed
Stream FFMPEG exited normally.
=========================================================
! Start playback
! Channel: Channel 1 (1)
! Title: ARD Ratgeber Technik, ca 1997
! From : 405410 to: 580960
=========================================================
About to play plex stream
Plex transcoder initiated
Debug logging enabled
Getting stream
  deinterlace:     true
  streamPath:      plex
Setting transcoding parameters
Recieved transcode decision:
{
  MediaContainer: {
    size: 1,
    allowSync: '1',
    directPlayDecisionCode: 3000,
    directPlayDecisionText: 'App cannot direct play this item. Direct play is disabled.',
    generalDecisionCode: 1001,
    generalDecisionText: 'Direct play not available; Conversion OK.',
    identifier: 'com.plexapp.plugins.library',
    librarySectionID: '3',
    librarySectionTitle: 'Retro',
    librarySectionUUID: '(...)',
    mediaTagPrefix: '/system/bundle/media/flags/',
    mediaTagVersion: '1634922505',
    transcodeDecisionCode: 1001,
    transcodeDecisionText: 'Direct play not available; Conversion OK.',
    Metadata: [ [Object] ]
  }
}
Current video stats:
{
  duration: 580960,
  anamorphic: false,
  pixelP: 1,
  pixelQ: 1,
  videoCodec: 'h264',
  videoWidth: 1920,
  videoHeight: 1080,
  videoFramerate: 25,
  videoDecision: 'copy',
  audioChannels: 2,
  audioCodec: 'aac',
  audioDecision: 'copy'
}
Current video stats:
{
  duration: 580960,
  anamorphic: false,
  pixelP: 1,
  pixelQ: 1,
  videoCodec: 'h264',
  videoWidth: 1920,
  videoHeight: 1080,
  videoFramerate: 25,
  videoDecision: 'copy',
  audioChannels: 2,
  audioCodec: 'aac',
  audioDecision: 'copy'
}
Direct play forced or native paths enabled
Recieved transcode decision:
{
  MediaContainer: {
    size: 1,
    allowSync: '1',
    identifier: 'com.plexapp.plugins.library',
    librarySectionID: '3',
    librarySectionTitle: 'Retro',
    librarySectionUUID: '(...)',
    mdeDecisionCode: 1000,
    mdeDecisionText: 'Direct play OK.',
    mediaTagPrefix: '/system/bundle/media/flags/',
    mediaTagVersion: '1634922505',
    Metadata: [ [Object] ]
  }
}
Current video stats:
{
  duration: 580960,
  anamorphic: false,
  pixelP: 1,
  pixelQ: 1,
  videoCodec: 'h264',
  videoWidth: 1920,
  videoHeight: 1080,
  videoFramerate: 25,
  videoDecision: 'copy',
  audioChannels: 2,
  audioCodec: 'aac',
  audioDecision: 'copy'
}
{
  MediaContainer: {
    size: 1,
    allowSync: true,
    identifier: 'com.plexapp.plugins.library',
    librarySectionID: 3,
    librarySectionTitle: 'Retro',
    librarySectionUUID: '(...)',
    mediaTagPrefix: '/system/bundle/media/flags/',
    mediaTagVersion: 1634922505,
    Metadata: [ [Object] ]
  }
}
Found audio index: 1
{
  directPlay: true,
  streamUrl: 'https:/(...)',
  streamStats: {
    duration: 580960,
    anamorphic: false,
    pixelP: 1,
    pixelQ: 1,
    videoCodec: 'h264',
    videoWidth: 1920,
    videoHeight: 1080,
    videoFramerate: 25,
    videoDecision: 'copy',
    audioChannels: 2,
    audioCodec: 'aac',
    audioDecision: 'copy',
    audioIndex: 1
  }
}

Video and Audio are being transcoded by ffmpeg
Stream FFMPEG exited with code 1.
Replacing failed stream with error streram

Video and Audio are being transcoded by ffmpeg
DoodleCup commented 3 years ago
https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.
https://xxx.plex.direct:54791/library/parts/10550/1575071924/file.mp4?X-Plex-Token=xxx: Protocol not found
Did you mean file:https://xxx.plex.direct:54791/library/parts/10550/1575071924/file.mp4?X-Plex-Token=xxx?
Stream FFMPEG exited with code 1.

When i disable ffmpeg the dizquetv server is crashing after starting playback in vlc:

Video and Audio are being copied. ffmpeg is not transcoding.
Stream FFMPEG exited with code 1.
Replacing failed stream with error streram
error: oops ; oops
/home/pi/dizquetv/src/plex-player.js:118
                ff.pipe(outStream);
                   ^

TypeError: Cannot read properties of undefined (reading 'pipe')
    at FFMPEG.<anonymous> (/home/pi/dizquetv/src/plex-player.js:118:20)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Node.js v17.0.1

found out the aom dont compile. there are many errors and its aborting.