Scan and show MXF files

Hi!

I was able to change the video py file to scan also “.MXF” files; this is more a broadcast file format (Panasonic, AVID, Sony, Canon, …) but I know ffmpeg handles these files smoothly; I have created a script to convert from MXF to MP4 using the ffmpeg cmd line.

I thought it would be cool to have such an on-the-fly trasncoding option also on these file formats; so I modified the video.py scanner adding the “mxf” extension.

Logs tell me that scanner can see those new mxf files, but then I cannot see them into Plex.

Is there a way to do it?

Are the file formats filtered somehow somewhere in the scanner pipe?



If Plex is based on ffmpeg so it should be possible to handle with Plex all file formats managed by ffmpeg, or not?



Thank you!



Best regards,

Camillo

1 Like

STEP1 DONE

Successfully added MXF video files to Library!!!



How I did it: every place there is the list of video file extensions I had to add “mxf” extension:



here:

/Applications/Plex\ Media\ Server.app/Contents/Resources/Plug-ins/LocalMedia.bundle/Contents/Code/config.py

/Applications/Plex\ Media\ Server.app/Contents/Resources/Plug-ins/Scanners.bundle/Contents/Resources/Common/VideoFiles.py



and here:

/Users/camillo/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/LocalMedia.bundle/Contents/Code/config.py

/Users/camillo/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/Scanners.bundle/Contents/Resources/Common/VideoFiles.py



Streaming: not working

investigating IO Error in JW PLayer

I think it is missing the transcoding profile somewhere…

This is the LOG:



Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - Request: GET /library/parts/12335/file.MXF [127.0.0.1:60281] (4 live)

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - Request range: 12155392 to 0

Feb 15, 2013 17:00:43 [0xb0207000] VERBOSE - [IDLE] * http_download - /library/parts/12335/file.MXF - 2 active item(s)

Feb 15, 2013 17:00:43 [0xb0207000] VERBOSE - [IDLE] * transcoder - mm4gslae7y - 1 active item(s)

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - Content-Length of /Volumes/Macintosh HD/Users/camillo/MyCamillo/Video/MXF/IT2_SUPER2_AP.MXF is 152992256.

Feb 15, 2013 17:00:43 [0xb0207000] VERBOSE - Completed request: GET /library/parts/12335/file.MXF: 200

Feb 15, 2013 17:00:43 [0xb040f000] VERBOSE - [IDLE] * http_download - /library/parts/12335/file.MXF - 1 active item(s)

Feb 15, 2013 17:00:43 [0xb040f000] VERBOSE - [IDLE] * transcoder - mm4gslae7y - 1 active item(s)

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] Thread count: 8

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] Input #0, mxf, from ‘http://127.0.0.1:32400/library/parts/12335/file.MXF’:

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] Stream #0.0, 40, 1/25: Video: mpeg2video (4:2:2), yuv422p, 720x608 [SAR 608:405 DAR 16:9], 50000 kb/s

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] Stream #0.1, 39, 1/25: Audio: pcm_s16le, 48000 Hz, 8 channels, s16, 6144 kb/s

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] Applying output settings.

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [FFMPEG] Duration: 19.56

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - Read line, and done: 1

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - Building an M3U8 for 20 total seconds.

Feb 15, 2013 17:00:43 [0xb0103000] VERBOSE - Completed request: GET /video/:/transcode/segmented/session/mm4gslae7y/7/index.m3u8: 200

Feb 15, 2013 17:00:43 [0xb0289000] DEBUG - [Transcoder] Frames per second is either 25.000000 or 25.000000.

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] Final font scale: 1.000000 (0.750000) -> 1.114286

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] Audio stream info:

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] codec_id : 10000

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] channels : 8

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] bitrate : 0/128000

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] samplerate: 48000

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] audiogain : 1.00 (256)

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] aacProfile: 1/-99

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] ----> Channels Failed

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] Video stream info:

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] codec_id: 2/1c

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] level : 5/51

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] avg_fps : 25/25

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] profile : 0/64

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] vfr : 0

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] fps : 25.00/25.00

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] bitrate : 62.57/3.15 mbps

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] height : 608/608

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] aspect : 0.56(1.50)/0.84

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] segSize : 238.70mbits/seg, 59.67/25.60MBps

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - [Transcoder] timebase: 0.02000(1:50)/0.00001(0:1000000)

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] ----> segSize Failed

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] Configuring output.

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] Output #0, mpegts, to ‘/var/folders/sp/912tpzr11j77hr2lxv0mdrb00000gn/T/plex-transcode-mm4gslae7y-e71a9a85d70769c2b646667e7f80fda78dec584e-tmp.ts’:

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] Stream #0.0, 0, 1/90000: Video: libx264, yuv420p, 720x406 [SAR 1:1 DAR 360:203], q=10-51, 200 kb/s

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] Stream #0.1, 0, 1/90000: Audio: libmp3lame, 48000 Hz, 2 channels, s16, 128 kb/s

Feb 15, 2013 17:00:43 [0xb0103000] DEBUG - [Transcoder] The verbose setting is 0 and PLEX_DEBUG is 0.

Feb 15, 2013 17:00:43 [0xb040f000] VERBOSE - [IDLE] * transcoder - mm4gslae7y - 1 active item(s)

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - Request: GET /video/:/transcode/segmented/session/mm4gslae7y/7/00000.ts [127.0.0.1:60315] (2 live)

Feb 15, 2013 17:00:43 [0xb0207000] DEBUG - Asked for segment 0 from session.

Feb 15, 2013 17:00:43 [0xb0207000] WARN - Transcode runner appears to have died.

Feb 15, 2013 17:00:43 [0xb0207000] WARN - Timed out waiting for segment.

Feb 15, 2013 17:00:43 [0xb0207000] VERBOSE - Completed request: GET /video/:/transcode/segmented/session/mm4gslae7y/7/00000.ts: 404

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.