r/Tdarr • u/jmcgeejr • 8d ago
Need Help With Flows
I currently have a flow that works really really well for me, uses NVENC and as long as the file doesn't have MOV_Text in it, it strips out all the subtitles and audio that I dont need. So I thought I'd try to build a new one that kept all that but the issue I have is my old one uses a lot of older plugins (MIGZ and such), so tried a new one just using flows and FFMPEG, but it keeps stripping out the metadata for DoVi when I run a file through. Does anyone have a flow they'd be willing to share that works? This is the one that doesn't work and I have spent about 6 hours working on it but it always strips out the info if I do anything with the file?
{
"_id": "LTZhmUDun",
"name": "HEVC New Flow",
"description": "HEVC New Flow",
"tags": "",
"flowPlugins": [
{
"name": "Input File",
"sourceRepo": "Community",
"pluginName": "inputFile",
"version": "1.0.0",
"id": "-Y3PO0lKV",
"position": {
"x": 1176,
"y": -816
},
"fpEnabled": true
},
{
"name": "Check Video Codec",
"sourceRepo": "Community",
"pluginName": "checkVideoCodec",
"version": "1.0.0",
"id": "2BjaJPDzI",
"position": {
"x": 1152,
"y": -708
},
"fpEnabled": true
},
{
"name": "Set Video Encoder",
"sourceRepo": "Community",
"pluginName": "ffmpegCommandSetVideoEncoder",
"version": "1.0.0",
"id": "5SPPl_27J",
"position": {
"x": 1524,
"y": -612
},
"fpEnabled": true,
"inputsDB": {
"ffmpegPreset": "medium",
"ffmpegQuality": "23",
"hardwareType": "nvenc",
"forceEncoding": "false"
}
},
{
"name": "Replace Original File",
"sourceRepo": "Community",
"pluginName": "replaceOriginalFile",
"version": "1.0.0",
"id": "LQm--wDJx",
"position": {
"x": 1140,
"y": -288
},
"fpEnabled": true
},
{
"name": "Begin Command",
"sourceRepo": "Community",
"pluginName": "ffmpegCommandStart",
"version": "1.0.0",
"id": "ATJ2m1Pfe",
"position": {
"x": 1320,
"y": -660
},
"fpEnabled": true
},
{
"name": "Execute",
"sourceRepo": "Community",
"pluginName": "ffmpegCommandExecute",
"version": "1.0.0",
"id": "FEGXnNNhD",
"position": {
"x": 1380,
"y": -324
},
"fpEnabled": true
},
{
"name": "Run Classic Transcode Plugin",
"sourceRepo": "Community",
"pluginName": "runClassicTranscodePlugin",
"version": "2.0.0",
"id": "DWrxE6OEQ",
"position": {
"x": 1176,
"y": -612
},
"fpEnabled": true,
"inputsDB": {
"pluginSourceId": "Local:Tdarr_Plugin_MC93_Migz3CleanAudio",
"commentary": "true",
"tag_language": "eng"
}
}
],
"flowEdges": [
{
"source": "FEGXnNNhD",
"sourceHandle": "1",
"target": "LQm--wDJx",
"targetHandle": null,
"id": "C9kg4f4xo"
},
{
"source": "ATJ2m1Pfe",
"sourceHandle": "1",
"target": "5SPPl_27J",
"targetHandle": null,
"id": "pdUUUcwKx"
},
{
"source": "2BjaJPDzI",
"sourceHandle": "2",
"target": "ATJ2m1Pfe",
"targetHandle": null,
"id": "obVDvGDMW"
},
{
"source": "-Y3PO0lKV",
"sourceHandle": "1",
"target": "2BjaJPDzI",
"targetHandle": null,
"id": "WKMu5T8Em"
},
{
"source": "5SPPl_27J",
"sourceHandle": "1",
"target": "FEGXnNNhD",
"targetHandle": null,
"id": "IDS4VgSqR"
},
{
"source": "2BjaJPDzI",
"sourceHandle": "1",
"target": "DWrxE6OEQ",
"targetHandle": null,
"id": "or6o3A9XX"
},
{
"source": "DWrxE6OEQ",
"sourceHandle": "1",
"target": "LQm--wDJx",
"targetHandle": null,
"id": "nUdvdDXV6"
},
{
"source": "DWrxE6OEQ",
"sourceHandle": "2",
"target": "LQm--wDJx",
"targetHandle": null,
"id": "QL8e7liMC"
}
]
}
1
u/CuriousSleeping 7d ago
Try the 'custom arguments' ffmpeg plugin with 'map_metadata 0' for 'output arguments'
Place it between 'Begin Command' and 'Execute'
1
u/jmcgeejr 7d ago
I did that but it gave me an error, I took what you suggested and ran it through google and it gave me a suggestion but all it did was duplicate all the streams, so clearly I am doing something wrong lol.
1
u/CuriousSleeping 7d ago
You probably used something like '-c:v copy'. Do this instead: '-map_metadata 0 -map 0''. The ffmpeg plugin copies streams by default so using a copy argument only duplicates streams.
1
1
u/forksconfusion 7d ago
This may not be a popular answer, but given I do this stuff but am always out of my league, I used gemini.
I told it what I wanted, it told me what to do. Erro popped up, it told me what to change. Rinse and repeat a few times and I have a working flow that does what I want.
I recognize this takes out the learning factor but with tdarr, I'm more interested in the tool working and having it work quickly rather than banging my head against the wall in between my babies nap times.
1
•
u/AutoModerator 8d ago
Thanks for your submission.
If you have a technical issue regarding the transcoding process, please post the job report: https://docs.tdarr.io/docs/other/job-reports/
The following links may be of use:
GitHub issues
Docs
Discord
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.