Changeset 7bf6bb1364 in mythtv
- Timestamp:
- Feb 13, 2015, 8:48:24 PM (10 years ago)
- Branches:
- devel/2020-player, devel/ffmpeg-resync, fixes/0.28, fixes/29, fixes/30, fixes/31, github-templates, master
- Children:
- 5e16d5788
- Parents:
- e254a029ea
- git-author:
- Stuart Morgan <smorgan@…> (02/13/15 20:48:24)
- git-committer:
- Stuart Morgan <smorgan@…> (02/13/15 20:48:48)
- Location:
- mythtv
- Files:
-
- 3 edited
-
libs/libmythupnp/httprequest.cpp (modified) (3 diffs)
-
programs/mythbackend/upnpcdstv.cpp (modified) (3 diffs)
-
programs/mythbackend/upnpcdsvideo.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mythtv/libs/libmythupnp/httprequest.cpp
re254a029ea r7bf6bb1364 112 112 { "asf" , "video/x-ms-asf" }, 113 113 { "avi" , "video/x-msvideo" }, // Also video/avi 114 { "m2p" , "video/mp2p" }, // RFC 3555 114 115 { "m4v" , "video/mp4" }, 115 { "mpeg", "video/mp eg" },116 { "mpeg2","video/mp eg" },117 { "mpg" , "video/mp eg" },118 { "mpg2", "video/mp eg" },116 { "mpeg", "video/mp2p" }, // RFC 3555 117 { "mpeg2","video/mp2p" }, // RFC 3555 118 { "mpg" , "video/mp2p" }, // RFC 3555 119 { "mpg2", "video/mp2p" }, // RFC 3555 119 120 { "mov" , "video/quicktime" }, 120 121 { "mp4" , "video/mp4" }, … … 122 123 { "nuv" , "video/nupplevideo" }, 123 124 { "ogv" , "video/ogg" }, // Defined: http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions 124 { "ts" , "video/mp2t" }, 125 { "vob" , "video/mpeg" }, 125 { "ps" , "video/mp2p" }, // RFC 3555 126 { "ts" , "video/mp2t" }, // RFC 3555 127 { "vob" , "video/mpeg" }, // Also video/dvd 126 128 { "wmv" , "video/x-ms-wmv" } 127 129 }; … … 1100 1102 1101 1103 if ( sHex == "000001ba44000400" ) // MPEG2 PS 1102 sMIME = "video/mp eg";1104 sMIME = "video/mp2p"; 1103 1105 1104 1106 if ( head == "MythTVVi" ) -
mythtv/programs/mythbackend/upnpcdstv.cpp
re254a029ea r7bf6bb1364 1220 1220 { 1221 1221 sContainer = "NUV"; 1222 if (sMimeType == "video/mp eg")1222 if (sMimeType == "video/mp2p") 1223 1223 { 1224 1224 if (bTranscoded) // Transcoded mpeg will probably be in a PS container 1225 1225 sContainer = "MPEG2-PS"; 1226 else 1226 else // For temporary backwards compatibility with old file naming 1227 1227 sContainer = "MPEG2-TS"; // 99% of recordings will be in MPEG-2 TS containers before transcoding 1228 1228 } 1229 1229 else if (sMimeType == "video/mp2t") 1230 1230 { 1231 sMimeType == "video/mp eg";1231 sMimeType == "video/mp2p"; 1232 1232 sContainer = "MPEG2-TS"; 1233 1233 } … … 1237 1237 if (sVideoCodec.isEmpty()) 1238 1238 { 1239 if (sMimeType == "video/mp eg" || sMimeType == "video/mp2t")1239 if (sMimeType == "video/mp2p" || sMimeType == "video/mp2t") 1240 1240 sVideoCodec = (nVideoProps & VID_AVC) ? "H264" : "MPEG2VIDEO"; 1241 1241 else if (sMimeType == "video/mp4") … … 1243 1243 } 1244 1244 1245 // DLNA requires a mimetype of video/mp egfor TS files, it's not the1245 // DLNA requires a mimetype of video/mp2p for TS files, it's not the 1246 1246 // correct mimetype, but then DLNA doesn't seem to care about such 1247 1247 // things 1248 if (sMimeType == "video/mp2t" )1248 if (sMimeType == "video/mp2t" || sMimeType == "video/mp2p") 1249 1249 sMimeType = "video/mpeg"; 1250 1250 -
mythtv/programs/mythbackend/upnpcdsvideo.cpp
re254a029ea r7bf6bb1364 816 816 resURI.addQueryItem("Id", QString::number(nVidID)); 817 817 818 // DLNA requires a mimetype of video/mp egfor TS files, it's not the818 // DLNA requires a mimetype of video/mp2p for TS files, it's not the 819 819 // correct mimetype, but then DLNA doesn't seem to care about such 820 820 // things 821 if (sMimeType == "video/mp2t" )821 if (sMimeType == "video/mp2t" || sMimeType == "video/mp2p") 822 822 sMimeType = "video/mpeg"; 823 823
Note: See TracChangeset
for help on using the changeset viewer.
