[Support] chacawaca - post-recording


Recommended Posts

@aurevo i suspect 3 things since you have 0 ffmpeg log

 

- start with ffmpeg software transcode to see if its intel hw accel problem. 

- check write access on your custom.sh file

- or maybe extern program delete the temp file between ccextrator and ffmpeg.

- or your .ts have something corrupted that ffmpeg dont like.

Edited by Chacawaca
Link to comment
  • 1 month later...

Found your docker yesterday and it is exactly what I am looking for. I tried to convert a file but I could not get it working. I could even find the output dir 😔

I really have no experiance with ffmpeg and its parameters. 

My goal is to convert my ts file with Intel QS to h264 and keep the audio tracks untouched.

 

Any suggestions would be great

Edited by Bob@unraid
Link to comment

For your "output dir" this app use the source directory as output directory, you cant configure this now. I want to add it when i have time.

 

 

For config :

 

https://hub.docker.com/r/chacawaca/post-recording

 

Configuration:

/scripts/custom.sh need to be configured by you, some example are there to help you configure this for your need.

 

 

Help with Intel
Intel GPU Use
Edit your go file to include:
modprobe i915, save and reboot, then
add --device=/dev/dri to "extra parameters" (switch on advanced view)

 

 

For your FFmpeg command, it is specific for your need, i cant help you, im not a ffmpeg specialist too and i havent test your specific output.

you can start with command in intel.sh.example and modify it for you need, change audio to copy and modify encoding for hardware h264.

You will have to do some search about ffmpeg, so much parameter exist.

 

  • Thanks 1
Link to comment

Hello,

 

after some weeks of waiting, I updated the container to the latest alpha build and tried again to convert a file with your docker container.

 

Because of the previous errors I removed the umlauts in the file name.

 

After a few seconds I get a "Conversion failed" error message without any exact reason why the conversion failed.

The ccextractor still seems to be running, after that it doesn't jump to the next point and comskip already has no logfile anymore.

 

My appdate-folder again in the attachment.

 

I don't know where I can start at the moment.

If you need more information or files, I will post it.

2020-11-02 21_10_10-Tower_UpdateContainer.png

post-recording.zip

Link to comment
2 hours ago, Chacawaca said:

Do you have subtitles in your source file ?

 

"No captions were found in input." at the end of ccextractor log file.

 

Try to go to stable branch, and change subtitles to 1. 

 

i use the exact same setup the only thing that isnt the same is our source file.

 

 

Did that, appdata attached.

 

Quote

[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[autovideoconverter] starting...
[autovideoconverter] Processing watch folder '/watch'...
[autovideoconverter] Waiting 10 seconds before processing '/watch/Mythen-Jger 2020_09_12_19_30_00 - Der verlorene Stamm Israels.ts'...
[autovideoconverter] ======================================= CONVERSION START =================================================
[autovideoconverter]
[autovideoconverter] Starting conversion of '/watch/Mythen-Jger 2020_09_12_19_30_00 - Der verlorene Stamm Israels.ts'...
[autovideoconverter] -------------------------------------
[autovideoconverter] FFMPEG START
[autovideoconverter] FFMPEG FINISH WITH STATUS 0
[autovideoconverter] -------------------------------------
[autovideoconverter] COMCHAP START
[autovideoconverter] COMCHAP FINISH WITH STATUS 0
[autovideoconverter] -------------------------------------
[autovideoconverter] -------------------------------------
[autovideoconverter] TMP DIRECTORY REMOVED
[autovideoconverter]
[autovideoconverter] ======================================= CONVERSION DONE =================================================
[autovideoconverter] Conversion failed.
[autovideoconverter] =========================================================================================================
[autovideoconverter] Watch folder '/watch' processing terminated.

 

post-recording.zip

Link to comment

Stream mapping:
  Stream #0:0 (h264_cuvid) -> hwdownload
  format -> Stream #0:0 (hevc_nvenc)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:5 -> #0:2 (? (?) -> ass (ssa))
Decoder (codec dvb_teletext) not found for input stream #0:5

 

your ffmpeg command dont fit with your source file, im not a ffmpeg expert i cant help you more, sorry

Link to comment
On 11/3/2020 at 2:48 AM, Chacawaca said:

Stream mapping:
  Stream #0:0 (h264_cuvid) -> hwdownload
  format -> Stream #0:0 (hevc_nvenc)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:5 -> #0:2 (? (?) -> ass (ssa))
Decoder (codec dvb_teletext) not found for input stream #0:5

 

your ffmpeg command dont fit with your source file, im not a ffmpeg expert i cant help you more, sorry

 

I used the nvidia-hq preset, I don't know why it does not fit.

 

I will have a look on it. But could you say, where to find the error message?

Link to comment
  • 3 weeks later...

Thanks for creating this. I'm having trouble with the final processed copy. I'm using comcut and wish to remove the commercials entirely. From the docker log, the process appears to complete successfully. It appears the TS file is processed and commercials are detected properly (comskip log), but in the final processed copy the commercials remain. Below is the only hint I could find of something going wrong (last lines in the comskip log). 

 

106517 Frames Processed
Commercials were found.
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avio_print_string_array, version LIBAVFORMAT_58
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avio_print_string_array, version LIBAVFORMAT_58
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avio_print_string_array, version LIBAVFORMAT_58
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avio_print_string_array, version LIBAVFORMAT_58
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avio_print_string_array, version LIBAVFORMAT_58
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avio_print_string_array, version LIBAVFORMAT_58
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avio_print_string_array, version LIBAVFORMAT_58
rm: cannot remove '/watch/Global News Hour at 6/.mKqBgw/GlobalTest.part-1.ts': No such file or directory
rm: cannot remove '/watch/Global News Hour at 6/.mKqBgw/GlobalTest.part-2.ts': No such file or directory
rm: cannot remove '/watch/Global News Hour at 6/.mKqBgw/GlobalTest.part-3.ts': No such file or directory
rm: cannot remove '/watch/Global News Hour at 6/.mKqBgw/GlobalTest.part-4.ts': No such file or directory
rm: cannot remove '/watch/Global News Hour at 6/.mKqBgw/GlobalTest.part-5.ts': No such file or directory
rm: cannot remove '/watch/Global News Hour at 6/.mKqBgw/GlobalTest.part-6.ts': No such file or directory

 

Link to comment
  • 2 weeks later...
  • 2 weeks later...

Thank you for this docker image, it has saved me hoards of storage space. I recently built a replacement server with a compatible iGPU to allow for HW accelerated transcoding. After transferring all of my recordings I fired up this container and let it churn. It successfully converted nearly 900 .ts recordings in about 10 days.

 

I am using the Intel example script unmodified with iGPU HW acceleration enabled, but I am experiencing an issue with both comskip and comchap using either the main or alpha repositories.

 

/usr/local/bin/ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory
 

Link to comment
  • 9 months later...
  • 9 months later...

Hello,

 

I just found this and I'm using it with my Unraid. I followed the instructions to set it up but I feel like maybe I missed something. I see questions about comchap setup and such but never saw any instructions on setting that part up if it's needed. I think I have setup my Intel Graphics Acceleration correctly I think but again not sure. The logs are showing me that it tried to process the folder for the .ts files but it says failed already processed. Is there a way to get these processed again?

 

I am also getting the error Failed to create temporary directory under '/watch'.

 

I like what I've seen so far but could use a little more help in setting everything up correctly and verifying that it is all working the way it should. Can someone help me out?

 

Thanks for any help in this.

Edited by chest069
Added more information
Link to comment

 Is there a way to get these processed again?         Remove line from failed_conversions or successful_conversions.

I am also getting the error Failed to create temporary directory under '/watch'.     Probably user u set dont have write access to this folder and since conversion need to write a new file, you need write access.

Link to comment
  • 1 year later...

Hello

i also try to get the docker alive
but i get a lot of failiurs

[autovideoconverter] Waiting 10 seconds before processing '/watch/20231023 2202 - ProSieben - The Big Bang Theory.ts'...
[autovideoconverter] =======================================     CONVERSION START     =================================================
[autovideoconverter]  
[autovideoconverter] Starting conversion of '/watch/20231023 2202 - ProSieben - The Big Bang Theory.ts'...
[autovideoconverter] -------------------------------------
[autovideoconverter] FFMPEG START
[autovideoconverter] FFMPEG FINISH WITH STATUS 0
[autovideoconverter] -------------------------------------
[autovideoconverter] Comskip failed.
[autovideoconverter] CCextrator failed.
[autovideoconverter] -------------------------------------
[autovideoconverter] TMP DIRECTORY REMOVED
[autovideoconverter]  
[autovideoconverter] =======================================     CONVERSION DONE     =================================================
[autovideoconverter] Conversion failed.
[autovideoconverter] =========================================================================================================
[autovideoconverter] Watch folder '/watch' processing terminated.

 

[mpeg2video @ 0x562cbcfe3940] Invalid frame dimensions 0x0.
    Last message repeated 5 times
[mpegts @ 0x562cbcfb8540] PES packet size mismatch
    Last message repeated 2 times
[mpegts @ 0x562cbcfb8540] Could not find codec parameters for stream 4 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from '/watch/20231023 2202 - ProSieben - The Big Bang Theory.ts':
  Duration: 00:32:19.60, start: 74664.379167, bitrate: 3660 kb/s
  Program 17500 
  Program 17501 
    Stream #0:0[0x21](deu,deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:1[0x1ff]: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x200](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s (clean effects)
    Stream #0:3[0x203](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 384 kb/s (clean effects)
    Stream #0:4[0x205]: Unknown: none ([5][0][0][0] / 0x0005)
  Program 17502 
  Program 17503 
  Program 17504 
  Program 17505 
  Program 17506 
  Program 17507 
  Program 17508 
  Program 17509 
Automatic encoder selection failed for output stream #0:0. Default encoder for format mp4 (codec none) is probably disabled. Please choose an encoder manually.
Error selecting an encoder for stream 0:0

 

can anybody help me?
or do you have a tipp for another app?!

 

thanks a lot

 

Edited by luckyheiko
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.